Sponsor Suno AI Music arrow_forward
Plugin

Commit Commands

Streamline your git workflow with simple commands for committing, pushing, and creating pull requests

Type
Plugin
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

  1. Add the repository as a plugin marketplace: claude plugin marketplace add anthropics/claude-plugins-official
  2. Install the plugin: claude plugin install commit-commands@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json.
  3. Restart the session if the new skills or commands don't appear straight away.

Claude Cowork

  1. Open Customize → Plugins and choose Add marketplace.
  2. Enter anthropics/claude-plugins-official (the owner/repo shorthand works for GitHub).
  3. 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:

  1. Analyzes current git status
  2. Reviews both staged and unstaged changes
  3. Examines recent commit messages to match your repository's style
  4. Drafts an appropriate commit message
  5. Stages relevant files
  6. Creates the commit

Usage:

/commit

Example 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 status

Features:

  • 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:

  1. Creates a new branch (if currently on main)
  2. Stages and commits changes with an appropriate message
  3. Pushes the branch to origin
  4. Creates a pull request using gh pr create
  5. Provides the PR URL

Usage:

/commit-push-pr

Example 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 review

Features:

  • 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:

  1. Lists all local branches to identify [gone] status
  2. Identifies and removes worktrees associated with [gone] branches
  3. Deletes all branches marked as [gone]
  4. Provides feedback on removed branches

Usage:

/clean_gone

Example 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 up

Features:

  • 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

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under Apache-2.0. This directory is independent and not affiliated with Anthropic or the resource's authors.