agentic-workflows.blueprint
Goal
Provide a reusable blueprint workflow that scaffolds an "agentic workflows" documentation structure for any codebase, with progressive disclosure, executable contracts (workflows), and self-contained interactive visual HTML manuals (README.html / <filename>.html).
Scope
- Applies to: any repository that wants an agent-oriented documentation system (orchestrator + workflow skills + references + runbooks + visual HTML manuals).
- Does not cover: implementing product features; this is scaffolding/documentation only.
Triggers
- "Create agentic workflow structure"
- "Set up skills folder + workflows"
- "Make docs agent-friendly"
- "Refactor AGENTS.md into linked skills"
- "Generate HTML manuals for skills and runbooks"
Inputs
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, network-engineering, infra-operations, iac, os-platform, html-manual, 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)
Outputs
Creates a minimal, navigable structure with matching HTML visual manuals:
skills/<projectSlug>/
SKILL.md
README.html ← Interactive visual HTML manual for project skill
template.json ← Declarative manifest (commands, entry)
reference/
routing-matrix.md
routing-matrix.html ← Visual HTML version matching base filename
role-contracts.md
role-contracts.html ← Visual HTML version matching base filename
hook-blueprint.md (optional)
hook-blueprint.html (optional)
workflows/
<workflowName>/
SKILL.md
README.html ← Interactive visual HTML manual for workflow
template.json (optional) ← Per-workflow manifest when useful
docs/runbooks/
agent-role-system.md
agent-role-system.html ← Visual HTML version matching runbook filename
agent-role-hooks.md (optional)
agent-role-hooks.html (optional)
plan-to-blueprint.md (when workflow included)
plan-to-blueprint.html (when workflow included)
And updates the root doc (AGENTS.md or equivalent) to link to the new entrypoints.
This blueprint folder carries bundled workflows (embed-aihero-radioactive, mattpocock/wayfinder, mattpocock/grilling, mattpocock/domain-modeling, mattpocock/research, mattpocock/prototype, mattpocock/to-spec, radioactive, brainstorming, plan-writing, ui-ux-pro-max, remotion-video-motion, thermo-nuclear-code-quality-review, thermo-fix, html-manual, changelog-generator, document, review, changelog, linear, mcp-linear-planner, mcp-linear-sync, network-engineering, infra-operations, iac, os-platform, implementing-devsecops-security-scanning, scanning-containers-with-trivy-in-cicd, scanning-docker-images-with-trivy, scanning-kubernetes-manifests-with-kubesec, implementing-network-policies-for-kubernetes, implementing-rbac-hardening-for-kubernetes, implementing-pod-security-admission-controller, securing-aws-iam-permissions, securing-container-registry-images, securing-kubernetes-on-cloud, triaging-vulnerabilities-with-ssvc-framework, performing-kubernetes-cis-benchmark-with-kube-bench, analyzing-kubernetes-audit-logs, securing-github-actions-workflows, performing-container-image-hardening, remediating-s3-bucket-misconfiguration, performing-container-security-scanning-with-trivy, performing-vulnerability-scanning-with-nessus, implementing-syslog-centralization-with-rsyslog, c4-architecture, plan-to-blueprint) to demonstrate full-lifecycle chained execution, Matt Pocock / AI Hero methodology embedding, plan-to-skill transformation, visual documentation generation, MCP integration patterns, and infrastructure operations coverage.
It can also carry runbook examples under runbooks/ to show operator-facing execution playbooks for those workflows.
Invariants (guardrails)
- Progressive disclosure: root doc stays short; details live behind links.
- Executable contracts: every workflow is written as a contract the agent can follow:
Goal, Scope, Triggers, Inputs, Invariants, Procedure, Outputs, Review gate, References.
- Visual HTML Manuals (Default Behavior): Every skill, workflow contract, reference doc (
.md), and runbook (.md) MUST have a corresponding self-contained interactive visual HTML document (README.html for skills/workflows, <filename>.html matching base name for references/runbooks) formatted with Tailwind CSS CDN, dark mode (bg-zinc-950 text-zinc-100), glassmorphic styling, and method/status badges. The source .md file MUST link to its .html companion under ## References.
- No duplication: do not copy/paste long rules across files; link to the source of truth.
- Consistency: workflow ids and file paths must match exactly across all references.
- Minimal surface: only add the workflows actually requested.
- Source of truth:
SKILL.md is authoritative; template.json is a complementary declarative layer for agents/tools that expose command interfaces.
- Command routing: router-only — users invoke
/<skillName> <cmd>; the entry skill resolves cmd to workflows/<cmd>/SKILL.md and loads only that contract.
- Manifest sync: every command in
template.json must map to an existing workflow folder and match routing-matrix.md.
Procedure
1) Create the project entry skill
Create skills/<projectSlug>/SKILL.md as the global entrypoint:
- A short description of what the skill is for.
- An "orchestrator" section that explains:
- how to classify a task
- how to select one workflow
- how to close (validation gate if applicable)
- A Command routing section (router-only):
- invocation pattern:
/<skillName> <cmd> (e.g. /my-backend document)
- map each
cmd in workflowsWanted to workflows/<cmd>/SKILL.md
- if the agent does not parse subcommands, read
cmd from the user message and load the mapped workflow contract
- do not create flat alias skills unless explicitly requested
- A list of internal workflow helpers:
workflows/<name>/SKILL.md links
- Project constraints and hard rules (short bullets).
Create 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"
}
]
}
- Include one
commands[] entry per item in workflowsWanted.
- Keep
name aligned with skillName (folder may remain projectSlug).
2) Create references (progressive disclosure)
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.
- Optional
hook-blueprint.md: opt-in automation checklist.
Keep each file self-contained and linkable.
3) Scaffold each workflow as an executable contract
For each workflow in workflowsWanted, create:
skills/<projectSlug>/workflows/<workflowName>/SKILL.md with:
id: "<projectSlug>.workflow.<workflowName>" (as the first header line)
Goal: 1 sentence
Scope: applies/does not cover
Triggers: file triggers + intent triggers
Inputs: baseBranch, diff scope, required config
Invariants: the project's hard rules + workflow-specific rules
Procedure: deterministic steps (evidence-driven; use git diff when documenting)
Outputs: what files/notes/checkpoints must be produced
Review gate: checklist with pass/fail criteria
References: links back to skills/<projectSlug>/SKILL.md and any deep dives
Special Scaffold Case — embed-aihero-radioactive: When requested, adapt skills/<projectSlug>/workflows/radioactive/SKILL.md to run the 14-phase lifecycle embedding Matt Pocock's skills, and scaffold skills/<projectSlug>/workflows/mattpocock/ containing wayfinder, grilling, domain-modeling, research, prototype, and to-spec. Ensure Phase 1 ALWAYS executes the primary project skill (skills/<projectSlug>/SKILL.md) FIRST for request classification and constraint extraction before executing /wayfinder.
Optionally, for each workflow, add workflows/<workflowName>/template.json when an external tool needs a standalone command descriptor; keep it minimal (name, entry, parent).
4) Generate Visual HTML Manuals (Default Requirement)
For every generated or updated markdown file:
- Skills & Workflows: Generate
README.html inside the skill/workflow folder (skills/<projectSlug>/README.html and skills/<projectSlug>/workflows/<workflowName>/README.html).
- References: Generate
<filename>.html in skills/<projectSlug>/reference/ matching the markdown filename (e.g. routing-matrix.md ➔ routing-matrix.html, role-contracts.md ➔ role-contracts.html).
- Runbooks: Generate
<filename>.html in docs/runbooks/ matching the markdown filename (e.g. agent-role-system.md ➔ agent-role-system.html).
- Format each HTML file as a single, self-contained visual manual using Tailwind CSS via CDN (
<script src="https://cdn.tailwindcss.com"></script>), dark mode (bg-zinc-950 text-zinc-100), glassmorphic cards (background: rgba(24, 24, 27, 0.65); backdrop-filter: blur(12px)), method/status badges, and code snippets.
- Update each source
.md file to include a reference link to its .html companion under ## References (e.g. [Interactive HTML View](./README.html) or [Visual HTML Version](./routing-matrix.html)).
5) Wire everything into the root doc
Update existingRootDoc to include:
- "Start here": link to
skills/<projectSlug>/SKILL.md and skills/<projectSlug>/README.html
- Under "Skills" (or similar), list:
- the project skill & visual manual link
- internal workflow skills & visual manual links
- runbook links & visual manual links
Do not duplicate workflow contents in the root doc.
6) Optional: deprecate legacy skill locations (wrapper)
If there are existing skills in other directories:
- Keep the file
- Add a top banner:
- "Moved: canonical workflow is at
skills/<projectSlug>/workflows/..."
- Leave the rest as a deep dive reference
7) Consistency verification (required)
Before declaring the scaffold done:
- Verify every link path exists (
.md and .html).
- Verify workflow ids are consistent:
projectSlug.workflow.* matches the file it lives in.
- Verify root doc points only to canonical locations.
- Verify
template.json commands[].name values exist under workflows/ and appear in Command routing + routing-matrix.md.
- Verify router-only behavior is documented in the project entry
SKILL.md (no undocumented flat aliases).
- Verify every
.md file has a matching .html visual manual companion.
Review gate (must pass)
- Root doc remains minimal and only links out.
- Each workflow has the full contract sections (Goal..References).
- Constraints are explicit and testable (no vague "best practices").
- Self-contained interactive HTML visual manuals (
README.html for skills/workflows, <filename>.html for references/runbooks) are generated for all files.
- Every source
.md file links to its .html companion under ## References.
- No duplication between root, project skill, and workflows.
- All links resolve (
.md and .html).
template.json is valid JSON and consistent with workflowsWanted.
- Command routing resolves every listed subcommand to exactly one workflow contract.
Notes
- This blueprint is intentionally stack-agnostic. For stack-specific rules (logging, ORM patterns, testing rules, network policies, IaC standards, and OS baselines), keep them in the project skill and link them from workflows.
- Installable skill contract with frontmatter: see
SKILL.md (name: workflow-blueprint).
References
1---2name: workflow-blueprint3description: Blueprint workflow to scaffold agent-oriented documentation with progressive disclosure and executable contracts.4---56## agentic-workflows.blueprint78### Goal910Provide a reusable blueprint workflow that scaffolds an "agentic workflows" documentation structure for any codebase, with progressive disclosure, executable contracts (workflows), and self-contained interactive visual HTML manuals (`README.html` / `<filename>.html`).1112### Scope1314- Applies to: any repository that wants an agent-oriented documentation system (orchestrator + workflow skills + references + runbooks + visual HTML manuals).15- Does not cover: implementing product features; this is scaffolding/documentation only.1617### Triggers1819- "Create agentic workflow structure"20- "Set up skills folder + workflows"21- "Make docs agent-friendly"22- "Refactor AGENTS.md into linked skills"23- "Generate HTML manuals for skills and runbooks"2425### Inputs2627- `projectSlug`: short identifier for the repo (e.g. `my-backend`)28- `baseBranch`: default integration branch (e.g. `develop`, `main`)29- `techStack`: short list (e.g. `NestJS + MikroORM + Graphile Worker`)30- `existingRootDoc`: root instruction file path (`AGENTS.md`, `CLAUDE.md`, etc.)31- `workflowsWanted`: list of workflow ids to scaffold (e.g. `modules`, `specs`, `document`, `network-engineering`, `infra-operations`, `iac`, `os-platform`, `html-manual`, `plan-to-blueprint`)32- `constraints`: project hard rules (e.g. "no emojis", "mock external boundaries only")33- `skillName` (optional): slash-invocation name for the project entry skill; defaults to `projectSlug` (lowercase, hyphens only)3435### Outputs3637Creates a minimal, navigable structure with matching HTML visual manuals:3839```40skills/<projectSlug>/41 SKILL.md42 README.html ← Interactive visual HTML manual for project skill43 template.json ← Declarative manifest (commands, entry)44 reference/45 routing-matrix.md46 routing-matrix.html ← Visual HTML version matching base filename47 role-contracts.md48 role-contracts.html ← Visual HTML version matching base filename49 hook-blueprint.md (optional)50 hook-blueprint.html (optional)51 workflows/52 <workflowName>/53 SKILL.md54 README.html ← Interactive visual HTML manual for workflow55 template.json (optional) ← Per-workflow manifest when useful56docs/runbooks/57 agent-role-system.md58 agent-role-system.html ← Visual HTML version matching runbook filename59 agent-role-hooks.md (optional)60 agent-role-hooks.html (optional)61 plan-to-blueprint.md (when workflow included)62 plan-to-blueprint.html (when workflow included)63```6465And updates the root doc (`AGENTS.md` or equivalent) to link to the new entrypoints.6667This blueprint folder carries bundled workflows (`embed-aihero-radioactive`, `mattpocock/wayfinder`, `mattpocock/grilling`, `mattpocock/domain-modeling`, `mattpocock/research`, `mattpocock/prototype`, `mattpocock/to-spec`, `radioactive`, `brainstorming`, `plan-writing`, `ui-ux-pro-max`, `remotion-video-motion`, `thermo-nuclear-code-quality-review`, `thermo-fix`, `html-manual`, `changelog-generator`, `document`, `review`, `changelog`, `linear`, `mcp-linear-planner`, `mcp-linear-sync`, `network-engineering`, `infra-operations`, `iac`, `os-platform`, `implementing-devsecops-security-scanning`, `scanning-containers-with-trivy-in-cicd`, `scanning-docker-images-with-trivy`, `scanning-kubernetes-manifests-with-kubesec`, `implementing-network-policies-for-kubernetes`, `implementing-rbac-hardening-for-kubernetes`, `implementing-pod-security-admission-controller`, `securing-aws-iam-permissions`, `securing-container-registry-images`, `securing-kubernetes-on-cloud`, `triaging-vulnerabilities-with-ssvc-framework`, `performing-kubernetes-cis-benchmark-with-kube-bench`, `analyzing-kubernetes-audit-logs`, `securing-github-actions-workflows`, `performing-container-image-hardening`, `remediating-s3-bucket-misconfiguration`, `performing-container-security-scanning-with-trivy`, `performing-vulnerability-scanning-with-nessus`, `implementing-syslog-centralization-with-rsyslog`, `c4-architecture`, `plan-to-blueprint`) to demonstrate full-lifecycle chained execution, Matt Pocock / AI Hero methodology embedding, plan-to-skill transformation, visual documentation generation, MCP integration patterns, and infrastructure operations coverage.6869It can also carry runbook examples under `runbooks/` to show operator-facing execution playbooks for those workflows.7071### Invariants (guardrails)7273- Progressive disclosure: root doc stays short; details live behind links.74- Executable contracts: every workflow is written as a contract the agent can follow:75 - `Goal`, `Scope`, `Triggers`, `Inputs`, `Invariants`, `Procedure`, `Outputs`, `Review gate`, `References`.76- Visual HTML Manuals (Default Behavior): Every skill, workflow contract, reference doc (`.md`), and runbook (`.md`) MUST have a corresponding self-contained interactive visual HTML document (`README.html` for skills/workflows, `<filename>.html` matching base name for references/runbooks) formatted with Tailwind CSS CDN, dark mode (`bg-zinc-950 text-zinc-100`), glassmorphic styling, and method/status badges. The source `.md` file MUST link to its `.html` companion under `## References`.77- No duplication: do not copy/paste long rules across files; link to the source of truth.78- Consistency: workflow ids and file paths must match exactly across all references.79- Minimal surface: only add the workflows actually requested.80- Source of truth: `SKILL.md` is authoritative; `template.json` is a complementary declarative layer for agents/tools that expose command interfaces.81- Command routing: router-only — users invoke `/<skillName> <cmd>`; the entry skill resolves `cmd` to `workflows/<cmd>/SKILL.md` and loads only that contract.82- Manifest sync: every command in `template.json` must map to an existing workflow folder and match `routing-matrix.md`.8384### Procedure8586#### 1) Create the project entry skill8788Create `skills/<projectSlug>/SKILL.md` as the global entrypoint:8990- A short description of what the skill is for.91- An "orchestrator" section that explains:92 - how to classify a task93 - how to select one workflow94 - how to close (validation gate if applicable)95- A **Command routing** section (router-only):96 - invocation pattern: `/<skillName> <cmd>` (e.g. `/my-backend document`)97 - map each `cmd` in `workflowsWanted` to `workflows/<cmd>/SKILL.md`98 - if the agent does not parse subcommands, read `cmd` from the user message and load the mapped workflow contract99 - do not create flat alias skills unless explicitly requested100- A list of internal workflow helpers:101 - `workflows/<name>/SKILL.md` links102- Project constraints and hard rules (short bullets).103104Create `skills/<projectSlug>/template.json` as the declarative manifest:105106```json107{108 "name": "<skillName>",109 "version": "1.0.0",110 "entry": "SKILL.md",111 "routing": "router-only",112 "commands": [113 {114 "name": "<workflowName>",115 "description": "Short trigger description",116 "skill": "workflows/<workflowName>/SKILL.md"117 }118 ]119}120```121122- Include one `commands[]` entry per item in `workflowsWanted`.123- Keep `name` aligned with `skillName` (folder may remain `projectSlug`).124125#### 2) Create references (progressive disclosure)126127In `skills/<projectSlug>/reference/`, create:128129- `routing-matrix.md`: task category -> workflow mapping; include slash form `/<skillName> <cmd>` alongside intent triggers.130- `role-contracts.md`: roles, boundaries, handoffs.131- Optional `hook-blueprint.md`: opt-in automation checklist.132133Keep each file self-contained and linkable.134135#### 3) Scaffold each workflow as an executable contract136137For each workflow in `workflowsWanted`, create:138139`skills/<projectSlug>/workflows/<workflowName>/SKILL.md` with:140141- `id`: `"<projectSlug>.workflow.<workflowName>"` (as the first header line)142- `Goal`: 1 sentence143- `Scope`: applies/does not cover144- `Triggers`: file triggers + intent triggers145- `Inputs`: baseBranch, diff scope, required config146- `Invariants`: the project's hard rules + workflow-specific rules147- `Procedure`: deterministic steps (evidence-driven; use git diff when documenting)148- `Outputs`: what files/notes/checkpoints must be produced149- `Review gate`: checklist with pass/fail criteria150- `References`: links back to `skills/<projectSlug>/SKILL.md` and any deep dives151152- **Special Scaffold Case — `embed-aihero-radioactive`**: When requested, adapt `skills/<projectSlug>/workflows/radioactive/SKILL.md` to run the 14-phase lifecycle embedding Matt Pocock's skills, and scaffold `skills/<projectSlug>/workflows/mattpocock/` containing `wayfinder`, `grilling`, `domain-modeling`, `research`, `prototype`, and `to-spec`. Ensure Phase 1 ALWAYS executes the primary project skill (`skills/<projectSlug>/SKILL.md`) FIRST for request classification and constraint extraction before executing `/wayfinder`.153154Optionally, for each workflow, add `workflows/<workflowName>/template.json` when an external tool needs a standalone command descriptor; keep it minimal (`name`, `entry`, `parent`).155156#### 4) Generate Visual HTML Manuals (Default Requirement)157158For every generated or updated markdown file:159160- **Skills & Workflows:** Generate `README.html` inside the skill/workflow folder (`skills/<projectSlug>/README.html` and `skills/<projectSlug>/workflows/<workflowName>/README.html`).161- **References:** Generate `<filename>.html` in `skills/<projectSlug>/reference/` matching the markdown filename (e.g. `routing-matrix.md` ➔ `routing-matrix.html`, `role-contracts.md` ➔ `role-contracts.html`).162- **Runbooks:** Generate `<filename>.html` in `docs/runbooks/` matching the markdown filename (e.g. `agent-role-system.md` ➔ `agent-role-system.html`).163- Format each HTML file as a single, self-contained visual manual using Tailwind CSS via CDN (`<script src="https://cdn.tailwindcss.com"></script>`), dark mode (`bg-zinc-950 text-zinc-100`), glassmorphic cards (`background: rgba(24, 24, 27, 0.65); backdrop-filter: blur(12px)`), method/status badges, and code snippets.164- Update each source `.md` file to include a reference link to its `.html` companion under `## References` (e.g. `[Interactive HTML View](./README.html)` or `[Visual HTML Version](./routing-matrix.html)`).165166#### 5) Wire everything into the root doc167168Update `existingRootDoc` to include:169170- "Start here": link to `skills/<projectSlug>/SKILL.md` and `skills/<projectSlug>/README.html`171- Under "Skills" (or similar), list:172 - the project skill & visual manual link173 - internal workflow skills & visual manual links174 - runbook links & visual manual links175176Do not duplicate workflow contents in the root doc.177178#### 6) Optional: deprecate legacy skill locations (wrapper)179180If there are existing skills in other directories:181182- Keep the file183- Add a top banner:184 - "Moved: canonical workflow is at `skills/<projectSlug>/workflows/...`"185- Leave the rest as a deep dive reference186187#### 7) Consistency verification (required)188189Before declaring the scaffold done:190191- Verify every link path exists (`.md` and `.html`).192- Verify workflow ids are consistent:193 - `projectSlug.workflow.*` matches the file it lives in.194- Verify root doc points only to canonical locations.195- Verify `template.json` `commands[].name` values exist under `workflows/` and appear in Command routing + `routing-matrix.md`.196- Verify router-only behavior is documented in the project entry `SKILL.md` (no undocumented flat aliases).197- Verify every `.md` file has a matching `.html` visual manual companion.198199### Review gate (must pass)200201- Root doc remains minimal and only links out.202- Each workflow has the full contract sections (Goal..References).203- Constraints are explicit and testable (no vague "best practices").204- Self-contained interactive HTML visual manuals (`README.html` for skills/workflows, `<filename>.html` for references/runbooks) are generated for all files.205- Every source `.md` file links to its `.html` companion under `## References`.206- No duplication between root, project skill, and workflows.207- All links resolve (`.md` and `.html`).208- `template.json` is valid JSON and consistent with `workflowsWanted`.209- Command routing resolves every listed subcommand to exactly one workflow contract.210211### Notes212213- This blueprint is intentionally stack-agnostic. For stack-specific rules (logging, ORM patterns, testing rules, network policies, IaC standards, and OS baselines), keep them in the project skill and link them from workflows.214- Installable skill contract with frontmatter: see `SKILL.md` (`name: workflow-blueprint`).215216### References217218- [Interactive HTML View](./README.html)