@tgoodington/intuition 10.1.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tgoodington/intuition",
3
- "version": "10.1.0",
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",
@@ -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 strictly read-only you NEVER write or modify any files.
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, create, or modify ANY files.
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`: