Skip to content
Back to skills

File Epic

ASecurity

Cut a large piece of work into a phased GitHub epic: one parent, native sub-issues, native blocked-by edges. Breakdown is approved in chat before anything is created. Use when the work is too big for one issue and its pieces are known.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 27, 2026
ai-agentsgobashnodegitapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add linhvu0711/skills --skill file-epic --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of File Epic?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for File Epic
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/linhvu0711-file-epic/badge)](https://www.skillsdirectory.com/skills/linhvu0711-file-epic)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: file-epic
description: "Cut a large piece of work into a phased GitHub epic: one parent, native sub-issues, native blocked-by edges. Breakdown is approved in chat before anything is created. Use when the work is too big for one issue and its pieces are known."
---

Paths in this skill are relative to its real folder: the one that holds this `SKILL.md`, after links are followed, as `realpath` prints it. Before you run or read one of them, put that real folder's absolute path in front of it.

Read `../../core/github/issue-rules.md` first. Every sub-issue obeys it. This file adds the cutting rules and the epic flow.

## Steps

1. **Gate.** The readiness gate, applied to the whole piece of work. Fail: list the gaps, stop. Then the mirror check: work that fits one ticket, XL or smaller, stops here, with `file-issue` named as the tool. A caller whose words hold the line `Small batch.` skips the mirror check: it hands two or more tickets it grouped, and they get a parent however small, per ADR 0044. The cut, the phases, and the step 5 review run as usual.

   **An XXL issue.** The user names an issue whose work is XXL: read it with `gh issue view <n> --repo owner/repo --json number,title,body,labels,parent,blocking`. No parent: it is the origin and becomes the parent, as an origin seed does (step 7.1), and its size label comes off, since a parent has none. A parent: it stays a ticket of that epic as the first piece, keeps its number, and step 7 rewrites its body as that piece, with that piece's size label; the new pieces go under the same parent, `--parent <its parent>`, each with the `--blocked-by` edges the cut needs, and step 7.4 rewrites that parent's phase list. Each issue under `blocking` waits on the piece that now delivers what it needs: the breakdown names each one, as `#51 now waits on 3`, and after that piece exists, two calls in this order, since `gh` sends an add and a remove as separate writes: `gh issue edit <its number> --repo owner/repo --add-blocked-by <piece>`, then, when the add worked, `--remove-blocked-by <n>`. A failed add stops before the remove, so the old edge stays. One the first piece still serves keeps its edge. It never becomes a parent under an epic.

2. **Repo convention.** Load or learn. Done when `style`, `size`, and (if named) the priority label are known.

3. **Facts.** Cutting needs the seams, the layers each slice crosses, and for a wide refactor the call-site count per package or directory. Take them from the chat. What the chat lacks, fetch in the one lookup round. For every ticket that looks XS or S, the same round also fetches its lines, the pattern to copy (the Standard's way first, per the rules file § Lookup), and the test, so its Steps can be written. Also list every thing outside the repo a ticket needs before it can land (an account, an app, a key, a bucket, DNS, billing) and every thing a person must do after it lands (set the variables, cut over, log in as the user and prove it live). Each one is a `task` ticket, and the same round fetches its platform docs and lead time, its brief asking for the web. Done when every ticket you are about to propose has its estimate line, every task has its Steps and lead time, and every code ticket is pure (rules file, Types).

4. **Cut.** Apply the cutting rules below. Output: phases, and per ticket a title, type, size, blocked-by list, one line of what it delivers, and the stand-ins it leaves with the ticket that removes each.

5. **Approve in chat.** Show the breakdown in the format below. End with the three questions and the go line, verbatim:

   > Does the granularity feel right? (too coarse / too fine)
   > Are the blocking edges correct: does each ticket only depend on tickets that genuinely gate it?
   > Should any tickets be merged or split further?
   > Say go to create the issues, or say what to change.

   Any reply that is not `go` is a change request: apply it, show the full breakdown again, ask the three questions again. Nothing exists on GitHub before `go`.

6. **Duplicate check.** Two searches on the epic's keywords, open then closed, per the rules file § Duplicates and seeds. Same open work, not a seed: show it, stop. Origin seed: remember it. It becomes the parent, per the rules file § Origin seed. The XXL issue named as input is the origin, never a duplicate: a search that finds it goes on. A closed match goes on the parent's Related line.

7. **Create, in phase order.** Every `gh` call in this step names `--repo owner/repo`, the repo the rules file's gate found, so a run in one checkout files into the repo the chat named. Each call is one `gh issue create --repo owner/repo --assignee @me`, the parent and every sub-issue alike, per the rules file § Assignee. Each label name goes in double quotes, per the rules file § Labels, as `--label '"ready-to-build"'`. Numbers from earlier calls feed later ones.

   1. Parent: title with `epic` in the type slot, priority label if named, body per the parent template with the phase list holding titles only. The parent holds no prerequisite prose: every "before you start" item is a task ticket in the phase list. With an origin, `gh issue edit` it into the parent instead of creating one.
   2. Phase 1 tickets: `--parent <P>`, size label, body per the rules file with `Part of #P`. XS and S tickets carry Steps and `--label '"ready-to-build"'` when the steps can be written, per the rules file; a ticket whose Steps cannot be written keeps its size, with no Steps and no `ready-to-build`. A `task` ticket, in this or any phase: `--parent <P>`, `--label '"manual"'`, no size label, body per the rules file § Task body. A task the code needs first: the code ticket carries `--blocked-by` the task's number. A task that follows the code: the task carries `--blocked-by` the code ticket's number. A ticket the Docs rule below gives doc text to carries it under `## Docs to write`.
   3. Each later phase: same, plus `--blocked-by <n1>,<n2>` with the numbers of the tickets that gate it, and the `Related` and `Noted for later` lines filled with real numbers.
   4. Rewrite the parent body with the numbers filled in: `gh issue edit <P> --repo owner/repo --body-file "$f"`.

   On any failure: stop. Report what exists (numbers) and what is left (titles). When the user says "continue", read what exists and create only the rest:

   ```bash
   gh issue view <P> --repo owner/repo --json subIssues -q '.subIssues.nodes[] | "\(.number)\t\(.title)"'
   ```

   Match by title, skip those, resume the sequence, then finish step 7.4.

8. **Report.** Parent URL on the clipboard. Then one line per ticket: number, title, estimate line, phase. Then two lines: the tickets with no blockers, free for an agent now; and the tasks, which are yours.

## Cutting rules

**Skyscraper.** Phase 1 is the foundation: the schema, contract, or seam that everything later stands on. A phase is done when the next phase can build on it without touching it again. Fewest phases wins, but a ticket that cannot be verified on its own goes one phase later, never earlier.

**Vertical.** Each ticket cuts one narrow, complete path through every layer it needs (schema, API, UI, tests). A horizontal slice ("all the models", "all the endpoints") is not a ticket. A ticket is demoable or verifiable alone, and fits one fresh window and one PR: size XS to XL, never XXL.

**Edges.** A ticket is blocked by a ticket only when it cannot land green without it. Same phase means no edge between them. A ticket blocked by one ticket of the previous phase is free the moment that one closes; write only that one edge, so it can start early.

**Order.** The epic is a graph; a run (`/make-plan`) walks one path through it as a stack of PRs, one ticket per layer. Inside a phase, the list order is the stack order: the earlier ticket goes below. Put first the ticket that unblocks the most, then the smallest.

**Lane.** Under Scope, each ticket lists `Noted for later` work with the sibling that owns it: `#N owns retry. Do not build it here.` This is the fence that keeps a worker from building a sibling's ticket. Only siblings that gate it, that it gates, or that own such work are named.

**Stand-ins.** A ticket may build a stand-in that a later ticket replaces: a fake, a hard-coded value, or wiring that fits only what exists so far. Its `Noted for later` names each stand-in and the ticket that removes it: `Stand-in: the provider list lives in src/fake/. #7 removes it.` That later ticket gets a Done-when line that checks the stand-in is gone. A stand-in with no owner is a gap in the cut: add it to a ticket, or make one.

**Outside the repo.** A thing a ticket needs that lives in a platform, not in code, is a `task` ticket, never a note in the parent and never a line in a code ticket. Every ticket is pure: all code, or all human work (rules file, Types). Two directions:

- **Before.** The code needs it first (an account, a key, a bucket). Place it by its `Lead time:`: a wait of days goes in phase 1, whatever phase needs it; no wait goes in the phase before the first code ticket that needs it. That code ticket is blocked by the task.
- **After.** A person finishes what the code started (set the variables on the host, cut over DNS, log in as the user and prove a live run). It goes in the phase after the code ticket, blocked by it. The code ticket's Done when stops at what an agent can prove alone.

One task per platform and account.

**Docs.** Doc text the chat agreed on (a glossary entry, an ADR) goes on the first sub-issue whose code makes it true, under its `## Docs to write`, word for word. Text that is true already, like "we will not build X", goes on the first code ticket in phase order. The parent holds no doc text: its Context lists each entry as one pointer, `#13 writes docs/adr/<next>-no-job-queue.md`. The breakdown in chat shows the pointers too.

**Wide refactor.** One mechanical change whose blast radius fans across the codebase, so no vertical slice can land green. Cut as:

1. **Expand**: add the new form beside the old. One ticket. Nothing breaks.
2. **Migrate**: move call sites in batches, each batch its own ticket blocked by Expand. Batches follow the lookup count, grouped by package or directory, each sized to fit under L. Quote the counts in the parent.
3. **Contract**: delete the old form. One ticket blocked by every batch.

Fallback, only when even a batch cannot stay green alone: keep the same sequence and land it as one stack, Expand at the bottom, batches in order, Contract on top. Green is promised only at Contract. The parent says so under Scope; each batch ticket's Context carries `Lands in the epic's stack; green is promised only in #<Contract>`.

**Cap.** Over 12 tickets: say so, propose a split into epics by milestone, and let the user choose before going on.

## Breakdown format (chat)

```
## <Epic title> · <n> tickets · <k> phases

### Phase 1 · <what this phase lays down>
1. **<title>** · <type> · <size line> · blocked by: none
   Delivers: <end-to-end behaviour, one line>
   Leaves: <stand-in>, removed by 3
   Writes: `docs/adr/<next>-no-job-queue.md`, `CONTEXT.md` (Order)

### Phase 2 · <…>
3. **<title>** · <type> · <size line> · blocked by: 1
   Delivers: <…>
4. **<title>** · task · lead time: <wait or none> · blocked by: none
   Delivers: <what exists at the end, and which ticket it unblocks>
```

A `Leaves` line appears only on a ticket that builds a stand-in (Cutting rules, Stand-ins), so the approve step shows the cleanup beside the shortcut. A `Writes` line appears only on a ticket the Docs rule gives doc text to, so the approve step shows where each agreed doc lands.

A task shows `task` in the type slot and its lead time where size would be, so the approve step shows the human work beside the agent work.

Numbers are positions in this list until issues exist. The order inside a phase is the stack order (Cutting rules, Order).

## Parent body

```markdown
## What to build
The end-to-end behaviour the whole epic makes work, from the user's view.

## Done when
- [ ] Epic-level outcomes, observable, complete.

## Scope
**In:** … **Out:** …
(Wide refactor: call-site counts per package. Fallback: `Lands as one stack. Green is promised only in #N.`)
**Stand-ins:** each one is named in its ticket with the ticket that removes it. A stand-in found during the work that no ticket owns goes into the PR body and onto the ticket that should own it.

## Phases
Work the frontier: any ticket whose "after" tickets are closed. Start a phase when the one before it is done.

### Phase 1 · <name>
- [ ] #12 · S · after: none. Delivers: <one line>
- [ ] #13 · M · after: #12. Delivers: <one line>
- [ ] #14 · task · after: none. Delivers: <one line>. Yours: /complete-task drives it.

## Context
- Terms, ADRs, files, Open. As in the rules file.
- Related: `#<n> (closed)`, from the closed search. Drop when none.
- Docs: `#13 writes docs/adr/<next>-no-job-queue.md`, one line per entry of
  the Docs rule. Drop when none.
```

The parent has no size label. It closes when every sub-issue is closed.

Each phase is a checkbox list, one ticket per line. GitHub renders the title and state beside a bare `#12` and strikes it through once closed, and the sub-issue bar counts progress. The user ticks the box by hand when the ticket is done; the box is theirs, never the agent's.

## Example

**User:** `/file-epic` after a chat that designed "teams": a Team entity, members with roles, an invite flow, and team-scoped billing. Lookup finds an existing `Org` seam and one billing hook.

Breakdown: 4 phases, 9 tickets. Phase 1: `feat` Team entity with create and list through API and UI (M), and `task` create the Stripe Connect account (lead time about 2 days, Stripe review). Phase 2, all free once the Team ticket closes: add a member with a role (M), invite by email (M), team switcher in the header (S). Phase 3: team-scoped invoices (L), blocked by the member ticket and the Stripe task. Phase 4: `task` set the Stripe keys on the host and send one live invoice, blocked by the invoices ticket. Three questions asked. User says "split the invite one". Invite becomes send (S) and accept (S), accept blocked by send. User says "go". Parent plus 10 sub-issues created, the two Stripe tasks with `manual` and no size, parent table rewritten with numbers, URL on the clipboard, and the lines "Free to start now: #41" and "Yours: #42 Stripe Connect account, #50 live invoice".

Files in this skill

  • LICENSE1 KB
  • README.md4.2 KB
  • SKILL.md14 KB
  • agents/openai.yaml202 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.