Skip to content

fix: scope skills remove to one provider/scope, like skills add - #492

Merged
ankitranjan7 merged 1 commit into
mainfrom
fix/skills-remove-provider-scope
Sep 7, 2026
Merged

fix: scope skills remove to one provider/scope, like skills add#492
ankitranjan7 merged 1 commit into
mainfrom
fix/skills-remove-provider-scope

Conversation

@ankitranjan7

Copy link
Copy Markdown
Contributor

Summary

  • webcmd skills remove previously accepted no --provider/--scope and never prompted: it blind-scanned every provider (agents/codex/claude) × scope (user/project) combination plus the internal stable-link root, removing any matching symlink it found anywhere. Passing an agent name like codex had no effect since there was no such flag.
  • skills remove now mirrors skills add: resolves one provider+scope (or --path) via the same destinationFor() helper used by add/update, prompting interactively with the same two questions as add when stdin is a TTY and no flags are given.
  • Only that single destination per skill is touched; the ~/.webcmd/skills stable links (add/update's concern) are left alone.
  • WebcmdSkillRemoveResult now reports provider/scope, mirroring WebcmdSkillAddResult.

Fixes #490.

Test plan

  • npx vitest run src/skills.test.ts src/cli.test.ts — 180/180 passed
  • Full suite after build: 3624 passed, 81 skipped, 0 real failures (6 pre-existing e2e/smoke failures are a plugins/ fixture gap present even on a plain checkout, unrelated to this change)
  • npm run typecheck / npm run build — both pass
  • Manual smoke: skills add --provider codex --scope project --json then skills remove --provider codex --scope project --json removes exactly that symlink; a second remove reports removed: []; skills remove --help shows the new --provider/--scope flags

🤖 Generated with Claude Code

https://claude.ai/code/session_013KuPnjTXhrBoY2KtPV2R89

webcmd skills remove previously accepted no --provider/--scope and never
prompted: it blind-scanned every provider (agents/codex/claude) and scope
(user/project) combination plus the internal stable-link root, removing
any matching symlink it found anywhere. Passing an agent name like
`codex` had no effect since there was no such flag.

skills remove now mirrors skills add: it resolves one provider+scope (or
--path) via the same destinationFor() helper, interactively prompting
with the same two questions as add when stdin is a TTY and no flags are
given. It touches only that single destination per skill and leaves the
~/.webcmd/skills stable links (add/update's concern) alone.

Fixes #490.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013KuPnjTXhrBoY2KtPV2R89
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

🟠 Maintainer review suggested — low confidence

The automated review could not reach a fully supported conclusion.

Limitations

  • The automated review returned an invalid structured result.

This review is advisory and does not block merging.

@ankitranjan7
ankitranjan7 merged commit 3be5f95 into main Sep 7, 2026
15 checks passed
@ankitranjan7
ankitranjan7 deleted the fix/skills-remove-provider-scope branch September 8, 2026 09:08
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.

[Bug]: remove should work exactly like skills add.

1 participant