Skip to content

Feat/skills add command#63

Merged
EricFernandezPort merged 4 commits into
mainfrom
feat/skills-add-command
May 18, 2026
Merged

Feat/skills add command#63
EricFernandezPort merged 4 commits into
mainfrom
feat/skills-add-command

Conversation

@haimn-support

Copy link
Copy Markdown
Contributor

Added port skills add to 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

haimn-support and others added 3 commits May 18, 2026 14:13
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 EricFernandezPort merged commit f55fd96 into main May 18, 2026
4 checks passed
@EricFernandezPort EricFernandezPort deleted the feat/skills-add-command branch May 18, 2026 12:01
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.

2 participants