Skip to content

feat: add skill command to install/remove notte skill via npx#40

Merged
giordano-lucas merged 3 commits intomainfrom
feat/skill-command
Feb 3, 2026
Merged

feat: add skill command to install/remove notte skill via npx#40
giordano-lucas merged 3 commits intomainfrom
feat/skill-command

Conversation

@giordano-lucas
Copy link
Member

@giordano-lucas giordano-lucas commented Feb 3, 2026

Adds notte skill add and notte skill remove commands that proxy to npx skills add/remove nottelabs/notte-cli for installing the Notte browser automation skill in AI coding assistants.

Includes prerequisite checks for npx and the skills package with helpful error messages if dependencies are missing.

Greptile Overview

Greptile Summary

This PR adds notte skill add and notte skill remove commands that proxy to npx skills add/remove nottelabs/notte-cli for installing the Notte browser automation skill in AI coding assistants. The implementation is clean and straightforward, properly handling stdin/stdout/stderr for interactive npx commands.

  • Removed prerequisite checks based on previous feedback (npx auto-downloads packages)
  • Commands correctly use exec.CommandContext for cancellation support
  • Added comprehensive unit tests for command structure validation
  • Includes helpful long descriptions explaining what each command does

Confidence Score: 5/5

  • This PR is safe to merge with no issues found
  • The implementation is clean, well-tested, and addresses previous feedback by removing unnecessary prerequisite checks. The code follows existing patterns in the codebase and properly handles command execution with appropriate error messages.
  • No files require special attention

Important Files Changed

Filename Overview
internal/cmd/skills.go Adds skill add/remove commands that proxy to npx skills, clean implementation with proper I/O handling
internal/cmd/skills_test.go Comprehensive unit tests covering command structure, aliases, and subcommand registration

Adds `notte skill add` and `notte skill remove` commands that proxy to
`npx skills add/remove nottelabs/notte-cli` for installing the Notte
browser automation skill in AI coding assistants.

Includes prerequisite checks for npx and the skills package with
helpful error messages if dependencies are missing.
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Comment on lines 56 to 60
// Check if skills package is available by running 'npx skills --version'
cmd := exec.Command("npx", "skills", "--version")
if err := cmd.Run(); err != nil {
return errors.New("'skills' package not found. Install it with: npm install -g skills")
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

npx skills --version will download and execute the skills package if not installed, making this not a true "check". Consider checking if the package is locally installed first or removing this check entirely since npx is designed to work without pre-installation.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Prompt To Fix With AI
This is a comment left during a code review.
Path: internal/cmd/skills.go
Line: 56:60

Comment:
`npx skills --version` will download and execute the skills package if not installed, making this not a true "check". Consider checking if the package is locally installed first or removing this check entirely since `npx` is designed to work without pre-installation.

<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>

How can I resolve this? If you propose a fix, please make it concise.

// Check if skills package is available by running 'npx skills --version'
cmd := exec.Command("npx", "skills", "--version")
if err := cmd.Run(); err != nil {
return errors.New("'skills' package not found. Install it with: npm install -g skills")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confusing error message - npx doesn't require global installation. Either remove the check above or clarify that global installation is optional.

Prompt To Fix With AI
This is a comment left during a code review.
Path: internal/cmd/skills.go
Line: 59:59

Comment:
Confusing error message - `npx` doesn't require global installation. Either remove the check above or clarify that global installation is optional.

How can I resolve this? If you propose a fix, please make it concise.

Remove the skills package check since npx auto-downloads packages,
making the check ineffective.
@giordano-lucas
Copy link
Member Author

@greptile

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@giordano-lucas giordano-lucas merged commit 8a6fec3 into main Feb 3, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant