一键导入
workflow-blueprint
Blueprint workflow to scaffold agent-oriented documentation with progressive disclosure and executable contracts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Blueprint workflow to scaffold agent-oriented documentation with progressive disclosure and executable contracts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | workflow-blueprint |
| description | Blueprint workflow to scaffold agent-oriented documentation with progressive disclosure and executable contracts. |
Provide a reusable blueprint workflow that scaffolds an "agentic workflows" documentation structure for any codebase, with progressive disclosure and executable contracts (workflows).
projectSlug: short identifier for the repo (e.g. my-backend)baseBranch: default integration branch (e.g. develop, main)techStack: short list (e.g. NestJS + MikroORM + Graphile Worker)existingRootDoc: root instruction file path (AGENTS.md, CLAUDE.md, etc.)workflowsWanted: list of workflow ids to scaffold (e.g. modules, specs, document, plan-to-blueprint)constraints: project hard rules (e.g. "no emojis", "mock external boundaries only")skillName (optional): slash-invocation name for the project entry skill; defaults to projectSlug (lowercase, hyphens only)Creates a minimal, navigable structure:
skills/<projectSlug>/
SKILL.md
template.json ← Declarative manifest (commands, entry)
reference/
routing-matrix.md
role-contracts.md
hook-blueprint.md (optional)
workflows/
<workflowName>/
SKILL.md
template.json (optional) ← Per-workflow manifest when useful
docs/runbooks/
agent-role-system.md
agent-role-hooks.md (optional)
plan-to-blueprint.md (when workflow included)
And updates the root doc (AGENTS.md or equivalent) to link to the new entrypoints.
This blueprint folder can also carry example workflows (document, review,
changelog, linear, plan-to-blueprint) to demonstrate chained execution,
plan-to-skill transformation, and MCP integration patterns. Optional
decomposition workflows (such as mcp-linear-planner and mcp-linear-sync)
can be added when needed.
It can also carry runbook examples under runbooks/ to show operator-facing
execution playbooks for those workflows.
Goal, Scope, Triggers, Inputs, Invariants, Procedure, Outputs, Review gate, References.SKILL.md is authoritative; template.json is a complementary declarative layer for agents/tools that expose command interfaces./<skillName> <cmd>; the entry skill resolves cmd to workflows/<cmd>/SKILL.md and loads only that contract.template.json must map to an existing workflow folder and match routing-matrix.md.Create skills/<projectSlug>/SKILL.md as the global entrypoint:
/<skillName> <cmd> (e.g. /my-backend document)cmd in workflowsWanted to workflows/<cmd>/SKILL.mdcmd from the user message and load the mapped workflow contractworkflows/<name>/SKILL.md linksCreate skills/<projectSlug>/template.json as the declarative manifest:
{
"name": "<skillName>",
"version": "1.0.0",
"entry": "SKILL.md",
"routing": "router-only",
"commands": [
{
"name": "<workflowName>",
"description": "Short trigger description",
"skill": "workflows/<workflowName>/SKILL.md"
}
]
}
commands[] entry per item in workflowsWanted.name aligned with skillName (folder may remain projectSlug).In skills/<projectSlug>/reference/, create:
routing-matrix.md: task category -> workflow mapping; include slash form /<skillName> <cmd> alongside intent triggers.role-contracts.md: roles, boundaries, handoffs.hook-blueprint.md: opt-in automation checklist.Keep each file self-contained and linkable.
For each workflow in workflowsWanted, create:
skills/<projectSlug>/workflows/<workflowName>/SKILL.md with:
id: "<projectSlug>.workflow.<workflowName>" (as the first header line)Goal: 1 sentenceScope: applies/does not coverTriggers: file triggers + intent triggersInputs: baseBranch, diff scope, required configInvariants: the project's hard rules + workflow-specific rulesProcedure: deterministic steps (evidence-driven; use git diff when documenting)Outputs: what files/notes/checkpoints must be producedReview gate: checklist with pass/fail criteriaReferences: links back to skills/<projectSlug>/SKILL.md and any deep divesOptionally, for each workflow, add workflows/<workflowName>/template.json when an external tool needs a standalone command descriptor; keep it minimal (name, entry, parent).
Update existingRootDoc to include:
skills/<projectSlug>/SKILL.mdDo not duplicate workflow contents in the root doc.
If there are existing skills in other directories:
skills/<projectSlug>/workflows/..."Before declaring the scaffold done:
projectSlug.workflow.* matches the file it lives in.template.json commands[].name values exist under workflows/ and appear in Command routing + routing-matrix.md.SKILL.md (no undocumented flat aliases).template.json is valid JSON and consistent with workflowsWanted.