Prd to issues

From softspark/ai-toolkit · View interactive version

Prd to issues is an AI agent skill from the GitHub repository softspark/ai-toolkit. Splits a PRD into vertical-slice GitHub issues with HITL/AFK tagging and dependencies. Triggers: PRD to issues, create tickets, break down PRD, work items.

How to use this skill

Skill file

PRD to Issues

$ARGUMENTS

Break a PRD into independently-grabbable GitHub issues using vertical slices (tracer bullets).

Usage

/prd-to-issues [PRD issue number]

What This Command Does

  1. Fetches PRD from GitHub issue
  2. Explores codebase for context
  3. Drafts vertical slices with HITL/AFK classification
  4. Quizzes user on breakdown
  5. Publishes slices in dependency order, reconciles earlier attempts and verifies native GitHub blocker links.

Process

1. Locate the PRD

Fetch with gh issue view <number> (with comments). If no number provided, ask.

2. Draft Vertical Slices

Each issue is a thin vertical slice cutting through ALL layers end-to-end.

| Classification | Description |

|---------------|-------------|

| AFK | Can be implemented and merged without human interaction (prefer) |

| HITL | Requires human decision — architectural choice, design review, etc. |

3. Quiz the User

Present as numbered list. For each slice show:

Ask:

Iterate until approved.

4. Publish the approved slices

Keep a stable lowercase key for each slice. Save the approved titles, keys,

classification, story references and blockers with the plan. Check for issues

already created from this PRD, including closed issues. Reuse verified older

issues by number when resolving blockers. Resolve ambiguous matches before

creating more issues.

Publish one slice at a time in dependency order. Supply the approved body as a

UTF-8 file containing What to build, the HITL/AFK classification, **Acceptance

criteria and User stories addressed**. The bundled publisher adds the parent

and blockers from the verified numbers. For example, given PRD 42 and blocker 51:

python3 "${CLAUDE_SKILL_DIR}/scripts/publish_slice.py" \
  --repo owner/project --parent 42 --key export-report --title "Export the report" \
  --body-file /path/to/approved-export.md --blocked-by 51 \
  --receipts /path/to/private-run/prd-publication.sqlite

Use the real repository and an existing private run directory outside the checkout.

For GitHub Enterprise, set --host to its hostname. Repeat --blocked-by for

multiple blockers and omit it for a root slice. Keep the same publisher account,

keys, body files and receipt database across retries and worktrees. Coordinate

one publisher per PRD across machines. Report the receipt location for resumption.

The publisher checks open and closed issues for a stable marker, verifies the

child's ownership and records an attempt before each write. On interruption,

rerun the same command. If a pending write still cannot be confirmed, report

its key and stop that slice until the outcome can be reconciled. Creating a

second issue with a different key or receipt directory risks a duplicate.

Keep existing child titles and the approved body intact. A maintainer can

append notes after the marker, separated by a blank line. If the approved

section has changed, reconcile the human edit before proceeding.

An operator can release a pending receipt after the original publisher has

stopped and independent evidence establishes the request never took effect

and cannot still complete (for example, a recorded interruption before POST).

Use the same command with --release-unapplied issue for creation or

--release-unapplied 51 for that blocker. This checks fresh remote state and

only clears the corresponding pending local receipt. Rerun normally afterward.

A missing search result alone leaves an ambiguous write pending. Review a

previously confirmed dependency that someone removed before restoring it.

For each blocker, the publisher fetches its issue database ID, sends it to the

child's dependencies/blocked_by endpoint and reads the edge back. Its JSON

result reports native for a verified edge or text-only when that endpoint

is unavailable or forbidden. The child's body keeps the blocker link in both

cases. Report text-only edges explicitly. Rate limits, failed verification and

validation errors remain actionable errors. Only child issues are created or

linked. GitHub issue dependency API

Issue Template

<issue-template>

Parent PRD

#{prd-issue-number}

What to build

Concise description of this vertical slice. End-to-end behavior, not layer-by-layer. Reference parent PRD sections, don't duplicate.

Type: AFK or HITL

Acceptance criteria

Blocked by

Or "None — can start immediately" if no blockers.

User stories addressed

Reference by number from the parent PRD:

</issue-template>

Rules

Gotchas

When NOT to Use

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.