eric-cielo/moflo / .claude/skills/reset-epic
reset-epic
VerifiedReset an epic's test data — close PRs, delete branches, reopen issues, revert code
/reset-epic - Reset Epic Test Data
Fully resets an epic so it can be re-tested from scratch.
Arguments: $ARGUMENTS
Usage
/reset-epic <epic-number> # e.g. /reset-epic 287, to reset that epic for retesting
What It Does
Given an epic issue number, perform ALL of the following:
- Identify stories: Parse the epic body for linked issue numbers
- Close open PRs: Find all open PRs referencing any story number or the epic number. Close them.
- Delete remote branches: Find and delete any remote branches related to the epic (e.g.,
epic/<number>-*,feat/<story>-*,revert/epic-<number>-*) - Delete local branches: Delete any local branches matching the same patterns (skip the current branch)
- Reopen issues: Reopen all story issues and the epic itself if any were closed
- Uncheck task lists: Edit the epic body to uncheck all
- [x]checkboxes back to- [ ] - Clear epic-state memory: Delete all entries in the
epic-statememory namespace for this epic and its stories (keys:epic-<N>,story-<N>for each story). Usemcp__moflo__memory_listwith namespaceepic-stateto find entries, thenmcp__moflo__memory_deletefor each. - Verify clean state: Confirm all stories are OPEN, no related PRs are open, no related branches exist, and epic-state memory is empty
Output
Print a summary table:
Epic #<N> Reset Summary
─────────────────────────
Issues reopened: X
PRs closed: X
Branches deleted: X (remote) / X (local)
Status: CLEAN — ready for retesting
Important
- Never delete
mainor the current branch - Use
ghCLI for all GitHub operations - If a revert of merged code is needed, note it but DO NOT auto-revert (ask the user first)
- This is a destructive operation — confirm with the user before executing if there are merged PRs that might need code reverts
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |