agentic-workflows-blueprint.workflow.plan-to-blueprint
Goal
Transform a technical plan into an executable project skill blueprint: entry skill, command routing, workflow contracts, manifests, and runbook links.
Scope
- Applies to: converting structured implementation plans into
skills/<projectSlug>/scaffold outputs. - Does not cover: implementing product features described in the plan.
Triggers
- "Turn this plan into a skill blueprint"
- "Convert plan to executable workflows"
- "Scaffold skills from this technical plan"
- After a Plan-mode session when the user wants persistent, rerunnable agent contracts
Inputs
projectSlug: short identifier for the target reposkillName(optional): slash name for router invocation; defaults toprojectSlugbaseBranch: default integration branchtechStack: short stack descriptionexistingRootDoc: root instruction file path (AGENTS.md,CLAUDE.md, etc.)technicalPlan: structured plan (milestones, tasks, acceptance criteria, constraints)workflowsWanted: workflow ids inferred from the plan (must include at least one)constraints: project hard rules extracted from the planoperationalContext(optional): environment tiers, maintenance window, rollback strategy, compliance boundaries
Invariants
SKILL.mdremains the source of truth;template.jsonmirrors routing, never replaces contracts.- Router-only command model:
/<skillName> <cmd>maps toworkflows/<cmd>/SKILL.md. - Every workflow in
workflowsWantedgets a full contract (Goal through References). - Do not invent scope not present in
technicalPlan; mark gaps explicitly in handoff notes. - Workflow ids and folder names must match exactly (
kebab-case). - For infra/network/IaC/OS plans, include explicit operational verification and rollback criteria in generated contracts.
Procedure
- Parse
technicalPlanand extract: objectives, milestones, deliverables, constraints, and candidate workflow boundaries. - Propose
workflowsWanted(confirm or refine with user if ambiguous).- Include
network-engineering,infra-operations,iac, andos-platformwhen the technical plan includes those domains.
- Include
- Scaffold
skills/<projectSlug>/SKILL.mdwith orchestrator + Command routing (router-only). - Generate
skills/<projectSlug>/template.jsonwithcommands[]for each workflow inworkflowsWanted. - Create
reference/routing-matrix.mdandreference/role-contracts.mdfrom plan evidence. - For each workflow id, create
workflows/<workflowName>/SKILL.mdwith executable contract sections grounded in the plan. - Optionally add
workflows/<workflowName>/template.jsonwhen a tool needs per-workflow manifests. - Wire
existingRootDocwith "Start here" and skill/runbook links (no duplication of workflow bodies). - Add or update runbook
docs/runbooks/plan-to-blueprint.mdwhen operator guidance is needed. - Run consistency verification: links, ids, manifest commands, routing-matrix alignment.
Outputs
skills/<projectSlug>/SKILL.md(entry orchestrator with command routing).skills/<projectSlug>/template.json(declarative command manifest).skills/<projectSlug>/reference/routing-matrix.mdandrole-contracts.md.skills/<projectSlug>/workflows/<workflowName>/SKILL.mdfor each item inworkflowsWanted.- Updated
existingRootDocwith canonical links. - Handoff note listing mapped plan sections -> workflows and any unresolved gaps.
Review gate
- Every command in
template.jsonresolves to an existingworkflows/<cmd>/SKILL.md. - Entry skill documents router-only invocation (
/<skillName> <cmd>). - Each workflow contract is complete and traceable to plan evidence.
- Root doc links only to canonical paths; no duplicated workflow content.
- All referenced paths exist and ids follow
<projectSlug>.workflow.<name>.
References
../../SKILL.md../document/SKILL.md../review/SKILL.md- Interactive HTML View