@tgoodington/intuition 5.0.0 → 7.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,219 @@
1
+ # `/intuition-design` — Skill Specification (v6.0)
2
+
3
+ **Status:** Implemented
4
+ **Date:** 2026-02-12
5
+ **Source:** Synthesized from skill-guide analysis, user design sessions, and architectural review
6
+
7
+ ---
8
+
9
+ ## 1. Purpose & Position in Workflow
10
+
11
+ Design Exploration fills the gap between strategic planning and execution. Planning decides WHAT to build and WHY. Execution decides the code-level HOW. Design Exploration decides the **architectural/creative HOW** — through collaborative dialogue with the user.
12
+
13
+ **Domain-agnostic:** Design works for code architecture, world building, UI/UX design, document structure, game design, business processes, or any creative/structural work that needs detailed elaboration before implementation.
14
+
15
+ **Workflow position (v6.0):**
16
+ ```
17
+ prompt → handoff → plan → handoff → [design loop] → handoff → execute → handoff
18
+
19
+ Per-item design cycles
20
+ managed by handoff
21
+ ```
22
+
23
+ **When design runs:**
24
+ - Plan auto-flags tasks below 95% design readiness
25
+ - Handoff presents flagged items to user for confirmation
26
+ - User can add/remove items from the design list
27
+ - If no items need design, handoff skips to execute
28
+
29
+ **When design does NOT run:**
30
+ - All plan tasks are straightforward enough for direct execution
31
+ - User explicitly skips design at the confirmation step
32
+
33
+ ---
34
+
35
+ ## 2. Core Design Decisions
36
+
37
+ ### Framework: ECD (Elements, Connections, Dynamics)
38
+
39
+ Three coverage dimensions tracked throughout dialogue:
40
+
41
+ - **E — Elements**: What are the building blocks? The core entities, components, types, content pieces, or structural units. Their properties, boundaries, and definitions.
42
+ - **C — Connections**: How do elements relate? The relationships, interfaces, dependencies, flows, hierarchies, or structural organization. Integration with existing context.
43
+ - **D — Dynamics**: How do things work and change? The behaviors, processes, rules, interactions, state transitions, or operational logic. Edge cases and exceptions.
44
+
45
+ Natural progression: E → C → D. All three must reach sufficiency before formalization.
46
+
47
+ **Why ECD over DIP:**
48
+ - DIP (Data, Interfaces, Process) was code-specific — TypeScript types, API signatures, algorithms
49
+ - ECD is domain-agnostic — adapts language to match what is being designed
50
+ - ECD maps cleanly to DIP for code (E≈D, C≈I, D≈P) while also working for creative domains
51
+
52
+ **Domain adaptation:**
53
+
54
+ | Domain | Elements | Connections | Dynamics |
55
+ |--------|----------|-------------|----------|
56
+ | Code | Types, models, schemas | APIs, interfaces, integration | Algorithms, state transitions |
57
+ | World building | Locations, characters, factions | Alliances, geography, trade | Magic rules, economy, combat |
58
+ | UI/UX | Screens, components, layouts | Navigation, data flow, journeys | Interactions, states, animations |
59
+ | Documents | Sections, arguments, evidence | Logical flow, transitions | Tone, persuasion, pacing |
60
+ | Game design | Mechanics, entities, resources | Progression, feedback loops | Balance, player interactions |
61
+ | Business | Roles, artifacts, stages | Handoffs, approvals, escalations | Timing rules, SLAs |
62
+
63
+ ### Voice: Senior Architect
64
+
65
+ Analytical, decisive, research-informed, concise, appropriately challenging. Domain adapts to what is being designed, but posture stays the same.
66
+
67
+ ### Model: Opus
68
+
69
+ Design decisions have long-term consequences. Worth the cost for nuanced trade-off reasoning, complex system synthesis, and edge case identification.
70
+
71
+ Sub-agents use haiku for research (fast, cheap, parallel). Sonnet for complex trade-off analysis.
72
+
73
+ ### Permission Mode: Plan-like (read-only for code)
74
+
75
+ Design creates specifications, not code. All artifacts are markdown. Write tool used for spec files only.
76
+
77
+ **Tools:** Read, Glob, Grep, Task, AskUserQuestion, Write (for spec files only)
78
+
79
+ ---
80
+
81
+ ## 3. Protocol Structure
82
+
83
+ ```
84
+ Phase 1: SCOPE & CONTEXT (1 turn) Read brief, research context, frame challenge
85
+ Phase 2: ELEMENTS (1-2 turns) Define building blocks and properties [ECD: E]
86
+ Phase 3: CONNECTIONS (1-2 turns) Map relationships and structure [ECD: C]
87
+ Phase 4: DYNAMICS (2-3 turns) Define behaviors, rules, and edge cases [ECD: D]
88
+ Phase 5: FORMALIZATION (1 turn) Draft spec, validate, approve, save
89
+ ```
90
+
91
+ **Total:** 6-9 turns per item. Shorter than discovery because scope is narrower (one item, not the whole problem).
92
+
93
+ ---
94
+
95
+ ## 4. Design Loop Architecture
96
+
97
+ Design runs once per flagged item, with handoff managing the loop:
98
+
99
+ ```
100
+ handoff (plan→design): presents items, user confirms, generates brief for item 1
101
+ → design (item 1): ECD exploration, saves design_spec_item1.md
102
+ → handoff (design→design): processes spec, generates brief for item 2
103
+ → design (item 2): ECD exploration, saves design_spec_item2.md
104
+ → handoff (design→design): processes spec, generates brief for item 3
105
+ → design (item 3): ECD exploration, saves design_spec_item3.md
106
+ → handoff (design→execute): all items done, generates execution_brief.md
107
+ ```
108
+
109
+ **Key properties:**
110
+ - Each design invocation focuses on ONE item (narrow scope, high quality)
111
+ - Handoff tracks which items are completed, pending, or skipped
112
+ - User gets natural breakpoints between items
113
+ - Execute gets ALL design specs before starting (full picture for parallelization)
114
+ - No skip-to-execute mid-loop — complete all confirmed items first
115
+
116
+ ---
117
+
118
+ ## 5. Plan Integration: Auto-Flagging
119
+
120
+ Plan assesses every task for design readiness using a 95% threshold:
121
+
122
+ **Flag as DESIGN REQUIRED if:**
123
+ - Novel territory (no existing pattern)
124
+ - Multiple valid approaches (lasting consequences)
125
+ - User-facing decisions (layout, creative, UX, tone)
126
+ - Complex interactions (interfaces need definition)
127
+ - Ambiguous scope (HOW has genuine options)
128
+
129
+ **Plan output includes:**
130
+ ```markdown
131
+ ### Design Recommendations
132
+
133
+ | Task(s) | Item Name | Recommendation | Rationale |
134
+ |---------|-----------|---------------|-----------|
135
+ | Task 3, 4 | Behavior Tree AI | DESIGN REQUIRED | Novel architecture, multiple approaches |
136
+ | Task 7 | Combat UI | DESIGN REQUIRED | User-facing layout decisions |
137
+ | Task 1, 2 | Core Data Model | Ready for execution | Follows existing patterns |
138
+ ```
139
+
140
+ ---
141
+
142
+ ## 6. Output Format
143
+
144
+ Saved to `docs/project_notes/design_spec_[item_name].md`. Content adapts to the domain being designed. See SKILL.md for full format.
145
+
146
+ ---
147
+
148
+ ## 7. State Schema (v3.0)
149
+
150
+ ```json
151
+ {
152
+ "initialized": true,
153
+ "version": "3.0",
154
+ "workflow": {
155
+ "status": "none | prompt | planning | design | executing | complete",
156
+ "prompt": { "started": false, "completed": false, "completed_at": null, "output_files": [] },
157
+ "planning": { "started": false, "completed": false, "completed_at": null, "approved": false },
158
+ "design": {
159
+ "started": false,
160
+ "completed": false,
161
+ "completed_at": null,
162
+ "items": [
163
+ {
164
+ "name": "item_name_snake_case",
165
+ "display_name": "Human Readable Name",
166
+ "status": "pending | in_progress | completed | skipped",
167
+ "plan_tasks": [3, 4, 5],
168
+ "spec_file": null,
169
+ "flagged_reason": "Why plan flagged this"
170
+ }
171
+ ],
172
+ "current_item": null
173
+ },
174
+ "execution": { "started": false, "completed": false, "completed_at": null }
175
+ },
176
+ "last_handoff": null,
177
+ "last_handoff_transition": null
178
+ }
179
+ ```
180
+
181
+ ---
182
+
183
+ ## 8. Handoff Transitions
184
+
185
+ | # | Transition | Input | Output |
186
+ |---|-----------|-------|--------|
187
+ | 1 | prompt → plan | discovery_brief.md, discovery_output.json | planning_brief.md |
188
+ | 2 | plan → design | plan.md | design_brief.md (first item) |
189
+ | 3 | design → design | design_spec_[item].md | design_brief.md (next item) |
190
+ | 4 | design → execute | all design_spec_*.md, plan.md | execution_brief.md |
191
+ | 4B | plan → execute (skip) | plan.md | execution_brief.md |
192
+ | 5 | execute → complete | execution results | completion summary |
193
+
194
+ ---
195
+
196
+ ## 9. Critical Rules
197
+
198
+ 1. You MUST read design_brief.md before designing. If missing, route to handoff.
199
+ 2. You MUST launch context research in Phase 1 before first question.
200
+ 3. You MUST use ECD coverage tracking. Formalization only when E, C, D are sufficient.
201
+ 4. You MUST ask exactly ONE question per turn via AskUserQuestion.
202
+ 5. You MUST present 2-4 sentences of analysis BEFORE every question.
203
+ 6. You MUST be domain-agnostic. Adapt language to the domain being designed.
204
+ 7. You MUST validate against Design Completeness Checklist before presenting draft.
205
+ 8. You MUST save spec to `docs/project_notes/design_spec_[item_name].md`.
206
+ 9. You MUST route to `/intuition-handoff` after saving. NEVER to `/intuition-execute`.
207
+ 10. You MUST NOT write code — specifications only.
208
+ 11. You MUST NOT modify plan.md or discovery_brief.md.
209
+ 12. You MUST NOT manage .project-memory-state.json — handoff owns state.
210
+
211
+ ---
212
+
213
+ ## 10. Migration from v5.0
214
+
215
+ - Discovery skill removed entirely
216
+ - Prompt becomes sole entry point for problem understanding
217
+ - State schema v2.0 → v3.0 (`discovery` → `prompt`, added `design` phase)
218
+ - Install script auto-removes old `intuition-discovery` from ~/.claude/skills/
219
+ - Start skill no longer offers discovery/prompt choice — directs to prompt only