reset-epic

reset-epic is a skill for Claude Code from eric-cielo/moflo. It costs 24 tokens per session (545 once invoked), scanned A, original, MIT.

A skill that resets an epic and its linked stories for another test run. An epic is a larger issue made up of smaller stories, while pull requests and branches hold proposed code changes.

In plain words
What is it for?
Closing related pull requests, deleting matching branches, reopening issues, resetting task checkboxes, and clearing saved epic-state records.
Why use it?
It clears previous test state so the work can be tested from the beginning again.

Skill for Claude Code

Written for Claude Code: arguments in frontmatter.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/eric-cielo/moflo/reset-epic
Any agent
npx skills add eric-cielo/moflo --skill reset-epic
Clone the repo
git clone --depth 1 https://github.com/eric-cielo/moflo

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for reset-epic

README.md
[![agentmods](https://agentmods.dev/badge/skills/eric-cielo/moflo/reset-epic.svg)](https://agentmods.dev/skills/eric-cielo/moflo/reset-epic)
Your own site
<a href="https://agentmods.dev/skills/eric-cielo/moflo/reset-epic"><img src="https://agentmods.dev/badge/skills/eric-cielo/moflo/reset-epic.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 545 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.00545
Opus 5 $0.00012 $0.00272
Sonnet 5 $0.00005 $0.00109
Haiku 4.5 $0.00002 $0.00055

Measured 6d ago against content hash 601b4f79c5c8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

reset-epic scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/reset-epic/SKILL.md · 51 lines

What it actually says

/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:

  1. Identify stories: Parse the epic body for linked issue numbers
  2. Close open PRs: Find all open PRs referencing any story number or the epic number. Close them.
  3. Delete remote branches: Find and delete any remote branches related to the epic (e.g., epic/<number>-*, feat/<story>-*, revert/epic-<number>-*)
  4. Delete local branches: Delete any local branches matching the same patterns (skip the current branch)
  5. Reopen issues: Reopen all story issues and the epic itself if any were closed
  6. Uncheck task lists: Edit the epic body to uncheck all - [x] checkboxes back to - [ ]
  7. 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 each story). Use mcp__moflo__memory_list with namespace epic-state to find entries, then mcp__moflo__memory_delete for each.
  8. 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 main or the current branch
  • Use gh CLI 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
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 51 lines · 24 tokens per session scan A 601b4f79c5c8

Subscribe to this mod's changes

reset-epic is a skill published in the GitHub repository eric-cielo/moflo (18 stars, last pushed 2d ago), licensed MIT. It adds 24 tokens to every session and 545 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.