specline 1.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.
- package/LICENSE +21 -0
- package/README.md +161 -0
- package/cli.mjs +169 -0
- package/package.json +30 -0
- package/templates/.cursor/agents/specline-backend-dev.md +47 -0
- package/templates/.cursor/agents/specline-code-reviewer.md +51 -0
- package/templates/.cursor/agents/specline-frontend-dev.md +47 -0
- package/templates/.cursor/agents/specline-spec-creator.md +216 -0
- package/templates/.cursor/agents/specline-spec-reviewer.md +115 -0
- package/templates/.cursor/agents/specline-test-runner.md +98 -0
- package/templates/.cursor/agents/specline-test-writer.md +119 -0
- package/templates/.cursor/commands/specline-explore.md +173 -0
- package/templates/.cursor/commands/specline-pipeline.md +22 -0
- package/templates/.cursor/hooks/specline-agent-guard.sh +15 -0
- package/templates/.cursor/hooks/specline-auto-format.sh +12 -0
- package/templates/.cursor/hooks/specline-pipeline-gate.sh +682 -0
- package/templates/.cursor/hooks/specline-shell-guard.sh +18 -0
- package/templates/.cursor/hooks.json +25 -0
- package/templates/.cursor/skills/specline-apply-change/SKILL.md +140 -0
- package/templates/.cursor/skills/specline-archive-change/SKILL.md +114 -0
- package/templates/.cursor/skills/specline-explore/SKILL.md +288 -0
- package/templates/.cursor/skills/specline-pipeline/SKILL.md +674 -0
- package/templates/.cursor/skills/specline-propose/SKILL.md +79 -0
- package/templates/.specline-config.yaml +1 -0
- package/templates/specline/config.yaml +20 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"hooks": {
|
|
4
|
+
"subagentStart": [
|
|
5
|
+
{
|
|
6
|
+
"command": ".cursor/hooks/specline-agent-guard.sh",
|
|
7
|
+
"matcher": "specline-spec-creator|specline-spec-reviewer|specline-frontend-dev|specline-backend-dev|specline-code-reviewer|specline-test-writer|specline-test-runner",
|
|
8
|
+
"failClosed": true
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"beforeShellExecution": [
|
|
12
|
+
{
|
|
13
|
+
"command": ".cursor/hooks/specline-shell-guard.sh",
|
|
14
|
+
"matcher": "rm -rf|curl.*\\|.*bash|wget.*\\|.*sh|^sudo ",
|
|
15
|
+
"failClosed": true
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"afterFileEdit": [
|
|
19
|
+
{
|
|
20
|
+
"command": ".cursor/hooks/specline-auto-format.sh",
|
|
21
|
+
"matcher": "\\.(py|ts|tsx|js)$"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specline-apply-change
|
|
3
|
+
description: Implement tasks from a Specline change. Use when the user wants to start implementing, continue implementation, or work through tasks.
|
|
4
|
+
license: MIT
|
|
5
|
+
compatibility: Compatible with specline.
|
|
6
|
+
metadata:
|
|
7
|
+
author: specline
|
|
8
|
+
version: "1.0"
|
|
9
|
+
generatedBy: "1.3.1"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
Implement tasks from a Specline change.
|
|
13
|
+
|
|
14
|
+
**Input**: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
|
|
15
|
+
|
|
16
|
+
**Steps**
|
|
17
|
+
|
|
18
|
+
1. **Select the change**
|
|
19
|
+
|
|
20
|
+
If a name is provided, use it. Otherwise:
|
|
21
|
+
- Infer from conversation context if the user mentioned a change
|
|
22
|
+
- Auto-select if only one active change exists
|
|
23
|
+
- If ambiguous, run `specline-pipeline-gate.sh list --json` to get available changes and use the **AskUserQuestion tool** to let the user select
|
|
24
|
+
|
|
25
|
+
Always announce: "Using change: <name>" and how to override (e.g., `/specline-pipeline --change <other>`).
|
|
26
|
+
|
|
27
|
+
2. **Check status to understand the schema**
|
|
28
|
+
```bash
|
|
29
|
+
specline-pipeline-gate.sh artifacts --change "<name>" --json
|
|
30
|
+
```
|
|
31
|
+
Parse the JSON to understand:
|
|
32
|
+
- `schemaName`: The workflow being used (e.g., "spec-driven")
|
|
33
|
+
- Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others)
|
|
34
|
+
|
|
35
|
+
3. **Read context files**
|
|
36
|
+
|
|
37
|
+
Read the planning files at `specline/changes/<name>/`:
|
|
38
|
+
- `proposal.md` — what & why
|
|
39
|
+
- `specs/<capability>/spec.md` — requirements & scenarios
|
|
40
|
+
- `design.md` — architecture & decisions
|
|
41
|
+
- `tasks.md` — implementation checklist
|
|
42
|
+
|
|
43
|
+
Check task completion: count `- [ ]` (incomplete) vs `- [x]` (complete).
|
|
44
|
+
|
|
45
|
+
4. **Show current progress**
|
|
46
|
+
|
|
47
|
+
Display:
|
|
48
|
+
- Progress: "N/M tasks complete"
|
|
49
|
+
- Remaining tasks overview
|
|
50
|
+
|
|
51
|
+
6. **Implement tasks (loop until done or blocked)**
|
|
52
|
+
|
|
53
|
+
For each pending task:
|
|
54
|
+
- Show which task is being worked on
|
|
55
|
+
- Make the code changes required
|
|
56
|
+
- Keep changes minimal and focused
|
|
57
|
+
- Mark task complete in the tasks file: `- [ ]` → `- [x]`
|
|
58
|
+
- Continue to next task
|
|
59
|
+
|
|
60
|
+
**Pause if:**
|
|
61
|
+
- Task is unclear → ask for clarification
|
|
62
|
+
- Implementation reveals a design issue → suggest updating artifacts
|
|
63
|
+
- Error or blocker encountered → report and wait for guidance
|
|
64
|
+
- User interrupts
|
|
65
|
+
|
|
66
|
+
7. **On completion or pause, show status**
|
|
67
|
+
|
|
68
|
+
Display:
|
|
69
|
+
- Tasks completed this session
|
|
70
|
+
- Overall progress: "N/M tasks complete"
|
|
71
|
+
- If all done: suggest archive
|
|
72
|
+
- If paused: explain why and wait for guidance
|
|
73
|
+
|
|
74
|
+
**Output During Implementation**
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
## Implementing: <change-name> (schema: <schema-name>)
|
|
78
|
+
|
|
79
|
+
Working on task 3/7: <task description>
|
|
80
|
+
[...implementation happening...]
|
|
81
|
+
✓ Task complete
|
|
82
|
+
|
|
83
|
+
Working on task 4/7: <task description>
|
|
84
|
+
[...implementation happening...]
|
|
85
|
+
✓ Task complete
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**Output On Completion**
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
## Implementation Complete
|
|
92
|
+
|
|
93
|
+
**Change:** <change-name>
|
|
94
|
+
**Schema:** <schema-name>
|
|
95
|
+
**Progress:** 7/7 tasks complete ✓
|
|
96
|
+
|
|
97
|
+
### Completed This Session
|
|
98
|
+
- [x] Task 1
|
|
99
|
+
- [x] Task 2
|
|
100
|
+
...
|
|
101
|
+
|
|
102
|
+
All tasks complete! Ready to archive this change.
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
**Output On Pause (Issue Encountered)**
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
## Implementation Paused
|
|
109
|
+
|
|
110
|
+
**Change:** <change-name>
|
|
111
|
+
**Schema:** <schema-name>
|
|
112
|
+
**Progress:** 4/7 tasks complete
|
|
113
|
+
|
|
114
|
+
### Issue Encountered
|
|
115
|
+
<description of the issue>
|
|
116
|
+
|
|
117
|
+
**Options:**
|
|
118
|
+
1. <option 1>
|
|
119
|
+
2. <option 2>
|
|
120
|
+
3. Other approach
|
|
121
|
+
|
|
122
|
+
What would you like to do?
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
**Guardrails**
|
|
126
|
+
- Keep going through tasks until done or blocked
|
|
127
|
+
- Always read context files before starting (from the apply instructions output)
|
|
128
|
+
- If task is ambiguous, pause and ask before implementing
|
|
129
|
+
- If implementation reveals issues, pause and suggest artifact updates
|
|
130
|
+
- Keep code changes minimal and scoped to each task
|
|
131
|
+
- Update task checkbox immediately after completing each task
|
|
132
|
+
- Pause on errors, blockers, or unclear requirements - don't guess
|
|
133
|
+
- Use contextFiles from CLI output, don't assume specific file names
|
|
134
|
+
|
|
135
|
+
**Fluid Workflow Integration**
|
|
136
|
+
|
|
137
|
+
This skill supports the "actions on a change" model:
|
|
138
|
+
|
|
139
|
+
- **Can be invoked anytime**: Before all artifacts are done (if tasks exist), after partial implementation, interleaved with other actions
|
|
140
|
+
- **Allows artifact updates**: If implementation reveals design issues, suggest updating artifacts - not phase-locked, work fluidly
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specline-archive-change
|
|
3
|
+
description: Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.
|
|
4
|
+
license: MIT
|
|
5
|
+
compatibility: Compatible with specline.
|
|
6
|
+
metadata:
|
|
7
|
+
author: specline
|
|
8
|
+
version: "1.0"
|
|
9
|
+
generatedBy: "1.3.1"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
Archive a completed change in the experimental workflow.
|
|
13
|
+
|
|
14
|
+
**Input**: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
|
|
15
|
+
|
|
16
|
+
**Steps**
|
|
17
|
+
|
|
18
|
+
1. **If no change name provided, prompt for selection**
|
|
19
|
+
|
|
20
|
+
Run `specline-pipeline-gate.sh list --json` to get available changes. Use the **AskUserQuestion tool** to let the user select.
|
|
21
|
+
|
|
22
|
+
Show only active changes (not already archived).
|
|
23
|
+
Include the schema used for each change if available.
|
|
24
|
+
|
|
25
|
+
**IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
|
|
26
|
+
|
|
27
|
+
2. **Check artifact completion status**
|
|
28
|
+
|
|
29
|
+
Run `specline-pipeline-gate.sh artifacts --change "<name>" --json` to check artifact completion.
|
|
30
|
+
|
|
31
|
+
Parse the JSON to understand:
|
|
32
|
+
- `schemaName`: The workflow being used
|
|
33
|
+
- `artifacts`: List of artifacts with their status (`done` or other)
|
|
34
|
+
|
|
35
|
+
**If any artifacts are not `done`:**
|
|
36
|
+
- Display warning listing incomplete artifacts
|
|
37
|
+
- Use **AskUserQuestion tool** to confirm user wants to proceed
|
|
38
|
+
- Proceed if user confirms
|
|
39
|
+
|
|
40
|
+
3. **Check task completion status**
|
|
41
|
+
|
|
42
|
+
Read the tasks file (typically `tasks.md`) to check for incomplete tasks.
|
|
43
|
+
|
|
44
|
+
Count tasks marked with `- [ ]` (incomplete) vs `- [x]` (complete).
|
|
45
|
+
|
|
46
|
+
**If incomplete tasks found:**
|
|
47
|
+
- Display warning showing count of incomplete tasks
|
|
48
|
+
- Use **AskUserQuestion tool** to confirm user wants to proceed
|
|
49
|
+
- Proceed if user confirms
|
|
50
|
+
|
|
51
|
+
**If no tasks file exists:** Proceed without task-related warning.
|
|
52
|
+
|
|
53
|
+
4. **Assess delta spec sync state**
|
|
54
|
+
|
|
55
|
+
Check for delta specs at `specline/changes/<name>/specs/`. If none exist, proceed without sync prompt.
|
|
56
|
+
|
|
57
|
+
**If delta specs exist:**
|
|
58
|
+
- Compare each delta spec with its corresponding main spec at `specline/specs/<capability>/spec.md`
|
|
59
|
+
- Determine what changes would be applied (adds, modifications, removals, renames)
|
|
60
|
+
- Show a combined summary before prompting
|
|
61
|
+
|
|
62
|
+
**Prompt options:**
|
|
63
|
+
- If changes needed: "Sync now (recommended)", "Archive without syncing"
|
|
64
|
+
- If already synced: "Archive now", "Sync anyway", "Cancel"
|
|
65
|
+
|
|
66
|
+
If user chooses sync, use Task tool (subagent_type: "general-purpose", prompt: "Use Skill tool to invoke specline-sync-specs for change '<name>'. Delta spec analysis: <include the analyzed delta spec summary>"). Proceed to archive regardless of choice.
|
|
67
|
+
|
|
68
|
+
5. **Perform the archive**
|
|
69
|
+
|
|
70
|
+
Create the archive directory if it doesn't exist:
|
|
71
|
+
```bash
|
|
72
|
+
mkdir -p specline/changes/archive
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Generate target name using current date: `YYYY-MM-DD-<change-name>`
|
|
76
|
+
|
|
77
|
+
**Check if target already exists:**
|
|
78
|
+
- If yes: Fail with error, suggest renaming existing archive or using different date
|
|
79
|
+
- If no: Move the change directory to archive
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
specline-pipeline-gate.sh archive --execute --change <name>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
6. **Display summary**
|
|
86
|
+
|
|
87
|
+
Show archive completion summary including:
|
|
88
|
+
- Change name
|
|
89
|
+
- Schema that was used
|
|
90
|
+
- Archive location
|
|
91
|
+
- Whether specs were synced (if applicable)
|
|
92
|
+
- Note about any warnings (incomplete artifacts/tasks)
|
|
93
|
+
|
|
94
|
+
**Output On Success**
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
## Archive Complete
|
|
98
|
+
|
|
99
|
+
**Change:** <change-name>
|
|
100
|
+
**Schema:** <schema-name>
|
|
101
|
+
**Archived to:** specline/changes/archive/YYYY-MM-DD-<name>/
|
|
102
|
+
**Specs:** ✓ Synced to main specs (or "No delta specs" or "Sync skipped")
|
|
103
|
+
|
|
104
|
+
All artifacts complete. All tasks complete.
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**Guardrails**
|
|
108
|
+
- Always prompt for change selection if not provided
|
|
109
|
+
- Use artifact graph (specline-pipeline-gate.sh artifacts --json) for completion checking
|
|
110
|
+
- Don't block archive on warnings - just inform and confirm
|
|
111
|
+
- Preserve .specline.yaml when moving to archive (it moves with the directory)
|
|
112
|
+
- Show clear summary of what happened
|
|
113
|
+
- If sync is requested, use specline-sync-specs approach (agent-driven)
|
|
114
|
+
- If delta specs exist, always run the sync assessment and show the combined summary before prompting
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specline-explore
|
|
3
|
+
description: Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.
|
|
4
|
+
license: MIT
|
|
5
|
+
compatibility: Compatible with specline.
|
|
6
|
+
metadata:
|
|
7
|
+
author: specline
|
|
8
|
+
version: "1.0"
|
|
9
|
+
generatedBy: "1.3.1"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
Enter explore mode. Think deeply. Visualize freely. Follow the conversation wherever it goes.
|
|
13
|
+
|
|
14
|
+
**IMPORTANT: Explore mode is for thinking, not implementing.** You may read files, search code, and investigate the codebase, but you must NEVER write code or implement features. If the user asks you to implement something, remind them to exit explore mode first and create a change proposal. You MAY create Specline artifacts (proposals, designs, specs) if the user asks—that's capturing thinking, not implementing.
|
|
15
|
+
|
|
16
|
+
**This is a stance, not a workflow.** There are no fixed steps, no required sequence, no mandatory outputs. You're a thinking partner helping the user explore.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## The Stance
|
|
21
|
+
|
|
22
|
+
- **Curious, not prescriptive** - Ask questions that emerge naturally, don't follow a script
|
|
23
|
+
- **Open threads, not interrogations** - Surface multiple interesting directions and let the user follow what resonates. Don't funnel them through a single path of questions.
|
|
24
|
+
- **Visual** - Use ASCII diagrams liberally when they'd help clarify thinking
|
|
25
|
+
- **Adaptive** - Follow interesting threads, pivot when new information emerges
|
|
26
|
+
- **Patient** - Don't rush to conclusions, let the shape of the problem emerge
|
|
27
|
+
- **Grounded** - Explore the actual codebase when relevant, don't just theorize
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## What You Might Do
|
|
32
|
+
|
|
33
|
+
Depending on what the user brings, you might:
|
|
34
|
+
|
|
35
|
+
**Explore the problem space**
|
|
36
|
+
- Ask clarifying questions that emerge from what they said
|
|
37
|
+
- Challenge assumptions
|
|
38
|
+
- Reframe the problem
|
|
39
|
+
- Find analogies
|
|
40
|
+
|
|
41
|
+
**Investigate the codebase**
|
|
42
|
+
- Map existing architecture relevant to the discussion
|
|
43
|
+
- Find integration points
|
|
44
|
+
- Identify patterns already in use
|
|
45
|
+
- Surface hidden complexity
|
|
46
|
+
|
|
47
|
+
**Compare options**
|
|
48
|
+
- Brainstorm multiple approaches
|
|
49
|
+
- Build comparison tables
|
|
50
|
+
- Sketch tradeoffs
|
|
51
|
+
- Recommend a path (if asked)
|
|
52
|
+
|
|
53
|
+
**Visualize**
|
|
54
|
+
```
|
|
55
|
+
┌─────────────────────────────────────────┐
|
|
56
|
+
│ Use ASCII diagrams liberally │
|
|
57
|
+
├─────────────────────────────────────────┤
|
|
58
|
+
│ │
|
|
59
|
+
│ ┌────────┐ ┌────────┐ │
|
|
60
|
+
│ │ State │────────▶│ State │ │
|
|
61
|
+
│ │ A │ │ B │ │
|
|
62
|
+
│ └────────┘ └────────┘ │
|
|
63
|
+
│ │
|
|
64
|
+
│ System diagrams, state machines, │
|
|
65
|
+
│ data flows, architecture sketches, │
|
|
66
|
+
│ dependency graphs, comparison tables │
|
|
67
|
+
│ │
|
|
68
|
+
└─────────────────────────────────────────┘
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**Surface risks and unknowns**
|
|
72
|
+
- Identify what could go wrong
|
|
73
|
+
- Find gaps in understanding
|
|
74
|
+
- Suggest spikes or investigations
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Specline Awareness
|
|
79
|
+
|
|
80
|
+
You have full context of the OpenSpec system. Use it naturally, don't force it.
|
|
81
|
+
|
|
82
|
+
### Check for context
|
|
83
|
+
|
|
84
|
+
At the start, quickly check what exists:
|
|
85
|
+
```bash
|
|
86
|
+
specline-pipeline-gate.sh list --json
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
This tells you:
|
|
90
|
+
- If there are active changes
|
|
91
|
+
- Their names, schemas, and status
|
|
92
|
+
- What the user might be working on
|
|
93
|
+
|
|
94
|
+
### When no change exists
|
|
95
|
+
|
|
96
|
+
Think freely. When insights crystallize, you might offer:
|
|
97
|
+
|
|
98
|
+
- "This feels solid enough to start a change. Want me to create a proposal?"
|
|
99
|
+
- Or keep exploring - no pressure to formalize
|
|
100
|
+
|
|
101
|
+
### When a change exists
|
|
102
|
+
|
|
103
|
+
If the user mentions a change or you detect one is relevant:
|
|
104
|
+
|
|
105
|
+
1. **Read existing artifacts for context**
|
|
106
|
+
- `specline/changes/<name>/proposal.md`
|
|
107
|
+
- `specline/changes/<name>/design.md`
|
|
108
|
+
- `specline/changes/<name>/tasks.md`
|
|
109
|
+
- etc.
|
|
110
|
+
|
|
111
|
+
2. **Reference them naturally in conversation**
|
|
112
|
+
- "Your design mentions using Redis, but we just realized SQLite fits better..."
|
|
113
|
+
- "The proposal scopes this to premium users, but we're now thinking everyone..."
|
|
114
|
+
|
|
115
|
+
3. **Offer to capture when decisions are made**
|
|
116
|
+
|
|
117
|
+
| Insight Type | Where to Capture |
|
|
118
|
+
|----------------------------|--------------------------------|
|
|
119
|
+
| New requirement discovered | `specs/<capability>/spec.md` |
|
|
120
|
+
| Requirement changed | `specs/<capability>/spec.md` |
|
|
121
|
+
| Design decision made | `design.md` |
|
|
122
|
+
| Scope changed | `proposal.md` |
|
|
123
|
+
| New work identified | `tasks.md` |
|
|
124
|
+
| Assumption invalidated | Relevant artifact |
|
|
125
|
+
|
|
126
|
+
Example offers:
|
|
127
|
+
- "That's a design decision. Capture it in design.md?"
|
|
128
|
+
- "This is a new requirement. Add it to specs?"
|
|
129
|
+
- "This changes scope. Update the proposal?"
|
|
130
|
+
|
|
131
|
+
4. **The user decides** - Offer and move on. Don't pressure. Don't auto-capture.
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## What You Don't Have To Do
|
|
136
|
+
|
|
137
|
+
- Follow a script
|
|
138
|
+
- Ask the same questions every time
|
|
139
|
+
- Produce a specific artifact
|
|
140
|
+
- Reach a conclusion
|
|
141
|
+
- Stay on topic if a tangent is valuable
|
|
142
|
+
- Be brief (this is thinking time)
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## Handling Different Entry Points
|
|
147
|
+
|
|
148
|
+
**User brings a vague idea:**
|
|
149
|
+
```
|
|
150
|
+
User: I'm thinking about adding real-time collaboration
|
|
151
|
+
|
|
152
|
+
You: Real-time collab is a big space. Let me think about this...
|
|
153
|
+
|
|
154
|
+
COLLABORATION SPECTRUM
|
|
155
|
+
════════════════════════════════════════════
|
|
156
|
+
|
|
157
|
+
Awareness Coordination Sync
|
|
158
|
+
│ │ │
|
|
159
|
+
▼ ▼ ▼
|
|
160
|
+
┌────────┐ ┌────────┐ ┌────────┐
|
|
161
|
+
│Presence│ │Cursors │ │ CRDT │
|
|
162
|
+
│ "3 │ │ Multi │ │Conflict│
|
|
163
|
+
│online" │ │ select │ │ free │
|
|
164
|
+
└────────┘ └────────┘ └────────┘
|
|
165
|
+
│ │ │
|
|
166
|
+
trivial moderate complex
|
|
167
|
+
|
|
168
|
+
Where's your head at?
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
**User brings a specific problem:**
|
|
172
|
+
```
|
|
173
|
+
User: The auth system is a mess
|
|
174
|
+
|
|
175
|
+
You: [reads codebase]
|
|
176
|
+
|
|
177
|
+
┌─────────────────────────────────────────────┐
|
|
178
|
+
│ CURRENT AUTH FLOW │
|
|
179
|
+
└─────────────────────────────────────────────┘
|
|
180
|
+
│
|
|
181
|
+
┌─────────────┼─────────────┐
|
|
182
|
+
▼ ▼ ▼
|
|
183
|
+
┌─────────┐ ┌─────────┐ ┌─────────┐
|
|
184
|
+
│ Google │ │ GitHub │ │ Email │
|
|
185
|
+
│ OAuth │ │ OAuth │ │ Magic │
|
|
186
|
+
└────┬────┘ └────┬────┘ └────┬────┘
|
|
187
|
+
│ │ │
|
|
188
|
+
└─────────────┼─────────────┘
|
|
189
|
+
▼
|
|
190
|
+
┌───────────┐
|
|
191
|
+
│ Session │
|
|
192
|
+
└─────┬─────┘
|
|
193
|
+
│
|
|
194
|
+
▼
|
|
195
|
+
┌───────────┐
|
|
196
|
+
│ Perms │
|
|
197
|
+
└───────────┘
|
|
198
|
+
|
|
199
|
+
I see three tangles. Which one's burning?
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
**User is stuck mid-implementation:**
|
|
203
|
+
```
|
|
204
|
+
User: /opsx:explore add-auth-system
|
|
205
|
+
The OAuth integration is more complex than expected
|
|
206
|
+
|
|
207
|
+
You: [reads change artifacts]
|
|
208
|
+
|
|
209
|
+
You're on task 4: "Implement OAuth flow"
|
|
210
|
+
|
|
211
|
+
Let me trace what's involved...
|
|
212
|
+
|
|
213
|
+
[draws diagram, explores options, suggests paths]
|
|
214
|
+
|
|
215
|
+
Want to update the design to reflect this?
|
|
216
|
+
Or add a spike task to investigate?
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
**User wants to compare options:**
|
|
220
|
+
```
|
|
221
|
+
User: Should we use Postgres or SQLite?
|
|
222
|
+
|
|
223
|
+
You: Generic answer is boring. What's the context?
|
|
224
|
+
|
|
225
|
+
User: A CLI tool that tracks local dev environments
|
|
226
|
+
|
|
227
|
+
You: That changes everything.
|
|
228
|
+
|
|
229
|
+
┌─────────────────────────────────────────────────┐
|
|
230
|
+
│ CLI TOOL DATA STORAGE │
|
|
231
|
+
└─────────────────────────────────────────────────┘
|
|
232
|
+
|
|
233
|
+
Key constraints:
|
|
234
|
+
• No daemon running
|
|
235
|
+
• Must work offline
|
|
236
|
+
• Single user
|
|
237
|
+
|
|
238
|
+
SQLite Postgres
|
|
239
|
+
Deployment embedded ✓ needs server ✗
|
|
240
|
+
Offline yes ✓ no ✗
|
|
241
|
+
Single file yes ✓ no ✗
|
|
242
|
+
|
|
243
|
+
SQLite. Not even close.
|
|
244
|
+
|
|
245
|
+
Unless... is there a sync component?
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
## Ending Discovery
|
|
251
|
+
|
|
252
|
+
There's no required ending. Discovery might:
|
|
253
|
+
|
|
254
|
+
- **Flow into a proposal**: "Ready to start? I can create a change proposal."
|
|
255
|
+
- **Result in artifact updates**: "Updated design.md with these decisions"
|
|
256
|
+
- **Just provide clarity**: User has what they need, moves on
|
|
257
|
+
- **Continue later**: "We can pick this up anytime"
|
|
258
|
+
|
|
259
|
+
When it feels like things are crystallizing, you might summarize:
|
|
260
|
+
|
|
261
|
+
```
|
|
262
|
+
## What We Figured Out
|
|
263
|
+
|
|
264
|
+
**The problem**: [crystallized understanding]
|
|
265
|
+
|
|
266
|
+
**The approach**: [if one emerged]
|
|
267
|
+
|
|
268
|
+
**Open questions**: [if any remain]
|
|
269
|
+
|
|
270
|
+
**Next steps** (if ready):
|
|
271
|
+
- Create a change proposal
|
|
272
|
+
- Keep exploring: just keep talking
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
But this summary is optional. Sometimes the thinking IS the value.
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
## Guardrails
|
|
280
|
+
|
|
281
|
+
- **Don't implement** - Never write code or implement features. Creating Specline artifacts is fine, writing application code is not.
|
|
282
|
+
- **Don't fake understanding** - If something is unclear, dig deeper
|
|
283
|
+
- **Don't rush** - Discovery is thinking time, not task time
|
|
284
|
+
- **Don't force structure** - Let patterns emerge naturally
|
|
285
|
+
- **Don't auto-capture** - Offer to save insights, don't just do it
|
|
286
|
+
- **Do visualize** - A good diagram is worth many paragraphs
|
|
287
|
+
- **Do explore the codebase** - Ground discussions in reality
|
|
288
|
+
- **Do question assumptions** - Including the user's and your own
|