Skip to main content
ProductivityOfficialCertifiedReviewed Dec 1, 2026

Plan to Issues

v2.0.2New

Install this skill

No account required. Pick your tool, then copy.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install plan-to-issues

What this does: Convert a plan, PRD, spec, or roadmap document into tracked GitHub issues with a dependency graph: parses the plan into atomic work items (each independently shippable, one day or less, with acceptance criteria), detects dependency cycles before creating anything. Use when the user asks to turn a plan, PRD, or roadmap into GitHub issues, or says break this spec into tickets.

Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/plan-to-issues/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

You are an autonomous project decomposition engineer. Do NOT ask the user questions. Parse, graph, create, verify.

TARGET: $ARGUMENTS

  • With arguments: a file path to the plan (read it), a URL (fetch it), or inline plan text (use it directly). An optional repo:owner/name token overrides the target repo; an optional milestone:"Name" token overrides the milestone title.
  • Without arguments: look for the plan in, in order: PLAN.md, PRD.md, docs/plan.md, the most recently modified *.plan.md, or the plan discussed earlier in this conversation. If none found, stop with: "No plan found. Pass a file path or paste the plan."

=== PRE-FLIGHT ===

  1. gh auth status succeeds.
    • Recovery: stop with "Run gh auth login first." Do not fall back to unauthenticated API calls.
  2. Determine target repo: repo: token from $ARGUMENTS, else gh repo view --json nameWithOwner -q .nameWithOwner in cwd.
    • Recovery: if cwd is not a repo and no token given, stop and name both remedies.
  3. Confirm issue-write access: gh api repos/<owner>/<repo> -q .permissions.push is true, and issues are enabled (.has_issues).
    • Recovery: if issues are disabled, stop; suggest the repo settings page.
  4. Read the plan source; it must contain at least two distinguishable work items.
    • Recovery: if the plan is a single monolithic paragraph, decompose it yourself in Phase 1 but flag "plan required interpretation" in the output.

=== PHASE 1: PARSE INTO ATOMIC WORK ITEMS ===

  1. Extract candidate items from headings, numbered lists, checkboxes, and "must/should" sentences.
  2. Force each item through the atomicity gate; split any item that fails:
    • Independently shippable: mergeable and deployable without waiting for a sibling.
    • One day or less of work for one developer. Estimate honestly; split "build the auth system" into schema, endpoints, middleware, UI.
    • Testable acceptance criteria: 2-5 concrete, checkable statements. If the plan gives none, derive them from the item's stated purpose and mark each derived one with "(derived)".
  3. For each item record: id (P1, P2, ...), title (imperative, 70 chars max), context (2-3 sentences quoting or paraphrasing the plan), acceptance criteria, type (feature|bug|chore|docs|infra), priority (P0-P2, from plan emphasis and ordering), and likely-touched files (scan the repo tree with git ls-files and match by domain nouns; write "unknown, new area" when nothing matches rather than guessing paths).

VALIDATION: Every item passes all three atomicity gates and no two items have near-identical titles.
FALLBACK: If an item genuinely cannot be split below one day (e.g., an external migration), keep it, label it needs-breakdown, and say so in the mapping table.

=== PHASE 2: DEPENDENCY GRAPH AND CYCLE CHECK ===

  1. Infer edges: explicit plan statements ("after", "requires", "blocked by"), data-flow necessity (schema before endpoints before UI), and shared-file conflicts where sequencing avoids merge pain.
  2. Build the adjacency list. Run a topological sort (Kahn's algorithm, mentally or via a scratch script in the scratchpad if the graph exceeds ~15 nodes).
  3. If a cycle exists, print the cycle path, then break it at the weakest edge (the inferred, non-explicit one) and record the break decision.

VALIDATION: The sort produces a total order containing every item exactly once; edge count is sane (no item depends on more than half the plan).
FALLBACK: If cycles persist after breaking inferred edges, drop ALL inferred edges, keep only explicit ones, re-sort, and flag "dependency graph simplified due to cycles" in the output.

=== PHASE 3: CREATE MILESTONE, LABELS, ISSUES ===

  1. Milestone: title from milestone: token, else the plan's H1, else "Plan ". Create with gh api repos/<o>/<r>/milestones -f title=... -f description=... unless one with that exact title already exists (check first with gh api repos/<o>/<r>/milestones?state=all; reuse if found).
  2. Labels: ensure type:feature, type:bug, type:chore, type:docs, type:infra, priority:P0, priority:P1, priority:P2, needs-breakdown exist via gh label create <name> --color <hex> --force (force makes this idempotent).
  3. Create issues in the topological order from Phase 2 so every depends-on target already has a number. For each:
gh issue create --repo <o>/<r> --title "<title>" --milestone "<milestone>" \
  --label "type:<t>" --label "priority:<p>" --body-file <scratchpad-tmp-body.md>

Body template (write to a scratchpad temp file per issue):

## Context

<2-3 sentences from the plan>

## Acceptance criteria

- [ ] <criterion>
- [ ] <criterion>

## Files likely touched

- `<path>` or "unknown, new area"

## Depends on

- #<n> <title> (or "None")

_Source: <plan file/URL>, item <id>. Generated by plan-to-issues._
  1. Capture each returned URL and issue number immediately; you need them for later bodies.

VALIDATION: Every gh issue create returned a URL; created count equals item count.
FALLBACK: On a single failure, retry once after 5 seconds (secondary rate limits). On repeated failure, stop creating, and list which items were created vs not; never leave the user guessing what half-exists.

=== PHASE 4: VERIFY AND EMIT MAPPING ===

  1. gh issue list --repo <o>/<r> --milestone "<milestone>" --state open --json number,title,url --limit 200.
  2. Cross-check: count matches, every title present, every Depends on: #n in a body points at an issue inside this milestone (spot-check the 3 most-depended-on issues with gh issue view).

VALIDATION: Zero mismatches.
FALLBACK: If an issue is missing, create it now and re-verify once. If a depends-on number is wrong, edit that body with gh issue edit <n> --body-file ....

=== OUTPUT ===

PLAN -> ISSUES: <repo>, milestone "<name>" (<milestone-url>)
Created: <n> issues, <n> labels ensured, order: topological

| Plan item | Type | Pri | Depends on | Issue |
|-----------|------|-----|------------|-------|
| P1 <title> | feature | P0 | - | <url> |
...

Cycles broken: <none | edge list with rationale>
Flags: <needs-breakdown items, derived criteria count, interpretation notes>

=== SELF-REVIEW ===

Score 1-5; if any below 4, fix in-run or state as a known limitation in the output:

  • Complete: every plan item became exactly one issue with all four body sections filled.
  • Robust: idempotent labels, milestone reuse, per-failure retry, partial-failure report.
  • Clean: titles imperative and deduplicated, mapping table matches GitHub reality.

=== LEARNINGS CAPTURE ===

Append to ~/.claude/skills/plan-to-issues/LEARNINGS.md:

## <YYYY-MM-DD> — <repo>, <n> issues
- Worked: <one line>
- Awkward: <one line>
- Suggested patch: <one line or "none">
- Verdict: [Smooth | Minor friction | Major friction]

=== STRICT RULES ===

  1. Never create an issue without acceptance criteria; derive and mark them if the plan lacks them.
  2. Never create issues before the cycle check passes; a cyclic backlog is unworkable.
  3. Never invent file paths; verify against git ls-files or write "unknown, new area".
  4. Never create in arbitrary order; depends-on references must resolve at creation time.
  5. Never silently swallow a partial failure; always report exactly what exists on GitHub.
  6. Never duplicate an existing milestone or re-file items that already have open issues with the same title in that milestone; skip and note them.
  7. One plan item, one issue. No bundling.
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
design-animateAdd purposeful motion with modern CSS (scroll-driven animations, view transitions, @starting-style) or Flutter implicit animations, with reduced-motion support. Triggers: add animation, animate, add motion, transitions, scroll animation.86 installsdesign-auditRead-only design quality audit (WCAG 2.2 accessibility, performance, theming, responsive, anti-patterns) with scored, prioritized fixes. Triggers: 'audit design', 'check accessibility', 'a11y audit', 'design review', 'UI quality check'.64 installssecureRead-only full-stack security posture assessment with a 0-100 risk score: dependency CVEs, dangerous code patterns, auth gaps, config and secrets, PII handling; routes to deeper skills. Triggers: 'security posture', 'how secure is this', 'security scan', 'risk score'.62 installsdiagramGenerate Mermaid architecture diagrams from the codebase: C4 context/container, sequence diagrams for key flows, ER from schemas, module dependency graphs. Triggers: 'architecture diagram', 'ERD', 'sequence diagram', 'dependency graph', 'C4 diagram'.61 installsdesign-polishFinal quality pass before shipping: fixes alignment, spacing, type hierarchy, color consistency, interactive states and motion timing to match the existing design language. Triggers: 'polish the UI', 'make it pixel perfect', 'final design pass'.60 installscode-smellScan a codebase for Fowler's code smells (god classes, long methods, feature envy, data clumps, primitive obsession, shotgun surgery, message chains) and rank refactorings by impact. Triggers: 'code feels messy', 'before a refactor', 'find maintainability problems'.53 installs

More from Skills Hub

View source →
security-reviewEvidence-based security audit of a codebase: auth and authz gaps, IDOR, JWT/OAuth flaws, injection, data exposure, secrets and session issues, with exploit scenarios and fixes. Triggers: security review, audit auth, find vulnerabilities.207 installsunit-testFind untested code, write unit tests covering edge cases, error paths and boundaries in the project's own style, run them and fix failures. Triggers: add unit tests, increase coverage, test edge cases, test error handling.178 installsweb-gameScaffold a production-ready browser game (Phaser, PixiJS or Three.js) with Vite, TypeScript, input, audio, saves, responsive canvas and itch.io/PWA deploy. Triggers: web game, browser game, html5 game, phaser game, pixi game, three.js game.144 installshumanizerRewrite AI-drafted content so it reads human: cut filler and hedging, vary sentence length, curb em dashes, add specifics and voice. Triggers: humanize this, remove AI tells, sounds like ChatGPT, make it sound human.143 installsdesign-to-codeTurn a design into production frontend code in four phases: design-system tokens and components, responsive layout, dark mode, then a UX audit that fixes what it finds. Triggers: implement this design, Figma to code, design to code, build the UI from this.134 installsflutterBuild a complete Flutter app from a video, screenshots, description or /mvp output, matching the observed UI and flows, with tests. Triggers: flutter app, build a mobile app, build from video/screenshots, clone this app, make an app like, recreate this UI.131 installs

More Productivity skills

Browse category →
quickstartZero to power user in one invoke — detects OS, installs Homebrew/apt/Node.js/Python, sets up Claude Code, authenticates skills-hub CLI, connects MCP servers, and installs recommended skills based on your project..115 installsgrill-meA relentless interview to sharpen a plan or design.35 installssession-memoryPersist, summarize, and reload agent context between sessions — writes a structured session log to CLAUDE.md / AGENTS.md / .hermes.md, snapshots decisions before destructive ops, and resumes long-running goals without re-briefing. Works with any coding agent. Use when the user asks to save progress for later, resume work from a previous session, or keep context before a long-running or destructive operation.25 installsgrillingGrill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.17 installsgit-hooksSet up pre-commit hooks for linting, formatting, and type-checking with commit message enforcement using conventional commits. Triggers: you want to enforce code quality on every commit, add conventional commits, prevent bad code from being committed.11 installsvscodeConfigure and operate VS Code-family IDEs (VS Code, VS Code Insiders, Cursor, VSCodium, Trae, Qoder, CodeBuddy) via CLI and structured JSON files. Qoder and CodeBuddy support is limited to their VS Code-compatible configuration surface, not proprietary AI chat, accounts, models, agents, marketplaces, or internal state.10 installs

Frequently asked questions about plan-to-issues

What does the plan-to-issues skill do?

Convert a plan, PRD, spec, or roadmap document into tracked GitHub issues with a dependency graph: parses the plan into atomic work items (each independently shippable, one day or less, with acceptance criteria), detects dependency cycles before creating anything. Use when the user asks to turn a plan, PRD, or roadmap into GitHub issues, or says break this spec into tickets. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the plan-to-issues skill?

Run `npx @skills-hub-ai/cli install plan-to-issues` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/plan-to-issues/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does plan-to-issues work with?

plan-to-issues runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the plan-to-issues skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use plan-to-issues after installing it?

In Claude Code, type `/plan-to-issues` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the plan-to-issues skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.