plan-to-beads
Convert structured implementation plans into Beads-backed executable work graphs with prompt-contract metadata and generated formula templates. Use when the user asks to turn a plan into Beads, create plan-to-beads formulas or molecules, validate Beads work packets, or prepare plans for parallel agent execution.
- License 许可
- MIT
- 所属仓库
- dibstern/conduit
- 最近更新
- 2026-10-29
- Stars
- ★ 15
- Forks
- 2
01 前言 Front Matter
- name
- plan-to-beads
- description
- Convert structured implementation plans into Beads-backed executable work graphs with prompt-contract metadata and generated formula templates. Use when the user asks to turn a plan into Beads, create plan-to-beads formulas or molecules, validate Beads work packets, or prepare plans for parallel agent execution.
02 资源文件 41
- 参考文档design/direct-bd-mutation-and-review-artifacts.md12.1 KB
- 参考文档design/schema-engine-options.md14.2 KB
- 参考文档EXAMPLES.md7.9 KB
- 参考文档REFERENCE.md21.0 KB
- 参考文档references/ax-profiles.md4.4 KB
- 参考文档references/ax-setup.md1.5 KB
- 脚本scripts/render-plan-to-beads.cjs14.2 KB
- 脚本scripts/validate-plan-to-beads.cjs11.6 KB
- 其他templates/contracts/acceptance-pipeline.toml2.4 KB
- 其他templates/contracts/acceptance-proof.toml1.9 KB
- 其他templates/contracts/architecture-contracts.toml2.9 KB
- 其他templates/contracts/audit-amendment.toml1.9 KB
- 其他templates/contracts/context-use.toml423 B
- 其他templates/contracts/cross-plan-relationships.toml2.2 KB
- 其他templates/contracts/decision-point.toml1.6 KB
- 其他templates/contracts/evidence-records.toml2.9 KB
- 其他templates/contracts/executor-policy.toml1.4 KB
- 其他templates/contracts/file-operations.toml2.2 KB
- 其他templates/contracts/guardrail.toml2.0 KB
- 其他templates/contracts/handoff-note.toml852 B
- 其他templates/contracts/progress-history.toml1.8 KB
- 其他templates/contracts/risk-operational.toml1.4 KB
- 其他templates/contracts/subagent-launch.toml951 B
- 其他templates/contracts/work-packet.toml2.7 KB
- 其他templates/formula/executable-plan.formula.toml819 B
- 参考文档templates/README.md3.2 KB
- 其他templates/roles/acceptance-pipeline.toml3.0 KB
- 其他templates/roles/architecture.toml1.3 KB
- 其他templates/roles/checkpoint.toml2.1 KB
- 其他templates/roles/child.toml3.3 KB
- 其他templates/roles/decision.toml1.3 KB
- 其他templates/roles/epic.toml892 B
- 其他templates/roles/fixture.toml934 B
- 其他templates/roles/followup-template.toml1.0 KB
- 其他templates/roles/global-contract.toml1009 B
- 其他templates/roles/guardrail.toml1.3 KB
- 其他templates/roles/parent.toml1.3 KB
- 其他templates/roles/pilot.toml959 B
- 其他templates/roles/policy.toml897 B
- 其他templates/roles/progress.toml1016 B
- 其他templates/roles/review.toml1.1 KB
03 SKILL.md 正文
Plan To Beads
Convert a written implementation plan into Beads issues/molecules where Beads hold the executable work graph and each child bead carries a prompt contract. Shared plan context lives in typed context beads, timed context refs, and contract snippets, not duplicated in every child.
Quick Start
- Run
bd prime. - Read the plan and extract a plan IR: roles, stable logical ids, dependencies, shared context,
contextUse, typed contract snippets, fixtures, stages, children, checkpoints, optional acceptance-pipeline work, pilot work, decisions, guardrails, reviews, progress overlays, and follow-up templates. - Hydrate the generic templates in
templates/from that IR. Preferscripts/render-plan-to-beads.cjs; do not put plan-specific facts in the source templates. - Generate a plan-specific formula under
.beads/generated-formulas/<plan-id>.formula.tomlfor review. - Validate the generated formula:
node .agents/skills/plan-to-beads/scripts/render-plan-to-beads.cjs <plan-ir.json> .beads/generated-formulas/<plan-id>.formula.toml
node .agents/skills/plan-to-beads/scripts/validate-plan-to-beads.cjs .beads/generated-formulas/<plan-id>.formula.toml
bd cook .beads/generated-formulas/<plan-id>.formula.toml --dry-run
bd cook .beads/generated-formulas/<plan-id>.formula.toml --mode=runtime --dry-run
- Pour only after approval. Persist the generated formula as a proto first, or install it into
.beads/formulas/if the user wants a reusable formula:
bd cook .beads/generated-formulas/<plan-id>.formula.toml --persist --force
bd mol pour <plan-id>-executable-plan --dry-run
bd mol pour <plan-id>-executable-plan
bd dep cycles
Core Model
- Epic/root molecule: the whole plan instance.
- Context beads: global contract, architecture, policy, fixture, decision, guardrail, review, progress, pilot, and follow-up-template beads. Children read these through
contextRefs. - Parent/stage beads: feature-level grouping and inherited defaults for a stage.
- Checkpoint beads: integration gates, fanout readiness, validation, and subagent launch rules.
- Child beads: one executable prompt contract and one TDD behavior.
- Acceptance-pipeline beads: optional product-behavior proof layers for plans that require generated acceptance tests or acceptance mutation.
Use needs for execution dependencies that affect readiness. Use contextRefs, inherits, provides, and typedContractRefs inside metadata for read-time context and schema wiring. Use contextUse when the role must say exactly when an agent reads a context bead: before-edit, during-edit, verification, handoff, or if-blocked.
Use snippets when a plan contains reusable context that is not itself executable child work. Attach snippets to the smallest durable context bead that owns them, then reference them from children through contextRefs, inputs, typedContractRefs, acceptanceMatrixRefs, guardrailRefs, or evidenceRefs. See REFERENCE.md for the snippet library.
Workflow
- Normalize the plan into the schema in REFERENCE.md.
- Create context beads first: global contract, architecture, policies, decisions, guardrails, reviews, progress overlays, fixtures, and stage parents.
- Convert each vertical behavior into a
childbead with aworkPacketsplit intogoalContract,inputContract,constraintContract,executionContract,validationContract,outputContract,failureContract, andhandoffContract. - Convert gates and integration handoffs into
checkpointbeads split intogateContract,fanoutContract,mergeContract,validationContract, andescalationContract. - Convert evidence, audit, acceptance, risk, file-operation, architecture, and cross-plan material into typed snippets attached to those roles.
- Create
acceptance-pipelinebeads only when the plan explicitly wants generated acceptance tests, a JSON acceptance IR, or acceptance mutation proof. - Keep speculative work as
followup-templatebeads unless the plan explicitly says to create executable work now. - Generate dependencies from
needs; do not duplicate the graph only in prose. - Run the validator and validation checklist before pouring or marking the plan converted.
Child Contract Rules
Each executable child must define these prompt-contract subcontracts:
goalContract:goal,expectedOutcome,nonGoals, and the behavior id.inputContract:inputs,contextRefs, childcontextUse, fixtures, baselines, evidence, and external plans.constraintContract: allowed, forbidden, and read-only files; guardrails; required skills; tools; mock policy.executionContract: ordered steps,greenScope, implementation limits, fixtures, and code contracts.validationContract:redCommand,expectedFailure,expectedRedShape, verification, acceptance refs, and proof command.outputContract: output shape, patch shape, file touches, commit boundary, and evidence to record.failureContract: failure conditions, stop conditions, blocker decisions, and follow-up template refs.handoffContract:requiresBeadsNote = trueplus artifact and close-owner rules.
If any field cannot be derived from the plan, create a decision/checkpoint bead instead of inventing details. Do not turn historical evidence, audit findings, risk notes, or unresolved decisions into executable child beads.
Template Rules
- Source templates under
templates/are generic and placeholder-only. - Plan-specific formulas are generated artifacts; put them under
.beads/generated-formulas/unless the user asks to install a formula in.beads/formulas/. - Template placeholders use
{{snake_case}}; array/object placeholders represent already-rendered TOML. - Role templates are snippets; the generator may compose them into a full formula or hydrate directly into
bd create/bd updatecommands. - Child
contextUsehas one canonical home:workPacket.inputContract.contextUse.
Validation
Before calling the conversion usable:
node .agents/skills/plan-to-beads/scripts/validate-plan-to-beads.cjs <generated-formula>passes.- The generated formula cooks in runtime mode with no unresolved placeholders.
- Every
logicalIdis unique. - Every
needs,contextRefs,inherits,provides, and fixture reference resolves. - Every required
contextUseref resolves and has a phase, reason, and failure behavior. - Every
typedContractRefs,acceptanceMatrixRefs,guardrailRefs,evidenceRefs, and cross-plan reference either resolves or is explicitly external. - Every child has the required work-packet subcontracts and non-empty executable fields.
- Parallel-ready children have disjoint writable file scopes or an explicit checkpoint-owned merge rule.
- Checkpoints define gate, fanout, merge, validation, and escalation contracts.
- Acceptance-pipeline beads, when present, define normal acceptance and mutation contracts.
- Evidence and progress snippets are marked as historical or requiring reverify; they are not treated as future work unless a child/checkpoint depends on them.
See EXAMPLES.md for a minimal conversion and REFERENCE.md for schemas, role mappings, and the full validation checklist.
04 同仓库更多 Skills
release-notes
Drafts release notes. Fixture skill for conduit's recorded skill-loads-turn trace.
changelog-style
House style for changelog entries. Fixture skill for conduit's recorded skill-loads-turn trace.
typescript-advanced-types
Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications. Use when implementing complex type logic, creating reusable type utilities, or ensuring compile-time type safety in TypeScript projects.
sveltekit-svelte5-tailwind-skill
Comprehensive integration skill for building sites with SvelteKit 2, Svelte 5, and Tailwind CSS v4
svelte5-inspect
暂无简介
playwright-cli
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.