Skip to content

Slash Commands Reference

Slash commands live in .claude/commands/ and are the prompts that agents execute. They are the system — improving a command improves every future run that uses it.

Core SDLC Commands

CommandPurposeCalled by
/classify_issueClassify as /chore, /bug, or /featureadw_plan.py
/featureGenerate feature implementation planadw_plan.py (feature)
/bugGenerate bug fix plan with repro stepsadw_plan.py (bug)
/choreGenerate maintenance/refactor planadw_plan.py (chore)
/implementImplement a plan from specs/adw_build.py
/testRun unit + integration testsadw_test.py
/test_e2eRun E2E tests via Playwright MCPadw_test.py
/commitStage and commit with semantic messageadw_build.py
/pull_requestCreate PR with descriptionadw_plan.py
/reviewReview implementation against specadw_review.py
/documentGenerate technical documentationadw_document.py
/resolve_failed_testDebug and fix failing testsadw_test.py
/resolve_failed_e2e_testDebug failing E2E testsadw_test.py

Task System Commands

CommandPurpose
/process_tasksAnalyze tasks.md → return eligible tasks as JSON
/init_worktreeCreate sparse-checkout git worktree
/mark_in_progressUpdate [][in progress, adw_id]
/update_taskUpdate [in progress][done] or [failed]
/buildImplement task directly (no planning phase)
/planCreate plan in specs/plan-{adw_id}-*.md
/clean_worktreeRemove worktree and its branch

Notion Prototype Commands

CommandPurpose
/get_notion_tasksQuery Notion DB for eligible tasks
/update_notion_taskUpdate Notion page status
/plan_uv_scriptPlan UV single-file Python script MVP
/plan_vite_vuePlan Vite + Vue 3 web application MVP
/plan_bun_scriptsPlan Bun TypeScript application MVP
/plan_uv_mcpPlan MCP server for AI tool integration

Running Commands Directly

Use adw_slash_command.py to run any slash command from the terminal:

bash
# Run the /chore command with a task description
uv run adws/adw_slash_command.py /chore "Add error handling to all endpoints"

# Run /implement with a specific spec file
uv run adws/adw_slash_command.py /implement specs/my-plan.md --model opus

# Run /feature with a description
uv run adws/adw_slash_command.py /feature "Add CSV export to results table"

How Slash Commands Work

Each command is a Markdown file in .claude/commands/. When executed:

  1. Claude Code reads the command file
  2. The $ARGUMENTS placeholder is replaced with your input
  3. Claude Code executes as if you typed the prompt manually

Example command file structure (feature.md):

markdown
## Your task

Generate a detailed implementation plan for this feature request:

$ARGUMENTS

## Requirements

Include:
- Technical approach
- Step-by-step implementation tasks
- Files to create/modify
- Testing requirements
- Acceptance criteria

## Context

The spec should be specific enough that another agent can implement
it without asking questions.

## Relevant Files
[Update this section to match your project structure]
- src/components/
- src/hooks/
- src/api/

Improving Commands

When an agent produces bad output for a certain type of task, fix the command:

bash
# Edit the command that's producing bad results
$EDITOR .claude/commands/feature.md

# The fix propagates to all future runs

Common improvements:

  • Add project-specific file structure to "Relevant Files"
  • Add coding conventions ("always use named exports", "hooks go in src/hooks/")
  • Add anti-patterns ("never use any from third-party APIs without Zod validation")
  • Add specific acceptance criteria templates for your domain

Agentics SOP — AI Developer Workflow & Agentic Coding Reference