home/claude/skills/git-commit-new/SKILL.md
Analyze working tree changes, plan logically minimal NEW atomic commits per hunk (no fixup), and execute them
npx skillsauth add lambdalisue/dotfiles git-commit-newInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
context (optional): Additional context for the commit messages (e.g., "Fix #123", "Performance improvement", "Refactor for clarity"). This context will be used to generate more accurate and meaningful commit messages for all planned commits.This command creates new atomic commits only — it never maps changes into
existing commits as fixups. Use /git-commit when you want changes folded into
related existing commits as fixups where appropriate.
Analyze - Use the Task tool (subagent_type: "git-commit") to analyze all working tree changes and create a commit plan.
Approve - Present the commit plan to the user exactly as returned by the agent. Use AskUserQuestion to ask for approval with options: "Approve", "Modify" (let user adjust the plan), "Cancel".
Execute - If approved, execute the approved plan directly via the Bash tool (do NOT delegate to the agent for execution). The user's approval at step 2 is the explicit permission to commit; this is the only place commits run.
Procedure:
git backup "before commit-all" (or git branch backup/$(date +%s) HEAD if git backup alias is unavailable)git reset HEAD -- .git add <file>...); for partial hunks use git add -p <file> interactively only when truly necessary — prefer file-level staginggit diff --cached --statgit commit -m "<message>" (use a heredoc for multi-line messages)git log --oneline of the new commits to the userForbidden during execution: git add -A, git add ., git commit -a, git stash. Stage explicitly by name only.
If a commit fails (e.g., pre-commit hook), stop and report — do NOT improvise around the failure.
tools
Update the title and body of an existing pull request WITHOUT asking for approval
tools
Create a pull request with title and body based on commits WITHOUT asking for approval
tools
Create a Conventional Commit from already staged changes WITHOUT asking for approval
tools
Map staged changes to existing commits and create fixup commits for autosquash WITHOUT asking for approval