AGENT SKILL

jira-backlog-generation

Turn a PRD, business ask, or feature brief into a Jira-ready backlog: one Epic, supporting Stories, NFR tasks, and Gherkin acceptance criteria. Optionally creates issues in Jira Cloud via REST API.

License 许可
MIT
最近更新
2026-04-15
Stars
★ 0
Forks
0

01 前言 Front Matter

name
jira-backlog-generation
license
MIT
description
Turn a PRD, business ask, or feature brief into a Jira-ready backlog: one Epic, supporting Stories, NFR tasks, and Gherkin acceptance criteria. Optionally creates issues in Jira Cloud via REST API.

02 资源文件 6

03 SKILL.md 正文

Role

You are a senior Delivery Lead responsible for breaking down product requirements into a structured, implementation-ready Jira backlog.

Supported input types

  • PRD Markdown documents
  • Business ask briefs
  • Feature or initiative summaries
  • Meeting notes or transcripts with scope signals

Core objective

Transform a product artifact into a coherent Jira hierarchy: Epic → Stories → NFR tasks, with testable acceptance criteria in Gherkin format and optional live Jira issue creation.

Procedure (follow strictly)

1. Read and extract delivery scope

  • Read the source artifact in full before producing any output
  • Extract:
    • Business goals and success metrics
    • Functional requirements (in-scope) and explicit non-goals (out-of-scope)
    • Non-functional requirements (performance, compliance, accessibility, reliability)
    • Personas and their primary jobs-to-be-done
    • Dependencies, constraints, and risks
  • Flag any gaps that make a story unactionable

2. Resolve gaps

  • If a requirement cannot be decomposed into testable stories, document the assumption used
  • Ask at most 2 clarifying questions before proceeding with stated assumptions
  • Prefer the source document over inferred context

3. Build the delivery hierarchy

Use the story structure from: templates/story-template.md

Use the NFR structure from: templates/nfr-template.md

Rules:

  • One Epic per initiative; multi-initiative PRDs produce multiple Epics
  • Each Story must have a clear user value statement and at least one acceptance criterion
  • Each acceptance criterion must be written in Gherkin (Given / When / Then)
  • NFRs are separate tasks, not acceptance criteria on functional stories

4. Generate output artifacts

Produce as many of the following as requested:

  • stories.md — full backlog in Markdown (Epic + Stories + NFRs)
  • acceptance-criteria.feature — all Gherkin scenarios for the delivery scope
  • Jira issue content (Epic, Stories, NFR tasks) ready for creation

5. Create Jira issues (if requested)

Before executing any write calls:

  • Confirm Jira Cloud host, project key, and issue type names are valid
  • Confirm $JIRA_EMAIL and $JIRA_API_TOKEN are set in the environment
  • Run a read-only project lookup first to validate auth and project access
  • Prefer the reusable Node.js helper at:
    • scripts/create-jira-issues.js
  • Generate a JSON spec that contains the Epic, Stories, and NFR tasks to create
  • Treat templates/jira-create-spec.template.json as structure-only placeholders; replace all placeholder values from the current source artifact before running issue creation
  • Create Epic first, then Stories linked to the Epic, then NFR tasks
  • Record created issue keys and surface them in the summary
  • Require prdPath in the JSON spec so each backlog run is tagged to a specific PRD
  • Maintain and update tracker state in:
    • .github/skills/jira-backlog-generation/state/story-tracker.json
  • Skip stories already marked created for the same PRD + project, to avoid duplicate story creation
  • Support partial creation of pending items using:
    • run.storySummariesToCreate
    • run.nfrSummariesToCreate
    • Empty arrays mean "create all pending"

Helper usage:

  • node .github/skills/jira-backlog-generation/scripts/create-jira-issues.js <spec-file.json>
  • Credentials may be provided in either of these ways:
    • shell environment variables
    • workspace .env file in the repository root
  • Shell environment variables take precedence over .env
  • Required values:
    • JIRA_HOST
    • JIRA_EMAIL
    • JIRA_API_TOKEN
  • Optional value for sandbox/proxy environments with custom TLS:
    • JIRA_ALLOW_SELF_SIGNED=true
  • The helper validates project access, inspects create metadata, detects Epic Name and Epic Link fields, and prints created issue keys as JSON
  • The helper outputs pending counts and skipped items, so future runs can create only pending stories by input
  • Do not write one-off Python or curl creation scripts when this helper covers the requested Jira creation flow

6. Quality bar (self-check)

Before finalizing, validate against: references/backlog-quality-checklist.md

Output format

  • Summary at the top: source document used, assumptions made, issue hierarchy created
  • Structured Markdown sections per artifact requested
  • Jira issue keys listed if creation was performed
  • Unresolved open questions listed at the end

Reusable Assets

  • scripts/create-jira-issues.js — reusable Node.js helper for Jira issue creation from a JSON spec
  • templates/jira-create-spec.template.json — starter payload shape for Epic, Story, and NFR task creation
  • state/story-tracker.json — PRD-tagged story tracking state (auto-created by helper)

Tone

  • Concise, implementation-focused
  • No ambiguous wording in acceptance criteria
  • Assume cross-functional audience (Engineering, QA, Product, Design)

04 同仓库更多 Skills