wrap-epic

wrap-epic is a skill for Claude Code from phobologic/claude_code_helpers. It costs 0 tokens per session (2,549 once invoked), scanned A, original, MIT.

A finalization workflow for a completed /run-epic or /fix-tickets batch. An epic is a larger tracked piece of work that groups related tickets; the workflow merges the work, cleans temporary worktrees, closes the epic when appropriate, and reports what remains.

In plain words
What is it for?
Use it only after completing an epic or ticket-fixing batch, and only by typing /wrap-epic. It helps identify the relevant branch and epic, merge the integration work, remove temporary worktrees, and record the final status.
Why use it?
It gathers the cleanup and handoff steps needed after a batch of changes is finished. It also requires confirmation before performing its destructive operations.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: model in frontmatter; names the AskUserQuestion tool.

Good fit Use it only after completing an epic or ticket-fixing batch, and only by typing /wrap-epic. It helps identify the relevant branch and epic, merge the integration work, remove temporary worktrees, and record the final status.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phobologic/claude_code_helpers/wrap-epic
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.

Any agent
npx skills add phobologic/claude_code_helpers --skill wrap-epic
Clone the repo
git clone --depth 1 https://github.com/phobologic/claude_code_helpers

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 wrap-epic

README.md
[![agentmods](https://agentmods.dev/badge/skills/phobologic/claude_code_helpers/wrap-epic/github.svg)](https://agentmods.dev/skills/phobologic/claude_code_helpers/wrap-epic)
Your own site
<a href="https://agentmods.dev/skills/phobologic/claude_code_helpers/wrap-epic"><img src="https://agentmods.dev/badge/skills/phobologic/claude_code_helpers/wrap-epic/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wrap-epic

Your own site · 80×15
<a href="https://agentmods.dev/skills/phobologic/claude_code_helpers/wrap-epic"><img src="https://agentmods.dev/badge/skills/phobologic/claude_code_helpers/wrap-epic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,549 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00000 $0.02549
Opus 5.5 $0.00000 $0.01020
Sonnet 5.5 $0.00000 $0.00510
Haiku 4.5 $0.00000 $0.00255

Measured 1mo ago against content hash 942939139470, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wrap-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 1mo 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.

skills/wrap-epic/SKILL.md · 209 lines

How it starts

The opening of the file, as written. The whole thing — 209 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Wrap Epic

Finalize a completed /run-tickets run: merge the integration branch into main, clean up, move findings that should not hold the epic open to the repo's backlog, close the epic if nothing is left, and show what remains.

This skill performs destructive operations. Present the plan and get explicit confirmation before changing anything.

Phase 1: Gather

From the repo root, run the planning script. It is read-only and prints JSON:

wrap-epic-plan $ARGUMENTS

It resolves the epic and its integration branch (epic/<id>, or the run/* or fix/batch-* branch that merged the epic's tickets, or the current branch when no id is given) and sorts the epic's open children into:

  • blocking: tagged regression, worsened, deferred-rework or needs-human, or a finding at P0-1. This epic's own breakage, review findings deferred so a ticket could merge, serious bugs, and criteria the owner must sign off.
  • movable: other findings (pre-existing medium and low ones, older findings with no origin tag). They go to the backlog by default.
  • unfinished: every other open child. They keep the epic open.

Do not re-classify by reading tags yourself; the script is the definition /run-tickets uses too.

Then:

  • resolved_from is set: the id given was a planning epic with no branch of its own (like /spec's top-level epic), and the script picked its one sub-epic that has a branch. Say so at the top of the plan, and use epic.id (the sub-epic) everywhere below.
  • Exit 1: show its message. If it needs an epic id, ask for one.
  • branch is null: with branch_candidates, ask which one (AskUserQuestion) and re-run with --branch <name>. Without candidates, show branch_note and offer to wrap without a merge (move and close only) or stop.
  • Duplicates: for each movable finding with backlog_matches, read the finding and its matches (tk show-multi). A match is a duplicate when it describes the same problem in the same function or rule, not just the same file. For a movable finding with no files, search by the function or rule in its title: tk backlog find <symbol>.
  • Blockers that stop the wrap until the user resolves them:
    • main_repo.dirty: uncommitted changes in the main repo.
    • branch.checked_out_at is a path other than the main repo, unless that worktree is in worktrees, not other_run, and not dirty. Then the prune step removes it before the merge.
    • branch.exists is false.

Read the full file on GitHub · 209 lines

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. 1mo ago Changed · -1 lines 942939139470
  2. 1mo ago Changed · +16 lines 4d0cca4e83a0
  3. 1mo ago Changed · +46 lines · -56 tokens per session c05177bfe7af
  4. 3mo ago First seen · 148 lines · 56 tokens per session scan A 24e9dcf17aee

Subscribe to this mod's changes

wrap-epic is a skill published in the GitHub repository phobologic/claude_code_helpers (6 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,549 tokens. 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-31.

Related

wrap-epic compared with skills from other repositories

wrap-epic next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
wrap-epicphobologic/claude_code_helpersSkill65d agoMITA0Claude Code
releasethedotmack/claude-memSkill121ktodayApache-2.0A13Claude Code
release-notesphuryn/pm-skillsSkill28k22d agoMITA57Claude Code
multi-agent-release-managerchromium/chromiumSkill25ktodayBSD-3-ClauseA27Claude Code, Codex
pack-submitaeonfun/aeonSkill800yesterdayMITA27Claude Code, Codex
updater_guidesiddsachar/row-botSkill1.7k2d agoApache-2.0A22Claude Code, Codex
prepareapache/magpieSkill161todayApache-2.0A86Claude Code