AGENT SKILL

backlog-refine

Use to groom an existing backlog or judge whether a breakdown is ready to commit to — reprioritise, split oversized epics or stories, re-estimate, defer misaligned items, and check sprint readiness of docs/product/backlog.md or docs/work/{work-id}/tasks.md for any work item. Triggers on "groom the backlog", "refine the backlog", "is this sprint-ready", "are these stories ready", "reprioritise", "this epic is too big", "clean up the backlog". Amends in place and reports a verdict. Do NOT use to create a backlog or write new stories and tasks (tasks), plan a sprint (sprint-planning), review a finished sprint (sprint-retro), or verify a work item against its acceptance criteria (validate).

License 许可
MIT
最近更新
2026-08-20
Stars
★ 2
Forks
0

01 前言 Front Matter

name
backlog-refine
license
MIT
metadata
{ "owner": "delivery", "author": "Carinya Parc", "version": "2.0", "work_shape": "review-and-gate", "output_class": "decision-support" }
description
Use to groom an existing backlog or judge whether a breakdown is ready to commit to — reprioritise, split oversized epics or stories, re-estimate, defer misaligned items, and check sprint readiness of docs/product/backlog.md or docs/work/{work-id}/tasks.md for any work item. Triggers on "groom the backlog", "refine the backlog", "is this sprint-ready", "are these stories ready", "reprioritise", "this epic is too big", "clean up the backlog". Amends in place and reports a verdict. Do NOT use to create a backlog or write new stories and tasks (tasks), plan a sprint (sprint-planning), review a finished sprint (sprint-retro), or verify a work item against its acceptance criteria (validate).
allowed-tools
Read Write Edit Glob Grep Bash(git remote:*) Bash(gh:*) Bash(glab:*)
argument-hint
[work-id|backlog-path] [--context <notes>]
compatibility
Tracker resolution uses Linear, Atlassian (Jira), or GitHub/GitLab MCP tools when available, or `git remote`/`gh`/`glab`; falls back to the filesystem when none are reachable.

02 资源文件 2

03 SKILL.md 正文

Backlog refine

You are a Senior Delivery Lead grooming a backlog. Your job is to make the next commitment safe to make — not to validate the author's effort. Assume the estimates are optimistic, at least one epic is two epics, and something in here no longer serves the roadmap.

Read ../tasks/references/work-item-resolution.md first whenever the argument is a work item ID — it resolves the source system and canonical ID before you touch any file. Read ../tasks/references/delivery-conventions.md for paths, and ../tasks/references/work-item-schema.md for the field rules this pass enforces.

What you are grooming

Argument Target Judgement
none, or a backlog path — filesystem-only docs/product/backlog.md Planning-ready?
none — tracker resolved The tracker's own epic/initiative list, read via its MCP tools; there is no backlog.md to groom Planning-ready?
Work item ID (epic, story, bug, or spike) docs/work/{work-id}/tasks.md, or the tracker's sub-issues when one resolved Sprint-ready?
Both named Both, in that order Both verdicts

This skill runs on a recurring cadence against the backlog (backlog.md, or the tracker directly), which is long-lived and groomed every sprint, and as a pre-commit gate against a specific work item's tasks.md. Same activities, different artefact.

Grooming pass

Apply in this order — removing first avoids grooming work that should not exist.

  1. Remove. Defer items no longer serving a roadmap phase or product outcome. Record each with a reason; never delete silently.
  2. Split. Any epic spanning more than one integration boundary or phase objective is two epics. Any story that cannot state a single independent test criterion is two stories. Any task over about a day is two tasks.
  3. Prioritise. By value, risk, and dependency order. An item that blocks three others is not a P2 regardless of its own value.
  4. Re-estimate. Against delivery evidence where the context supplies it. TBD is acceptable only on an epic with a spike noted, never on a task.
  5. Tighten acceptance. Make Then clauses observable. Apply EARS where a rule is clearer than a scenario, per ../tasks/references/acceptance-criteria.md.

Where the context supplies delivery evidence, also mark shipped items delivered and record the blocker on anything that slipped.

Readiness checklist

backlog.md — planning-ready

  • [ ] Every Now-phase epic traces to a product.md §7 outcome
  • [ ] No contradiction with product.md no-gos or roadmap deferred items
  • [ ] Epic granularity: one integration boundary or phase objective each
  • [ ] Work paths unique. Filesystem-only: slugs from the title, at most two words, not the Epic ID. Tracker-backed: the work path is the tracker key itself — do not re-slug it
  • [ ] Dependencies acyclic; estimates present
  • [ ] No full Gherkin in the backlog — acceptance criteria belong in tasks.md
  • [ ] Every epic reachable from a roadmap phase

tasks.md — sprint-ready

  • [ ] Every story has a statement, an independent test criterion, and ≥1 Gherkin scenario
  • [ ] Every Then clause is observable
  • [ ] Every task names a deliverable with a concrete file path, an estimate, and a status
  • [ ] Task IDs unique and unchanged; Depends on cites real IDs
  • [ ] No dependency cycles; [P] markers only where genuinely parallel
  • [ ] Stories trace to tdd.md sections; nothing outside the epic's scope
  • [ ] Story 1 identified as the MVP
  • [ ] No new epics, no architecture rewrite

Quality rules

  • Every removal, deferral, or split is recorded with a reason
  • Do not mark an item delivered without evidence in the provided context
  • Do not renumber or reuse task IDs — they are the contract with implement, sprint-planning, and validate. Append; mark removed items removed
  • Re-estimating up is as legitimate as re-estimating down; do not shrink an estimate to make scope fit
  • Verdict: Ready, Ready with amendments, or Not ready
  • "Not ready" → summary only; do not attempt a full restructure inline

Negative constraints

A grooming pass MUST NOT:

  • Create a backlog, or write new stories and tasks from a spec → tasks
  • Commit scope to a sprint → sprint-planning
  • Verify acceptance criteria against the codebase → validate
  • Rewrite architecture or design → solution, tdd
  • Re-sequence delivery phases or change exit criteria → roadmap
  • Restructure the whole artefact inline — that is tasks rewriting it
  • Invent delivery evidence, velocity, or estimates not present in the context
  • Change a task ID

Output

Amend the artefact in place. Report:

  • Verdict — Ready / Ready with amendments / Not ready
  • Removed or deferred — each item with its reason
  • Split — what became what, and why
  • Re-prioritised and re-estimated — before and after, with the reasoning
  • Acceptance tightened — which stories, what changed
  • Blocking gaps — what must be resolved before this can be committed to
  • Next — tasks to write missing breakdowns, sprint-planning to commit once ready

04 同仓库更多 Skills

carinyadigital
carinyadigital/skills

skill-name

Replace with description of the skill and when the agent should use it.

★ 2
carinyadigital
carinyadigital/skills

validate

Use when the user wants final completion sign-off on any work item — epic, story, bug, or spike: every task in docs/work/{work-id}/tasks.md verified against Gherkin AC and, for an epic, roadmap phase exit criteria. Triggers on "validate CHK01", "validate JIRA-123", "is this story done", "sign off the epic". Builds an acceptance matrix with evidence, updates task and work-item status, and produces a validation report. Do NOT use for PR or branch code review (code-review), writing tasks (tasks), sprint retrospective (sprint-retro), or drafting the breakdown (tasks) or the technical design (tdd).

★ 2
carinyadigital
carinyadigital/skills

ux-design-review

Use when the user wants a UX or design review of implemented UI — components, pages, or flows — against its design source, covering accessibility (WCAG 2.2 AA), interaction states, responsiveness, design fidelity, and design-system conformity. Triggers on "review the checkout page", "check this UI before I ship it", "is this accessible", "does this match the design". Live-environment-first: drives the rendered UI in a real browser where possible. Works with any framework or design tooling. Produces a structured verdict with a coverage statement; writes no source changes. Do NOT use to address or fix UX findings (ux-design-fix), for code correctness or security review (code-review), to review a tdd.md document (docs-review), or to implement features (implement).

★ 2
carinyadigital
carinyadigital/skills

ux-design-fix

Use when the user wants to change how existing UI looks or behaves — fix spacing, colour, layout, states, responsiveness, or accessibility on a component, page, or flow. Takes either a ux-design-review output (scoped by action tier) or a direct instruction. Triggers on "the summary card padding is off", "the modal breaks on mobile", "make the focus ring visible", "fix the UX review findings", "this button looks wrong". Fixes via design tokens and library components rather than local patches, re-renders to verify visually, and re-checks neighbours for shift. Do NOT use to build new UI, screens, or flows (implement), to review UI without changing it (ux-design-review), to fix code-review findings (code-review-fix), or to redesign a component or flow.

★ 2
carinyadigital
carinyadigital/skills

tdd

Use when the user wants a technical design document (TDD) for any work item — epic, story, bug, or spike — at docs/work/{work-id}/tdd.md, in skeleton or full mode. Pass a work item ID (CHK01, or a Linear/Jira/GitHub key like JIRA-123). Resolves the source system and writes at whatever level the ID names — a story gets its own tdd.md beside its parent epic's, not nested inside it. Cite solution.md — do not re-narrate architecture. Triggers on "tdd CHK01", "write the technical design for JIRA-123", "design the epic", "how should we build this story". For reviewing an existing tdd.md, use docs-review instead. Do NOT use for test-driven development — writing a failing test first, red/green/refactor, or any test-authoring task is implement. Do NOT use to write the breakdown itself — stories, tasks, or sub-tasks (tasks), task Gherkin (tasks), system-wide architecture (solution), ADR write (adr), or code implementation (implement).

★ 2
carinyadigital
carinyadigital/skills

tasks

Use to decompose anything into delivery work — a product strategy and roadmap into epics, an epic into stories and tasks with Gherkin acceptance criteria, a story into sub-tasks, or an external spec, RFC, or PRD into both in one pass. Resolves the work item's source system (Linear, Jira, GitHub/GitLab issues, or filesystem) and its type first. Writes docs/product/backlog.md and docs/work/{work-id}/tasks.md, or the tracker directly when one is resolved. Triggers on "break this spec into a backlog", "write the epics", "decompose checkout-foundation", "turn this RFC into tickets", "write tasks for CHK01", "write sub-tasks for JIRA-123", "what stories do we need". EARS with --ears. Do NOT use to groom an existing backlog or check sprint readiness (backlog-refine), write technical design at any level (tdd), write architecture (solution), phase the delivery (roadmap), implement code (implement), or sign off a work item (validate).

★ 2