/undo
Undo last commit safely. Use for undo commit, revert, uncommit, cancel commit.
$ npx -y skills add fusengine/agents --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/undo
Context preview
What this command does when you run it.
Undo last commit safely. Use for undo commit, revert, uncommit, cancel commit.
Command definition
undo.mddescription: Undo last commit safely. Use for undo commit, revert, uncommit, cancel commit. argument-hint: --soft | --mixed | (empty for soft reset) allowed-tools: Bash(git status:*), Bash(git log:*), Bash(git reset:*), Bash(git revert:*) disable-model-invocation: false
Undo Last Commit
Current State
!`git status`
Last Commit
!`git log -1 --pretty=format:'%h %s'`
Remote Status
!`git log origin/HEAD..HEAD --oneline 2>/dev/null || echo "No remote tracking"`
Instructions
Safely undo the last commit while keeping changes.
Security Check (MANDATORY)
IF the last commit is already pushed to remote:
- **REFUSE** to reset
- Explain: "Cannot undo pushed commits with reset."
- Suggest: `git revert HEAD` to create a reverting commit
- Ask confirmation before executing revert
IF the last commit is NOT pushed: 1. Ask confirmation: "Undo last commit? Changes will be kept." 2. Determine mode:
- `--soft` (default): Keep changes staged
- `--mixed`: Keep changes unstaged
3. Execute: `git reset $ARGUMENTS HEAD~1` 4. Show result with `git status`
Options
| Flag | Effect | |------|--------| | `--soft` | Keep changes staged (default) | | `--mixed` | Keep changes unstaged |
A plugin ecosystem that turns Claude Code into a supervised, multi-agent development environment.
Repo: fusengine/agents
Other commands on fusengine-agents.
- /apex-quick
Quick Flow for simple fixes - Single expert handles explore, code, review, and validate in one pass. Inspired by BMAD Barry.
Open command - /apex
APEX Methodology - The systematic Analyze-Plan-Execute-eLicit-eXamine approach for intelligent development. Reduces hallucination and defect risk through mandatory parallel research, self-review, and validation gates.
Open command - /cleanup-context
Memory optimization - removes duplicates, consolidates knowledge, and cleans memory banks for better performance.
Open command - /create-pull-request
Auto-generate Pull Request with comprehensive description, test plan, and changelog. Uses gh CLI for creation.
Open command - /deep-code-analysis
Comprehensive codebase investigation using research-expert for documentation, explore-codebase for structure, and deep analysis. Perfect for understanding complex systems.
Open command - /epct
Systematic Explore-Plan-Code-Test methodology for structured development. Ensures comprehensive approach to feature implementation.
Open command

