/beads-planner:issue-to-beadsfrom beads-planner
Converts a GitHub issue into a Beads epic with one bead per agent-sized task. Reads the issue, optional spec file, and project conventions, then creates the epic graph in a single `bd create --graph` call. Runs without asking questions.
Ships in beads-planner. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turn one GitHub issue into beads that one-shot agents can pick up from bd ready and finish without asking anyone anything. You run in the background and cannot ask the user questions: decide, and list every decision in the report.
42, #42, owner/repo#42 or its URL. Fetch it with gh issue view <n> --json number,title,body,labels,comments,url (add --repo owner/repo when given)..beads/PLANNING.md (below). Read it first. Also read whatever it, the spec or the issue points to that you need to name files correctly.bd prime once if the project's hooks have not already shown it to you; it is the project's Beads brief.If there is no spec and the issue is too vague to say what done looks like for each piece, stop: create nothing, and report exactly which questions must be answered first. Do not interview.
A short file the project owns. Follow it over any default here. It may say:
Read: files, a pin or lock line, which tree or worktree to work in).external_ref and spec_id format.bd export -o <path>) and committed, and by whom; whether to run the git-push-and-tag skill and with which label.With no such file, use these defaults and say so in the report: the epic is titled <issue title> (#<n>); every node gets external_ref: gh-<n> and, with a spec, spec_id: <spec path>; no standard acceptance lines; no labels; plan file at .beads/plans/<n>.json; no branch, no worktree, no export, no commit, no push, no issue label.
One bead is one agent's worth of work: it fits in one agent's context, ends in one commit, can be checked on its own, and does not share a file with a bead that can run beside it. Smaller steps go as bullets inside a bead. If two beads must touch the same file, either add a blocks edge so they run one after the other, or merge them. A spike (a question to answer before building) is a bead whose acceptance is a file with the answer.
Each description gives the agent what it needs to start cold: what to build and why, the files and functions involved, decisions already made, and the convention lines. Do not paste the whole spec; point to its sections.
Put acceptance in the node's acceptance_criteria field, never in the description. One line per criterion. Every bead needs at least one line a command or a direct observation settles. Add only the standard lines the conventions name; with none, add none.
Good:
`pytest tests/test_auth.py` exits 0`GET /api/users` returns 200 with a JSON array`src/auth/jwt.ts` exports `verifyToken`The filter menu lists All, Active, CompletedBad: "Works correctly", "Handles edge cases", "Good UX". Turn a judgment into something measurable ("axe reports 0 WCAG AA violations on /dashboard").
One JSON file in the format bd create --graph reads (full schema: bd help create --all). It is the record of the breakdown; keep it where the conventions say. Shape:
{
"commit_message": "beads for #42",
"nodes": [
{"key": "epic", "type": "epic", "title": "Add login (#42)", "priority": 1,
"description": "...", "acceptance_criteria": "...",
"external_ref": "gh-42", "spec_id": "docs/specs/42-login.md", "labels": []},
{"key": "api", "parent_key": "epic", "type": "task", "title": "...", "priority": 1,
"description": "...", "acceptance_criteria": "- `pytest tests/test_login.py` exits 0",
"external_ref": "gh-42", "spec_id": "docs/specs/42-login.md",
"metadata": {"files": ["src/auth/login.py", "tests/test_login.py"], "new_files": ["tests/test_login.py"]}}
],
"edges": [{"from_key": "ui", "to_key": "api", "type": "blocks"}]
}
{"from_key": A, "to_key": B, "type": "blocks"} means A waits for B. parent_key already makes the parent-child link; do not repeat it in edges.metadata.files lists every file the bead edits or creates; metadata.new_files the ones that do not exist yet. The check uses both.type task unless the work is a bug, spike, chore or feature.proj-x7k2), not dotted ones; bd ready --parent <epic> and bd show <epic> --children still group them.bd list --all --external-ref gh-<n> --json to catch beads already filed for it; if some exist, add only what is missing and say so.python3 <this skill's directory>/scripts/check_plan.py <plan> --root <repo root> --issue <n>. It fails loudly on: a bead with no acceptance line a command or an observation can settle, a vague acceptance line, a dependency cycle, a named file path that does not exist and is not in new_files, two beads that can run at the same time owning the same file, a missing parent or external_ref. Fix and rerun until it prints OK. Then bd create --graph <plan> --dry-run, which checks the graph against bd itself.bd create --graph <plan> --json. It is atomic: either every bead and edge exists or none does. Keep the returned key-to-id map.bd lint <epic id> <child ids...> (acceptance present), bd dep cycles, bd ready --parent <epic id>.git-push-and-tag skill, if they name it). With no conventions, do none of it.If bd create --graph fails, nothing was created: fix the plan and run it again. Never fall back to one bd create per bead.
Your last message, to the caller:
bd ready --parent <epic>), by id and title..beads/PLANNING.md was found.bd ready --parent.blocks edge.parent_id set to the existing epic.references/beads-cli-reference.md has the bd 1.3.1 commands this skill and the agents who work the beads use.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jbdamask/john-claude-skills --plugin beads-planner3 skills in this plugin
/git-push-and-tagCommits and pushes the record of a beads breakdown (the plan file and, when the project keeps one, its JSONL export) and optionally labels the GitHub issue. Runs only when a project's .beads/PLANNING.md asks for it or the user invokes it; issue-to-beads does not call it otherwise. Use when the user says "commit and push the beads for issue 42" or "push the plan and label the issue"./plan-onlyPlan-only mode that replicates Claude Code's built-in plan mode workflow but stops after the user approves the plan — no auto-execution. Use when the user wants to plan without executing, says "plan only", "just plan", "plan but don't execute", or when another skill needs planning without triggering auto-execution. Writes the plan to .claude/plans/<slug>.md.Other plugins' skills for the same job