Command

Commit

The focused commit command from the Commit Commands package.

gitcommandsproductivity
View original source ↗

When to choose it

Creating a commit after inspecting your current changes.

Choose it if: You have inspected the changes and want a message plus a Git commit in the repository’s style.

Look elsewhere if: You only want advice without a Git write, or have not checked staged content for unrelated changes and secrets.

What the source describes

  • Reviews Git status and diffs
  • Drafts a message in repository style
  • Stages and creates a commit

Requirements

  • Install the containing Commit Commands plugin
  • Git checkout and configured commit identity; repository hooks/signing requirements apply

This is a component of Commit Commands. Install the containing package once to get its components.

Install the containing plugin

  1. Install the containing package once. Commit is the commands/commit.md component of Commit Commands, not another marketplace project. Its install command intentionally matches the containing plugin. Confirm that plugin is enabled for the intended repository and loaded in the current session.
  2. Define the intended commit scope first. The source reads git status, git diff HEAD, the branch and ten recent commit subjects. Staged and unstaged tracked changes share the injected diff; an untracked path in status does not show its file contents. Inspect each category and name the paths that belong in the commit before invoking the write command.
    Shell • read-only preparation
    git status --short --branch
    git diff --stat
    git diff --cached --stat
    git branch --show-current
  3. Separate message drafting from creation. Ask for a message in a normal prompt when that is all you need. The actual command instructs Claude to stage and create one commit, with no other messages or tools in that response; it does not include a preview switch or a required confirmation stage.
  4. Verify the repository prerequisites. Use the intended Git checkout with an existing configured commit identity and any repository signing or hooks requirements satisfied. This component does not need GitHub CLI, a push or a PR. Git commit can run repository hooks, so inspect their real outcome instead of treating a generated commit message as test evidence.

Run the installation command in your shell after reviewing the source. Local scope enables the package for you in this repository. It does not enable it for every collaborator.

Shell • local install scope
claude plugin install commit-commands@claude-plugins-official --scope local
Installation and loading troubleshooting

How to use it

Invoke the documentation-derived namespaced command when creating the actual local commit is intended. No separate plugin install is needed for this component.

Claude Code command
/commit-commands:commit

Use a normal conversation for a draft-only step. This is an original request, not an output-only argument supported by the command.

Preparation request
Draft a commit message for the paths I identify after read-only inspection. Do not stage or commit anything.

An original bounded preparation example. Replace the path with the actual intended change; it is not an invocation transcript. This request example is written by ClaudeStack; it is not a transcript of a tested session.

Request example
Prepare a local commit for the README.md changes I identify. Inspect staged, unstaged and untracked scope, explain any unrelated paths already in the index, and draft a message in this repository's style. Do not stage, create a commit or push; I will invoke /commit-commands:commit separately after checking the proposed scope.

This is an existing package component. The containing manifest has no explicit version and the component has no independent version; command source inspection is not a runtime compatibility or Git workflow test.

What to expect

The reviewed source describes these observations. ClaudeStack has not loaded or run this extension.

  • The command asks for a single real commit and allows Git add, status and commit tool calls. Reading recent subjects is source context for a message; it is not proof of a particular conventional-commit format or attribution in the result.
  • A successful commit changes local Git history. No push, PR creation, branch cleanup, test execution or secret scanning step is explicitly included in this command definition.
  • The exact staged paths and message are produced through Claude's tool use in your checkout. Existing index content and repository hooks remain relevant even when you intended a small change.

Self-check: Inspect git status, then the new commit's message and changed paths with git show --stat and an appropriate diff inspection. Check that only intended work was included. Record tests from their actual command results and keep a local commit distinct from a pushed branch or published deployment.

Troubleshooting

Only the short /commit name is used

Use /commit-commands:commit to identify the reviewed plugin component and avoid a personal command or another installed package with the same short name. Inspect the installed command picker rather than assuming every /commit is this file.

There is no change to commit

Inspect git status and the staged/unstaged diff. The guide does not recommend manufacturing an empty commit. A clean status or Git rejection is different from a completed commit.

A new file is listed but absent from the injected diff

git diff HEAD describes tracked changes. Review the contents of the intended untracked file separately before deciding to stage it; the status path alone is insufficient evidence of what will be committed.

Signing, identity or a repository hook blocks the commit

Read the exact Git error and preserve the worktree/index. Resolve the existing project requirement deliberately; do not disable hooks, signing or policy solely to make the command report success.

Unexpected paths appear in the commit

Compare the pre-invocation index with the actual commit contents. Do not assume pre-staging one path prevented the command from adding others. Inspect repository state and agree on any correction before rewriting shared history.

A claimed test pass or secret exclusion lacks evidence

The README describes conventions and secret avoidance, but this short definition specifies no test runner, scanner or enforced exclusion list. Verify the real files and actual test output instead of inferring them from the generated message.

Disable or remove it

  • Disable or uninstall the containing commit-commands plugin in its active scope to remove this bundled command from future sessions.
  • A separately copied personal/project command is an independent definition. Manage that copy separately; removing the plugin does not remove the copy or undo an existing Git commit.

Limitations & considerations

  • Creates a real Git commit
  • Inspect staged content and ensure secrets are excluded

Source & review record

Our description is based on public documentation and manifests available on 2026-10-10. Installation formats were checked against Claude Code and the relevant installer documentation. No extension code was executed: this is a source review, not a runtime compatibility test or security audit.

Repository last pushed at the time of review: 2026-10-09T20:54:10Z. This date does not prove that the extension works with a particular Claude Code release.

Usage guide sources

Upstream revision checked for this guide: b8e53f1c05dff3b6d751297f6527990ffc81c2f4. Command names and behavior in this guide are documentation and registration-source findings, not runtime verification.

More commands

Browse this type
Command

Review PR

Coordinate the PR Review Toolkit’s specialized review lenses from one command.

AnthropicOfficial component

Each listing records its own source-review date. Listings are documentation reviews, not runtime tests or security audits. Our editorial method