/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:
Additional instructions:Pass extra instructions after the command to customize the PR description or target branch.
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)
| Section | Description |
|---|---|
| Summary | Bullet-point summary of changes |
| Test plan | What was tested |
| Changelog | User-visible change description |
/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:
How it works:
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:| Argument | Description |
|---|---|
| (none) | Auto-generate a branch name from the first prompt |
<name> | Custom title for the branch |
- 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:
Review output sections:
Example:
promptSyntax:
/review [PR number]Asks the model to review a GitHub pull request and provide structured feedback.Arguments:| Argument | Description |
|---|---|
| (none) | Run gh pr list and let you pick a PR |
<PR number> | Review the specified PR directly |
| Section | Description |
|---|---|
| Overview | Summary of the change |
| Code quality | Style, patterns, and correctness |
| Suggestions | Improvements the author could make |
| Issues/risks | Bugs, security concerns, breaking changes |
/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:
Example: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:| Step | Purpose |
|---|---|
OAuthFlowStep | Authenticate with GitHub |
CheckGitHubStep | Verify gh CLI and remote setup |
ChooseRepoStep | Select the target repository |
CheckExistingSecretStep | Check for an existing ANTHROPIC_API_KEY secret |
ApiKeyStep | Collect or create an API key |
InstallAppStep | Install the Claude GitHub App |
ExistingWorkflowStep | Handle any existing workflow files |
WarningsStep | Review security warnings |
CreatingStep | Create .github/workflows/claude.yml and set the secret |
SuccessStep | Confirm setup and show next steps |
/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.