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).
claude plugin validate to auditGuide →Writes files, executes local shell processes, or programmatically drives Claude.
Statically scanned from hooks & source. Learn how to audit
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
- The mod collects
git status, the diff and the last 10 commits. - 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 withcredentialorsecret) and says so.
- A pane shows the files to commit, the files left out and the message; likely sensitive files are marked.
- 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
- Author
- @HuliLulu46
- 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.

