@tgoodington/intuition 10.0.0 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/skills/intuition-build/SKILL.md +21 -0
- package/skills/intuition-debugger/SKILL.md +14 -4
- package/skills/intuition-detail/SKILL.md +25 -1
- package/skills/intuition-initialize/SKILL.md +1 -1
- package/skills/intuition-meander/SKILL.md +1 -1
- package/skills/intuition-outline/SKILL.md +49 -1
- package/skills/intuition-start/SKILL.md +44 -5
- package/skills/intuition-test/SKILL.md +12 -1
- package/skills/intuition-think-tank/SKILL.md +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tgoodington/intuition",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.2.0",
|
|
4
4
|
"description": "Domain-adaptive workflow system for Claude Code: prompt, outline, assemble specialist teams, detail with domain experts, build with format producers, test code output. Supports v8 compat (design, engineer, build) and v9 specialist workflows with 14 domain specialists and 6 format producers.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
|
@@ -79,6 +79,7 @@ Read these files:
|
|
|
79
79
|
5. `{context_path}/scratch/*-decisions.json` (all specialist decision logs) — decision tiers and chosen options.
|
|
80
80
|
6. `{context_path}/prompt_brief.md` — Commander's Intent, success criteria, non-negotiables (for Vision Alignment in report).
|
|
81
81
|
7. `{context_path}/vision-review.md` (if exists) — flagged items from detail's vision review that build should address.
|
|
82
|
+
8. `{context_path}/process_flow.md` (if exists) — end-to-end user flows, component interactions, data paths, error paths. Used for flow verification in Layer 2 and as orientation context for producers.
|
|
82
83
|
|
|
83
84
|
From team_assignment.json, extract:
|
|
84
85
|
- `specialist_assignments` — which specialist owns which tasks
|
|
@@ -165,6 +166,9 @@ The full blueprint contains all specifications — do not deviate from them.
|
|
|
165
166
|
|
|
166
167
|
Output directory: [from blueprint's Producer Handoff]
|
|
167
168
|
Output files: [from blueprint's Producer Handoff]
|
|
169
|
+
|
|
170
|
+
## Flow Context (if process_flow.md exists)
|
|
171
|
+
[Extract the relevant flow segment from process_flow.md showing where this deliverable fits in the end-to-end path. This is for orientation only — your specifications come from the blueprint.]
|
|
168
172
|
```
|
|
169
173
|
|
|
170
174
|
When building on a branch, add to subagent prompts:
|
|
@@ -218,6 +222,16 @@ Check the deliverable yourself against outline.md acceptance criteria:
|
|
|
218
222
|
|
|
219
223
|
Log all deviations (additions and omissions) in the build report's "Deviations from Blueprint" section, even if they seem minor.
|
|
220
224
|
|
|
225
|
+
**Process flow verification (conditional):**
|
|
226
|
+
If `{context_path}/process_flow.md` exists, verify the produced deliverables match the described end-to-end flows:
|
|
227
|
+
- Trace each Core Flow's path against the implemented code. Do the components interact as described?
|
|
228
|
+
- Check that error paths described in process_flow.md have corresponding implementation.
|
|
229
|
+
- Check that integration seams have matching contracts on both sides.
|
|
230
|
+
|
|
231
|
+
Log any mismatches in the build report under "Process Flow Deviations." If a deviation affects what the end user sees or experiences, escalate via AskUserQuestion with options: "Fix the code to match the process flow" / "Accept the deviation" / "I need to think about this." If the user accepts a deviation, note in the build report that process_flow.md is stale at that section.
|
|
232
|
+
|
|
233
|
+
In **fast track mode**, treat process_flow.md as advisory only — log observations but do not escalate deviations (the document is in skeletal draft form without detail refinement).
|
|
234
|
+
|
|
221
235
|
- If FAIL → send feedback back to the producer with specific acceptance criteria gaps. Do NOT proceed to Layer 3.
|
|
222
236
|
- If PASS → proceed to Layer 3.
|
|
223
237
|
|
|
@@ -322,6 +336,13 @@ Write the build report to `{context_path}/build_report.md` AND display a summary
|
|
|
322
336
|
|
|
323
337
|
[If no test deliverables were found in any blueprint, write "No test deliverables found in blueprints."]
|
|
324
338
|
|
|
339
|
+
## Process Flow Deviations
|
|
340
|
+
[Cross-cutting deviations between implementation and process_flow.md. If no process_flow.md exists, write "N/A — no process flow document." If no deviations, write "None — implementation matches process flows."]
|
|
341
|
+
|
|
342
|
+
| Flow | Deviation | Resolution |
|
|
343
|
+
|------|-----------|------------|
|
|
344
|
+
| [flow name] | [what differs] | [Fixed / Accepted — user approved / Flagged for update] |
|
|
345
|
+
|
|
325
346
|
## Vision Alignment
|
|
326
347
|
[Read `{context_path}/prompt_brief.md` — extract Success Criteria and Commander's Intent non-negotiables. Map each to the produced output.]
|
|
327
348
|
|
|
@@ -3,7 +3,7 @@ name: intuition-debugger
|
|
|
3
3
|
description: Expert diagnostic and resolution service for completed workflow contexts. Investigates issues holistically — considering architectural alignment, security, ripple effects, maintenance burden, and functional correctness — then presents solution options in plain language for a non-technical creative director. Generates fast-track briefs when issues require upstream workflow passes.
|
|
4
4
|
model: opus
|
|
5
5
|
tools: Read, Write, Edit, Glob, Grep, Agent, AskUserQuestion, Bash, mcp__ide__getDiagnostics
|
|
6
|
-
allowed-tools: Read, Write, Edit, Glob, Grep, Bash, mcp__ide__getDiagnostics
|
|
6
|
+
allowed-tools: Read, Write, Edit, Glob, Grep, Agent, Bash, mcp__ide__getDiagnostics
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# CRITICAL RULES
|
|
@@ -105,10 +105,11 @@ Read ALL of these before proceeding — build your understanding of what was bui
|
|
|
105
105
|
- `docs/project_notes/bugs.md` — previously logged bugs
|
|
106
106
|
- `{context_path}/scratch/*-decisions.json` — specialist decisions (if any exist)
|
|
107
107
|
|
|
108
|
-
Also check for blueprints:
|
|
108
|
+
Also check for blueprints and process flow:
|
|
109
109
|
- `{context_path}/blueprints/*.md` — detailed specialist blueprints (if detail phase ran)
|
|
110
|
+
- `{context_path}/process_flow.md` (if exists) — end-to-end user flows, component interactions, data paths, error paths, state mutations, integration seams, known invariants. This is your primary map of how the app works. Use it to understand upstream/downstream impact before reading source code.
|
|
110
111
|
|
|
111
|
-
The gap between intended approach and actual implementation is where bugs hide. The decisions files tell you what constraints MUST be preserved.
|
|
112
|
+
The gap between intended approach and actual implementation is where bugs hide. The decisions files tell you what constraints MUST be preserved. The process flow document tells you how the pieces connect — trace the reported issue through the flow to understand the full impact chain.
|
|
112
113
|
|
|
113
114
|
Do NOT read source code files yet. Read targeted code only after the user describes the issue.
|
|
114
115
|
|
|
@@ -164,7 +165,8 @@ With the root cause identified, evaluate through EVERY lens:
|
|
|
164
165
|
- Check: input validation, output encoding, auth boundaries, data exposure.
|
|
165
166
|
|
|
166
167
|
**Ripple Effects:**
|
|
167
|
-
-
|
|
168
|
+
- If `{context_path}/process_flow.md` exists, start with it: identify which Core Flows pass through the affected area, what's upstream and downstream, and what state mutations or integration seams are involved. Use the Component Dependencies and Integration Seams sections to pre-map the blast radius before launching a researcher.
|
|
169
|
+
- Launch an `intuition-researcher` agent to verify and extend the process flow mapping against actual code:
|
|
168
170
|
```
|
|
169
171
|
"Map all imports, usages, and dependents of [affected module/function/interface]
|
|
170
172
|
across the codebase. Report: file paths, line numbers, how each usage depends
|
|
@@ -395,6 +397,14 @@ After the subagent returns:
|
|
|
395
397
|
- **Prevention**: [How to avoid in future — what should the build process catch?]
|
|
396
398
|
```
|
|
397
399
|
|
|
400
|
+
**Update process flow (conditional)** — If `{context_path}/process_flow.md` exists AND the fix changes how a flow actually works (e.g., adds error handling that changes an error path, restructures a component interaction, or modifies state mutations):
|
|
401
|
+
1. Read the current process_flow.md
|
|
402
|
+
2. Update ONLY the specific flow section affected by the fix
|
|
403
|
+
3. Add an entry to the Flow History table: `| [YYYY-MM-DD] | Debugger | [What changed] | [Fix for: brief issue description] |`
|
|
404
|
+
4. Add or update the Known Fragile Areas section if the investigation revealed a fragile pattern
|
|
405
|
+
|
|
406
|
+
Do NOT update process_flow.md for fixes that don't change flow behavior (e.g., fixing a typo, correcting a calculation that doesn't change the data path). Do NOT rewrite the Overview or restructure the document. When generating a fast-track brief (upstream fix), do NOT update process_flow.md — the upstream workflow will update it after implementing changes.
|
|
407
|
+
|
|
398
408
|
**Save Intuition memory** — When the investigation reveals something with cross-conversation value, save a memory file to `C:\Users\tgoodington\.claude\projects\C--Claude-Projects-Intuition\memory\`:
|
|
399
409
|
|
|
400
410
|
Save a memory when:
|
|
@@ -404,6 +404,29 @@ Triggers when Step 8d finds no remaining specialists.
|
|
|
404
404
|
|
|
405
405
|
**9a. Conflict detection.** Spawn an `intuition-researcher` agent: "Read all blueprint files in `{context_path}/blueprints/`. Compare for: contradictory decisions, overlapping file modifications with conflicting changes, inconsistent interface assumptions, and duplicated work. Write findings to `{context_path}/blueprint-conflicts.md`. If no conflicts, write 'No conflicts detected.'" Wait for completion. If conflicts found, present to user via AskUserQuestion and resolve before continuing.
|
|
406
406
|
|
|
407
|
+
**9a-ii. Process flow synthesis (conditional).** Skip this step if `{context_path}/process_flow.md` does not exist (non-code project or Lightweight outline).
|
|
408
|
+
|
|
409
|
+
If `process_flow.md` exists, spawn an `intuition-synthesizer` agent:
|
|
410
|
+
|
|
411
|
+
"Read these files:
|
|
412
|
+
1. `{context_path}/process_flow.md` — the outline's initial WHAT-level flow draft
|
|
413
|
+
2. For each blueprint in `{context_path}/blueprints/`: read Section 3 (Approach) and Section 7 (Integration Points) only
|
|
414
|
+
|
|
415
|
+
Refine the process flow document with specialist knowledge. The outline draft describes flows at the WHAT level. Your job is to add the HOW:
|
|
416
|
+
- Fill in concrete data paths, state transitions, and error propagation chains from the blueprints
|
|
417
|
+
- Add state mutations per flow (which stores are written, by which step)
|
|
418
|
+
- Add known invariants per flow (things that MUST remain true)
|
|
419
|
+
- Populate the Component Dependencies section from blueprint integration points
|
|
420
|
+
- Populate Integration Seams with contracts and failure modes
|
|
421
|
+
- Resolve any conflicts between the outline's assumed flows and specialist approaches (specialist knowledge supersedes outline assumptions — they had deeper research)
|
|
422
|
+
- Update the Flow History table
|
|
423
|
+
|
|
424
|
+
Keep the document under 200 lines for Standard-tier projects, under 400 for Comprehensive. Be terse — structured steps, not prose.
|
|
425
|
+
|
|
426
|
+
Write the refined document to `{context_path}/process_flow.md` (overwriting the outline's draft)."
|
|
427
|
+
|
|
428
|
+
Wait for completion. If the vision review (9b) later triggers a specialist re-run, re-run this synthesis step after the re-run completes.
|
|
429
|
+
|
|
407
430
|
**9b. Vision review.** Skip this step if only 1 specialist completed (no cross-specialist seams to check).
|
|
408
431
|
|
|
409
432
|
For multi-specialist projects, spawn an `intuition-reviewer` agent:
|
|
@@ -411,7 +434,8 @@ For multi-specialist projects, spawn an `intuition-reviewer` agent:
|
|
|
411
434
|
"Read these files:
|
|
412
435
|
1. `{context_path}/prompt_brief.md` — extract Commander's Intent (desired end state, non-negotiables, boundaries) and Success Criteria
|
|
413
436
|
2. `{context_path}/outline.md` — extract the task list and acceptance criteria
|
|
414
|
-
3.
|
|
437
|
+
3. `{context_path}/process_flow.md` (if exists) — the refined end-to-end flow document. Check that flows honor Commander's Intent and that no seams are missing.
|
|
438
|
+
4. For each blueprint in `{context_path}/blueprints/`: read the Approach section (Section 3) and Acceptance Mapping section (Section 6) only — skip the full deliverable specs
|
|
415
439
|
|
|
416
440
|
Then evaluate the blueprints AS A WHOLE against the original vision:
|
|
417
441
|
|
|
@@ -3,7 +3,7 @@ name: intuition-initialize
|
|
|
3
3
|
description: Set up project memory infrastructure with workflow state tracking, memory files, and configuration templates.
|
|
4
4
|
model: haiku
|
|
5
5
|
tools: Read, Write, Glob, Grep, Bash, AskUserQuestion
|
|
6
|
-
allowed-tools: Read, Write, Glob, Grep
|
|
6
|
+
allowed-tools: Read, Write, Glob, Grep, Bash
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Initialize - Project Memory Setup Protocol
|
|
@@ -3,7 +3,7 @@ name: intuition-meander
|
|
|
3
3
|
description: Thought partner for reasoning through problems. Use when the user wants to think through an idea, explore a problem space, work through a decision, or talk something out. A collaborative thinking companion — not a workflow tool.
|
|
4
4
|
model: opus
|
|
5
5
|
tools: Read, Glob, Grep, Bash, Agent, AskUserQuestion, WebFetch, WebSearch
|
|
6
|
-
allowed-tools: Read, Glob, Grep, Bash, Agent
|
|
6
|
+
allowed-tools: Read, Glob, Grep, Bash, Agent, WebFetch, WebSearch
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Meander — Thinking Partner
|
|
@@ -313,6 +313,52 @@ Before drafting, verify ALL research agents launched during Phase 3 have returne
|
|
|
313
313
|
|
|
314
314
|
Read `{context_path}/.outline_research/decisions_log.md` and `orientation.md` to gather resolved context. Draft the outline following the outline.md output format below, applying scope scaling for the selected tier.
|
|
315
315
|
|
|
316
|
+
## Step 2b: Draft process flow (conditional)
|
|
317
|
+
|
|
318
|
+
**Gate:** Generate process_flow.md ONLY when ALL conditions are met:
|
|
319
|
+
1. Tier is **Standard** or **Comprehensive**
|
|
320
|
+
2. Orientation research identified code, interactive components, or systems with runtime behavior (3+ components that interact)
|
|
321
|
+
|
|
322
|
+
If the gate is not met, skip this step entirely. Non-code projects (documents, spreadsheets, strategies) do not get a process flow.
|
|
323
|
+
|
|
324
|
+
If the gate IS met, draft `{context_path}/process_flow.md` alongside the outline. This is a WHAT-level document — describe flows in terms of user actions, involved components, and expected outcomes. Do NOT specify data shapes, state implementation details, or internal algorithms (those are HOW decisions for the detail phase).
|
|
325
|
+
|
|
326
|
+
Use this structure:
|
|
327
|
+
|
|
328
|
+
```markdown
|
|
329
|
+
# Process Flow: [App/Feature Name]
|
|
330
|
+
|
|
331
|
+
## Overview
|
|
332
|
+
[2-3 sentences: what the app/feature does and who it serves]
|
|
333
|
+
|
|
334
|
+
## Core Flows
|
|
335
|
+
|
|
336
|
+
### [Flow Name]
|
|
337
|
+
**Trigger:** [user action / API call / scheduled job]
|
|
338
|
+
**Path:** ComponentA → ComponentB → ComponentC
|
|
339
|
+
1. [Actor does action → which component handles it → expected outcome]
|
|
340
|
+
2. [...]
|
|
341
|
+
N. [Final result visible to user or system]
|
|
342
|
+
|
|
343
|
+
**Error path:** [what happens on failure — at WHAT level, not implementation detail]
|
|
344
|
+
**Side effects:** [notifications, logging, external calls — if known]
|
|
345
|
+
|
|
346
|
+
[Repeat for each major user-facing flow identified during ARCH exploration]
|
|
347
|
+
|
|
348
|
+
## Integration Points
|
|
349
|
+
[Component handoff seams identified during Reach exploration — where components interact]
|
|
350
|
+
|
|
351
|
+
## Cross-Cutting Concerns
|
|
352
|
+
[Auth, error handling, state management patterns — from Section 10 context]
|
|
353
|
+
|
|
354
|
+
## Flow History
|
|
355
|
+
| Date | Phase | Change | Reason |
|
|
356
|
+
|------|-------|--------|--------|
|
|
357
|
+
| [today] | Outline | Initial draft | Created from ARCH exploration |
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
Present process_flow.md alongside the outline for user approval in Step 4.
|
|
361
|
+
|
|
316
362
|
## Step 3: Validate
|
|
317
363
|
|
|
318
364
|
Run the Executable Outline Checklist (below). Fix any failures before presenting.
|
|
@@ -348,7 +394,8 @@ If changes requested, make them and present again. Repeat until explicitly appro
|
|
|
348
394
|
After explicit approval:
|
|
349
395
|
|
|
350
396
|
1. Write the final outline to `{context_path}/outline.md`.
|
|
351
|
-
2.
|
|
397
|
+
2. If process_flow.md was drafted in Step 2b, write it to `{context_path}/process_flow.md`.
|
|
398
|
+
3. Run the Exit Protocol.
|
|
352
399
|
|
|
353
400
|
## Exit Protocol
|
|
354
401
|
|
|
@@ -599,6 +646,7 @@ Validate ALL before presenting the draft:
|
|
|
599
646
|
- [ ] Tasks with decision points have Decisions field with `[USER]`/`[SPEC]` classifications
|
|
600
647
|
- [ ] Decision classifications use Commander's Intent to determine human-facing boundary
|
|
601
648
|
- [ ] Large data files (if detected in orientation) have a preprocessing task before any dependent work
|
|
649
|
+
- [ ] Process flow document generated for Standard+ code projects with 3+ interacting components (skip for non-code or Lightweight)
|
|
602
650
|
|
|
603
651
|
If any check fails, fix it before presenting.
|
|
604
652
|
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
name: intuition-start
|
|
3
3
|
description: Load project context, detect workflow phase, route to the correct next skill.
|
|
4
4
|
model: haiku
|
|
5
|
-
tools: Read, Glob, Grep, AskUserQuestion, Bash
|
|
6
|
-
allowed-tools: Read, Glob, Grep, Bash
|
|
5
|
+
tools: Read, Write, Glob, Grep, AskUserQuestion, Bash
|
|
6
|
+
allowed-tools: Read, Write, Glob, Grep, Bash
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Start - Phase Detector & Router
|
|
10
10
|
|
|
11
|
-
You detect the current workflow phase and route the user to the correct next skill. You are
|
|
11
|
+
You detect the current workflow phase and route the user to the correct next skill. You are read-only except for bootstrapping a missing state file in legacy projects (Step 1.5).
|
|
12
12
|
|
|
13
13
|
## Package Version Info
|
|
14
14
|
|
|
@@ -26,8 +26,8 @@ You detect the current workflow phase and route the user to the correct next ski
|
|
|
26
26
|
|
|
27
27
|
1. You MUST detect the current workflow phase before doing anything else.
|
|
28
28
|
2. You MUST suggest the correct next skill based on the detected phase.
|
|
29
|
-
3. You MUST NOT write
|
|
30
|
-
4. You MUST NOT manage .project-memory-state.json — handoff owns state.
|
|
29
|
+
3. You MUST NOT write or modify files EXCEPT to bootstrap a missing `.project-memory-state.json` (see STEP 1.5).
|
|
30
|
+
4. You MUST NOT manage .project-memory-state.json after creation — handoff owns state transitions.
|
|
31
31
|
5. You MUST resolve context_path from active_context before phase detection.
|
|
32
32
|
|
|
33
33
|
## PROTOCOL
|
|
@@ -35,6 +35,7 @@ You detect the current workflow phase and route the user to the correct next ski
|
|
|
35
35
|
```
|
|
36
36
|
Step 0: Check package version — notify if update available (non-blocking)
|
|
37
37
|
Step 1: Read docs/project_notes/.project-memory-state.json
|
|
38
|
+
Step 1.5: If state file missing but docs/project_notes/ exists, bootstrap it
|
|
38
39
|
Step 2: Validate schema version
|
|
39
40
|
Step 3: Resolve active_context and context_path
|
|
40
41
|
Step 4: Detect phase using decision tree
|
|
@@ -52,6 +53,44 @@ Parse version numbers from "Package Version Info" above:
|
|
|
52
53
|
|
|
53
54
|
NON-BLOCKING: If version commands failed, skip and proceed.
|
|
54
55
|
|
|
56
|
+
## BOOTSTRAP MISSING STATE FILE (Step 1.5)
|
|
57
|
+
|
|
58
|
+
If `.project-memory-state.json` does NOT exist, check whether `docs/project_notes/` directory exists (use Glob for `docs/project_notes/*`).
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
IF docs/project_notes/ exists BUT .project-memory-state.json is missing:
|
|
62
|
+
→ This is a legacy project from an older framework version.
|
|
63
|
+
→ Create docs/project_notes/.project-memory-state.json with the v8.0 default schema:
|
|
64
|
+
|
|
65
|
+
{
|
|
66
|
+
"initialized": true,
|
|
67
|
+
"version": "8.0",
|
|
68
|
+
"active_context": "trunk",
|
|
69
|
+
"trunk": {
|
|
70
|
+
"status": "none",
|
|
71
|
+
"workflow": {
|
|
72
|
+
"prompt": { "started": false, "completed": false, "started_at": null, "completed_at": null, "output_files": [] },
|
|
73
|
+
"outline": { "started": false, "completed": false, "completed_at": null, "approved": false },
|
|
74
|
+
"design": { "started": false, "completed": false, "completed_at": null, "items": [], "current_item": null },
|
|
75
|
+
"engineering": { "started": false, "completed": false, "completed_at": null },
|
|
76
|
+
"build": { "started": false, "completed": false, "completed_at": null },
|
|
77
|
+
"test": { "started": false, "completed": false, "completed_at": null, "skipped": false },
|
|
78
|
+
"detail": { "started": false, "completed": false, "completed_at": null, "team_assignment": null, "specialists": [], "current_specialist": null, "execution_phase": 1 }
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"branches": {},
|
|
82
|
+
"last_handoff": null,
|
|
83
|
+
"last_handoff_transition": null
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
→ Also create docs/project_notes/trunk/.gitkeep and docs/project_notes/branches/.gitkeep if those directories are missing.
|
|
87
|
+
→ OUTPUT: "Legacy project detected — created .project-memory-state.json (v8.0)."
|
|
88
|
+
→ Continue to Step 2 with the newly created state.
|
|
89
|
+
|
|
90
|
+
IF neither docs/project_notes/ NOR .project-memory-state.json exist:
|
|
91
|
+
→ This is a brand new project. Route to first_time as before.
|
|
92
|
+
```
|
|
93
|
+
|
|
55
94
|
## SCHEMA VERSION CHECK (Step 2)
|
|
56
95
|
|
|
57
96
|
After reading `.project-memory-state.json`:
|
|
@@ -65,7 +65,8 @@ Read these files:
|
|
|
65
65
|
|
|
66
66
|
1. `{context_path}/build_report.md` — REQUIRED. Extract: files modified, task results, deviations from blueprints, decision compliance notes.
|
|
67
67
|
2. `{context_path}/outline.md` — acceptance criteria per task.
|
|
68
|
-
3. `{context_path}/
|
|
68
|
+
3. `{context_path}/process_flow.md` (if exists) — end-to-end user flows, component interactions, data paths, error paths. Primary source for designing integration and E2E tests. If this file does not exist (non-code project or Lightweight workflow), proceed without it.
|
|
69
|
+
4. `{context_path}/test_advisory.md` — compact testability notes extracted by the detail phase (one section per specialist). Read this INSTEAD of all blueprints. If this file does not exist (older workflows), fall back to reading `{context_path}/blueprints/*.md` and extracting Testability Notes from each Approach section.
|
|
69
70
|
4. `{context_path}/team_assignment.json` — producer assignments (identify code-writer tasks).
|
|
70
71
|
5. ALL files matching `{context_path}/scratch/*-decisions.json` — decision tiers and chosen options per specialist.
|
|
71
72
|
6. `docs/project_notes/decisions.md` — project-level ADRs.
|
|
@@ -107,6 +108,15 @@ Prioritize by value:
|
|
|
107
108
|
- **Integration tests** (medium priority): API routes, database operations, service interactions, middleware chains. Use real dependencies where feasible, mock externals.
|
|
108
109
|
- **E2E tests** (only if framework exists): Only create if the project already has an E2E framework configured. Never introduce a new E2E framework.
|
|
109
110
|
|
|
111
|
+
### Process Flow Coverage (if process_flow.md exists)
|
|
112
|
+
|
|
113
|
+
Use process_flow.md to identify cross-component integration boundaries and E2E paths that acceptance criteria alone don't reveal:
|
|
114
|
+
- **Integration seams**: For each Integration Seam in process_flow.md, design at least one integration test that exercises the handoff between components.
|
|
115
|
+
- **Error propagation**: For each error path described in Core Flows, design a test that triggers the failure and verifies the described fallback behavior.
|
|
116
|
+
- **State mutations**: For each state mutation listed in Core Flows, verify the mutation occurs and dependents react correctly.
|
|
117
|
+
|
|
118
|
+
If process_flow.md conflicts with actual implementation (check build_report.md deviations), test against the implementation, not the document.
|
|
119
|
+
|
|
110
120
|
### File Type Heuristic
|
|
111
121
|
|
|
112
122
|
For each modified file, classify the appropriate test type:
|
|
@@ -216,6 +226,7 @@ You are a test writer. Create a test file following these specifications exactly
|
|
|
216
226
|
|
|
217
227
|
**Source file:** Read [source file path]
|
|
218
228
|
**Blueprint context:** Read [relevant blueprint path] (for domain understanding)
|
|
229
|
+
**Flow context (integration/E2E tests only):** Read `{context_path}/process_flow.md` (if exists) for understanding how this component participates in end-to-end user flows. Not needed for unit tests.
|
|
219
230
|
|
|
220
231
|
**Test file path:** [target test file path]
|
|
221
232
|
**Test cases to implement:**
|
|
@@ -3,7 +3,7 @@ name: intuition-think-tank
|
|
|
3
3
|
description: Rapid expert-panel analysis. Use when the user wants a well-rounded evaluation of documents, ideas, proposals, or strategies — faster than a full workflow pass. Assembles a dynamic panel of perspectives, runs parallel analysis, and delivers a cohesive synthesis.
|
|
4
4
|
model: opus
|
|
5
5
|
tools: Read, Glob, Grep, Bash, Agent, AskUserQuestion, WebFetch, WebSearch
|
|
6
|
-
allowed-tools: Read, Glob, Grep, Bash, Agent
|
|
6
|
+
allowed-tools: Read, Glob, Grep, Bash, Agent, WebFetch, WebSearch
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Think Tank — Rapid Expert Panel
|