From git-tool
Stage changes and create a git commit. Triggers: user says "commit this", "commit my changes", "git commit", "help me commit", or any request to actually execute a commit (not just generate a message). Always uses the `message` skill to generate the commit message first.
How this skill is triggered — by the user, by Claude, or both
Slash command
/git-tool:commitThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Execute a complete git commit workflow. You **must** invoke the `message` skill to generate the commit message before running any git command.
Execute a complete git commit workflow. You must invoke the message skill to generate the commit message before running any git command.
Run git status and git diff (unstaged) + git diff --staged (staged) to get the full picture.
If the total number of changed files is ≥ 5, apply the Multi-Commit Rule (see below) before proceeding to Step 2.
Otherwise, treat all changes as a single commit and continue from Step 2.
message skillAlways invoke the message skill for each commit. Do not write a commit message yourself.
message skillmessage skill to output the final commit message before proceedingRun git add <files in this batch> then git commit -m "<message from Step 3>" using the exact message produced by the message skill — do not paraphrase, truncate, or alter it.
git log --oneline -1 so the user can verify the commit landed correctlygit log --oneline -<n> where n = number of commits madeTriggered when changed files ≥ 5. Group files into logical batches before staging anything:
feat, fix, refactor, docs, chore, test, ci changes — files of different types almost never belong in the same commitapi changes and db changes are separate even if both are featBefore executing any commits, present the proposed plan to the user:
Proposed commits (3 total):
1. feat(api): ... → UserController.java, AuthController.java
2. chore(deps): ... → pom.xml
3. test(auth): ... → AuthServiceTest.java, UserServiceTest.java
Proceed? (yes / adjust)
Wait for confirmation before staging or committing anything. If the user says "adjust", let them reassign files between batches or merge/split batches.
message skill — even if the user provides a commit message themselves, still invoke message to validate or refine it before committing--amend)--no-verify) unless the user explicitly requests itgit commit fails (e.g. pre-commit hook rejects it), report the error and fix the underlying issue before retryingmessage skill as "natural language description" for validation; use the skill's outputgit status output and stopGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub thezmmm/claude-code-skills --plugin git-tool