Skip to content
agentscamp

Commands

Reusable slash commands that automate repeatable workflows in Claude Code.

Slash commands are reusable prompts you invoke with /name. Each is a Markdown file you drop into ~/.claude/commands — automate repeatable workflows like reviews, commits, and refactors with a single keystroke.

53 results

Command

Audit Accessibility

Audit a component or page for accessibility against WCAG — semantics, names, keyboard, ARIA, contrast, forms, motion.

/audit-accessibility<file, component, or page to audit>
Command

Explain Error

Diagnose an error message or stack trace and propose a fix.

/explain-error<error message or stack trace>
Command

Trace Data Flow

Trace how a value, field, or variable flows through the codebase from source to sink.

/trace-data-flow<variable, field, or value to trace>
Command

DB Migrate

Generate and apply a database migration the safe way — using the project's migration tool, with expand-contract discipline for breaking changes, lock-free DDL, and a reversible up/down.

/db-migrate<the schema change to make, or a path to a pending migration to review>
Command

Scaffold a pgvector Schema & HNSW Index

Scaffold a production-ready pgvector schema and HNSW index for a corpus — matching the project's migration tooling, distance metric, and embedding dimensions.

/scaffold-pgvector-schema<table/corpus name and embedding dimensions, or a description of the data>
Command

Seed Data

Generate realistic, referentially-consistent seed data and a re-runnable seed script from your actual schema — types and constraints respected, plausible values, FK-dependency insert order, idempotent, never aimed at production.

/seed-data<optional: tables and row volume>
Command

Add Docstrings

Add or improve docstrings for the public API of a file or symbol.

/add-docstrings<file or symbol>
Command

Explain Code

Explain what the given code does, in clear prose with a short summary.

/explain-code[file or symbol]
Command

Update README

Update the README to reflect the current scripts, structure, and features of the repo.

/update-readme[section or focus]
Command

Clean Branches

Safely prune merged and stale Git branches: drop dead remote-tracking refs, list merged candidates for review, then delete with the safe -d variant.

/clean-branches
Command

Commit

Stage changes and write a Conventional Commits message describing them.

/commit
Command

Create PR

Push the current branch and open a GitHub pull request with a generated title and body.

/create-pr[base branch or notes]
Command

Git Bisect

Drive git bisect to find the exact commit that introduced a regression.

/git-bisect<bug description; optional good and bad refs>
Command

Git Undo

Safely reverse the last Git operation in the current repo — pick the right tool (restore, reset --soft/--mixed, revert, or reflog recovery) based on what happened and whether it was already pushed, and confirm before anything destructive.

/git-undo<what to undo — e.g. 'last commit', 'unstage file X', 'the bad merge'; empty to detect>
Command

Resolve Merge Conflicts

Walk through resolving the in-progress merge, rebase, or cherry-pick conflict in the current repo by understanding both sides, then verify before continuing.

/resolve-conflict
Command

Sync Branch

Fetch and rebase the current branch onto its base, resolving conflicts and verifying the build.

/sync-branch[base branch]
Command

Add Caching

Add a caching layer to one expensive function or endpoint correctly — confirm it's cacheable, design the cache key/TTL/layer/invalidation, handle stampedes, wrap the call in one place, and report the design.

/add-caching<function or endpoint to cache>
Command

Find N+1 Queries

Scan code read-only for N+1 query patterns — loops that query per iteration and handlers that fan out per-row — and report each with a location, why it is N+1, and the concrete eager-load/batch/set-based fix.

/find-n-plus-one<path or area to scan (optional)>
Command

Profile Postgres Queries

Profile a Postgres workload to find the queries actually costing you — rank by total time with pg_stat_statements, EXPLAIN the worst offenders, and recommend the highest-leverage fix.

/profile-postgres-queries<database/connection details, a slow endpoint, or a description of the workload>
Command

Set Perf Budget

Define and enforce a cost and latency budget for an LLM feature or endpoint — set p95/p99 latency and cost-per-request ceilings, instrument to measure them against real traffic, and wire a check that fails when the budget is breached.

/set-perf-budget<the LLM endpoint/feature to budget, plus any target numbers (e.g. 'chat API, p95 < 2s, < $0.02/req')>
Command

Breakdown Task

Decompose a task into an ordered checklist of small, verifiable steps.

/breakdown-task<task>
Command

Estimate Effort

Produce a grounded effort and complexity estimate for a task by exploring the codebase read-only.

/estimate-effort<task or feature to estimate>
Command

Plan Feature

Explore the codebase and produce an implementation plan for a feature.

/plan-feature<feature description>
Command

Write Design Doc

Explore the codebase and write a decision-oriented design doc / RFC for a feature or system change.

/write-design-doc<feature or system to design>
Command

Extract Function

Extract a code region into a well-named function and update the call site.

/extract-function<file:lines or description>
Command

Optimize Imports

Remove unused imports and organize the rest in a file or directory per the project's conventions — preferring the project's own import tool where one is configured — without changing behavior.

/optimize-imports<file, directory, or empty for the current changed files>
Command

Refactor

Refactor the target for readability and structure without changing behavior.

/refactor[file or function]
Command

Rename Symbol

Safely rename a symbol project-wide, distinguishing the real symbol from coincidental substring matches.

/rename-symbol<oldName> <newName>
Command

Benchmark Rerankers

Measure whether adding a reranker actually improves retrieval, by scoring reranked vs. un-reranked results on a labeled query set.

/benchmark-rerankers<path to eval set / retrieval results, or a description of the pipeline>
Command

Find Bug

Investigate a reported symptom, form hypotheses, and locate the root cause.

/find-bug[symptom]
Command

Red Team LLM

Red-team an LLM app or agent for prompt injection, jailbreaks, and data leakage — probe the real attack surface (input, RAG, tools, system prompt) with adversarial inputs and report what got through and how to fix it.

/red-team-llm<the app/endpoint/agent to test, or a description of its inputs, tools, and data>
Command

Review PR

Review a pull request for correctness, security, and style, and summarize findings.

/review-pr[PR number]
Command

Review Tests

Review the quality of a test suite, not just whether it passes — find weak assertions, missing edge cases, and tests coupled to implementation.

/review-tests<test file or area to review>
Command

Security Scan

Scan the current diff or given paths for security vulnerabilities.

/security-scan[paths]
Command

Add Human Approval Step

Scaffold a human-in-the-loop approval gate into an agent so it pauses before a consequential action and resumes after approval.

/add-human-approval<the action/tool to gate, or the agent file>
Command

Add a Streaming LLM Endpoint

Scaffold a token-streaming LLM endpoint — server-side streaming plus the client handler — so responses render incrementally instead of after a long wait.

/add-streaming-endpoint<the route/feature to stream, or the framework>
Command

New Component

Scaffold a new UI component matching the project conventions.

/new-component<ComponentName> [props]
Command

Scaffold CLI Command

Scaffold a new subcommand for an existing CLI (or a minimal new CLI) in the project's language — flag/argument parsing, --help text, input validation, and correct exit codes — matching the framework and conventions already in use.

/scaffold-cli<the command to add — e.g. 'a `sync` subcommand that pulls remote config'>
Command

Scaffold Dockerfile

Scaffold a production-grade multi-stage Dockerfile and .dockerignore for the current project.

/scaffold-dockerfile<optional: stack/runtime hint>
Command

Scaffold GitHub Action

Scaffold a hardened GitHub Actions workflow for a stated goal, wired to the project's real test/lint/build commands.

/scaffold-github-action<what the workflow should do — e.g. CI test on PR, lint, release/publish, nightly cron>
Command

Scaffold RAG Pipeline

Scaffold a Retrieval-Augmented Generation pipeline — ingestion (load, chunk, embed, upsert) and retrieval (search, rerank, grounded prompt with citations) — fitted to the project's stack.

/scaffold-rag-pipeline<data source and use case>
Command

Scaffold a vLLM Serving Config

Scaffold a vLLM serving config for a model on a target GPU — pick precision/quantization and parallelism to fit, set batching and context length, and expose an OpenAI-compatible server.

/scaffold-vllm-config<model + target GPU(s) and VRAM, or a description of the serving workload>
Command

Fix Failing Test

Diagnose and fix a failing test by finding the real root cause.

/fix-failing-test[test name or path]
Command

Hunt Flaky Tests

Reproduce a flaky test, find the real source of nondeterminism, and fix the cause.

/flaky-test-hunt<suspected test or area (optional)>
Command

Generate E2E Test

Scaffold a resilient end-to-end test for a user flow grounded in the real UI.

/generate-e2e-test<user flow to test>
Command

Run Evals

Run the project's LLM evaluation suite (DeepEval, promptfoo, or RAGAS) and report scores against thresholds before a merge.

/run-evals<eval suite path / config, or the feature to evaluate>
Command

Write Tests

Generate tests covering the happy path and edge cases for the given target.

/write-tests[file or function]
Command

Add MCP Server

Add an MCP server to the current project the safe way — pick the transport and scope, wire secrets through env vars, vet provenance, and verify the connection before trusting it.

/add-mcp-server<server name + launch command or URL, or a description of the server to add>
Command

Create Skill

Scaffold a new Claude Code skill into .claude/skills/<name>/SKILL.md — a model-invoked capability with a trigger-rich description, scoped tools, and a lean body that pushes detail into resource files.

/create-skill<what the skill should do>
Command

Create Slash Command

Scaffold a new Claude Code slash command into .claude/commands/ — a valid Markdown file with frontmatter, a least-privilege allowed-tools allowlist, and a $ARGUMENTS-driven body of numbered steps ending in a Report.

/create-slash-command<what the command should do>
Command

Create Subagent

Scaffold a new Claude Code subagent definition file into .claude/agents/ with a routing-ready description, scoped tools, and a system prompt.

/create-subagent<what the subagent should do>
Command

Setup Claude CI

Wire Claude Code into this repo's CI the safe way — install the GitHub App or scaffold the workflow YAML, scope permissions to the minimum, set secrets correctly, and verify with a real trigger.

/setup-claude-ci<what CI should do — e.g. 'review PRs', 'fix failing tests', 'respond to @claude mentions'>
Command

Setup Pre-commit Hooks

Set up fast pre-commit hooks that catch problems before they land — detect the repo's existing stack and hook mechanism, run lint/format/typecheck plus a secret scan on staged files only, keep the slow test suite in CI, and make the setup reproducible for the whole team.

/setup-precommit-hooks

Frequently asked questions

What is a Claude Code slash command?
A slash command is a reusable prompt saved as a Markdown file and invoked with /name in Claude Code. It expands into instructions Claude follows, optionally using arguments via $ARGUMENTS.
How do I install a slash command?
Save the command to ~/.claude/commands/<name>.md for all your projects, or .claude/commands/<name>.md inside a single project. Then type /<name> in Claude Code to run it.
Can commands take arguments?
Yes. Reference $ARGUMENTS in the command body and anything you type after the command name is substituted in, so one command can handle many inputs.
Are these commands free?
Yes. Every slash command on AgentsCamp is free to copy, download, and install, with no signup required.
How is a command different from an agent?
A slash command is a prompt you trigger manually with /name in your main conversation. An agent is a subagent with its own context window that Claude can delegate to automatically. Commands are quick and explicit; agents are autonomous and isolated.