Update Workflow Explorer
Audit workflow-explorer.html and sync its flowchart data with the actual skill/agent source files.
Step 0: Determine Scope
0a: Check for explicit context
Check $ARGUMENTS for user-provided context about what changed.
- Context given (e.g. "I just updated the implementation skill") → narrow to affected flowchart keys using the source mapping below
- Ambiguous → ASK user to confirm scope before proceeding
If explicit context was given, skip 0b and proceed to Step 1 with the narrowed scope.
0b: Detect git context
If no explicit context was given, check the git state:
- Branch check — run
git branch --show-current. If not on main/master, note the feature branch name.
- Changed files — run
git diff main --name-only (branch changes) and git diff --name-only + git diff --cached --name-only (uncommitted/staged changes). Combine into a single list of changed files.
- Cross-reference — match changed files against the source mapping below. Identify which flowchart keys are affected.
If changed source files are detected, present findings to the user:
I'm on branch {branch} with changes to these source files:
{file} → flowchart key(s): {key}
- ...
Options:
- Scope to these changes — audit only the affected flowchart keys (recommended if this branch represents all recent work)
- Full audit — audit all flowchart keys regardless of git state
Wait for user confirmation before proceeding.
If no changed source files are detected (on main with clean tree), proceed with a full audit.
Step 1: Read Source Files
For each in-scope flowchart key, read its source file(s) and extract the logical flow: steps, gates, decisions, loops, conditional branches, outputs.
Source Mapping
| Key |
Source Files |
research |
skills/start-research/SKILL.md |
discussion |
skills/start-discussion/SKILL.md |
specification |
skills/start-specification/SKILL.md |
planning |
skills/start-planning/SKILL.md |
implementation |
skills/start-implementation/SKILL.md |
review |
skills/start-review/SKILL.md |
skill-research |
skills/workflow-research-process/SKILL.md |
skill-discussion |
skills/workflow-discussion-process/SKILL.md |
skill-specification |
skills/workflow-specification-process/SKILL.md + skills/workflow-specification-process/references/*.md |
skill-planning |
skills/workflow-planning-process/SKILL.md + skills/workflow-planning-process/references/*.md |
skill-implementation |
skills/workflow-implementation-process/SKILL.md + skills/workflow-implementation-process/references/*.md |
skill-review |
skills/workflow-review-process/SKILL.md + agents/workflow-review-task-verifier.md |
start-feature |
skills/start-feature/SKILL.md |
workflow-migrate |
skills/workflow-migrate/SKILL.md |
workflow-planning-phase-designer |
agents/workflow-planning-phase-designer.md |
workflow-planning-task-designer |
agents/workflow-planning-task-designer.md |
workflow-planning-task-author |
agents/workflow-planning-task-author.md |
workflow-planning-dependency-grapher |
agents/workflow-planning-dependency-grapher.md |
workflow-implementation-task-executor |
agents/workflow-implementation-task-executor.md |
workflow-implementation-task-reviewer |
agents/workflow-implementation-task-reviewer.md |
workflow-review-task-verifier |
agents/workflow-review-task-verifier.md |
Use parallel reads (Task tool with Explore agents or multiple Read calls) to gather sources efficiently.
Step 2: Read Current Flowchart Data
Read workflow-explorer.html and extract the 6 data structures for each in-scope key:
phases[key] — metadata (steps, desc, scenarios, detailHTML)
FLOWCHARTS[key] — nodes + connections
FLOWCHART_DESCS[key] — summary, body, meta
OVERVIEW_* — only if phases were added/removed/renamed
SOURCE_MAP[key] — repo-relative path to source file (update when files are renamed)
SKILL_NEXT_PHASE[key] — next-phase navigation for skill flowcharts
Step 3: Compare and Report
For each key, compare source logic against current flowchart data. Report per key:
- MATCH — no drift detected
- DRIFT — specific differences (added/removed steps, renamed concepts, changed gates, altered flow)
- MISSING — flowchart key exists in sources but not in explorer (or vice versa)
Present findings to the user and STOP. Wait for confirmation of which changes to apply before proceeding.
Step 4: Apply Updates
For each confirmed change, update the following in workflow-explorer.html:
FLOWCHARTS[key].nodes and .connections
FLOWCHART_DESCS[key] summary, body, meta
phases[key] desc, steps count, detailHTML (if affected)
OVERVIEW_* (only if phases added/removed)
Data Conventions
Follow the conventions documented in the file header (lines 1-41):
Node shapes:
pill — start/end nodes (w:150, h:40)
diamond — decision/routing nodes (w:110-130, h:110-130)
stop — hard-cornered terminal nodes for STOP/BLOCK (w:150-180, h:40, rx:3)
- rect (default) — action step nodes (w:180-200, h:44)
Connection types:
yes — green (positive branch from diamond)
no — red (negative branch from diamond)
transition — orange dashed (phase/context transitions)
backloop — gray dashed (retry/loop-back flows)
Color conventions (type-based, NOT phase-based — use CSS vars):
var(--action) sky blue — primary work steps (validate, extract, etc.)
var(--agent) cyan — agent invocation nodes (with optional skillLink to agent flowchart)
var(--text-dim) gray — utility/support steps (read existing, load format, etc.)
var(--ask) purple — user-interaction nodes
var(--routing) amber — decision diamonds (all diamonds use this)
var(--gate) red — STOP/BLOCK terminal nodes (hard-cornered stop shape), cache refresh
var(--discovery) green — discovery script execution
var(--skill) orange — skill invocation pills (with skillLink)
var(--next) blue — next-phase navigation nodes (rect, command color, same shape as agent nodes)
var(--accent) blue — entry points, migrations, git commits
var(--{phase}) phase color — END output artifacts only (keeps phase identity)
Node properties:
skillLink — on nodes that should navigate to a skill or agent flowchart on click
desc — tooltip text describing what the node does
Next-phase nodes (skill flowcharts only):
- Every skill flowchart except
skill-review has a next rect node at the end
- Node:
{ id: 'next', label: 'Invoke /start-{phase}', desc: '...', w: 200, h: 44, color: 'var(--next)', bg: 'var(--next-bg)', skillLink: NEXT_PHASE_KEY }
- Connection:
{ from: 'end', to: 'next', type: 'transition' }
- All next nodes use consistent command blue (
var(--next)) regardless of target phase
SKILL_NEXT_PHASE mapping must stay in sync
SOURCE_MAP maintenance:
- When source files are renamed or new flowchart keys are added, update
SOURCE_MAP accordingly
SOURCE_MAP maps flowchart keys to repo-relative file paths for the markdown viewer
Step 5: Validate and Verify
After applying updates:
- Check all connection
from/to values reference valid node IDs in the same flowchart
- Check for orphaned nodes (not referenced by any connection as source or target, excluding
start nodes)
- Remind user to open
workflow-explorer.html in browser for visual verification
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: update-workflow-explorer3description: Audit and update workflow-explorer.html flowcharts to match the current codebase logic. Reads all command, skill, and agent source files, compares against the 4 data structures in the HTML file, reports drift, and applies updates. Use when workflow logic has changed and the explorer needs syncing. Use when this capability is needed.4---56# Update Workflow Explorer78Audit `workflow-explorer.html` and sync its flowchart data with the actual skill/agent source files.910## Step 0: Determine Scope1112### 0a: Check for explicit context1314Check `$ARGUMENTS` for user-provided context about what changed.1516- **Context given** (e.g. "I just updated the implementation skill") → narrow to affected flowchart keys using the source mapping below17- **Ambiguous** → ASK user to confirm scope before proceeding1819If explicit context was given, skip 0b and proceed to Step 1 with the narrowed scope.2021### 0b: Detect git context2223If no explicit context was given, check the git state:24251. **Branch check** — run `git branch --show-current`. If not on `main`/`master`, note the feature branch name.262. **Changed files** — run `git diff main --name-only` (branch changes) and `git diff --name-only` + `git diff --cached --name-only` (uncommitted/staged changes). Combine into a single list of changed files.273. **Cross-reference** — match changed files against the source mapping below. Identify which flowchart keys are affected.2829If changed source files are detected, present findings to the user:3031> I'm on branch `{branch}` with changes to these source files:32> - `{file}` → flowchart key(s): `{key}`33> - ...34>35> **Options:**36> 1. **Scope to these changes** — audit only the affected flowchart keys (recommended if this branch represents all recent work)37> 2. **Full audit** — audit all flowchart keys regardless of git state3839Wait for user confirmation before proceeding.4041If no changed source files are detected (on main with clean tree), proceed with a full audit.4243## Step 1: Read Source Files4445For each in-scope flowchart key, read its source file(s) and extract the logical flow: steps, gates, decisions, loops, conditional branches, outputs.4647### Source Mapping4849| Key | Source Files |50|---|---|51| `research` | `skills/start-research/SKILL.md` |52| `discussion` | `skills/start-discussion/SKILL.md` |53| `specification` | `skills/start-specification/SKILL.md` |54| `planning` | `skills/start-planning/SKILL.md` |55| `implementation` | `skills/start-implementation/SKILL.md` |56| `review` | `skills/start-review/SKILL.md` |57| `skill-research` | `skills/workflow-research-process/SKILL.md` |58| `skill-discussion` | `skills/workflow-discussion-process/SKILL.md` |59| `skill-specification` | `skills/workflow-specification-process/SKILL.md` + `skills/workflow-specification-process/references/*.md` |60| `skill-planning` | `skills/workflow-planning-process/SKILL.md` + `skills/workflow-planning-process/references/*.md` |61| `skill-implementation` | `skills/workflow-implementation-process/SKILL.md` + `skills/workflow-implementation-process/references/*.md` |62| `skill-review` | `skills/workflow-review-process/SKILL.md` + `agents/workflow-review-task-verifier.md` |63| `start-feature` | `skills/start-feature/SKILL.md` |64| `workflow-migrate` | `skills/workflow-migrate/SKILL.md` |65| `workflow-planning-phase-designer` | `agents/workflow-planning-phase-designer.md` |66| `workflow-planning-task-designer` | `agents/workflow-planning-task-designer.md` |67| `workflow-planning-task-author` | `agents/workflow-planning-task-author.md` |68| `workflow-planning-dependency-grapher` | `agents/workflow-planning-dependency-grapher.md` |69| `workflow-implementation-task-executor` | `agents/workflow-implementation-task-executor.md` |70| `workflow-implementation-task-reviewer` | `agents/workflow-implementation-task-reviewer.md` |71| `workflow-review-task-verifier` | `agents/workflow-review-task-verifier.md` |7273Use parallel reads (Task tool with Explore agents or multiple Read calls) to gather sources efficiently.7475## Step 2: Read Current Flowchart Data7677Read `workflow-explorer.html` and extract the 6 data structures for each in-scope key:78791. **`phases[key]`** — metadata (steps, desc, scenarios, detailHTML)802. **`FLOWCHARTS[key]`** — nodes + connections813. **`FLOWCHART_DESCS[key]`** — summary, body, meta824. **`OVERVIEW_*`** — only if phases were added/removed/renamed835. **`SOURCE_MAP[key]`** — repo-relative path to source file (update when files are renamed)846. **`SKILL_NEXT_PHASE[key]`** — next-phase navigation for skill flowcharts8586## Step 3: Compare and Report8788For each key, compare source logic against current flowchart data. Report per key:8990- **MATCH** — no drift detected91- **DRIFT** — specific differences (added/removed steps, renamed concepts, changed gates, altered flow)92- **MISSING** — flowchart key exists in sources but not in explorer (or vice versa)9394**Present findings to the user and STOP. Wait for confirmation of which changes to apply before proceeding.**9596## Step 4: Apply Updates9798For each confirmed change, update the following in `workflow-explorer.html`:99100- `FLOWCHARTS[key].nodes` and `.connections`101- `FLOWCHART_DESCS[key]` summary, body, meta102- `phases[key]` desc, steps count, detailHTML (if affected)103- `OVERVIEW_*` (only if phases added/removed)104105### Data Conventions106107Follow the conventions documented in the file header (lines 1-41):108109**Node shapes:**110- `pill` — start/end nodes (w:150, h:40)111- `diamond` — decision/routing nodes (w:110-130, h:110-130)112- `stop` — hard-cornered terminal nodes for STOP/BLOCK (w:150-180, h:40, rx:3)113- rect (default) — action step nodes (w:180-200, h:44)114115**Connection types:**116- `yes` — green (positive branch from diamond)117- `no` — red (negative branch from diamond)118- `transition` — orange dashed (phase/context transitions)119- `backloop` — gray dashed (retry/loop-back flows)120121**Color conventions (type-based, NOT phase-based — use CSS vars):**122- `var(--action)` sky blue — primary work steps (validate, extract, etc.)123- `var(--agent)` cyan — agent invocation nodes (with optional `skillLink` to agent flowchart)124- `var(--text-dim)` gray — utility/support steps (read existing, load format, etc.)125- `var(--ask)` purple — user-interaction nodes126- `var(--routing)` amber — decision diamonds (all diamonds use this)127- `var(--gate)` red — STOP/BLOCK terminal nodes (hard-cornered `stop` shape), cache refresh128- `var(--discovery)` green — discovery script execution129- `var(--skill)` orange — skill invocation pills (with `skillLink`)130- `var(--next)` blue — next-phase navigation nodes (rect, command color, same shape as agent nodes)131- `var(--accent)` blue — entry points, migrations, git commits132- `var(--{phase})` phase color — END output artifacts only (keeps phase identity)133134**Node properties:**135- `skillLink` — on nodes that should navigate to a skill or agent flowchart on click136- `desc` — tooltip text describing what the node does137138**Next-phase nodes (skill flowcharts only):**139- Every skill flowchart except `skill-review` has a `next` rect node at the end140- Node: `{ id: 'next', label: 'Invoke /start-{phase}', desc: '...', w: 200, h: 44, color: 'var(--next)', bg: 'var(--next-bg)', skillLink: NEXT_PHASE_KEY }`141- Connection: `{ from: 'end', to: 'next', type: 'transition' }`142- All next nodes use consistent command blue (`var(--next)`) regardless of target phase143- `SKILL_NEXT_PHASE` mapping must stay in sync144145**SOURCE_MAP maintenance:**146- When source files are renamed or new flowchart keys are added, update `SOURCE_MAP` accordingly147- `SOURCE_MAP` maps flowchart keys to repo-relative file paths for the markdown viewer148149## Step 5: Validate and Verify150151After applying updates:1521531. Check all connection `from`/`to` values reference valid node IDs in the same flowchart1542. Check for orphaned nodes (not referenced by any connection as source or target, excluding `start` nodes)1553. Remind user to open `workflow-explorer.html` in browser for visual verification156157---158> Converted and distributed by [TomeVault](https://tomevault.io/claim/leeovery) — claim your Tome and manage your conversions.159<!-- tomevault:4.0:skill_md:2026-04-11 -->