AGENT SKILL

spec-to-backlog

Convert a specification into a reviewed Jira epic and backlog with atl. USE WHEN decomposing requirements, RFCs, or designs into linked Jira work. DO NOT USE WHEN the source is meeting notes, only a summary is wanted, or the task is a direct service operation.

License 许可
Apache-2.0
所属仓库
isukharev/atl
最近更新
2026-09-14
Stars
★ 7
Forks
1

01 前言 Front Matter

name
spec-to-backlog
description
Convert a specification into a reviewed Jira epic and backlog with atl. USE WHEN decomposing requirements, RFCs, or designs into linked Jira work. DO NOT USE WHEN the source is meeting notes, only a summary is wanted, or the task is a direct service operation.

02 资源文件 1

03 SKILL.md 正文

<!-- Generated from skills-src/spec-to-backlog/SKILL.md — edit the source and run 'make gen-plugins'. -->

Spec → backlog with atl

Read the spec → propose a breakdown → get approval → create the Epic first, then children linked to it. link-epic needs the Epic to already exist, so create it first and capture its key. Never create anything before the user approves the breakdown. Command details live in the jira and confluence skills.

Preflight: atl must be installed and configured. If command -v atl fails or a command exits 7 ("not configured"), run $setup and stop.

Workflow

1. Fetch the spec

<!-- atl:read-only-shell -->

export ATL_READ_ONLY=1
atl conf page view <id> -o text
# For a long/multi-section spec, keep the full source in a local artifact:
atl conf pull --id <id> --into <dir> # long/multi-section spec; then read .md

For a structured page, first use page outline and one version-gated page sections call only when the selected headings cover the complete specification scope. Otherwise use the full view for a short page or the second command for a long page, then read the generated .md in bounded local sections. Do not omit requirements merely to reduce context, and do not print the pull's full JSON or native .csf into the conversation. If the target Jira project key is not given, discover visible candidates with atl jira project list and ask the user to select one; do not guess from names. Then run atl jira issue types --project KEY and use only an exact returned type. Before proposing fields, run jira issue create-check once for each distinct exact Epic/child type you will use, then reuse that metadata across the batch. These reads replace probing with issue create (many instances lack "Story").

2. Analyze and propose — no writes

Break the spec into 5–15 tickets. A good ticket is independently deliverable, roughly 1–5 days of work, and testable. Split along architectural layers or user-facing capabilities; add cross-cutting tickets (migration, docs, rollout) only where the spec implies them.

Present: the proposed Epic name, a table of ticket summaries with type and rough scope, and — explicitly — anything in the spec you chose not to turn into a ticket. Wait for approval or edits.

3. Create the Epic first

atl jira issue create preview --project KEY --type '<exact epic type>' \
  --summary '<epic name>' --from-md epic.md
# Review proposal_hash, then repeat the same candidate once:
env -u ATL_READ_ONLY atl jira issue create --project KEY --type '<exact epic type>' \
  --summary '<epic name>' --from-md epic.md --apply \
  --expected-proposal-hash '<reviewed hash>'

Epic description: one-paragraph goal, a link back to the spec page, success criteria. Capture the returned key — every child needs it.

4. Create children, link each to the Epic

Per ticket, sequentially (so a failure can't silently orphan half the batch):

atl jira issue create preview --project KEY --type '<exact child type>' \
  --summary '<verb-first title>' --from-md t1.md
env -u ATL_READ_ONLY atl jira issue create --project KEY --type '<exact child type>' \
  --summary '<verb-first title>' --from-md t1.md \
  --apply --expected-proposal-hash '<reviewed hash>'
env -u ATL_READ_ONLY atl jira issue link-epic KEY-101 --epic KEY-100

Ticket description template: Context (1–2 sentences + spec section) / Scope / Acceptance criteria (checklist) / Out of scope. Titles start with a verb: "Add…", "Migrate…", "Expose…".

Keep a ledger for every child: created, linked, or created-but-unlinked. If a create fails mid-run: stop, report every key created so far, and ask how to proceed. atl never retries POSTs (no double-create risk) — do not retry blindly yourself either. If link-epic fails or is ambiguous after a child key was returned, preserve that key, re-read only its configured epic field, and recover only the link after review; never recreate the child.

5. Summarize

Table of Epic + child keys/summaries, plus the source page id. Offer follow-ups without performing them: assignees (atl jira user search '<name>' → --field 'assignee={"name":"…"}' via issue update), sprint placement (atl jira sprint add), priorities.

Pitfalls

Symptom Cause / fix
exit 8 on --from-md unconvertible markdown block — the error names it; keep bodies to plain headings/lists/fences
link-epic fails Set a reviewed render.jira.epic_field id or exact name when the conventional field was renamed; never guess ids
type rejected refresh issue types and create-check once, then stop if the exact type or required fields changed

04 同仓库更多 Skills

isukharev
isukharev/atl

triage-issue

Triage a bug against Jira with atl before proposing a ticket. USE WHEN an error or stack trace comes with duplicate, prior-fix, or file-a-bug intent. DO NOT USE WHEN debugging code only, inspecting a known issue, or creating an ordinary task.

★ 7
isukharev
isukharev/atl

status-report

Draft an audience-oriented Jira status report with atl. USE WHEN the user wants a weekly/daily progress narrative, blocker summary, or period report. DO NOT USE WHEN the output is a visual dashboard, direct Jira query, knowledge search, or codebase summary.

★ 7
isukharev
isukharev/atl

sprint-dashboard

Build a visual read-only Jira sprint or board dashboard with atl. USE WHEN the user wants a standup view, WIP picture, or sprint snapshot. DO NOT USE WHEN the output is a narrative report, raw Jira list, or codebase dashboard.

★ 7
isukharev
isukharev/atl

spec-to-backlog

Convert a specification into a reviewed Jira epic and backlog with atl. USE WHEN decomposing requirements, RFCs, or designs into linked Jira work. DO NOT USE WHEN the source is meeting notes, only a summary is wanted, or the task is a direct service operation.

★ 7
isukharev
isukharev/atl

setup

Install and configure atl authentication, backends, and mirror defaults. USE WHEN the user explicitly requests install, authentication, setup repair, or /atl:setup. DO NOT USE WHEN handling normal Jira, Confluence, search, reporting, or mirror work; explicit-only.

★ 7
isukharev
isukharev/atl

search-knowledge

Answer from qualified Jira and Confluence evidence with atl. USE WHEN organizational knowledge is unknown or split across both services. DO NOT USE WHEN one exact resource is known, the task is a report/dashboard, or the answer belongs in the codebase.

★ 7