Our review
Undo the last commit while keeping changes staged.
Strengths
- Quick and non-destructive operation
- Preserves changes ready for a new commit
- Allows fixing the commit message or adding missing files
Limitations
- Only works for the most recent commit (HEAD~1)
- Not suitable for undoing multiple commits at once
- Requires basic Git knowledge
Use this skill when you committed too early and need to adjust the message or add missing files.
Avoid using it if the commit has already been pushed to a shared remote repository.
Security analysis
SafeThe command `git reset --soft HEAD~1` is a standard, non-destructive git operation that only moves the HEAD pointer backward and keeps changes staged. It does not involve any exfiltration, file deletion, or network access, and is restricted to git-related Bash commands.
No concerns found
Examples
Undo the last commit but keep the changes staged.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.