Slash Commands
ContextKit installs reusable slash commands for Claude Code and Cursor. Each command delegates to universal workflow files in .contextkit/commands/.
Overview
Slash commands are platform-specific thin wrappers that point to the universal command files in .contextkit/commands/. This means you maintain one set of workflows that work across all platforms.
How it works
1. ck claude installs slash commands to .claude/commands/
2. ck cursor installs slash commands to .cursor/prompts/
3. Both delegate to .contextkit/commands/*.md
Available Commands
| Command | What it does | Source file |
|---|---|---|
| /analyze | Scan codebase and generate standards content | commands/analyze.md |
| /review | Code review with checklist | commands/review.md |
| /fix | Diagnose and fix bugs | commands/fix.md |
| /refactor | Refactor code with safety checks | commands/refactor.md |
| /test | Generate comprehensive tests | commands/run-tests.md |
| /doc | Add documentation | commands/add-documentation.md |
| /doc-arch | Generate architecture docs — stack-aware (Level 1) | commands/doc-arch.md |
| /doc-feature | Generate feature-level docs — stack-aware (Level 2) | commands/doc-feature.md |
| /doc-component | Generate component-level docs colocated with the target — stack-aware (Level 3) | commands/doc-component.md |
| /spec | Write a component spec (MD-first) before coding begins | commands/spec.md |
| /squad+ 8 more | Multi-role pipeline: PO → Architect → Dev → Test → Review → Doc | See Squad docs → |
All commands are framework-agnostic. They auto-detect your project type and adapt accordingly.
Claude Code
Slash commands in .claude/commands/
Setup
Usage
/analyze/review/fixFiles created
.claude/commands/analyze.md.claude/commands/review.md.claude/commands/fix.md.claude/commands/refactor.md.claude/commands/test.md.claude/commands/doc.md
Cursor
Slash commands in .cursor/prompts/
Setup
Usage
/analyze/review/fixFiles created
.cursor/prompts/analyze.md.cursor/prompts/review.md.cursor/prompts/fix.md.cursor/prompts/refactor.md.cursor/prompts/test.md.cursor/prompts/doc.md
Custom Commands
You can create custom commands by adding markdown files to .contextkit/commands/. Each file defines a workflow that AI assistants can execute.
# My Custom Workflow ## Steps 1. Read the relevant source files 2. Analyze the current implementation 3. Apply the following changes...
Then reference it in your AI tool: @.contextkit/commands/my-workflow.md
Was this helpful?
Help us improve the documentation by sharing your feedback.