<< All versions
Skill v1.0.1
currentAutomated scan100/100lambdalisue/dotfiles/git-commit-fixup
2 files
──Details
PublishedMay 15, 2026 at 12:47 AM
Content Hashsha256:4fc411fc877085ed...
Git SHAd6e77dc81a78
Bump Typepatch
──Files
Files (1 file, 2.8 KB)
SKILL.md2.8 KBactive
SKILL.md · 52 lines · 2.8 KB
version: "1.0.1" name: git-commit-fixup description: Analyze working tree changes, map to existing commits, and create fixup commits for autosquash argument-hint: "[context]"
Arguments
context(optional): Additional context for mapping changes to commits (e.g., "These changes are for the auth refactor", "Fix edge cases in parser"). This context will be used to inform which existing commits the changes should be mapped to.
Language
- Task prompts to agents: English
- User-facing explanations, summaries, AskUserQuestion: Japanese
- Git artifacts (commit messages, branch names): preserve original language from agent output
Workflow
- Analyze - Use the Task tool (
subagent_type: "git-commit-fixup") to analyze all working tree changes, map them to existing commits since base branch, and create a fixup plan.
- If context argument is provided, include it in the prompt: "Analyze all working tree changes and create a fixup commit plan. Additional context: {context}"
- If no context is provided, simply: "Analyze all working tree changes and create a fixup commit plan."
- The agent returns a plan only — it does NOT execute commits.
- If the agent reports nothing to commit, inform the user and STOP.
- If the agent reports no existing commits to fixup against, inform the user and suggest using
/git-commitinstead. STOP.
- Approve - Present the fixup 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; this is the only place commits run.
Procedure:
- Backup:
git backup "before commit-fixup"(orgit branch backup/$(date +%s) HEADifgit backupalias is unavailable) - For each entry in the approved plan, in order:
- Reset staging if needed:
git reset HEAD -- . - Stage the planned files explicitly by name
- Verify:
git diff --cached --stat - For fixup entries:
git commit --fixup=<target-sha> - For new-commit entries:
git commit -m "<message>"
- Report
git log --onelineof the new commits to the user.
Forbidden during execution: git add -A, git add ., git commit -a, git stash, git rebase, git commit --amend. Stage explicitly by name only.
If a commit fails (e.g., pre-commit hook), stop and report — do NOT improvise around the failure.
- Present - Show rebase instructions in Japanese:
``` ✅ fixup コミットを作成しました
以下のコマンドで自動的にスカッシュできます: git rebase -i --autosquash origin/<base-branch> ```