backlog-refine
Skill1 starsChanged 14 days agoMITView on GitHub
Refine issues in dependency-ordered waves with a human approval gate. Use to groom, refine, triage, or clear a backlog batch.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- burndownSkill
- code-reviewSkill
- dev-cycleSkill
- issue-diagnoseSkill
- issue-implementSkill
- issue-planSkill
- issue-raiseSkill
- issue-refineSkill
- paper-docSkill
- project-statusSkill
- qaSkill
- setupSkill
- weekly-reviewSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Only issue-refine moves an item to ready, updates a body, or splits (parent kept, native sub-issues).
- Distinctive: line 20
Do not close, relabel, or reassign beyond what the user approved at the gate.
≈ “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
Backlog Refine
Batch orchestration of issue-refine; use it directly for one issue.
Project facts from AGENTS.md: § Project Board (which status is backlog, which is ready), § Repositories, § Code Layout & Tech Stack. Missing section: name it and stop.
Scope: backlog status by default; otherwise issue list, label query, or milestone. Explicit board: none is valid per issue-plan: skip board operations, report refinement without transition; stop without explicit scope. Missing board facts: stop.
Rules
- Apply
dev-cycle§ Subagent Dispatch to every worker and re-dispatch: foreground by default, background only on explicit user request. Same-wave concurrency does not imply background permission. - Non-interactive workers return questions and already-clear items; the caller holds the user gate and re-dispatches with answers.
- Mandatory human gate: no fan-out beforehand, refinement with unanswered questions, or invented scope. "Skip", "defer", and "close" are valid answers.
- Only
issue-refinemoves an item to ready, updates a body, or splits (parent kept, native sub-issues). This skill writes nothing but.tmp-*body files. - Do not close, relabel, or reassign beyond what the user approved at the gate.
Flow
- Enumerate all pages:
gh api --paginate 'repos/<owner>/<repo>/issues?state=open&per_page=100'; excludepull_requestentries and apply scope filters. For boards, useissue-plan§ Board Status Transitions' complete lookup, filtering to consuming-repo Issues then backlog status. Incomplete enumeration: stop. Retain canonical URLs/repo identity in tracking and dispatch; scope number-based commands to § Repositories; reject explicit outside targets. Flag obsolete/duplicate items, never drop them. - Map scope and parent/child dependencies from issue text and a quick code search. Wave 1 has no unresolved dependencies; later waves depend only on earlier ones; same-wave items are independent.
- Assess the What using
issue-refinedimensions: body, comments, labels, linked context; code only for feasibility. Surface all material ambiguity, not just blockers; defer design toissue-plan. - Gate once: numbered questions grouped by wave/item, ordered by wave, priority, age, plus go-ahead; list bugs needing diagnosis (
issue-refine§ Bugs) with go-ahead to diagnose. Stop for answers; approval covers only cleared items. - Track item, wave, state (
needs-answers/needs-diagnosis/clarified/refined->ready/skipped/deferred), notes; in this conversation, never in a project file. - Diagnose approved
needs-diagnosisitems with onearchitectissue-diagnoseworker each, then refine them in a later wave. Refine waves with oneissue-refineworker per item (sequentially here if unavailable). Pass clarifications as facts, go-ahead as approval, and unique.tmp-refined-body-<number>.mdpaths. Start only after prerequisite items are refined; split parents precede children in later waves. - Confirm each item reached ready (
issue-refineverifies), or was refined withboard: none; record failures honestly. - Report: refined and readied; diagnosed (RCA links); skipped, deferred, closed; still blocked on answers; wave structure; recommended next batch.
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.

