Skip to content

Add --skill undocumented alias for help --skill - #367

Merged
jancurn merged 1 commit into
mainfrom
claude/mcpc-skill-command-parity-5ki4wf
Aug 11, 2026
Merged

Add --skill undocumented alias for help --skill#367
jancurn merged 1 commit into
mainfrom
claude/mcpc-skill-command-parity-5ki4wf

Conversation

@jancurn

@jancurn jancurn commented Aug 11, 2026

Copy link
Copy Markdown
Member

Accepts mcpc --skill as an undocumented alias of mcpc help --skill. Agents reach for the bare flag first, and an unknown-option error there is a dead end. A bare --skill is rewritten to help --skill before routing, so it prints the identical guide and reuses the existing error handling.

  • New preProcessSkillArgv() in src/cli/parser.ts, chained after preProcessX402Argv() in main()
  • Only rewrites when there is no positional token and no --help/-h; mcpc --skill connect, mcpc @s --skill and mcpc help --skill connect keep their current errors
  • Stays out of --help and docs/REFERENCE.mdmcpc help --skill remains the one documented way
  • Unit tests for the argv rewrite, plus e2e cases asserting byte-identical output and that the option stays undocumented

https://claude.ai/code/session_011avkXVjDri1w1H2nW2xTv3

Agents reach for the bare flag first, and an unknown-option error there is a
dead end. A bare `--skill` (no positional, no `--help`) is rewritten to
`help --skill` before routing, so it prints the identical guide and reuses the
existing error handling. Anything else — `mcpc --skill connect`,
`mcpc @s --skill`, `mcpc help --skill connect` — keeps its current error.

The alias stays out of the help output: there is still one documented way to
print the guide.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011avkXVjDri1w1H2nW2xTv3
@jancurn
jancurn merged commit 5b5e895 into main Aug 11, 2026
7 checks passed
@jancurn
jancurn deleted the claude/mcpc-skill-command-parity-5ki4wf branch August 11, 2026 11:59
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.

3 participants