@tgoodington/intuition 2.2.0 → 3.0.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.
@@ -0,0 +1,361 @@
1
+ # Intuition v2 - Project Context Document
2
+
3
+ **Version:** 2.0 | **Last Updated:** February 2025 | **Status:** Production
4
+
5
+ ## What is Intuition?
6
+
7
+ Intuition is a five-skill system for Claude Code that orchestrates software development through structured discovery, planning, and execution phases. It's a **plugin**, not a CLI tool or JavaScript library. When installed via `npm install -g intuition`, it deploys five skills to `~/.claude/skills/` that enhance Claude Code's capabilities for complex projects.
8
+
9
+ ### Critical: Intuition is NOT a CLI
10
+
11
+ `bin/intuition.js` in the repository is **development testing only**. In production, users invoke skills via Claude Code:
12
+ - `/intuition-start` - Load context and suggest next steps
13
+ - `/intuition-discovery` - Learn through dialogue (Waldo)
14
+ - `/intuition-handoff` - Process phase outputs and brief next agent
15
+ - `/intuition-plan` - Create structured plans (Magellan)
16
+ - `/intuition-execute` - Implement coordinated work (Faraday)
17
+
18
+ There is no CLI invocation. No shell scripts run during normal use. The plugin works entirely through Claude Code's skill system.
19
+
20
+ ## The Five Skills
21
+
22
+ ### 1. `/intuition-start` - Session Primer
23
+ **Role:** Load project context at session start
24
+
25
+ Detects which phase is active (discovery/planning/execution), loads project memory files, and generates phase-appropriate briefs. Tells users where they are and what to do next.
26
+
27
+ **When:** First thing at the start of each session
28
+ **Output:** Phase summary, next recommended step
29
+
30
+ ### 2. `/intuition-discovery` - Waldo (Learner)
31
+ **Role:** Deep problem understanding through dialogue
32
+
33
+ Waldo engages in genuine conversation to understand problems, goals, users, and motivations. Not interrogation—collaborative thinking. Asks better questions by researching quietly.
34
+
35
+ **When:** Starting new features or exploring complex problems
36
+ **Output:** `discovery_brief.md`, `discovery_output.json`
37
+
38
+ ### 3. `/intuition-handoff` - Orchestrator (Conductor)
39
+ **Role:** Phase transition coordinator
40
+
41
+ Processes phase outputs, extracts insights, updates project memory files with proper formatting, and generates fresh briefs for the next agent. Maintains consistency and flow.
42
+
43
+ **When:** After discovery completes (before planning), after planning completes (before execution)
44
+ **Output:** Updated memory, new brief, state transitions
45
+
46
+ ### 4. `/intuition-plan` - Magellan (Strategist)
47
+ **Role:** Strategic planning and synthesis
48
+
49
+ Researches the codebase, identifies patterns, and creates detailed structured plans with tasks, dependencies, risks, and confidence scores.
50
+
51
+ **When:** After discovery handoff, ready to design approach
52
+ **Output:** `plan.md`
53
+
54
+ ### 5. `/intuition-execute` - Faraday (Implementer)
55
+ **Role:** Methodical implementation
56
+
57
+ Breaks plans into concrete tasks, delegates to sub-agents, monitors progress, and ensures quality. Coordinates parallel work and handles failures gracefully.
58
+
59
+ **When:** Plan approved and ready to implement
60
+ **Output:** Implemented features, updated memory, completion report
61
+
62
+ ## The Complete Workflow
63
+
64
+ ```
65
+ /intuition-start (Load context)
66
+
67
+ /intuition-discovery (Waldo explores with user)
68
+ → discovery_brief.md, discovery_output.json
69
+
70
+ /intuition-handoff (Extract insights, update memory)
71
+ → Updated key_facts.md, decisions.md, issues.md
72
+ → planning_brief.md
73
+
74
+ /intuition-plan (Magellan synthesizes into plan)
75
+ → plan.md (user reviews and approves)
76
+
77
+ /intuition-handoff (Prepare for execution)
78
+ → execution_brief.md
79
+
80
+ /intuition-execute (Faraday implements)
81
+ → Completed work, updated memory
82
+
83
+ → /intuition-discovery (Start new feature iteration)
84
+ ```
85
+
86
+ **Recommended:** Always run `/intuition-start` at the beginning of a session. It will tell you which step to take next.
87
+
88
+ ## Key Design Principles
89
+
90
+ ### 1. Symphony Model
91
+ Five distinct roles, each focused on one phase. They don't overlap—Waldo doesn't plan, Magellan doesn't execute. Clean separation of concerns makes each agent excellent at its specific job.
92
+
93
+ ### 2. Memory Authority
94
+ Memory files are the single source of truth:
95
+ - `bugs.md` - Problem-solution pairs, maintained by all
96
+ - `decisions.md` - Architectural choices (ADRs), created during discovery/planning
97
+ - `key_facts.md` - Project configuration, discovered during discovery
98
+ - `issues.md` - Work history, maintained by all
99
+ - `.project-memory-state.json` - Workflow state, maintained by start and handoff skills
100
+
101
+ Each skill reads from memory before starting. Each skill updates memory appropriately. Memory is never stale because every agent maintains it.
102
+
103
+ ### 3. Clean Context
104
+ Each phase gets exactly what it needs—no noise. Waldo doesn't see the plan, Magellan doesn't execute. The handoff skill bridges phases by providing fresh, focused context briefs.
105
+
106
+ ### 4. File-Based Handoffs
107
+ No API calls between skills. No JSON payloads passed through parameters. Handoffs happen entirely through files:
108
+ - Discovery writes `discovery_brief.md` + `discovery_output.json`
109
+ - Handoff reads those files, extracts insights, writes `planning_brief.md`
110
+ - Magellan reads `planning_brief.md` and existing memory
111
+ - Magellan writes `plan.md`
112
+ - Handoff reads `plan.md`, writes `execution_brief.md`
113
+ - Faraday reads `execution_brief.md` and existing memory
114
+
115
+ This design is:
116
+ - **Resumable:** Stop anytime, resume anytime. Files persist.
117
+ - **Auditable:** Entire history is readable.
118
+ - **Tool-agnostic:** Works with Claude Code, Cursor, GitHub Copilot, or any Claude integration.
119
+ - **Transparent:** Users see exactly what each phase produces.
120
+
121
+ ## File Structure
122
+
123
+ ```
124
+ docs/
125
+ ├── project_notes/
126
+ │ ├── bugs.md # Bug log with solutions
127
+ │ ├── decisions.md # Architectural Decision Records
128
+ │ ├── key_facts.md # Project configuration & constants
129
+ │ ├── issues.md # Work history
130
+ │ ├── .project-memory-state.json # Workflow state
131
+ │ ├── discovery_brief.md # Discovery output (Waldo)
132
+ │ ├── discovery_output.json # Structured findings (Waldo)
133
+ │ ├── planning_brief.md # Brief for planning (Handoff)
134
+ │ ├── plan.md # Plan output (Magellan)
135
+ │ └── execution_brief.md # Brief for execution (Handoff)
136
+ └── [other project documentation]
137
+
138
+ .claude/
139
+ ├── settings.local.json # Claude Code tool permissions
140
+ ├── CLAUDE.md # Memory-aware protocols for Claude
141
+ └── AGENTS.md # Multi-agent system config
142
+
143
+ [project root]/
144
+ ├── README.md
145
+ ├── [source code, tests, etc.]
146
+ └── [standard project files]
147
+ ```
148
+
149
+ ## State Management (v2.0)
150
+
151
+ The `.project-memory-state.json` file tracks workflow progression:
152
+
153
+ ```json
154
+ {
155
+ "initialized": true,
156
+ "version": "2.0",
157
+ "workflow": {
158
+ "status": "discovery|planning|executing|complete",
159
+ "discovery": {
160
+ "started": false,
161
+ "started_at": null,
162
+ "completed": false,
163
+ "completed_at": null,
164
+ "output_files": [],
165
+ "resume_data": null
166
+ },
167
+ "planning": {
168
+ "started": false,
169
+ "started_at": null,
170
+ "completed": false,
171
+ "completed_at": null,
172
+ "output_files": [],
173
+ "approved": false,
174
+ "approved_at": null,
175
+ "resume_data": null
176
+ },
177
+ "execution": {
178
+ "started": false,
179
+ "started_at": null,
180
+ "completed": false,
181
+ "completed_at": null,
182
+ "output_files": [],
183
+ "tasks_completed": 0,
184
+ "tasks_total": 0,
185
+ "resume_data": null
186
+ }
187
+ },
188
+ "agents": {
189
+ "waldo": { "greeted": false },
190
+ "magellan": { "greeted": false },
191
+ "faraday": { "greeted": false }
192
+ },
193
+ "history": {
194
+ "discovery_revisions": 0,
195
+ "planning_revisions": 0,
196
+ "last_activity": null
197
+ }
198
+ }
199
+ ```
200
+
201
+ The handoff skill updates this after each phase.
202
+
203
+ ## Memory Authority Rules
204
+
205
+ **Only the appropriate skill modifies each type of memory:**
206
+
207
+ | File | Who Creates | Who Updates | What It Tracks |
208
+ |------|-------------|------------|-----------------|
209
+ | `bugs.md` | /intuition-initialize (template) | Any skill | Problems found, solutions applied |
210
+ | `decisions.md` | /intuition-initialize (template) | Handoff, skills | Architectural choices (ADRs) |
211
+ | `key_facts.md` | /intuition-initialize (template) | Handoff, Discovery | Project config, discovered facts |
212
+ | `issues.md` | /intuition-initialize (template) | Any skill | Work history and progress |
213
+ | `.project-memory-state.json` | /intuition-initialize | /intuition-start, /intuition-handoff | Workflow phase and state |
214
+ | `discovery_brief.md` | /intuition-discovery | Only Waldo | Discovery synthesis |
215
+ | `discovery_output.json` | /intuition-discovery | Only Waldo | Structured findings |
216
+ | `planning_brief.md` | /intuition-handoff | Only Handoff | Context prepared for planning |
217
+ | `plan.md` | /intuition-plan | Only Magellan | Detailed plan and tasks |
218
+ | `execution_brief.md` | /intuition-handoff | Only Handoff | Context prepared for execution |
219
+
220
+ **The rule:** Respect existing entries. Never delete or overwrite entries from previous sessions without explicit user consent. Append, never replace.
221
+
222
+ ## How Skills Interact
223
+
224
+ ### Skill → Skill Data Flow
225
+
226
+ ```
227
+ Discovery
228
+ ├─ Reads: Existing memory files for context
229
+ ├─ Writes: discovery_brief.md, discovery_output.json
230
+ └─ Expects: User conversation
231
+
232
+ Discovery → Handoff
233
+ ├─ Handoff reads: discovery_brief.md, discovery_output.json
234
+ ├─ Handoff writes: planning_brief.md, updated memory
235
+ └─ Expected: Insights extracted, memory updated
236
+
237
+ Handoff → Planning
238
+ ├─ Planning reads: planning_brief.md, existing memory
239
+ ├─ Planning writes: plan.md
240
+ └─ Expected: Structured plan ready for user review
241
+
242
+ Planning → Handoff
243
+ ├─ Handoff reads: plan.md
244
+ ├─ Handoff writes: execution_brief.md, updated memory
245
+ └─ Expected: Context ready for execution
246
+
247
+ Handoff → Execution
248
+ ├─ Execution reads: execution_brief.md, existing memory
249
+ ├─ Execution writes: Implementation, updated memory
250
+ └─ Expected: Tasks completed, work done
251
+ ```
252
+
253
+ ### Resume Support (Resumption Through Skills)
254
+
255
+ Each skill reads the state file first:
256
+
257
+ 1. `/intuition-start` - "Where are we in the workflow?"
258
+ 2. Discovery - "Was this started? Resume if interrupted"
259
+ 3. Handoff - "Which transition are we making?"
260
+ 4. Planning - "Was this started? Resume if interrupted"
261
+ 5. Execution - "Continue where we left off"
262
+
263
+ Users can stop anytime and resume—the state file preserves progress.
264
+
265
+ ## What NOT to Assume (Important Gotchas)
266
+
267
+ ### ❌ Don't assume CLI invocation is supported
268
+ Intuition works via Claude Code skills, not shell commands. `bin/intuition.js` is development only.
269
+
270
+ ### ❌ Don't modify `plan.md` or `execute.md` directly
271
+ These are outputs from Magellan and Faraday respectively. Editing them won't affect the skills' behavior. If you need changes, run the skill again and it will update.
272
+
273
+ ### ❌ Don't modify `discovery_brief_template.md`
274
+ This is a frozen reference. The actual output is `discovery_brief.md` (without "template").
275
+
276
+ ### ❌ Don't assume all skills write to every memory file
277
+ Only the appropriate skill writes to each file. Handoff is the exception—it updates multiple files during transitions. Check the Memory Authority table above.
278
+
279
+ ### ❌ Don't assume skills cache information
280
+ Each skill starts fresh and reads from files. Memory files are the source of truth, not skill-local state.
281
+
282
+ ### ❌ Don't assume Waldo will plan
283
+ Waldo's only job is discovery. Planning is Magellan's job. If you want planning, run `/intuition-plan`, not `/intuition-discovery` again.
284
+
285
+ ### ❌ Don't assume Magellan will execute
286
+ Magellan creates a plan. Execution is Faraday's job. The handoff in between ensures Faraday gets proper context.
287
+
288
+ ## Installation and Setup
289
+
290
+ See `INSTALLATION.md` in the root for detailed setup instructions. Quick version:
291
+
292
+ ```bash
293
+ npm install -g intuition
294
+ cd your-project
295
+ /intuition-initialize # Set up project memory
296
+ /intuition-start # Load context and suggest next step
297
+ ```
298
+
299
+ Then follow the skill suggestions from `/intuition-start`.
300
+
301
+ ## Future Sessions: Use `/intuition-start`
302
+
303
+ Every session should start with:
304
+
305
+ ```
306
+ /intuition-start
307
+ ```
308
+
309
+ It will:
310
+ 1. Load your project's memory and workflow state
311
+ 2. Detect which phase you're in
312
+ 3. Generate a fresh context brief for that phase
313
+ 4. Suggest the next skill to run
314
+
315
+ Then run the suggested skill. Repeat.
316
+
317
+ ## Key Files in This Repo
318
+
319
+ ### For Users
320
+ - `README.md` - Overview and quick start
321
+ - `INSTALLATION.md` - Detailed setup instructions
322
+ - `docs/intuition-workflow.md` - Detailed workflow explanation
323
+ - `docs/intuition-architecture.md` - System design and philosophy
324
+
325
+ ### For Developers
326
+ - `skills/intuition-*/SKILL.md` - Skill interface documents
327
+ - `skills/intuition-*/references/` - Implementation guides
328
+ - `.claude-plugin/` - Plugin metadata
329
+ - `scripts/install-skills.js` - Installation script
330
+ - `bin/intuition.js` - Development testing only
331
+
332
+ ### For Project Memory
333
+ - `docs/project_notes/` - Created by `/intuition-initialize` in each project
334
+
335
+ ## Getting Help
336
+
337
+ - Check `docs/intuition-workflow.md` for detailed workflow steps
338
+ - Check `docs/intuition-architecture.md` for system design questions
339
+ - Run `/intuition-start` in any project to get oriented
340
+ - Read skill-specific docs in `skills/[skill-name]/SKILL.md`
341
+ - See implementation guides in `skills/[skill-name]/references/`
342
+
343
+ ## Version History
344
+
345
+ **v2.0** (Current)
346
+ - Five-skill system (Start, Discovery/Waldo, Handoff, Planning/Magellan, Execution/Faraday)
347
+ - Explicit handoff phases between discovery→planning and planning→execution
348
+ - File-based handoffs with structured briefs
349
+ - Updated state schema with started/started_at/output_files fields
350
+ - New brief templates (planning_brief.md, execution_brief.md, discovery_output.json)
351
+ - Discovery and handoff skills are new
352
+
353
+ **v1.0** (Legacy)
354
+ - Three skills (Discovery/Waldo, Planning/Magellan, Execution/Faraday)
355
+ - Direct skill-to-skill transitions
356
+ - No explicit handoff phase
357
+ - Simpler state tracking
358
+
359
+ ---
360
+
361
+ **Last updated:** February 2025 | **Maintained by:** Intuition Contributors
package/package.json CHANGED
@@ -1,37 +1,36 @@
1
- {
2
- "name": "@tgoodington/intuition",
3
- "version": "2.2.0",
4
- "description": "Three-agent system for software project planning and execution. Waldo (discovery), Magellan (planning), Faraday (execution) with file-based handoffs through project memory.",
5
- "keywords": [
6
- "claude-code",
7
- "skills",
8
- "planning",
9
- "execution",
10
- "agent",
11
- "automation",
12
- "project-memory"
13
- ],
14
- "author": "Intuition Contributors",
15
- "license": "MIT",
16
- "repository": {
17
- "type": "git",
18
- "url": "https://github.com/tgoodington/intuition.git"
19
- },
20
- "scripts": {
21
- "postinstall": "node scripts/install-skills.js",
22
- "preuninstall": "node scripts/uninstall-skills.js",
23
- "test": "node bin/intuition.js help"
24
- },
25
- "files": [
26
- "bin/",
27
- "skills/",
28
- "scripts/",
29
- "agents/",
30
- "docs/",
31
- "README.md",
32
- "LICENSE"
33
- ],
34
- "engines": {
35
- "node": ">=14.0.0"
36
- }
37
- }
1
+ {
2
+ "name": "@tgoodington/intuition",
3
+ "version": "3.0.0",
4
+ "description": "Three-agent system for software project planning and execution. Waldo (discovery), Magellan (planning), Faraday (execution) with file-based handoffs through project memory.",
5
+ "keywords": [
6
+ "claude-code",
7
+ "skills",
8
+ "planning",
9
+ "execution",
10
+ "agent",
11
+ "automation",
12
+ "project-memory"
13
+ ],
14
+ "author": "Intuition Contributors",
15
+ "license": "MIT",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/tgoodington/intuition.git"
19
+ },
20
+ "scripts": {
21
+ "postinstall": "node scripts/install-skills.js",
22
+ "preuninstall": "node scripts/uninstall-skills.js",
23
+ "test": "node bin/intuition.js help"
24
+ },
25
+ "files": [
26
+ "bin/",
27
+ "skills/",
28
+ "scripts/",
29
+ "docs/",
30
+ "README.md",
31
+ "LICENSE"
32
+ ],
33
+ "engines": {
34
+ "node": ">=14.0.0"
35
+ }
36
+ }