ClaudeMod
ModsAutomationWrites / Shell

cc-commit-command

A Claude Code mod that adds /commit: Claude drafts a commit plan, you confirm it in a pane and a dialog, then it commits. The transcript keeps only the command and the result line, such as Committed 3f2a1c9 feat(api): add retry (2 files).

Install· Claude Code 2.1.330+
$claude plugin marketplace add HuliLulu46/cc-commit-command
$claude plugin install cc-commit-command@cc-commit-command
Run claude plugin validate to auditGuide →
Access & PermissionsWrites / Shell

Writes files, executes local shell processes, or programmatically drives Claude.

Runs shell commandsWrites filesDrives ClaudeReads filesReads env varsReads mod stateDraws UI

Statically scanned from hooks & source. Learn how to audit

HuliLulu46Added 1 months ago

cc-commit-command

A Claude Code mod that adds /commit: Claude drafts a commit plan, you confirm it in a pane and a dialog, then it commits. The transcript keeps only the command and the result line, such as Committed 3f2a1c9 feat(api): add retry (2 files).

Usage

/commit
/commit only the docs, and mention the issue number
  1. The mod collects git status, the diff and the last 10 commits.
  2. Claude picks the files and writes a Conventional Commits message in the language and style of the recent commits.
    • With staged changes, it commits exactly the index.
    • Otherwise it picks the files this session changed, from the edits earlier in the conversation, and leaves out files other sessions or manual edits touched.
    • With no conversation yet, it selects every change except likely sensitive files (.env, *.pem, *.key, *.p12, names with credential or secret) and says so.
  3. A pane shows the files to commit, the files left out and the message; likely sensitive files are marked.
  4. A dialog offers Commit, Regenerate, Edit in editor and Cancel. Typing in its Other field revises the plan with your instructions.

Edit in editor opens the message in $VISUAL, else $EDITOR, else vi; save and close to return to the dialog. Use a waiting editor command such as zed --wait or code --wait.

The commit holds exactly what the pane showed. The mod builds it in a private index (GIT_INDEX_FILE), so files another session stages meanwhile stay out of the commit and stay staged. If the staged content, a selected file or HEAD changes between the plan and Commit, the mod drafts the plan again instead of committing; edits to files outside the plan do not.

The commit runs git commit through a shell, so the repository's hooks (such as pre-commit) run against that private index. If the commit fails, the shared index is untouched and the error shows in the pane.

Install

At the prompt of a Claude Code terminal session:

/plugin install cc-commit-command --marketplace HuliLulu46/cc-commit-command

Answer y to add the marketplace, then pick a scope (user is first).

From a shell:

claude plugin install cc-commit-command --marketplace HuliLulu46/cc-commit-command

In the desktop app, where /plugin does not run: click + next to the prompt box, then Plugins, Add marketplace with HuliLulu46/cc-commit-command, then Add plugin.

Known limits

  • Diffs longer than 40,000 characters are cut, and at most 20 untracked files are included in the diff.
  • No attribution lines (such as Co-Authored-By) are added.

Built against Claude Code 2.1.300. A mod is an early-access API that may change between releases.

Develop

claude plugin validate .
claude plugin test .
tsc -p .

Details

Sub-category
Automation
Surfaces
terminal
Added
1 months ago
Last synced
today
Events hooked
session.startcommand.runui.render

Weekly Mods Digest

Top new Claude Code mods and install commands, once a week. No fluff, unsubscribe anytime.

More Mods

Claude Flightdeck
ModsSecurity

Claude Flightdeck

Live agent dashboard pane with context consumption, advisor timeline, permission verdicts, and subagent swimlanes.

Reads Files
by Sam Casella
GitHub
ModsInterface

Terminal Browser

Browse documentation, GitHub pull requests, and web pages in a split terminal pane directly beside your Claude Code conversation.

Network
by Zenbu Labs
GitHub
Agent Flow
ModsAutomation

Agent Flow

Interactive visual tree of the active session's subagents, background tasks, and teammates beside the transcript via /flow.

UI Only
by Charlie
GitHub

Command Palette

Search for a command to run...