Claude Code · Cursor · Gemini CLI · Codex · Windsurf
/slash commands for your AI.
36 copy-paste slash commands for Claude Code, Cursor, Gemini CLI, Codex & Windsurf — /review /debug /refactor /commit. Each one a senior-grade prompt. Stop retyping the same thing forty times a day.
01
Find the command
Search the library — /review, /debug, /refactor, /commit… Each one a senior-grade prompt for one job.
02
Copy or install
Grab the Claude Code file, the Cursor command or the raw prompt — copy it, or install it with one command.
03
Type / and run
Drop it in your repo and invoke it with a slash. Stop retyping the same prompt forty times a day.
36 / 36
Review & ship06
- /review [diff | pr <n> | file]Senior review of your changes — correctness, security, design.
- /commitStaged diff → atomic Conventional Commits.
- /prBranch → a PR with a real description and test notes.
- /shipLint, typecheck, test, self-review — then commit.
- /changelog [since <tag>]Commits → a Keep-a-Changelog entry + semver bump.
- /security-check [path | diff]OWASP-class vuln scan of your code or diff.
Test05
- /test [file | function]Behaviour-focused tests: happy path, edges, errors.
- /tdd <feature>Red → green → refactor, one small loop at a time.
- /e2e <user flow>Playwright flow — role selectors, auto-wait, no sleeps.
- /fix-testsDiagnose and fix failing / flaky tests at the root.
- /coverage [path]Find untested critical paths and add the tests.
Debug & fix04
Understand04
Refactor05
- /refactor [file | selection]Behaviour-preserving cleanup in small tested steps.
- /optimize [path | route]Measure first, then kill the real bottleneck.
- /cleanup [path]Dead code, unused imports and dupes — gone.
- /types [file | path]Kill `any`, add generics, model with unions.
- /simplify <file | selection>Untangle complexity without changing behaviour.
Build05
- /scaffold <feature | module>New module that matches how this repo already works.
- /component <Name>A component in your project's exact conventions.
- /endpoint <resource>Route → validation → service → test, layered.
- /migrate <from> to <to>Incremental migration, green at every step.
- /crud <entity>Full CRUD across the stack, in your patterns.
Docs04
36 commands · public domain (CC0) · a Promptheus project