agentleFS
a1fa1f/agent-templates/skills/to-issues/SKILL.md

to-issues

Skill2 starsChanged 4 months agoMITView on GitHub

Use when a PRD issue needs breaking into vertical, tracer-bullet slices recorded as a table in that same issue, or invokes /to-issues.

80 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use modern-go, to-design and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • jidechaoSkill

    modern-go

    Modernize Go code by applying version-appropriate idioms and APIs (gofix-style transformations). Scans go.mod for the Go version, then transforms Go source files to use modern patterns—from Go 1.0 through 1.26+. Use when the user says "现代化","现代Go语言", "地道的", "idiomatic", "modernize", "modern-go", "update Go code", "gofix", or wants to upgrade Go idioms.

    Also in 3 projects that use this

  • jidechaoSkill

    to-design

    Generate a design document (design proposal) from a PRD, in the style of Go's official design proposals — Abstract / Background / Design / Rationale / Compatibility / Implementation, heavy on the 'why' and tradeoffs. Triggers on: to-design, prd-to-design, prd转设计文档, 生成设计文档, 写设计文档, design doc, design proposal, 设计提案, 技术设计文档.

    Also in 3 projects that use this

  • Hollis36Skill

    zoom-out

    Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.

    Also in 32 projects that use this

  • kayamanSkill

    edit-article

    Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.

    Also in 10 projects that use this

  • kayamanSkill

    write-a-skill

    Guides creation of new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.

    Also in 30 projects that use this

  • Jonathan0823Skill

    design-an-interface

    Generate multiple radically different interface designs for a module using parallel sub-agents. Use when user wants to design an API, explore interface options, compare module shapes, or mentions "design it twice".

    Also in 9 projects that use this

  • +1 more from jidechao
  • +2 more from kayaman

The file

We split this skill into the rules it gives an agent

3 rules. 1 is common, 0 are distinctive, and 2 are very specific to this project.

  • 1

    Common

    Most of the 78 edited versions we read keep these.

  • 0

    Distinctive

    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
  1. Common:

    Prefer many thin slices over a few thick ones.

    line 11
  2. Very specific:

    Use --issue=N if given. Otherwise scan the conversation for the last PRD published: ...

    line 24
  3. Very specific:

    If a ## PR breakdown already existed, warn the user it may now be stale and suggest re-running /pr-breakdown.

    line 92

“Common” is measured: kept by at least 6 in 10 of the 78 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

To Issues

Break a PRD issue into vertical, tracer-bullet slices — each a narrow but COMPLETE path through every layer it touches (schema, API, UI, tests), demoable on its own — recorded as one growing table inside the same issue, never fanned out. Prefer many thin slices over a few thick ones; order them thinnest-first.

/to-issues [--issue=N]

  1. Find the issue and read it
  2. Draft slices + parallelization
  3. Discuss and refine          (gate)
  4. Append the plan to the SAME issue

Phase 1 — Find the issue

Use --issue=N if given. Otherwise scan the conversation for the last PRD published: ... (issue #N) line; if there's none, ask. If you auto-detected it, confirm the number with the user. Read the body; use the codebase's own vocabulary; respect ADRs.

Phase 2 — Draft slices

Each slice carries a Demoable as line (how you'd demo or verify it — if you can't write one, it isn't end-to-end), a Mode (AFK = an agent runs it alone; HITL = needs the user: design taste, UX, a judgment call), a Size (S/M/L, a rough feel — real line counts come in pr-breakdown, which budgets each PR at ~35 counted lines, so an L slice means many PRs, never one big one), and Blocked by.

## Build plan — vertical slices

| # | What | Demoable as | Mode | Size | Blocked by |
|---|------|-------------|------|------|------------|
| 1 | ... | ... | AFK | M | — |

### Parallelization

| Wave | Runs together | Notes |
|------|---------------|-------|
| 0 | 1 | foundation |
| 1 | 2 + 3 | independent |

**Critical path:** 1 → 2 → ...

Waves are a topological grouping of Blocked by: same-wave slices share no blocking relationship. If the work has no real slices (e.g. one tiny change), say so — and still write the ## Build plan — vertical slices heading with a single line, No slicing — single PR, so the next phase proceeds.

Phase 3 — Discuss (gate)

Present the slices as a numbered list, then ask the user:

  • Is the granularity right — too coarse, too fine?
  • Are the dependencies correct?
  • Merge or split any (e.g. an L slice worth splitting)?
  • Are the HITL/AFK calls right?

Iterate until they approve. Don't touch the issue until then. With no real slices, skip these questions — just confirm the single-PR plan.

Phase 4 — Append to the same issue

The issue stays in canonical order: PRD → ## Build plan → ## PR breakdown. Rebuild it from those parts so a re-run replaces the Build plan in place — never duplicating or reordering. The rebuild keys on those exact headings (so don't use them in PRD prose); tr -d '\r' guards CRLF; abort if the read comes back empty:

ISSUE=<the issue number>; NEW=$(mktemp)
# ...write the new "## Build plan — vertical slices" + "### Parallelization" to "$NEW"...
BODY=$(gh issue view "$ISSUE" --json body -q .body | tr -d '\r')
[ -n "$BODY" ] || { echo "abort: empty issue body" >&2; exit 1; }
HEAD=$(printf '%s\n' "$BODY" | awk '/^## Build plan/{exit} /^## PR breakdown/{exit} {print}')
PRS=$(printf '%s\n' "$BODY"  | awk '/^## PR breakdown/{f=1} f')
OUT=$(mktemp)
{ printf '%s\n\n' "$HEAD"; printf '%s\n' "$(cat "$NEW")"; [ -n "$PRS" ] && printf '\n%s\n' "$PRS"; } > "$OUT"
gh issue edit "$ISSUE" --body-file "$OUT"
rm -f "$NEW" "$OUT"
echo "Slices appended to issue #$ISSUE"

If a ## PR breakdown already existed, warn the user it may now be stale and suggest re-running /pr-breakdown.

Common mistakes

MistakeFix
Horizontal layers (all schema, then all API)Each slice goes end-to-end

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.