refactor(plugin): migrate commands/ to skills/ - #77
Merged
Conversation
Current Claude Code docs recommend skills as the superset path: both
commands/*.md and skills/<name>/SKILL.md auto-discover from plugin
directories, but skills support additional frontmatter fields (paths,
disable-model-invocation, allowed-tools, context: fork, lifecycle hooks,
supporting files) that commands don't. Per the official docs, "if a
skill and a command share the same name, the skill takes precedence" —
which meant four command files were unreachable dead weight.
Deleted:
- commands/tri-review.md (skills/tri-review/ already exists)
- commands/tri-debug.md (skills/tri-debug/ already exists)
- commands/tri-security.md (skills/tri-security/ already exists)
- commands/workflow.md (all 21 workflows have dedicated skills;
/feature, /bugfix, /audit, etc. cover every
workflow directly — generic runner redundant)
Converted to skills:
- commands/setup-rules.md -> skills/setup-rules/SKILL.md
Added disable-model-invocation: true (side-effecting installer that
writes to ~/.claude/rules/ — user-only via /devkit:setup-rules, never
auto-triggered by Claude)
- commands/status.md -> skills/status/SKILL.md
Default invocation (read-only health check, safe to auto-activate on
"is devkit healthy?"-style questions). Also removed the stale
/devkit:workflow row from the sample output table and relabeled the
"Commands" column as "Skills".
commands/references/ left untouched (supporting docs, out of scope).
Zero behavior change for existing slash commands: /tri-review,
/tri-debug, /tri-security, /setup-rules, /status all continue to work —
they now route through the skill definitions instead of duplicate
command files.
…ration Reflects the skills-first architecture from the preceding refactor commit. Removes stale /devkit:workflow references, fixes the "6 slash commands" framing (all skills are tab-completable in current Claude Code), bumps skills count 36→38, and rewrites the contributor "Adding a Slash Command" guide to use skills with disable-model-invocation for side-effecting entry points.
This was referenced Apr 11, 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.
Summary
Current Claude Code docs recommend skills as the superset path — both
commands/*.mdandskills/<name>/SKILL.mdauto-discover from plugin directories, but only skills supportpathsglobs,disable-model-invocation,allowed-tools, supporting files, lifecycle hooks, and other advanced frontmatter. Per the official docs, "if a skill and a command share the same name, the skill takes precedence" — which meant four command files in devkit were unreachable dead code.This PR deletes the dead code, converts the remaining two commands to skills, and updates the docs to match.
Deleted (unreachable duplicates)
commands/tri-review.md—skills/tri-review/already exists and takes precedencecommands/tri-debug.md— samecommands/tri-security.md— samecommands/workflow.md— generic YAML workflow runner; every one of the 21 workflows already has a dedicated skill (/feature,/bugfix,/audit, etc.), making the generic runner redundantConverted to skills
commands/setup-rules.md→skills/setup-rules/SKILL.mdwithdisable-model-invocation: trueso Claude can never auto-invoke the side-effecting installer (user-only via/devkit:setup-rules)commands/status.md→skills/status/SKILL.mdwith default frontmatter so it auto-activates on "is devkit healthy?" prompts; body preserved with two small updates (removed stale/devkit:workflowrow from sample output, renamed column "Commands" → "Skills")Doc updates (second commit)
README.md— removed/devkit:workflowrow, fixed/tri:*→/tri-*naming, reframed "6 tab-completable slash commands" since all skills tab-complete now, updated directory tree + skills count (36→38)CONTRIBUTING.md— replaced "Adding a Slash Command" guide with "Adding a User-Only Entry Point" (skills +disable-model-invocation), markedcommands/as legacy, fixed stale/devkit:workflow my-workflowreferenceROADMAP.md— rewrote "6 slash commands" bullet as "Skills-first architecture", bumped skill countNet effect
commands/now contains onlyreferences/(supporting-docs subdirectory, untouched)/tri-review,/tri-debug,/tri-security,/devkit:setup-rules,/devkit:status— all still work, routed via skill definitions/devkit:workflow <name>no longer resolves. Users typing this rare form must use the per-workflow skills instead (/feature,/bugfix, ...), which is the documented primary path anywayWhy this matters
paths,allowed-tools, supporting files) for the converted entriesTest plan
/tri-review,/tri-debug,/tri-securitystill tab-complete and dispatch to the engine/devkit:setup-rulestab-completes and runs when explicitly typed/devkit:setup-rulesis NOT auto-triggered by natural language (e.g. "set up devkit rules") —disable-model-invocation: trueverified/devkit:statustab-completes, runs, and also auto-activates on "is devkit healthy?" style prompts/feature,/bugfix,/audit, and other per-workflow skills still tab-complete and fire correctly (nothing was renamed — only/devkit:workflow <name>is gone)go vet ./...,go test ./... -count=1,gofmt -l .all clean (already verified locally: 5/5 packages pass)Known issue surfaced during
/devkit:pr-readyThe
workflows/pr-ready.ymlstep types fordoc-checkandcreate-prcause the devkit-guard hook to block Edit/Write/Bash — the guard treats them as prompt-only steps, but the step bodies literally instruct "apply the edit directly" (doc-check) and "Push the branch to remote" / rungh pr create(create-pr). I had to apply doc updates and push/PR manually outside the workflow to finish this PR. Worth fixing the step types in a follow-up PR so/devkit:pr-readycan complete end-to-end.