Skip to content

Slash Commands

Worclaude installs 16 slash commands as Markdown files in .claude/commands/. These are invoked inside a Claude Code session by typing the command name (e.g., /start). Each command gives Claude a specific instruction set for that task.

Command Reference

/start

Load session context, check for handoff files, detect drift since last session.

File.claude/commands/start.md
When to useAt the start of every Claude Code session
What it doesThe SessionStart hook has already loaded CLAUDE.md, PROGRESS.md, and the last session summary. This command supplements that with drift detection (commits since last session), handoff file checks matching the current branch, active implementation prompts, and agent routing. Reports what was last completed, what is next, and any blockers.
Key behaviorRead-only. Does not modify files.

/end

Mid-task stop -- writes handoff file and session summary for next session.

File.claude/commands/end.md
When to useWhen stopping mid-task (unfinished work)
What it doesCreates a handoff document at docs/handoffs/HANDOFF-{branch-name}-{date}.md with context for the next session. Writes a session summary to .claude/sessions/. Commits and pushes the handoff.
Key behaviorDoes NOT update PROGRESS.md — that is handled by /sync on develop after merging.

/commit-push-pr

Commit, push, and create PR -- branch-aware with session summary.

File.claude/commands/commit-push-pr.md
When to useWhen a feature or fix is ready for review
What it doesWrites a session summary to .claude/sessions/ first. On feature branches: skips shared-state files (PROGRESS.md, SPEC.md, package.json version), stages, commits, pushes, PRs to develop. On develop: stages, commits, pushes, PRs to main (after /sync is run).
Key behaviorFeature branches never touch shared-state files — that prevents merge conflicts during parallel work.

/review-plan

Send implementation plan to plan-reviewer agent for staff-level review.

File.claude/commands/review-plan.md
When to useAfter writing an implementation plan, before starting implementation
What it doesSends the current plan to the plan-reviewer agent (Opus). The reviewer checks for ambiguity, missing verification steps, unrealistic scope, edge cases, and SPEC.md alignment.
Key behaviorBlocks implementation until all feedback is addressed. The plan should be updated with revisions before proceeding.

/techdebt

Scan codebase for technical debt and report findings.

File.claude/commands/techdebt.md
When to usePeriodically, or when the codebase feels messy
What it doesScans for duplicated code, dead code (unused functions, imports, variables), TODO/FIXME/HACK comments, overly complex functions, missing tests for critical paths, and inconsistent patterns. Reports findings by severity. Fixes quick wins directly.
Key behaviorProduces a prioritized report. Small fixes are applied immediately; larger items are documented.

/verify

Run full project verification -- tests, build, lint, type checking.

File.claude/commands/verify.md
When to useBefore committing, before opening a PR, after major changes
What it doesRuns the test suite, build, linter, and type checker (if applicable). Runs domain-specific verification as needed. Reports results clearly.
Key behaviorBlocks further work if any check fails. All checks must pass before proceeding.

/compact-safe

Compress context via /compact with safety checks.

File.claude/commands/compact-safe.md
When to useWhen context is running low (~70% used) and you need to keep working
What it doesTriggers /compact to compress conversation history. The PostCompact hook automatically re-reads CLAUDE.md and PROGRESS.md. After compaction, Claude confirms the current task, current branch, and what was being worked on.
Key behaviorRelies on the PostCompact hook for automatic context re-injection. See Hooks.

/status

Report current session state -- branch, recent changes, pending work.

File.claude/commands/status.md
When to useMid-session to check where things stand
What it doesReports the current task, git branch and recent commits, test status from the last run, context usage estimate, and any blockers or pending decisions.
Key behaviorRead-only. This is a session-level status check, distinct from the worclaude status CLI command which reports installation metadata.

/update-claude-md

Propose updates to CLAUDE.md based on session work and recurring patterns.

File.claude/commands/update-claude-md.md
When to useAt session end, or after encountering a repeated mistake
What it doesReviews what happened during the session. Identifies mistakes that should become rules, patterns worth documenting, and gotchas encountered. Writes proposed additions to the Gotchas or Critical Rules section. Shows the diff before applying.
Key behaviorNever applies changes without showing a diff first. Follows the self-healing pattern described in the claude-md-maintenance skill.

/setup

Project setup interview -- fills in CLAUDE.md, skills, and configuration.

File.claude/commands/setup.md
When to useOnce, after initial worclaude init, to configure the project
What it doesRuns a 7-section interview: Project Story, Architecture & Structure, Tech Stack Details, Core Features, Development Workflow, Coding Conventions, Verification Strategy. Users can type "skip" or "back" at any point.
Key behaviorAfter the interview, updates 6 files with real project content: CLAUDE.md (tech stack and commands), SPEC.md (full specification), backend-conventions.md, frontend-design-system.md, project-patterns.md, and PROGRESS.md.

Interview sections:

SectionTopics Covered
1. Project StoryPurpose, users, problem it solves, existing docs or PRDs
2. Architecture & StructureArchitecture type, directory layout, database, external services, deployment
3. Tech Stack DetailsFrameworks and versions, package manager, ORM, testing tools, linting
4. Core FeaturesMain features, built vs planned, priority order, business logic, edge cases
5. Development WorkflowStart commands, test commands, build commands, env vars, CI/CD, setup steps
6. Coding ConventionsDesign patterns, error handling, logging, API format, naming, project rules
7. Verification StrategyVerification approach, test commands, manual testing, browser testing, CI checks

/sync

Update PROGRESS.md, SPEC.md, and version after merging PRs on develop.

File.claude/commands/sync.md
When to useOn the develop branch after merging feature PRs
What it doesChecks for unresolved conflicts first. Updates PROGRESS.md (stats, completed items), SPEC.md (if features changed), bumps version in package.json. Runs tests/lint, commits, pushes, PRs to main.
Key behaviorRefuses to run if conflict markers are detected — tells the user to run /conflict-resolver first.

/conflict-resolver

Resolve merge conflicts on develop branch.

File.claude/commands/conflict-resolver.md
When to useOn develop after git pull when merge conflicts are present
What it doesDetects conflicts, understands each side's intent, resolves them (keeping both sides where possible), verifies no markers remain, runs tests, and commits.
Key behaviorONLY resolves conflicts. Does not update PROGRESS.md, SPEC.md, or bump versions — that is /sync's job. Does not push or create PRs.

/review-changes

Code review -- reports findings as prioritized table without modifying files.

File.claude/commands/review-changes.md
When to useAfter implementing changes, before committing
What it doesReads recent git diff. Checks for duplication, complexity, pattern inconsistency, CLAUDE.md compliance. Reports as prioritized table with Fix/Skip recommendations.
Key behaviorStrictly read-only. Never edits, stages, or commits. For automated fixes, use /refactor-clean which runs a focused inline cleanup pass.

/build-fix

Fix current build failures via build-fixer agent.

File.claude/commands/build-fix.md
When to useBuild is broken after a merge, rebase, or dependency update
What it doesRuns the full validation suite (build, tests, linter, type checker, formatter). Categorizes errors by type and fixes one category at a time, re-running checks after each fix.
Key behaviorNever silences tests or weakens lint rules. If an error persists after 3 attempts, reports it as unresolvable with a diagnosis.

/refactor-clean

Focused cleanup pass on recently changed code.

File.claude/commands/refactor-clean.md
When to useAfter implementing a feature, before /verify and /commit-push-pr
What it doesReads uncommitted changes. Removes dead code, extracts duplicated logic, reduces complexity, and enforces naming consistency. Runs tests after every change.
Key behaviorRuns inline (not in a worktree). Leaves changes uncommitted for /commit-push-pr. Reverts immediately if tests fail. Only changes with >80% confidence applied.

/test-coverage

Analyze test coverage and fill gaps in recently changed code.

File.claude/commands/test-coverage.md
When to useBefore a release, after a large feature, or when coverage drops below project threshold
What it doesMeasures current coverage, identifies gaps prioritized by risk (auth > business logic > formatting), writes missing tests following existing project patterns.
Key behaviorReports a before/after table per file. Tests behavior, not implementation. Flags bugs found during testing without fixing them in this pass.

Command File Location

.claude/commands/
  start.md
  end.md
  commit-push-pr.md
  review-plan.md
  techdebt.md
  verify.md
  compact-safe.md
  status.md
  update-claude-md.md
  setup.md
  sync.md
  conflict-resolver.md
  review-changes.md
  build-fix.md
  refactor-clean.md
  test-coverage.md

Commands can be customized after installation. Additional custom commands can be added to the same directory.


See Also

  • Agents -- agents invoked by commands (e.g., /review-plan uses plan-reviewer)
  • Skills -- knowledge loaded by commands (e.g., /end follows review-and-handoff)
  • Hooks -- hooks triggered by commands (e.g., /compact-safe triggers PostCompact)

Built with best practices from Boris Cherny's Claude Code tips.