reset-epic
Skill19 starsChanged 3 months agoMITView on GitHub
Reset an epic's test data — close PRs, delete branches, reopen issues, revert code
In this repository30 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- src/CLAUDE.mdCLAUDE.md
- communeSkill
- connector-builderSkill
- distillSkill
- divineSkill
- eldarSkill
- flflSkill
- flo-simplifySkill
- floSkill
- floSkill
- guidanceSkill
- healerSkill
- luminariumSkill
- meditateSkill
- memory-optimizationSkill
- memory-patternsSkill
- memory-teamSkill
- memory-worktreeSkill
- optimize-learningsSkill
- perf-auditSkill
- publishSkill
- quickenSkill
- reasoningbank-intelligenceSkill
- spell-builderSkill
- spell-scheduleSkill
- test-gapsSkill
- vector-searchSkill
- verifySkill
- wardSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Delete local branches: Delete any local branches matching the same patterns (skip the current branch)
- Very specific: line 29
Clear epic-state memory: Delete all entries in the epic-state memory namespace for this epic and its stories (keys: epic-<N>, story-<N> for …
- Distinctive: line 47
Never delete main or the current branch
- Very specific: line 48
Use gh CLI for all GitHub operations
- Distinctive: line 49
If a revert of merged code is needed, note it but DO NOT auto-revert (ask the user first)
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/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 retestingWhat 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 retestingImportant
- 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
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

