Commit Commands
Streamline your git workflow with simple commands for committing, pushing, and creating pull requests
- Type
- Plugin
- Repository
- anthropics/claude-plugins-official
- GitHub stars
- 37.1k
- License
- Apache-2.0
- Repo last updated
- Sep 25, 2026
- Author
- Anthropic
What Commit Commands is
Commit Commands is a plugin published in the anthropics/claude-plugins-official repository on GitHub, which has about 37.1k stars. The repository describes itself as: “Official, Anthropic-managed directory of high quality Claude Code Plugins.”
A plugin is a package that bundles skills, slash commands, subagents, hooks, and MCP connectors so they install together. Plugins are plain files with a manifest at .claude-plugin/plugin.json, and they work in both Claude Code and Claude Cowork.
Installing Commit Commands adds everything it ships in one step. Connectors inside a plugin still need to be connected separately, and hooks and subagents only run in Cowork and Claude Code, not in regular chat.
How to install Commit Commands
Claude Code
- Add the repository as a plugin marketplace: claude plugin marketplace add anthropics/claude-plugins-official
- Install the plugin: claude plugin install commit-commands@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json.
- Restart the session if the new skills or commands don't appear straight away.
Claude Cowork
- Open Customize → Plugins and choose Add marketplace.
- Enter anthropics/claude-plugins-official (the owner/repo shorthand works for GitHub).
- Find Commit Commands in the list, click Install, then connect any connectors it needs from its Connectors tab.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from plugins/commit-commands/.claude-plugin/plugin.json, shared under the repository's Apache-2.0 license. Read the full file on GitHub.
Streamline your git workflow with simple commands for committing, pushing, and creating pull requests.
Overview
The Commit Commands Plugin automates common git operations, reducing context switching and manual command execution. Instead of running multiple git commands, use a single slash command to handle your entire workflow.
Commands
/commit
Creates a git commit with an automatically generated commit message based on staged and unstaged changes.
What it does:
- Analyzes current git status
- Reviews both staged and unstaged changes
- Examines recent commit messages to match your repository's style
- Drafts an appropriate commit message
- Stages relevant files
- Creates the commit
Usage:
/commitExample workflow:
# Make some changes to your code
# Then simply run:
/commit
# Claude will:
# - Review your changes
# - Stage the files
# - Create a commit with an appropriate message
# - Show you the commit statusFeatures:
- Automatically drafts commit messages that match your repo's style
- Follows conventional commit practices
- Avoids committing files with secrets (.env, credentials.json)
- Includes Claude Code attribution in commit message
/commit-push-pr
Complete workflow command that commits, pushes, and creates a pull request in one step.
What it does:
- Creates a new branch (if currently on main)
- Stages and commits changes with an appropriate message
- Pushes the branch to origin
- Creates a pull request using gh pr create
- Provides the PR URL
Usage:
/commit-push-prExample workflow:
# Make your changes
# Then run:
/commit-push-pr
# Claude will:
# - Create a feature branch (if needed)
# - Commit your changes
# - Push to remote
# - Open a PR with summary and test plan
# - Give you the PR URL to reviewFeatures:
- Analyzes all commits in the branch (not just the latest)
- Creates comprehensive PR descriptions with:
- Summary of changes (1-3 bullet points)
- Test plan checklist
- Claude Code attribution
- Handles branch creation automatically
- Uses GitHub CLI (gh) for PR creation
Requirements:
- GitHub CLI (gh) must be installed and authenticated
- Repository must have a remote named origin
/clean_gone
Cleans up local branches that have been deleted from the remote repository.
What it does:
- Lists all local branches to identify [gone] status
- Identifies and removes worktrees associated with [gone] branches
- Deletes all branches marked as [gone]
- Provides feedback on removed branches
Usage:
/clean_goneExample workflow:
# After PRs are merged and remote branches are deleted
/clean_gone
# Claude will:
# - Find all branches marked as [gone]
# - Remove any associated worktrees
# - Delete the stale local branches
# - Report what was cleaned upFeatures:
- Handles both regular branches and worktree branches
- Safely removes worktrees before deleting branches
- Shows clear feedback about what was removed
- Reports if no cleanup was needed
When to use:
- After merging and deleting remote branches
- When your local branch list is cluttered with stale branches
- During regular repository maintenance
Installation
This plugin is included in the Claude Code repository. The commands are automatically available when using Claude Code.
Best Practices
Using /commit
- Review the staged changes before committing
- Let Claude analyze your changes and match your repo's commit style
- Trust the automated message, but verify it's accurate
- Use for routine commits during development
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Commit Commands?
Commit Commands is a plugin for Claude Code and Claude Cowork from the anthropics/claude-plugins-official repository on GitHub. Streamline your git workflow with simple commands for committing, pushing, and creating pull requests
How do I install Commit Commands in Claude Code?
Add the repository as a plugin marketplace: claude plugin marketplace add anthropics/claude-plugins-official Install the plugin: claude plugin install commit-commands@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json. Restart the session if the new skills or commands don't appear straight away.
Can I use Commit Commands in Claude Cowork?
Open Customize → Plugins and choose Add marketplace. Enter anthropics/claude-plugins-official (the owner/repo shorthand works for GitHub). Find Commit Commands in the list, click Install, then connect any connectors it needs from its Connectors tab.
Is Commit Commands safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Terraform The Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development. Plugin · anthropics/claude-plugins-official
- Agent Creator Use this agent when the user asks to "create an agent", "generate an agent", "build a new agent", "make me an agent that...", or describes agent functionality they need. Trigger when user wants to create autonomous agents for plugins. Examples: Context: User wants to create a code review agent user: "Create an agent that reviews code for quality issues" assistant: "I'll use the agent-creator… Subagent · anthropics/claude-plugins-official
- Agent Sdk Verifier Py Use this agent to verify that a Python Agent SDK application is properly configured, follows SDK best practices and documentation recommendations, and is ready for deployment or testing. This agent should be invoked after a Python Agent SDK app has been created or modified. Subagent · anthropics/claude-plugins-official
- Agent Sdk Verifier Ts Use this agent to verify that a TypeScript Agent SDK application is properly configured, follows SDK best practices and documentation recommendations, and is ready for deployment or testing. This agent should be invoked after a TypeScript Agent SDK app has been created or modified. Subagent · anthropics/claude-plugins-official
- Context7 Upstash Context7 MCP server for up-to-date documentation lookup. Connects to Context7's hosted remote MCP server (https://mcp.context7.com/mcp) — no local Node.js or npx required — to pull version-specific documentation and code examples directly from source repositories into your LLM context. Works anonymously out of the box; set CONTEXT7_API_KEY for higher rate limits. Plugin · anthropics/claude-plugins-official
- Code Simplifier Agent that simplifies and refines code for clarity, consistency, and maintainability while preserving functionality Plugin · anthropics/claude-plugins-official
- Cwc Makers Seamless onboarding for the Code-with-Claude Makers Cardputer: one /maker-setup command clones the build-with-claude repo, flashes UIFlow firmware, and installs the Claude Buddy app bundle onto a freshly-plugged-in M5Stack Cardputer-Adv. Plugin · anthropics/claude-plugins-official
- Code Review Automated code review for pull requests using multiple specialized agents with confidence-based scoring Plugin · anthropics/claude-plugins-official