Feat/skills add command#63
Merged
Merged
Conversation
Let users extend skill groups, individual skills, and AI tool hooks without re-running the full init selection flow. Document in README and CHANGELOG. Co-authored-by: Cursor <cursoragent@cursor.com>
- Updated `promptAddTargetSelection` to accept pre-configured tool names, improving user experience by displaying existing tools during selection. - Introduced `configuredHookTargetNames` function to streamline retrieval of configured tools from the config manager. - Adjusted descriptions in the selection prompt to clarify the behavior when no new tools are selected. This change enhances the interactivity of the skills command, allowing users to make more informed selections based on their existing configurations.
- Adjusted spacing in variable declarations within the `registerSkillsAdd` function to enhance readability and maintain consistent formatting across the codebase.
`Module.AddSkills` checked for a prior `init` AFTER installing hooks and mutating `skillsCfg.Targets`, so a fresh-system invocation like `port skills add --tool Cursor` would silently install Cursor hooks and then run an empty sync instead of erroring out. Move the guard above the `InstallHooks` block. Add a regression test that asserts (a) the error mentions `port skills init` and (b) no hooks.json is written when the guard fires. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Entire-Checkpoint: c73816a9dcc5
EricFernandezPort
approved these changes
May 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added
port skills addto the command to allow users to add new skills to the selected tools without the need to init the skills each time from the beginning.this is done due to FR : https://roadmap.getport.io/ideas/p/add-skills-select-or-skills-add-in-port-cli
This will also close ZD https://getport.zendesk.com/agent/tickets/8943