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

CommandWhat it doesSource file
/analyzeScan codebase and generate standards contentcommands/analyze.md
/reviewCode review with checklistcommands/review.md
/fixDiagnose and fix bugscommands/fix.md
/refactorRefactor code with safety checkscommands/refactor.md
/testGenerate comprehensive testscommands/run-tests.md
/docAdd documentationcommands/add-documentation.md
/squad + 6 moreMulti-role pipeline: PO → Architect → Dev → Test → ReviewSee Squad docs →

All commands are framework-agnostic. They auto-detect your project type and adapt accordingly.

Claude Code

Slash commands in .claude/commands/

Setup

contextkit claude

Usage

In Claude Code
/analyze/review/fix

Files 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

contextkit cursor

Usage

In Cursor Chat
/analyze/review/fix

Files 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.

.contextkit/commands/my-workflow.md
# 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.