ai-engineering-cookbook

Design — Interactive Cookbook Explorer

An interactive, single-page visual companion to this cookbook. Surfaces the two-phase SDLC, the five principles, the three workflow paths, the TDD loop, the multi-agent pod, the verification gates, the twenty curated extensions, and the learning flywheel — all linked to the source files in this repo (docs/, .ai/config/, postmortems/).

Files

File Purpose
cookbook-explorer.html Generated bundle — a single self-contained HTML file built from src/ by scripts/build-explorer.js. Open it directly in any browser, host on GitHub Pages, or attach to a release. Do not hand-edit; rebuild from source.
src/ Editable source — split into cookbook-data.jsx (content), cookbook-sections.jsx (masthead, SDLC diagram, principles, walkthrough, TDD loop), cookbook-app.jsx (pod, gates, extensions, flywheel, app shell), tweaks-panel.jsx (in-page controls), and the host HTML.

How to view

Open the bundle with your system’s default browser. The command differs per platform:

# macOS
open design/cookbook-explorer.html

# Linux
xdg-open design/cookbook-explorer.html
# Windows (PowerShell) — note the backslashes in Windows paths
Invoke-Item design\cookbook-explorer.html

How to publish on GitHub Pages

  1. Settings → Pages → Source: Deploy from a branch
  2. Branch: main, folder: / (root) (or wherever you place this folder)
  3. Link directly to /<repo>/design/cookbook-explorer.html

How to edit

  1. Edit any file in design/src/ (the host HTML or one of the four .jsx files).
  2. Rebuild the bundle:

    npm run build:explorer
    
  3. Commit both the src/ change and the regenerated cookbook-explorer.html.

scripts/build-explorer.js is dependency-free (plain Node) and deterministic: it inlines the four JSX files into the host HTML in document order. React and Babel are loaded from their CDN, exactly as the host page declares them — so the bundle needs network access on first load (it is not vendored offline).

CI keeps source ↔ bundle in sync. The Build Explorer job rebuilds the bundle on every PR and fails if the committed cookbook-explorer.html differs from a fresh build (npm run check:explorer). If that check fails, run npm run build:explorer and commit the result.

What’s in the explorer

Section Source
Two-phase SDLC diagram README.md (visual workflow)
Five principles README.md + CLAUDE.md
Greenfield / Brownfield / Bug fix walkthroughs docs/greenfield.md, docs/brownfield.md, CLAUDE.md
TDD loop (RED → GREEN → REFACTOR) CLAUDE.md §3, docs/greenfield.md
Multi-agent pod (Planner/Orchestrator/Coder/Reviewer/Verifier) .ai/config/AGENT_PROFILE_ROLES.md
Four verification gates .ai/config/VERIFICATION_AND_EVAL_GUIDE.md
Twenty curated extensions docs/extensions.md
Continuous improvement flywheel docs/governance.md
Sample postmortem postmortems/POSTMORTEM_AND_LEARNING_LOG.md

Tweaks

The explorer ships with an in-page Tweaks panel (toggle from the toolbar) for: