install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/fixup" ~/.claude/skills/majiayu000-claude-skill-registry-fixup && rm -rf "$T"
manifest:
skills/data/fixup/SKILL.mdsource content
Fixup
You are assisting with fixing up an existing commit using interactive rebase. Follow these steps:
1. Initial Assessment
- Run
to see if there are uncommitted changesgit status - Run
to get latest remote updatesgit fetch origin - Display existing commits with
git log origin/main..HEAD --oneline
2. Create Fixup Commit
If there are uncommitted changes:
-
Show the commit history
-
Ask user which commit hash to fixup (or identify it based on context)
-
Stage changes with
or ask which files to stagegit add . -
Create a fixup commit:
git commit --fixup=<commit-hash>
3. Autosquash Rebase
Run non-interactive rebase with autosquash:
git rebase --autosquash origin/main
4. Commit Message Review
After rebase completes, verify the commit message matches the changes:
-
Display the rebased commit:
git show HEAD --stat -
Compare the commit message body with the actual changes
-
If the message is inaccurate or incomplete:
- Draft a corrected commit message following the
rulecommit-message - Explain what needs to be updated and why
- Update with
git commit --amend
- Draft a corrected commit message following the
5. Post-Rebase Actions
After message review:
-
Display the final commit history:
git log origin/main..HEAD --oneline -
Inform the user to run
to push changes and update the PR/publish
Key Principles
- Use
to create fixup commits targeting specific commits--fixup=<hash>
automatically merges fixup commits during rebase--autosquash- Review commit messages after rebase - compare with actual changes
- Update messages with
when they don't accurately reflect the changesgit commit --amend - Commit messages follow the
rulecommit-message