Skip to main content

Git & version control

/commit

Source: src/commands/commit.ts Analyzes your staged changes and generates a commit message, then creates the commit. Claude reads the diff and writes a conventional commit message that summarizes what changed and why.
/commit
Stage your changes with git add before running /commit. If nothing is staged, Claude may include unstaged changes or prompt you to stage first.

/commit-push-pr

Source: src/commands/commit-push-pr.ts Runs the full commit → push → pull request flow in a single step. Claude generates the commit message, pushes the branch to the remote, and opens a PR with an auto-generated title and description.
/commit-push-pr
Requires a GitHub remote configured on the repo and appropriate authentication (e.g., gh auth login).

/branch

Source: src/commands/branch/ Create a new branch or switch to an existing one.
/branch feature/my-feature
/branch main

/diff

Source: src/commands/diff/ View file changes. By default shows unstaged changes. Pass arguments to target staged changes or diff against a specific ref.
/diff
/diff --staged
/diff main
/diff HEAD~3

/pr_comments

Source: src/commands/pr_comments/ Fetch and display review comments on the current pull request, then optionally address them. Claude reads the PR comments from GitHub and can generate fixes inline.
/pr_comments

/rewind

Source: src/commands/rewind/ Revert the project to a previous state. Claude presents a list of recent states or commits you can roll back to.
/rewind
Rewinding may discard uncommitted changes. Review what will be lost before confirming.

Code quality

/review

Source: src/commands/review.ts Runs an AI-powered code review over staged and unstaged changes. Claude checks for correctness, style, potential bugs, and adherence to best practices, then provides inline feedback.
/review

/security-review

Source: src/commands/security-review.ts A security-focused variant of /review. Claude looks specifically for vulnerabilities, insecure patterns, exposed secrets, and other security concerns in the current diff.
/security-review

/advisor

Source: src/commands/advisor.ts Request architectural or design advice. Describe a problem or paste a snippet and Claude offers higher-level guidance on structure, patterns, and trade-offs.
/advisor Should I use event sourcing here?

/bughunter

Source: src/commands/bughunter/ Scans the codebase for potential bugs. Claude examines logic, edge cases, and error handling to surface issues that tests might not catch.
/bughunter

CommandSourceTypeDescription
/commitcommit.tsPromptCommandAI-generated git commit message
/commit-push-prcommit-push-pr.tsPromptCommandCommit, push, and create PR in one step
/branchbranch/PromptCommandCreate or switch git branches
/diffdiff/PromptCommandView staged, unstaged, or ref-based changes
/pr_commentspr_comments/PromptCommandView and address PR review comments
/rewindrewind/PromptCommandRevert to a previous state
/reviewreview.tsPromptCommandAI-powered code review
/security-reviewsecurity-review.tsPromptCommandSecurity-focused code review
/advisoradvisor.tsPromptCommandArchitectural and design advice
/bughunterbughunter/PromptCommandFind potential bugs in the codebase

Build docs developers (and LLMs) love