agentic-workflows-blueprint.workflow.embed-aihero-radioactive
Goal
Adapt and scaffold a project's radioactive workflow (skills/<projectSlug>/workflows/radioactive/SKILL.md) into a 14-phase development lifecycle that embeds Matt Pocock's skills (mattpocock/wayfinder, mattpocock/grilling, mattpocock/domain-modeling, mattpocock/research, mattpocock/prototype, mattpocock/to-spec), ensuring Phase 1 ALWAYS executes the primary project skill first before running /wayfinder.
Scope
- Applies to: Scaffolding or executing a project's
radioactiveworkflow for complex features, domain-driven refactors, or cross-stack implementations requiring deep discovery, domain modeling, and quality-gated delivery. - Does not cover: Single-file trivial bug fixes, pure documentation edits (use
document), or isolated test additions.
Triggers
- "Run embed-aihero-radioactive lifecycle"
- "/radioactive [feature description]" (when scaffolded with AI Hero embedding)
- "/embed-aihero-radioactive [feature description]"
- "Adapt radioactive workflow with Matt Pocock skills"
Inputs
featureDescription: Short text describing the feature or task (optional; if missing, triggers Phase 1 discovery).projectSlug: Short identifier for the repo (e.g.,my-backend,apix).baseBranch: Target integration branch (default:mainordevelop).techStack: Core stack details (e.g.,NestJS + MikroORM + PostgreSQL,Rails + React).existingRootDoc: Main instruction file (AGENTS.md,CLAUDE.md, etc.).uiInvolved: Boolean flag indicating if frontend/UI changes are required.needsPrototype: Boolean flag indicating if a proof-of-concept prototype spike is required.maxFixAttempts: Maximum iterations for the Phase 12 fix loop (default: 3).
Invariants (Guardrails)
- Phase 1 Execution Order: Phase 1 MUST ALWAYS execute the primary project entry skill (
skills/<projectSlug>/SKILL.mdorAGENTS.md) FIRST to classify the request and extract hard rules, and THEN execute/wayfinderfor codebase mapping and intent framing. - Sequential Phase Pipeline: All 14 phases must execute in exact numerical order. No phase skipping.
- UUIDv7 Primary Key Mandatory Rule: Every entity primary key or unique resource identifier MUST use UUIDv7 for time-ordered sorting and distributed uniqueness.
- Socratic Grilling Gate: Phase 2 must present grilling questions and wait for explicit user response/confirmation before Phase 3 domain modeling.
- Spec Approval Gate: Phase 7 must generate a structured task specification at
docs/tasks/task.<reference>.mdand obtain explicit user approval before Phase 8/9 execution. - Executable Blueprint Contract: Phase 8 must scaffold a reusable workflow contract at
skills/<projectSlug>/workflows/<feature-slug>/SKILL.md. - Pass/Fail Quality Gate: Phase 10 specs must pass 100%. Phase 12 fix loop must resolve all 🔴 (Blockers) and 🟠 (High) findings before declaration of completion.
- Institutional Memory: Phase 13 must capture newly discovered patterns into workflow contracts and update project documentation.
- Operational Safety for Infra Tasks: When the feature affects network, infrastructure, IaC, or OS baselines, execution must include explicit rollback, change window alignment, and post-change health validation.
Procedure
Phase 1 — CLASSIFY & WAYFIND → Project Skill FIRST ➔ /mattpocock/wayfinder
Phase 2 — GRILLING → /mattpocock/grilling (Deep Socratic interrogation & decision log)
Phase 3 — DOMAIN MODELING → /mattpocock/domain-modeling (Entities, UUIDv7 keys, state machines)
Phase 4 — TECHNICAL RESEARCH → /mattpocock/research (Technical spikes, dependency & API investigation)
Phase 5 — PROTOTYPE / SPIKE → /mattpocock/prototype (Conditional: POC validation for high-risk logic)
Phase 6 — UX DESIGN → /ui-ux-pro-max (Conditional: if UI involved)
Phase 7 — TO-SPEC → /mattpocock/to-spec (Synthesize findings into docs/tasks/task.<reference>.md)
Phase 8 — BLUEPRINT CONTRACT → /workflow-blueprint (Scaffold reusable feature contract)
Phase 9 — EXECUTE → Implement tasks sequentially with evidence-based edits
Phase 10 — TESTS → Run project specs/tests (100% pass required)
Phase 11 — REVIEW → /thermo-nuclear-code-quality-review or /review
Phase 12 — FIX LOOP → /thermo-fix × up to 3 (resolve 🔴→🟠, re-verify build)
Phase 13 — BLUEPRINTS UPDATE → /workflow-blueprint (Update skills & institutional memory)
Phase 14 — CHANGELOG → /changelog-generator or /changelog (Release notes)
Phase 1 — CLASSIFY & WAYFIND (Primary Project Skill ➔ /wayfinder)
- Step 1: Primary Project Skill Classification:
- Load the primary project entry skill (
skills/<projectSlug>/SKILL.md,.agents/skills/<projectSlug>/SKILL.md, orAGENTS.md) FIRST. - Classify the user request against the project's routing matrix and extract project-wide hard constraints, tech stack details, and domain boundaries.
- If NO primary project skill exists, trigger
/workflow-blueprintinit (orplan-to-blueprint) to scaffold baseline project context before proceeding.
- Load the primary project entry skill (
- Step 2: Codebase Orientation with
/wayfinder:- Load the
wayfinderskill (skills/<projectSlug>/workflows/mattpocock/wayfinder/SKILL.mdorworkflows/mattpocock/wayfinder/SKILL.md). - Map codebase entry points, data flows, route handlers, models, and subsystem boundaries relevant to the classified request.
- Search repository for relevant controllers, schemas, database models, background jobs, and existing test coverage.
- Identify existing architectural patterns, legacy constraints, and critical unknowns to feed Phase 2 grilling.
- Load the
- Output a 1-paragraph context summary combining the primary project skill rules and the
wayfinder.mdorientation brief.
Phase 2 — GRILLING with /mattpocock/grilling
- Load
grillingskill and parse thewayfinder.mdbrief and project rules. - Formulate 3 to 7 strategic questions covering Scope, Edge Cases, Data Contracts (UUIDv7 keys), and Performance/Security rules.
- Present questions with trade-offs (Pros, Cons, Recommended Default).
- Wait for explicit user response. Do NOT proceed until user answers are recorded into a binding Decision Log (
decision-log.md).
Phase 3 — DOMAIN MODELING with /mattpocock/domain-modeling
- Load
domain-modelingskill and reviewdecision-log.md. - Define Aggregate Roots, Entities, Value Objects, and field types.
- Enforce UUIDv7 primary keys (
id: uuidv7) across all domain models. - Model state transitions (using Mermaid
stateDiagram-v2) and entity relationships (using MermaiderDiagram). - Output
domain-model.md.
Phase 4 — TECHNICAL RESEARCH with /mattpocock/research
- Load
researchskill to address technical unknowns or API contract dependencies. - Execute temporary spikes in
scratch/directory to measure performance or test library behavior. - Evaluate third-party dependencies, security surface, and API constraints.
- Output
research-spike.md.
Phase 5 — PROTOTYPE / SPIKE with /mattpocock/prototype (Conditional)
- Check condition: Run if
needsPrototypeis true or if high-risk UI/algorithmic logic was identified. - Load
prototypeskill to build a lightweight proof-of-concept (POC) spike. - Perform interactive smoke tests or screenshot verification to test core hypotheses.
- Record retrospective learnings in
prototype-report.md.
Phase 6 — UX DESIGN with /ui-ux-pro-max (Conditional)
- Check condition: Run if
uiInvolvedis true (or feature touches views, templates, or visual components). - Load
ui-ux-pro-maxskill. - Generate design tokens (color palette, CSS variables, typography) and responsive layout rules (using mobile-first
min-*breakpoints). - Append UX design rules to
walkthrough.md.
Phase 7 — TO-SPEC with /mattpocock/to-spec
- Load
to-specskill and consolidate all upstream evidence (wayfinder.md,decision-log.md,domain-model.md,research-spike.md,prototype-report.md). - Produce a structured task specification at
docs/tasks/task.<reference>.mdfeaturing executive context, UUIDv7 domain models, numbered task steps with target file paths, verification commands, and rollback playbooks. - Present
docs/tasks/task.<reference>.mdto user and gate on explicit user approval.
Phase 8 — BLUEPRINT CONTRACT with /workflow-blueprint
- Load
workflow-blueprint(orplan-to-blueprint). - Transform approved task specification into an executable workflow contract saved at
skills/<projectSlug>/workflows/<feature-slug>/SKILL.md. - Wire the new feature workflow into the project's routing matrix.
Phase 9 — EXECUTE
- Execute tasks in
docs/tasks/task.<reference>.mdsequentially. - Read files before editing; apply minimal, targeted edits.
- Track progress by marking
[/](in progress) and[x](completed) indocs/tasks/task.<reference>.md. - For infra-impacting tasks, execute pre-change checks and capture rollback checkpoints before mutating state.
Phase 10 — TESTS
- Run project test runner (e.g.
npm run test,rspec-rails,vitest,pytest). - Write unit/integration/system tests for all newly created or modified logic.
- Iterate until 100% of specs pass.
- For operational tasks, run infrastructure checks (connectivity, policy checks, service health, drift validation) and archive outputs.
Phase 11 — REVIEW with Code Quality Engine
- Run code review (
thermo-nuclear-code-quality-revieworreviewskill) against all files modified in the session. - Output a severity-ranked findings table:
- 🔴 Blocker: Must fix before release.
- 🟠 High: Fix in current cycle.
- 🟡 Medium: Fix if trivial or record.
- 🟢 Low: Informational.
- Append findings table to
walkthrough.mdartifact.
Phase 12 — FIX LOOP (up to maxFixAttempts ×)
- Iterate up to
maxFixAttemptstimes:- Apply fixes for 🔴 Blocker and 🟠 High findings (
thermo-fix). - Run build verification command (
bun run build,npm run test, etc.). - Re-review modified files.
- Stop loop early if zero 🔴 / 🟠 findings remain (verdict: APPROVED).
- Apply fixes for 🔴 Blocker and 🟠 High findings (
- Update
docs/tasks/task.<reference>.mdandwalkthrough.mdwith final verdict. - Create a clean git commit on the local working branch.
Phase 13 — BLUEPRINTS Update
- Review discoveries made during execution.
- Update existing project skills with new patterns, constraints, UUIDv7 schema details, or routing entries.
- Scaffold new internal workflow blueprints if repeatable operations were introduced.
- Update root doc (
AGENTS.md) if core system rules changed.
Phase 14 — CHANGELOG Generation
- Load
changelog-generator(orchangelogskill). - Analyze session git commits against base branch.
- Generate customer-facing release notes categorized by Features, Fixes, and Improvements.
- Append changelog entry to
walkthrough.md.
Scaffolding Target Projects
When workflow-blueprint scaffolds a project with embed-aihero-radioactive:
- It creates/adapts
skills/<projectSlug>/workflows/radioactive/SKILL.mdusing this 14-phase embedded contract. - It copies/scaffolds Matt Pocock's skills into
skills/<projectSlug>/workflows/mattpocock/(wayfinder,grilling,domain-modeling,research,prototype,to-spec). - It registers
radioactiveandmattpocock/*subcommands inskills/<projectSlug>/template.jsonandreference/routing-matrix.md.
Outputs
- Adapted
skills/<projectSlug>/workflows/radioactive/SKILL.mdcontract. - Scaffolded
skills/<projectSlug>/workflows/mattpocock/skills. wayfinder.md: Orientation brief.decision-log.md: Grilling decision log.domain-model.md: Domain entity & state machine specification (with UUIDv7 keys).research-spike.md/prototype-report.md(when triggered).docs/tasks/task.<reference>.md: Approved execution plan.walkthrough.md: Decision log, UX specs, review tables, fix history, and user changelog.- Clean git commit on local branch.
Review gate
- Primary project skill loaded FIRST in Phase 1 before running
/wayfinder. - Phase 1 Wayfinder orientation brief (
wayfinder.md) created. - Phase 2 Socratic grilling questions answered by user and recorded in
decision-log.md. - Phase 3 Domain model defined with UUIDv7 primary keys and Mermaid state/ER diagrams.
- Phase 4 Technical research spike completed (if technical risks existed).
- Phase 5 Prototype POC validated (if prototype requested).
- Phase 6 UX design system generated (if UI feature).
- Phase 7 Technical specification (
docs/tasks/task.<reference>.md) approved by user. - Phase 8 Workflow contract created & registered in project routing matrix.
- Phase 9 Sequential execution complete.
- Phase 10 All test suites passing 100%.
- Phase 12 Zero Blocker (🔴) or High (🟠) findings remaining.
- Phase 13 Skills/blueprints updated with new knowledge.
- Phase 14 User-facing changelog generated.
References
../../SKILL.md../mattpocock/wayfinder/SKILL.md../mattpocock/grilling/SKILL.md../mattpocock/domain-modeling/SKILL.md../mattpocock/research/SKILL.md../mattpocock/prototype/SKILL.md../mattpocock/to-spec/SKILL.md../radioactive/SKILL.md- Interactive HTML View