/commit — create a git commit
/commit — create a git commit
Type:
Syntax:What the model sees before writing the commit:The model will:
promptSyntax:
/commitAsks the model to create a git commit from the current staged and unstaged changes. The model runs git status, inspects the diff, and writes a commit message following conventional-commit style.Tools the model can use:git statusgit diff HEADgit branch --show-currentgit log --oneline -10
- Stage relevant files with
git add. - Summarize the changes.
- Create the commit using a HEREDOC for multi-line messages.
/commit is currently restricted to Anthropic-internal builds (USER_TYPE=ant). External users can ask Claude to commit via natural language instead./commit-push-pr — commit, push, and open a PR
/commit-push-pr — commit, push, and open a PR
Type:
Syntax:What the model sees before acting:
promptSyntax:
/commit-push-pr [additional instructions]Performs the full commit → push → pull request workflow in a single command. The model handles branch creation (if on main), commit, push, and PR creation or update.Tools the model can use:git statusgit diff HEADgit branch --show-currentgit diff <default-branch>...HEADgh pr view --json number(to check for an existing PR)
Additional instructions:Pass extra instructions after the command to customize the PR description or target branch.
/commit-push-pr is currently restricted to Anthropic-internal builds. External users can describe the workflow in natural language and Claude will walk through the steps interactively./branch — fork a conversation
/branch — fork a conversation
Aliases:
Type:
Syntax:
fork (when FORK_SUBAGENT flag is off)Type:
local-jsxSyntax:
/branch [name]Creates a forked copy of the current conversation at this point. You immediately enter the fork; the original session can be resumed later with claude -r <original-session-id>.Arguments:How it works:
- Reads the current transcript JSONL file.
- Generates a new UUID for the fork session.
- Copies all messages, rewriting
sessionIdand addingforkedFrommetadata. - Saves the fork as a new JSONL file.
- Calls
context.resume()to switch the live session into the fork.
/diff — view git changes
/diff — view git changes
Type:
Syntax:
local-jsxSyntax:
/diffOpens an interactive diff viewer showing:- Uncommitted changes in the working tree
- Per-turn diffs (what changed since the last model turn)
/pr-comments — view pull request comments
/pr-comments — view pull request comments
Type:
Syntax:
promptSyntax:
/pr-comments [PR number or args]Fetches and displays comments from a GitHub pull request using the gh CLI.What it fetches:- PR-level comments (
gh api /repos/{owner}/{repo}/issues/{number}/comments) - Code review comments with file/line context (
gh api /repos/{owner}/{repo}/pulls/{number}/comments)
/pr-comments will direct users with the marketplace plugin installed to use pr-comments@claude-code-marketplace for the best experience./review — review a pull request
/review — review a pull request
Type:
Syntax:
promptSyntax:
/review [PR number]Asks the model to review a GitHub pull request and provide structured feedback.Arguments:Review output sections:
Example:
/ultrareview — deep automated bug-finding review
/ultrareview — deep automated bug-finding review
Type:
Syntax:
local-jsxSyntax:
/ultrareviewLaunches a deep, automated bug-finding review that runs as a remote agent session (Claude Code on the web, ~10–20 minutes). It finds and independently verifies bugs in the current branch.Gate: Available only when isUltrareviewEnabled() (controlled by the tengu_review_bughunter_config.enabled GrowthBook flag). Shows an overage dialog if free reviews are exhausted./security-review — security-focused code review
/security-review — security-focused code review
Type:
Syntax:Security categories analyzed:
promptSyntax:
/security-reviewPerforms a security-focused review of pending branch changes. Runs a 3-phase analysis: codebase exploration, vulnerability scan, then false-positive filtering with confidence scoring.Tools used:- Input validation: SQL injection, command injection, XXE, template injection, NoSQL injection, path traversal
- Authentication and authorization flaws
- Cryptography and secrets handling
- Injection and remote code execution
- Sensitive data exposure
/install-github-app — set up Claude GitHub Actions
/install-github-app — set up Claude GitHub Actions
Type:
Syntax:Gate: Available to claude.ai and Anthropic console users only.
local-jsxSyntax:
/install-github-appAn interactive wizard that configures Claude-powered GitHub Actions for a repository. It handles OAuth authentication, app installation, and workflow file creation.Wizard steps:Example:
/install-slack-app — install the Claude Slack app
/install-slack-app — install the Claude Slack app
Type:
Syntax:Gate: Available to claude.ai subscribers only.
localSyntax:
/install-slack-appOpens the Claude Slack app installation page (https://slack.com/marketplace/A08SF47R6P4-claude) in your browser.Commit message best practices
When using/commit or /commit-push-pr, the model follows these conventions automatically. You can reinforce them by including commit guidelines in your CLAUDE.md.