skills/slash-command-creator/SKILL.md
Guide for creating Claude Code slash commands with best practices. Use when the user wants to create a new slash command, asks about slash command structure, or needs help with command frontmatter, arguments, or tool restrictions.
npx skillsauth add mjmorales/claude-prove slash-command-creatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create Claude Code slash commands following best practices for structure, frontmatter, and organization.
Shared conventions: See references/creator-conventions.md for the standard creator workflow (gather, generate, quality self-check, validate, review gate, commit).
Prompting best practices: See references/prompt-engineering-guide.md for optimization techniques to apply when generating command prompt content.
Use AskUserQuestion for discrete choices, free-form for open-ended questions.
Command purpose (free-form):
Command location — AskUserQuestion with header "Location":
.claude/commands/ — versioned with the repo)~/.claude/commands/ — available across all projects)commands/ — if adding to a prove-style plugin)Arguments — AskUserQuestion with header "Arguments":
$ARGUMENTS)$1, $2, etc.)Tool restrictions — AskUserQuestion with header "Tools":
allowed-tools)Read, Grep, Glob)Bash(git *))Skill delegation (conditional — only if the command is part of a plugin):
Refer to references/best-practices.md for frontmatter fields, tool restriction patterns, and argument handling.
Standard command structure:
---
description: [Action-oriented description — REQUIRED for model invocation]
argument-hint: [Expected arguments shown in autocomplete]
allowed-tools: [Tool restrictions if needed]
---
[Command prompt content here]
Plugin command structure (thin wrapper — keep all logic in the skill):
---
description: Do the thing
argument-hint: "[input]"
---
# Command Name: $ARGUMENTS
Load and follow the skill (`skills/<name>/SKILL.md` from the workflow plugin).
Apply the quality self-check from references/creator-conventions.md before presenting. Key checks for commands:
| Location | Path | Notes |
|----------|------|-------|
| Project | .claude/commands/<name>.md | Versioned with repo |
| User | ~/.claude/commands/<name>.md | Available across projects |
| Plugin | commands/<name>.md | Add scope to .claude/.prove.json |
| Namespaced | commands/<ns>/<name>.md | Invoked as /ns:name |
Before writing the file, verify:
description field is present (required for model invocation and /help)argument-hint is set if the command accepts argumentsUse AskUserQuestion with header "Review" to confirm: "Create Command" / "Revise".
Delegate to the commit skill. Example: feat(commands): add review command
references/best-practices.md — frontmatter fields, tool restriction patterns, argument handlingreferences/creator-conventions.md — shared creator workflow patternsreferences/prompt-engineering-guide.md — prompting techniques for command contenttools
Clean and compact prove's durable memory layers — team Lore, the Codex (scrum decisions), annotations, and contributor artifacts — keeping the tribal knowledge that grows team accuracy and folding away the rot. Triggers on "janitor", "clean the lore", "compact the lore", "compact the codex", "memory cleanup", "clean up team memory", "prune stale decisions", "tidy tribal knowledge", "lore cleanup". You are the driver: the CLI emits inventories and executes writes; the `memory-janitor` agent judges each entry; a per-team batch gate approves; nothing is ever deleted — consolidation, promotion, and supersession only.
testing
Anchor session context into prove primitives before compaction and rehydrate from them after. Built-in compaction summarizes by recency and drops the claude-prove state an agent needs to reorient; this skill externalizes volatile context into durable anchors (scrum tasks, decisions, run-state, a compact-anchors pointer file) pre-compact, then runs a deterministic reorientation sequence post-compact. Use before a manual /compact, when context is about to auto-compact, or immediately after a compaction. Triggers on "smart compact", "prepare for compaction", "anchor before compact", "context is getting long", "rehydrate", "reorient after compact".
tools
Apply model-driven CONTENT reshaping to stored run artifacts that sit behind the current schema, on explicit operator invocation only. Triggers on "migrate runs", "migrate run artifacts", "run content migration", "reshape run artifacts", "bring runs to current schema". You are the driver: the `run-state migrate-runs` CLI mechanically detects which artifacts are behind and emits a plan naming each one plus its migration-instruction file; you read the instructions and reshape the prose/findings, gated by the operator. The deterministic `schema migrate` handles structural column moves; this skill covers only the content reshaping beyond them. Never run as a background or resident loop — only when the operator asks.
tools
Synthesize the 7-section risk-forward Review Brief from a run's reasoning log. Triggers on "reasoning brief", "review brief", "synthesize the brief", "generate the brief", "brief the run", "brief for review", "story brief". You are the driver: the `acb brief` CLI renders a mechanical preservation-safe backbone and proves preservation; you synthesize the narrative prose (summary + changes), single-pass or multipass over episode chunks, then gate it through Stage-1 (mechanical, blocking) and Stage-2 (prose judge, advisory).