Our review
Undoes the last commit while keeping changes staged.
Strengths
- Allows fixing commit messages or adding missing files.
- Does not delete file changes.
- Non-destructive and easily reversible.
Limitations
- Only works for the most recent commit on the current branch.
- Not suitable for undoing commits already pushed (use git revert instead).
- Does not handle multiple commits or complex merges.
When you've committed with a wrong message or forgot files, and haven't pushed yet.
If the commit has already been pushed to a shared branch, prefer git revert to avoid rewriting history.
Security analysis
SafeThe skill only runs a standard, non-destructive git command ('git reset --soft HEAD~1') that keeps changes staged. It does not exfiltrate data, write files outside the repo, or execute external payloads. The allowed-tools are restricted to git, posing no security risk.
No concerns found
Examples
Undo the last commit but keep changes staged so I can fix the commit message.I forgot to include some files in the last commit. Undo the commit, add the files, and recommit.I made a typo in the last commit message. Help me undo it without losing changes and then recommit with the correct message.name: git-undo description: Undo the last commit while keeping changes staged. Use when you need to fix a commit message or add missing files. disable-model-invocation: true allowed-tools: Bash(git:*)
Git Undo
Undo the last commit but keep changes staged.
- Undo the last commit but keep the file changes in the staging area.
- Command:
git reset --soft HEAD~1 - This allows you to fix the commit message or add missing files before committing again.
- Command:
Next.js App Router Expert
Development
A skill that turns Claude into a Next.js App Router expert.
README Generator
Development
Creates professional and comprehensive README.md files for your projects.
API Documentation Writer
Development
Generates comprehensive API documentation in OpenAPI/Swagger format.