ariadna 1.3.0 → 2.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.
- checksums.yaml +4 -4
- data/ariadna.gemspec +0 -1
- data/data/agents/ariadna-codebase-mapper.md +34 -722
- data/data/agents/ariadna-debugger.md +44 -1139
- data/data/agents/ariadna-executor.md +75 -396
- data/data/agents/ariadna-planner.md +78 -1215
- data/data/agents/ariadna-roadmapper.md +55 -582
- data/data/agents/ariadna-verifier.md +60 -702
- data/data/ariadna/templates/config.json +8 -33
- data/data/ariadna/workflows/debug.md +28 -0
- data/data/ariadna/workflows/execute-phase.md +31 -513
- data/data/ariadna/workflows/map-codebase.md +20 -319
- data/data/ariadna/workflows/new-milestone.md +20 -365
- data/data/ariadna/workflows/new-project.md +19 -880
- data/data/ariadna/workflows/plan-phase.md +24 -443
- data/data/ariadna/workflows/progress.md +20 -376
- data/data/ariadna/workflows/quick.md +19 -221
- data/data/ariadna/workflows/roadmap-ops.md +28 -0
- data/data/ariadna/workflows/verify-work.md +23 -560
- data/data/commands/ariadna/add-phase.md +11 -22
- data/data/commands/ariadna/debug.md +11 -143
- data/data/commands/ariadna/execute-phase.md +12 -30
- data/data/commands/ariadna/insert-phase.md +7 -14
- data/data/commands/ariadna/map-codebase.md +16 -49
- data/data/commands/ariadna/new-milestone.md +12 -25
- data/data/commands/ariadna/new-project.md +22 -26
- data/data/commands/ariadna/plan-phase.md +13 -22
- data/data/commands/ariadna/progress.md +16 -6
- data/data/commands/ariadna/quick.md +9 -11
- data/data/commands/ariadna/remove-phase.md +9 -12
- data/data/commands/ariadna/verify-work.md +14 -19
- data/data/skills/rails-backend/API.md +138 -0
- data/data/skills/rails-backend/CONTROLLERS.md +154 -0
- data/data/skills/rails-backend/JOBS.md +132 -0
- data/data/skills/rails-backend/MODELS.md +213 -0
- data/data/skills/rails-backend/SKILL.md +169 -0
- data/data/skills/rails-frontend/ASSETS.md +154 -0
- data/data/skills/rails-frontend/COMPONENTS.md +253 -0
- data/data/skills/rails-frontend/SKILL.md +187 -0
- data/data/skills/rails-frontend/VIEWS.md +168 -0
- data/data/skills/rails-performance/PROFILING.md +106 -0
- data/data/skills/rails-performance/SKILL.md +217 -0
- data/data/skills/rails-security/AUDIT.md +118 -0
- data/data/skills/rails-security/SKILL.md +422 -0
- data/data/skills/rails-testing/FIXTURES.md +78 -0
- data/data/skills/rails-testing/SKILL.md +160 -0
- data/data/skills/rails-testing/SYSTEM-TESTS.md +73 -0
- data/lib/ariadna/installer.rb +11 -15
- data/lib/ariadna/tools/cli.rb +0 -12
- data/lib/ariadna/tools/config_manager.rb +10 -72
- data/lib/ariadna/tools/frontmatter.rb +23 -1
- data/lib/ariadna/tools/init.rb +201 -401
- data/lib/ariadna/tools/model_profiles.rb +6 -14
- data/lib/ariadna/tools/phase_manager.rb +1 -10
- data/lib/ariadna/tools/state_manager.rb +170 -451
- data/lib/ariadna/tools/template_filler.rb +4 -12
- data/lib/ariadna/tools/verification.rb +21 -399
- data/lib/ariadna/uninstaller.rb +9 -0
- data/lib/ariadna/version.rb +1 -1
- data/lib/ariadna.rb +1 -0
- metadata +20 -91
- data/data/agents/ariadna-backend-executor.md +0 -261
- data/data/agents/ariadna-frontend-executor.md +0 -259
- data/data/agents/ariadna-integration-checker.md +0 -418
- data/data/agents/ariadna-phase-researcher.md +0 -469
- data/data/agents/ariadna-plan-checker.md +0 -622
- data/data/agents/ariadna-project-researcher.md +0 -618
- data/data/agents/ariadna-research-synthesizer.md +0 -236
- data/data/agents/ariadna-test-executor.md +0 -266
- data/data/ariadna/references/checkpoints.md +0 -772
- data/data/ariadna/references/continuation-format.md +0 -249
- data/data/ariadna/references/decimal-phase-calculation.md +0 -65
- data/data/ariadna/references/git-integration.md +0 -248
- data/data/ariadna/references/git-planning-commit.md +0 -38
- data/data/ariadna/references/model-profile-resolution.md +0 -32
- data/data/ariadna/references/model-profiles.md +0 -73
- data/data/ariadna/references/phase-argument-parsing.md +0 -61
- data/data/ariadna/references/planning-config.md +0 -194
- data/data/ariadna/references/questioning.md +0 -153
- data/data/ariadna/references/rails-conventions.md +0 -416
- data/data/ariadna/references/tdd.md +0 -267
- data/data/ariadna/references/ui-brand.md +0 -160
- data/data/ariadna/references/verification-patterns.md +0 -853
- data/data/ariadna/templates/codebase/architecture.md +0 -481
- data/data/ariadna/templates/codebase/concerns.md +0 -380
- data/data/ariadna/templates/codebase/conventions.md +0 -434
- data/data/ariadna/templates/codebase/integrations.md +0 -328
- data/data/ariadna/templates/codebase/stack.md +0 -189
- data/data/ariadna/templates/codebase/structure.md +0 -418
- data/data/ariadna/templates/codebase/testing.md +0 -606
- data/data/ariadna/templates/context.md +0 -283
- data/data/ariadna/templates/continue-here.md +0 -78
- data/data/ariadna/templates/debug-subagent-prompt.md +0 -91
- data/data/ariadna/templates/phase-prompt.md +0 -609
- data/data/ariadna/templates/planner-subagent-prompt.md +0 -117
- data/data/ariadna/templates/research-project/ARCHITECTURE.md +0 -439
- data/data/ariadna/templates/research-project/FEATURES.md +0 -168
- data/data/ariadna/templates/research-project/PITFALLS.md +0 -406
- data/data/ariadna/templates/research-project/STACK.md +0 -251
- data/data/ariadna/templates/research-project/SUMMARY.md +0 -247
- data/data/ariadna/templates/state.md +0 -176
- data/data/ariadna/templates/summary-complex.md +0 -59
- data/data/ariadna/templates/summary-minimal.md +0 -41
- data/data/ariadna/templates/summary-standard.md +0 -48
- data/data/ariadna/templates/user-setup.md +0 -310
- data/data/ariadna/workflows/add-phase.md +0 -111
- data/data/ariadna/workflows/add-todo.md +0 -157
- data/data/ariadna/workflows/audit-milestone.md +0 -241
- data/data/ariadna/workflows/check-todos.md +0 -176
- data/data/ariadna/workflows/complete-milestone.md +0 -644
- data/data/ariadna/workflows/diagnose-issues.md +0 -219
- data/data/ariadna/workflows/discovery-phase.md +0 -289
- data/data/ariadna/workflows/discuss-phase.md +0 -408
- data/data/ariadna/workflows/execute-plan.md +0 -448
- data/data/ariadna/workflows/help.md +0 -470
- data/data/ariadna/workflows/insert-phase.md +0 -129
- data/data/ariadna/workflows/list-phase-assumptions.md +0 -178
- data/data/ariadna/workflows/pause-work.md +0 -122
- data/data/ariadna/workflows/plan-milestone-gaps.md +0 -256
- data/data/ariadna/workflows/remove-phase.md +0 -154
- data/data/ariadna/workflows/research-phase.md +0 -74
- data/data/ariadna/workflows/resume-project.md +0 -306
- data/data/ariadna/workflows/set-profile.md +0 -80
- data/data/ariadna/workflows/settings.md +0 -145
- data/data/ariadna/workflows/transition.md +0 -493
- data/data/ariadna/workflows/update.md +0 -212
- data/data/ariadna/workflows/verify-phase.md +0 -226
- data/data/commands/ariadna/add-todo.md +0 -42
- data/data/commands/ariadna/audit-milestone.md +0 -42
- data/data/commands/ariadna/check-todos.md +0 -41
- data/data/commands/ariadna/complete-milestone.md +0 -136
- data/data/commands/ariadna/discuss-phase.md +0 -86
- data/data/commands/ariadna/help.md +0 -22
- data/data/commands/ariadna/list-phase-assumptions.md +0 -50
- data/data/commands/ariadna/pause-work.md +0 -35
- data/data/commands/ariadna/plan-milestone-gaps.md +0 -40
- data/data/commands/ariadna/reapply-patches.md +0 -110
- data/data/commands/ariadna/research-phase.md +0 -187
- data/data/commands/ariadna/resume-work.md +0 -40
- data/data/commands/ariadna/set-profile.md +0 -34
- data/data/commands/ariadna/settings.md +0 -36
- data/data/commands/ariadna/update.md +0 -37
- data/data/guides/backend.md +0 -3069
- data/data/guides/frontend.md +0 -1479
- data/data/guides/performance.md +0 -1193
- data/data/guides/security.md +0 -1522
- data/data/guides/style-guide.md +0 -1091
- data/data/guides/testing.md +0 -504
- data/data/templates.md +0 -94
|
@@ -1,889 +1,28 @@
|
|
|
1
|
-
<purpose>
|
|
2
|
-
Initialize a new project through unified flow: questioning, research (optional), requirements, roadmap. This is the most leveraged moment in any project — deep questioning here means better plans, better execution, better outcomes. One workflow takes you from idea to ready-for-planning.
|
|
3
|
-
</purpose>
|
|
4
|
-
|
|
5
|
-
<required_reading>
|
|
6
|
-
Read all files referenced by the invoking prompt's execution_context before starting.
|
|
7
|
-
</required_reading>
|
|
8
|
-
|
|
9
|
-
<auto_mode>
|
|
10
|
-
## Auto Mode Detection
|
|
11
|
-
|
|
12
|
-
Check if `--auto` flag is present in $ARGUMENTS.
|
|
13
|
-
|
|
14
|
-
**If auto mode:**
|
|
15
|
-
- Skip brownfield mapping offer (assume greenfield)
|
|
16
|
-
- Skip deep questioning (extract context from provided document)
|
|
17
|
-
- Skip config questions — use opinionated defaults (Step 5)
|
|
18
|
-
- After config: run Steps 6-9 automatically with smart defaults:
|
|
19
|
-
- Research: No (Rails conventions pre-loaded). Use `--auto --research` to force research.
|
|
20
|
-
- Requirements: Include all table stakes + features from provided document
|
|
21
|
-
- Requirements approval: Auto-approve
|
|
22
|
-
- Roadmap approval: Auto-approve
|
|
23
|
-
|
|
24
|
-
**Document requirement:**
|
|
25
|
-
Auto mode requires an idea document via @ reference (e.g., `/ariadna:new-project --auto @prd.md`). If no document provided, error:
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
Error: --auto requires an idea document via @ reference.
|
|
29
|
-
|
|
30
|
-
Usage: /ariadna:new-project --auto @your-idea.md
|
|
31
|
-
|
|
32
|
-
The document should describe what you want to build.
|
|
33
|
-
```
|
|
34
|
-
</auto_mode>
|
|
35
|
-
|
|
36
|
-
<process>
|
|
37
|
-
|
|
38
|
-
## 1. Setup
|
|
39
|
-
|
|
40
|
-
**MANDATORY FIRST STEP — Execute these checks before ANY user interaction:**
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
INIT=$(ariadna-tools init new-project)
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
Parse JSON for: `researcher_model`, `synthesizer_model`, `roadmapper_model`, `commit_docs`, `project_exists`, `has_codebase_map`, `planning_exists`, `has_existing_code`, `has_package_file`, `is_brownfield`, `needs_codebase_map`, `has_git`.
|
|
47
|
-
|
|
48
|
-
**If `project_exists` is true:** Error — project already initialized. Use `/ariadna:progress`.
|
|
49
|
-
|
|
50
|
-
**If `has_git` is false:** Initialize git:
|
|
51
|
-
```bash
|
|
52
|
-
git init
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## 2. Brownfield Offer
|
|
56
|
-
|
|
57
|
-
**If auto mode:** Skip to Step 4 (assume greenfield, synthesize PROJECT.md from provided document).
|
|
58
|
-
|
|
59
|
-
**If `needs_codebase_map` is true** (from init — existing code detected but no codebase map):
|
|
60
|
-
|
|
61
|
-
Use AskUserQuestion:
|
|
62
|
-
- header: "Existing Code"
|
|
63
|
-
- question: "I detected existing code in this directory. Would you like to map the codebase first?"
|
|
64
|
-
- options:
|
|
65
|
-
- "Map codebase first" — Run /ariadna:map-codebase to understand existing architecture (Recommended)
|
|
66
|
-
- "Skip mapping" — Proceed with project initialization
|
|
67
|
-
|
|
68
|
-
**If "Map codebase first":**
|
|
69
|
-
```
|
|
70
|
-
Run `/ariadna:map-codebase` first, then return to `/ariadna:new-project`
|
|
71
|
-
```
|
|
72
|
-
Exit command.
|
|
73
|
-
|
|
74
|
-
**If "Skip mapping" OR `needs_codebase_map` is false:** Continue to Step 3.
|
|
75
|
-
|
|
76
|
-
## 3. Deep Questioning
|
|
77
|
-
|
|
78
|
-
**If auto mode:** Skip. Extract project context from provided document instead and proceed to Step 4.
|
|
79
|
-
|
|
80
|
-
**Display stage banner:**
|
|
81
|
-
|
|
82
|
-
```
|
|
83
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
84
|
-
Ariadna ► QUESTIONING
|
|
85
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
**Open the conversation:**
|
|
89
|
-
|
|
90
|
-
Ask inline (freeform, NOT AskUserQuestion):
|
|
91
|
-
|
|
92
|
-
"What do you want to build?"
|
|
93
|
-
|
|
94
|
-
Wait for their response. This gives you the context needed to ask intelligent follow-up questions.
|
|
95
|
-
|
|
96
|
-
**Follow the thread:**
|
|
97
|
-
|
|
98
|
-
Based on what they said, ask follow-up questions that dig into their response. Use AskUserQuestion with options that probe what they mentioned — interpretations, clarifications, concrete examples.
|
|
99
|
-
|
|
100
|
-
Keep following threads. Each answer opens new threads to explore. Ask about:
|
|
101
|
-
- What excited them
|
|
102
|
-
- What problem sparked this
|
|
103
|
-
- What they mean by vague terms
|
|
104
|
-
- What it would actually look like
|
|
105
|
-
- What's already decided
|
|
106
|
-
|
|
107
|
-
Consult `questioning.md` for techniques:
|
|
108
|
-
- Challenge vagueness
|
|
109
|
-
- Make abstract concrete
|
|
110
|
-
- Surface assumptions
|
|
111
|
-
- Find edges
|
|
112
|
-
- Reveal motivation
|
|
113
|
-
|
|
114
|
-
**Check context (background, not out loud):**
|
|
115
|
-
|
|
116
|
-
As you go, mentally check the context checklist from `questioning.md`. If gaps remain, weave questions naturally. Don't suddenly switch to checklist mode.
|
|
117
|
-
|
|
118
|
-
**Decision gate:**
|
|
119
|
-
|
|
120
|
-
When you could write a clear PROJECT.md, use AskUserQuestion:
|
|
121
|
-
|
|
122
|
-
- header: "Ready?"
|
|
123
|
-
- question: "I think I understand what you're after. Ready to create PROJECT.md?"
|
|
124
|
-
- options:
|
|
125
|
-
- "Create PROJECT.md" — Let's move forward
|
|
126
|
-
- "Keep exploring" — I want to share more / ask me more
|
|
127
|
-
|
|
128
|
-
If "Keep exploring" — ask what they want to add, or identify gaps and probe naturally.
|
|
129
|
-
|
|
130
|
-
Loop until "Create PROJECT.md" selected.
|
|
131
|
-
|
|
132
|
-
## 4. Write PROJECT.md
|
|
133
|
-
|
|
134
|
-
**If auto mode:** Synthesize from provided document. No "Ready?" gate was shown — proceed directly to commit.
|
|
135
|
-
|
|
136
|
-
Synthesize all context into `.ariadna_planning/PROJECT.md` using the template from `templates/project.md`.
|
|
137
|
-
|
|
138
|
-
**For greenfield projects:**
|
|
139
|
-
|
|
140
|
-
Initialize requirements as hypotheses:
|
|
141
|
-
|
|
142
|
-
```markdown
|
|
143
|
-
## Requirements
|
|
144
|
-
|
|
145
|
-
### Validated
|
|
146
|
-
|
|
147
|
-
(None yet — ship to validate)
|
|
148
|
-
|
|
149
|
-
### Active
|
|
150
|
-
|
|
151
|
-
- [ ] [Requirement 1]
|
|
152
|
-
- [ ] [Requirement 2]
|
|
153
|
-
- [ ] [Requirement 3]
|
|
154
|
-
|
|
155
|
-
### Out of Scope
|
|
156
|
-
|
|
157
|
-
- [Exclusion 1] — [why]
|
|
158
|
-
- [Exclusion 2] — [why]
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
All Active requirements are hypotheses until shipped and validated.
|
|
162
|
-
|
|
163
|
-
**For brownfield projects (codebase map exists):**
|
|
164
|
-
|
|
165
|
-
Infer Validated requirements from existing code:
|
|
166
|
-
|
|
167
|
-
1. Read `.ariadna_planning/codebase/ARCHITECTURE.md` and `STACK.md`
|
|
168
|
-
2. Identify what the codebase already does
|
|
169
|
-
3. These become the initial Validated set
|
|
170
|
-
|
|
171
|
-
```markdown
|
|
172
|
-
## Requirements
|
|
173
|
-
|
|
174
|
-
### Validated
|
|
175
|
-
|
|
176
|
-
- ✓ [Existing capability 1] — existing
|
|
177
|
-
- ✓ [Existing capability 2] — existing
|
|
178
|
-
- ✓ [Existing capability 3] — existing
|
|
179
|
-
|
|
180
|
-
### Active
|
|
181
|
-
|
|
182
|
-
- [ ] [New requirement 1]
|
|
183
|
-
- [ ] [New requirement 2]
|
|
184
|
-
|
|
185
|
-
### Out of Scope
|
|
186
|
-
|
|
187
|
-
- [Exclusion 1] — [why]
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
**Key Decisions:**
|
|
191
|
-
|
|
192
|
-
Initialize with any decisions made during questioning:
|
|
193
|
-
|
|
194
|
-
```markdown
|
|
195
|
-
## Key Decisions
|
|
196
|
-
|
|
197
|
-
| Decision | Rationale | Outcome |
|
|
198
|
-
|----------|-----------|---------|
|
|
199
|
-
| [Choice from questioning] | [Why] | — Pending |
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
**Last updated footer:**
|
|
203
|
-
|
|
204
|
-
```markdown
|
|
205
1
|
---
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
Do not compress. Capture everything gathered.
|
|
210
|
-
|
|
211
|
-
**Commit PROJECT.md:**
|
|
212
|
-
|
|
213
|
-
```bash
|
|
214
|
-
mkdir -p .ariadna_planning
|
|
215
|
-
ariadna-tools commit "docs: initialize project" --files .ariadna_planning/PROJECT.md
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
## 5. Workflow Configuration
|
|
219
|
-
|
|
220
|
-
**Use opinionated defaults. Only ask if user wants to customize.**
|
|
221
|
-
|
|
222
|
-
Apply these defaults directly to `.ariadna_planning/config.json`:
|
|
223
|
-
|
|
224
|
-
```json
|
|
225
|
-
{
|
|
226
|
-
"mode": "interactive",
|
|
227
|
-
"depth": "standard",
|
|
228
|
-
"parallelization": true,
|
|
229
|
-
"commit_docs": true,
|
|
230
|
-
"model_profile": "balanced",
|
|
231
|
-
"workflow": {
|
|
232
|
-
"research": false,
|
|
233
|
-
"plan_check": true,
|
|
234
|
-
"verifier": true
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
**Ask ONE question — only the non-obvious setting:**
|
|
240
|
-
|
|
241
|
-
```
|
|
242
|
-
questions: [
|
|
243
|
-
{
|
|
244
|
-
header: "Depth",
|
|
245
|
-
question: "How thorough should planning be?",
|
|
246
|
-
multiSelect: false,
|
|
247
|
-
options: [
|
|
248
|
-
{ label: "Standard (Recommended)", description: "Balanced scope and speed (5-8 phases, 3-5 plans each)" },
|
|
249
|
-
{ label: "Quick", description: "Ship fast (3-5 phases, 1-3 plans each)" },
|
|
250
|
-
{ label: "Comprehensive", description: "Thorough coverage (8-12 phases, 5-10 plans each)" }
|
|
251
|
-
]
|
|
252
|
-
}
|
|
253
|
-
]
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
Create `.ariadna_planning/config.json` with the defaults above, applying the user's depth selection.
|
|
257
|
-
|
|
258
|
-
**Commit config.json:**
|
|
259
|
-
|
|
260
|
-
```bash
|
|
261
|
-
ariadna-tools commit "chore: add project config" --files .ariadna_planning/config.json
|
|
262
|
-
```
|
|
263
|
-
|
|
264
|
-
**Note:** Run `/ariadna:settings` anytime to update these preferences (research, model profile, parallelization, etc.).
|
|
265
|
-
|
|
266
|
-
## 5.5. Resolve Model Profile
|
|
267
|
-
|
|
268
|
-
Use models from init: `roadmapper_model`.
|
|
269
|
-
|
|
270
|
-
## 6. Research Decision
|
|
271
|
-
|
|
272
|
-
**Default: Skip research.** Rails conventions are pre-loaded via `rails-conventions.md` reference document, which provides standard stack, architecture patterns, common pitfalls, and testing patterns.
|
|
273
|
-
|
|
274
|
-
**If `--research` flag was passed or auto mode:** Run full research (see below).
|
|
275
|
-
|
|
276
|
-
**Otherwise:** Display skip notice and continue to Step 7:
|
|
277
|
-
|
|
278
|
-
```
|
|
279
|
-
Using pre-loaded Rails conventions (stack, architecture, patterns, pitfalls).
|
|
280
|
-
To research instead: /ariadna:new-project --research
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
**If research requested (`--research` flag or auto mode):**
|
|
284
|
-
|
|
285
|
-
Display stage banner:
|
|
286
|
-
```
|
|
287
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
288
|
-
Ariadna ► RESEARCHING
|
|
289
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
290
|
-
|
|
291
|
-
Researching [domain] ecosystem...
|
|
292
|
-
```
|
|
293
|
-
|
|
294
|
-
Create research directory:
|
|
295
|
-
```bash
|
|
296
|
-
mkdir -p .ariadna_planning/research
|
|
297
|
-
```
|
|
298
|
-
|
|
299
|
-
**Determine milestone context:**
|
|
300
|
-
|
|
301
|
-
Check if this is greenfield or subsequent milestone:
|
|
302
|
-
- If no "Validated" requirements in PROJECT.md → Greenfield (building from scratch)
|
|
303
|
-
- If "Validated" requirements exist → Subsequent milestone (adding to existing app)
|
|
304
|
-
|
|
305
|
-
Display spawning indicator:
|
|
306
|
-
```
|
|
307
|
-
◆ Spawning 4 researchers in parallel...
|
|
308
|
-
→ Stack research
|
|
309
|
-
→ Features research
|
|
310
|
-
→ Architecture research
|
|
311
|
-
→ Pitfalls research
|
|
312
|
-
```
|
|
313
|
-
|
|
314
|
-
Spawn 4 parallel ariadna-project-researcher agents with rich context:
|
|
315
|
-
|
|
316
|
-
```
|
|
317
|
-
Task(prompt="First, read ~/.claude/agents/ariadna-project-researcher.md for your role and instructions.
|
|
318
|
-
|
|
319
|
-
<research_type>
|
|
320
|
-
Project Research — Stack dimension for [domain].
|
|
321
|
-
</research_type>
|
|
322
|
-
|
|
323
|
-
<milestone_context>
|
|
324
|
-
[greenfield OR subsequent]
|
|
325
|
-
|
|
326
|
-
Greenfield: Research the standard stack for building [domain] from scratch.
|
|
327
|
-
Subsequent: Research what's needed to add [target features] to an existing [domain] app. Don't re-research the existing system.
|
|
328
|
-
</milestone_context>
|
|
329
|
-
|
|
330
|
-
<question>
|
|
331
|
-
What's the standard 2025 stack for [domain]?
|
|
332
|
-
</question>
|
|
333
|
-
|
|
334
|
-
<project_context>
|
|
335
|
-
[PROJECT.md summary - core value, constraints, what they're building]
|
|
336
|
-
</project_context>
|
|
337
|
-
|
|
338
|
-
<downstream_consumer>
|
|
339
|
-
Your STACK.md feeds into roadmap creation. Be prescriptive:
|
|
340
|
-
- Specific libraries with versions
|
|
341
|
-
- Clear rationale for each choice
|
|
342
|
-
- What NOT to use and why
|
|
343
|
-
</downstream_consumer>
|
|
344
|
-
|
|
345
|
-
<quality_gate>
|
|
346
|
-
- [ ] Versions are current (verify with Context7/official docs, not training data)
|
|
347
|
-
- [ ] Rationale explains WHY, not just WHAT
|
|
348
|
-
- [ ] Confidence levels assigned to each recommendation
|
|
349
|
-
</quality_gate>
|
|
350
|
-
|
|
351
|
-
<output>
|
|
352
|
-
Write to: .ariadna_planning/research/STACK.md
|
|
353
|
-
Use template: ~/.claude/ariadna/templates/research-project/STACK.md
|
|
354
|
-
</output>
|
|
355
|
-
", subagent_type="general-purpose", model="{researcher_model}", description="Stack research")
|
|
356
|
-
|
|
357
|
-
Task(prompt="First, read ~/.claude/agents/ariadna-project-researcher.md for your role and instructions.
|
|
358
|
-
|
|
359
|
-
<research_type>
|
|
360
|
-
Project Research — Features dimension for [domain].
|
|
361
|
-
</research_type>
|
|
362
|
-
|
|
363
|
-
<milestone_context>
|
|
364
|
-
[greenfield OR subsequent]
|
|
365
|
-
|
|
366
|
-
Greenfield: What features do [domain] products have? What's table stakes vs differentiating?
|
|
367
|
-
Subsequent: How do [target features] typically work? What's expected behavior?
|
|
368
|
-
</milestone_context>
|
|
369
|
-
|
|
370
|
-
<question>
|
|
371
|
-
What features do [domain] products have? What's table stakes vs differentiating?
|
|
372
|
-
</question>
|
|
373
|
-
|
|
374
|
-
<project_context>
|
|
375
|
-
[PROJECT.md summary]
|
|
376
|
-
</project_context>
|
|
377
|
-
|
|
378
|
-
<downstream_consumer>
|
|
379
|
-
Your FEATURES.md feeds into requirements definition. Categorize clearly:
|
|
380
|
-
- Table stakes (must have or users leave)
|
|
381
|
-
- Differentiators (competitive advantage)
|
|
382
|
-
- Anti-features (things to deliberately NOT build)
|
|
383
|
-
</downstream_consumer>
|
|
384
|
-
|
|
385
|
-
<quality_gate>
|
|
386
|
-
- [ ] Categories are clear (table stakes vs differentiators vs anti-features)
|
|
387
|
-
- [ ] Complexity noted for each feature
|
|
388
|
-
- [ ] Dependencies between features identified
|
|
389
|
-
</quality_gate>
|
|
390
|
-
|
|
391
|
-
<output>
|
|
392
|
-
Write to: .ariadna_planning/research/FEATURES.md
|
|
393
|
-
Use template: ~/.claude/ariadna/templates/research-project/FEATURES.md
|
|
394
|
-
</output>
|
|
395
|
-
", subagent_type="general-purpose", model="{researcher_model}", description="Features research")
|
|
396
|
-
|
|
397
|
-
Task(prompt="First, read ~/.claude/agents/ariadna-project-researcher.md for your role and instructions.
|
|
398
|
-
|
|
399
|
-
<research_type>
|
|
400
|
-
Project Research — Architecture dimension for [domain].
|
|
401
|
-
</research_type>
|
|
402
|
-
|
|
403
|
-
<milestone_context>
|
|
404
|
-
[greenfield OR subsequent]
|
|
405
|
-
|
|
406
|
-
Greenfield: How are [domain] systems typically structured? What are major components?
|
|
407
|
-
Subsequent: How do [target features] integrate with existing [domain] architecture?
|
|
408
|
-
</milestone_context>
|
|
409
|
-
|
|
410
|
-
<question>
|
|
411
|
-
How are [domain] systems typically structured? What are major components?
|
|
412
|
-
</question>
|
|
413
|
-
|
|
414
|
-
<project_context>
|
|
415
|
-
[PROJECT.md summary]
|
|
416
|
-
</project_context>
|
|
417
|
-
|
|
418
|
-
<downstream_consumer>
|
|
419
|
-
Your ARCHITECTURE.md informs phase structure in roadmap. Include:
|
|
420
|
-
- Component boundaries (what talks to what)
|
|
421
|
-
- Data flow (how information moves)
|
|
422
|
-
- Suggested build order (dependencies between components)
|
|
423
|
-
</downstream_consumer>
|
|
424
|
-
|
|
425
|
-
<quality_gate>
|
|
426
|
-
- [ ] Components clearly defined with boundaries
|
|
427
|
-
- [ ] Data flow direction explicit
|
|
428
|
-
- [ ] Build order implications noted
|
|
429
|
-
</quality_gate>
|
|
430
|
-
|
|
431
|
-
<output>
|
|
432
|
-
Write to: .ariadna_planning/research/ARCHITECTURE.md
|
|
433
|
-
Use template: ~/.claude/ariadna/templates/research-project/ARCHITECTURE.md
|
|
434
|
-
</output>
|
|
435
|
-
", subagent_type="general-purpose", model="{researcher_model}", description="Architecture research")
|
|
436
|
-
|
|
437
|
-
Task(prompt="First, read ~/.claude/agents/ariadna-project-researcher.md for your role and instructions.
|
|
438
|
-
|
|
439
|
-
<research_type>
|
|
440
|
-
Project Research — Pitfalls dimension for [domain].
|
|
441
|
-
</research_type>
|
|
442
|
-
|
|
443
|
-
<milestone_context>
|
|
444
|
-
[greenfield OR subsequent]
|
|
445
|
-
|
|
446
|
-
Greenfield: What do [domain] projects commonly get wrong? Critical mistakes?
|
|
447
|
-
Subsequent: What are common mistakes when adding [target features] to [domain]?
|
|
448
|
-
</milestone_context>
|
|
449
|
-
|
|
450
|
-
<question>
|
|
451
|
-
What do [domain] projects commonly get wrong? Critical mistakes?
|
|
452
|
-
</question>
|
|
453
|
-
|
|
454
|
-
<project_context>
|
|
455
|
-
[PROJECT.md summary]
|
|
456
|
-
</project_context>
|
|
457
|
-
|
|
458
|
-
<downstream_consumer>
|
|
459
|
-
Your PITFALLS.md prevents mistakes in roadmap/planning. For each pitfall:
|
|
460
|
-
- Warning signs (how to detect early)
|
|
461
|
-
- Prevention strategy (how to avoid)
|
|
462
|
-
- Which phase should address it
|
|
463
|
-
</downstream_consumer>
|
|
464
|
-
|
|
465
|
-
<quality_gate>
|
|
466
|
-
- [ ] Pitfalls are specific to this domain (not generic advice)
|
|
467
|
-
- [ ] Prevention strategies are actionable
|
|
468
|
-
- [ ] Phase mapping included where relevant
|
|
469
|
-
</quality_gate>
|
|
470
|
-
|
|
471
|
-
<output>
|
|
472
|
-
Write to: .ariadna_planning/research/PITFALLS.md
|
|
473
|
-
Use template: ~/.claude/ariadna/templates/research-project/PITFALLS.md
|
|
474
|
-
</output>
|
|
475
|
-
", subagent_type="general-purpose", model="{researcher_model}", description="Pitfalls research")
|
|
476
|
-
```
|
|
477
|
-
|
|
478
|
-
After all 4 agents complete, spawn synthesizer to create SUMMARY.md:
|
|
479
|
-
|
|
480
|
-
```
|
|
481
|
-
Task(prompt="
|
|
482
|
-
<task>
|
|
483
|
-
Synthesize research outputs into SUMMARY.md.
|
|
484
|
-
</task>
|
|
485
|
-
|
|
486
|
-
<research_files>
|
|
487
|
-
Read these files:
|
|
488
|
-
- .ariadna_planning/research/STACK.md
|
|
489
|
-
- .ariadna_planning/research/FEATURES.md
|
|
490
|
-
- .ariadna_planning/research/ARCHITECTURE.md
|
|
491
|
-
- .ariadna_planning/research/PITFALLS.md
|
|
492
|
-
</research_files>
|
|
493
|
-
|
|
494
|
-
<output>
|
|
495
|
-
Write to: .ariadna_planning/research/SUMMARY.md
|
|
496
|
-
Use template: ~/.claude/ariadna/templates/research-project/SUMMARY.md
|
|
497
|
-
Commit after writing.
|
|
498
|
-
</output>
|
|
499
|
-
", subagent_type="ariadna-research-synthesizer", model="{synthesizer_model}", description="Synthesize research")
|
|
500
|
-
```
|
|
501
|
-
|
|
502
|
-
Display research complete banner and key findings:
|
|
503
|
-
```
|
|
504
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
505
|
-
Ariadna ► RESEARCH COMPLETE ✓
|
|
506
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
507
|
-
|
|
508
|
-
## Key Findings
|
|
509
|
-
|
|
510
|
-
**Stack:** [from SUMMARY.md]
|
|
511
|
-
**Table Stakes:** [from SUMMARY.md]
|
|
512
|
-
**Watch Out For:** [from SUMMARY.md]
|
|
513
|
-
|
|
514
|
-
Files: `.ariadna_planning/research/`
|
|
515
|
-
```
|
|
516
|
-
|
|
517
|
-
**If research not requested:** Continue to Step 7.
|
|
518
|
-
|
|
519
|
-
## 7. Define Requirements
|
|
520
|
-
|
|
521
|
-
Display stage banner:
|
|
522
|
-
```
|
|
523
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
524
|
-
Ariadna ► DEFINING REQUIREMENTS
|
|
525
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
526
|
-
```
|
|
527
|
-
|
|
528
|
-
**Load context:**
|
|
529
|
-
|
|
530
|
-
Read PROJECT.md and extract:
|
|
531
|
-
- Core value (the ONE thing that must work)
|
|
532
|
-
- Stated constraints (budget, timeline, tech limitations)
|
|
533
|
-
- Any explicit scope boundaries
|
|
534
|
-
|
|
535
|
-
**If research exists:** Read research/FEATURES.md and extract feature categories.
|
|
536
|
-
|
|
537
|
-
**If auto mode:**
|
|
538
|
-
- Auto-include all table stakes features (users expect these)
|
|
539
|
-
- Include features explicitly mentioned in provided document
|
|
540
|
-
- Auto-defer differentiators not mentioned in document
|
|
541
|
-
- Skip per-category AskUserQuestion loops
|
|
542
|
-
- Skip "Any additions?" question
|
|
543
|
-
- Skip requirements approval gate
|
|
544
|
-
- Generate REQUIREMENTS.md and commit directly
|
|
545
|
-
|
|
546
|
-
**Present features by category (interactive mode only):**
|
|
547
|
-
|
|
548
|
-
```
|
|
549
|
-
Here are the features for [domain]:
|
|
550
|
-
|
|
551
|
-
## Authentication
|
|
552
|
-
**Table stakes:**
|
|
553
|
-
- Sign up with email/password
|
|
554
|
-
- Email verification
|
|
555
|
-
- Password reset
|
|
556
|
-
- Session management
|
|
557
|
-
|
|
558
|
-
**Differentiators:**
|
|
559
|
-
- Magic link login
|
|
560
|
-
- OAuth (Google, GitHub)
|
|
561
|
-
- 2FA
|
|
562
|
-
|
|
563
|
-
**Research notes:** [any relevant notes]
|
|
564
|
-
|
|
2
|
+
name: new-project
|
|
3
|
+
description: Initialize a new project from idea to roadmap — questioning, requirements, and phased execution plan.
|
|
565
4
|
---
|
|
566
5
|
|
|
567
|
-
##
|
|
568
|
-
|
|
569
|
-
```
|
|
570
|
-
|
|
571
|
-
**If no research:** Gather requirements through conversation instead.
|
|
572
|
-
|
|
573
|
-
Ask: "What are the main things users need to be able to do?"
|
|
574
|
-
|
|
575
|
-
For each capability mentioned:
|
|
576
|
-
- Ask clarifying questions to make it specific
|
|
577
|
-
- Probe for related capabilities
|
|
578
|
-
- Group into categories
|
|
579
|
-
|
|
580
|
-
**Scope each category:**
|
|
581
|
-
|
|
582
|
-
For each category, use AskUserQuestion:
|
|
583
|
-
|
|
584
|
-
- header: "[Category name]"
|
|
585
|
-
- question: "Which [category] features are in v1?"
|
|
586
|
-
- multiSelect: true
|
|
587
|
-
- options:
|
|
588
|
-
- "[Feature 1]" — [brief description]
|
|
589
|
-
- "[Feature 2]" — [brief description]
|
|
590
|
-
- "[Feature 3]" — [brief description]
|
|
591
|
-
- "None for v1" — Defer entire category
|
|
592
|
-
|
|
593
|
-
Track responses:
|
|
594
|
-
- Selected features → v1 requirements
|
|
595
|
-
- Unselected table stakes → v2 (users expect these)
|
|
596
|
-
- Unselected differentiators → out of scope
|
|
597
|
-
|
|
598
|
-
**Identify gaps:**
|
|
599
|
-
|
|
600
|
-
Use AskUserQuestion:
|
|
601
|
-
- header: "Additions"
|
|
602
|
-
- question: "Any requirements research missed? (Features specific to your vision)"
|
|
603
|
-
- options:
|
|
604
|
-
- "No, research covered it" — Proceed
|
|
605
|
-
- "Yes, let me add some" — Capture additions
|
|
606
|
-
|
|
607
|
-
**Validate core value:**
|
|
608
|
-
|
|
609
|
-
Cross-check requirements against Core Value from PROJECT.md. If gaps detected, surface them.
|
|
610
|
-
|
|
611
|
-
**Generate REQUIREMENTS.md:**
|
|
612
|
-
|
|
613
|
-
Create `.ariadna_planning/REQUIREMENTS.md` with:
|
|
614
|
-
- v1 Requirements grouped by category (checkboxes, REQ-IDs)
|
|
615
|
-
- v2 Requirements (deferred)
|
|
616
|
-
- Out of Scope (explicit exclusions with reasoning)
|
|
617
|
-
- Traceability section (empty, filled by roadmap)
|
|
618
|
-
|
|
619
|
-
**REQ-ID format:** `[CATEGORY]-[NUMBER]` (AUTH-01, CONTENT-02)
|
|
620
|
-
|
|
621
|
-
**Requirement quality criteria:**
|
|
622
|
-
|
|
623
|
-
Good requirements are:
|
|
624
|
-
- **Specific and testable:** "User can reset password via email link" (not "Handle password reset")
|
|
625
|
-
- **User-centric:** "User can X" (not "System does Y")
|
|
626
|
-
- **Atomic:** One capability per requirement (not "User can login and manage profile")
|
|
627
|
-
- **Independent:** Minimal dependencies on other requirements
|
|
628
|
-
|
|
629
|
-
Reject vague requirements. Push for specificity:
|
|
630
|
-
- "Handle authentication" → "User can log in with email/password and stay logged in across sessions"
|
|
631
|
-
- "Support sharing" → "User can share post via link that opens in recipient's browser"
|
|
632
|
-
|
|
633
|
-
**Requirement motivation:**
|
|
634
|
-
|
|
635
|
-
Each requirement should include a brief "why" clause connecting it to Who This Serves or Product Vision from PROJECT.md:
|
|
636
|
-
- `User can reset password via email link — *reduces support burden*`
|
|
637
|
-
- `User can create text post — *core content creation loop*`
|
|
638
|
-
- Draw the "why" from the user descriptions and product vision captured earlier
|
|
639
|
-
- If the "why" is obvious, it's still worth stating — it helps the roadmapper cluster phases by purpose
|
|
640
|
-
|
|
641
|
-
**Present full requirements list (interactive mode only):**
|
|
642
|
-
|
|
643
|
-
Show every requirement (not counts) for user confirmation:
|
|
644
|
-
|
|
645
|
-
```
|
|
646
|
-
## v1 Requirements
|
|
647
|
-
|
|
648
|
-
### Authentication
|
|
649
|
-
- [ ] **AUTH-01**: User can create account with email/password — *enables personalized experience*
|
|
650
|
-
- [ ] **AUTH-02**: User can log in and stay logged in across sessions — *removes friction from daily use*
|
|
651
|
-
- [ ] **AUTH-03**: User can log out from any page — *user controls their session*
|
|
652
|
-
|
|
653
|
-
### Content
|
|
654
|
-
- [ ] **CONT-01**: User can create posts with text — *core content creation loop*
|
|
655
|
-
- [ ] **CONT-02**: User can edit their own posts — *reduces friction of sharing*
|
|
656
|
-
|
|
657
|
-
[... full list ...]
|
|
658
|
-
|
|
659
|
-
---
|
|
660
|
-
|
|
661
|
-
Does this capture what you're building? (yes / adjust)
|
|
662
|
-
```
|
|
663
|
-
|
|
664
|
-
If "adjust": Return to scoping.
|
|
665
|
-
|
|
666
|
-
**Commit requirements:**
|
|
6
|
+
## Goal
|
|
7
|
+
Guide the user from raw idea to a committed roadmap by running deep questioning, defining requirements, and spawning the roadmapper. One workflow takes you from "I want to build X" to "Phase 1: plan-phase 1".
|
|
667
8
|
|
|
9
|
+
## Context Loading
|
|
668
10
|
```bash
|
|
669
|
-
ariadna-tools
|
|
670
|
-
```
|
|
671
|
-
|
|
672
|
-
## 8. Create Roadmap
|
|
673
|
-
|
|
674
|
-
Display stage banner:
|
|
675
|
-
```
|
|
676
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
677
|
-
Ariadna ► CREATING ROADMAP
|
|
678
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
679
|
-
|
|
680
|
-
◆ Spawning roadmapper...
|
|
681
|
-
```
|
|
682
|
-
|
|
683
|
-
Spawn ariadna-roadmapper agent with context:
|
|
684
|
-
|
|
685
|
-
```
|
|
686
|
-
Task(prompt="
|
|
687
|
-
<planning_context>
|
|
688
|
-
|
|
689
|
-
**Project:**
|
|
690
|
-
@.ariadna_planning/PROJECT.md
|
|
691
|
-
|
|
692
|
-
**Requirements:**
|
|
693
|
-
@.ariadna_planning/REQUIREMENTS.md
|
|
694
|
-
|
|
695
|
-
**Research (if exists):**
|
|
696
|
-
@.ariadna_planning/research/SUMMARY.md
|
|
697
|
-
|
|
698
|
-
**Rails Conventions (pre-loaded domain knowledge):**
|
|
699
|
-
@~/.claude/ariadna/references/rails-conventions.md
|
|
700
|
-
|
|
701
|
-
**Config:**
|
|
702
|
-
@.ariadna_planning/config.json
|
|
703
|
-
|
|
704
|
-
</planning_context>
|
|
705
|
-
|
|
706
|
-
<instructions>
|
|
707
|
-
Create roadmap:
|
|
708
|
-
1. Derive phases from requirements (don't impose structure)
|
|
709
|
-
2. Map every v1 requirement to exactly one phase
|
|
710
|
-
3. Derive 2-5 success criteria per phase (observable user behaviors)
|
|
711
|
-
4. Validate 100% coverage
|
|
712
|
-
5. Use Rails conventions reference for standard patterns and build order
|
|
713
|
-
6. Write files immediately (ROADMAP.md, STATE.md, update REQUIREMENTS.md traceability)
|
|
714
|
-
7. Return ROADMAP CREATED with summary
|
|
715
|
-
|
|
716
|
-
Write files first, then return. This ensures artifacts persist even if context is lost.
|
|
717
|
-
</instructions>
|
|
718
|
-
", subagent_type="ariadna-roadmapper", model="{roadmapper_model}", description="Create roadmap")
|
|
719
|
-
```
|
|
720
|
-
|
|
721
|
-
**Handle roadmapper return:**
|
|
722
|
-
|
|
723
|
-
**If `## ROADMAP BLOCKED`:**
|
|
724
|
-
- Present blocker information
|
|
725
|
-
- Work with user to resolve
|
|
726
|
-
- Re-spawn when resolved
|
|
727
|
-
|
|
728
|
-
**If `## ROADMAP CREATED`:**
|
|
729
|
-
|
|
730
|
-
Read the created ROADMAP.md and present it nicely inline:
|
|
731
|
-
|
|
732
|
-
```
|
|
733
|
-
---
|
|
734
|
-
|
|
735
|
-
## Proposed Roadmap
|
|
736
|
-
|
|
737
|
-
**[N] phases** | **[X] requirements mapped** | All v1 requirements covered ✓
|
|
738
|
-
|
|
739
|
-
| # | Phase | Goal | Requirements | Success Criteria |
|
|
740
|
-
|---|-------|------|--------------|------------------|
|
|
741
|
-
| 1 | [Name] | [Goal] | [REQ-IDs] | [count] |
|
|
742
|
-
| 2 | [Name] | [Goal] | [REQ-IDs] | [count] |
|
|
743
|
-
| 3 | [Name] | [Goal] | [REQ-IDs] | [count] |
|
|
744
|
-
...
|
|
745
|
-
|
|
746
|
-
### Phase Details
|
|
747
|
-
|
|
748
|
-
**Phase 1: [Name]**
|
|
749
|
-
Goal: [goal]
|
|
750
|
-
Requirements: [REQ-IDs]
|
|
751
|
-
Success criteria:
|
|
752
|
-
1. [criterion]
|
|
753
|
-
2. [criterion]
|
|
754
|
-
3. [criterion]
|
|
755
|
-
|
|
756
|
-
**Phase 2: [Name]**
|
|
757
|
-
Goal: [goal]
|
|
758
|
-
Requirements: [REQ-IDs]
|
|
759
|
-
Success criteria:
|
|
760
|
-
1. [criterion]
|
|
761
|
-
2. [criterion]
|
|
762
|
-
|
|
763
|
-
[... continue for all phases ...]
|
|
764
|
-
|
|
765
|
-
---
|
|
766
|
-
```
|
|
767
|
-
|
|
768
|
-
**If auto mode:** Skip approval gate — auto-approve and commit directly.
|
|
769
|
-
|
|
770
|
-
**CRITICAL: Ask for approval before committing (interactive mode only):**
|
|
771
|
-
|
|
772
|
-
Use AskUserQuestion:
|
|
773
|
-
- header: "Roadmap"
|
|
774
|
-
- question: "Does this roadmap structure work for you?"
|
|
775
|
-
- options:
|
|
776
|
-
- "Approve" — Commit and continue
|
|
777
|
-
- "Adjust phases" — Tell me what to change
|
|
778
|
-
- "Review full file" — Show raw ROADMAP.md
|
|
779
|
-
|
|
780
|
-
**If "Approve":** Continue to commit.
|
|
781
|
-
|
|
782
|
-
**If "Adjust phases":**
|
|
783
|
-
- Get user's adjustment notes
|
|
784
|
-
- Re-spawn roadmapper with revision context:
|
|
785
|
-
```
|
|
786
|
-
Task(prompt="
|
|
787
|
-
<revision>
|
|
788
|
-
User feedback on roadmap:
|
|
789
|
-
[user's notes]
|
|
790
|
-
|
|
791
|
-
Current ROADMAP.md: @.ariadna_planning/ROADMAP.md
|
|
792
|
-
|
|
793
|
-
Update the roadmap based on feedback. Edit files in place.
|
|
794
|
-
Return ROADMAP REVISED with changes made.
|
|
795
|
-
</revision>
|
|
796
|
-
", subagent_type="ariadna-roadmapper", model="{roadmapper_model}", description="Revise roadmap")
|
|
797
|
-
```
|
|
798
|
-
- Present revised roadmap
|
|
799
|
-
- Loop until user approves
|
|
800
|
-
|
|
801
|
-
**If "Review full file":** Display raw `cat .ariadna_planning/ROADMAP.md`, then re-ask.
|
|
802
|
-
|
|
803
|
-
**Commit roadmap (after approval or auto mode):**
|
|
804
|
-
|
|
805
|
-
```bash
|
|
806
|
-
ariadna-tools commit "docs: create roadmap ([N] phases)" --files .ariadna_planning/ROADMAP.md .ariadna_planning/STATE.md .ariadna_planning/REQUIREMENTS.md
|
|
807
|
-
```
|
|
808
|
-
|
|
809
|
-
## 9. Done
|
|
810
|
-
|
|
811
|
-
Present completion with next steps:
|
|
812
|
-
|
|
813
|
-
```
|
|
814
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
815
|
-
Ariadna ► PROJECT INITIALIZED ✓
|
|
816
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
817
|
-
|
|
818
|
-
**[Project Name]**
|
|
819
|
-
|
|
820
|
-
| Artifact | Location |
|
|
821
|
-
|----------------|-----------------------------|
|
|
822
|
-
| Project | `.ariadna_planning/PROJECT.md` |
|
|
823
|
-
| Config | `.ariadna_planning/config.json` |
|
|
824
|
-
| Research | `.ariadna_planning/research/` |
|
|
825
|
-
| Requirements | `.ariadna_planning/REQUIREMENTS.md` |
|
|
826
|
-
| Roadmap | `.ariadna_planning/ROADMAP.md` |
|
|
827
|
-
|
|
828
|
-
**[N] phases** | **[X] requirements** | Ready to build ✓
|
|
829
|
-
|
|
830
|
-
───────────────────────────────────────────────────────────────
|
|
831
|
-
|
|
832
|
-
## ▶ Next Up
|
|
833
|
-
|
|
834
|
-
**Phase 1: [Phase Name]** — [Goal from ROADMAP.md]
|
|
835
|
-
|
|
836
|
-
/ariadna:plan-phase 1
|
|
837
|
-
|
|
838
|
-
<sub>/clear first → fresh context window</sub>
|
|
839
|
-
|
|
840
|
-
---
|
|
841
|
-
|
|
842
|
-
**Also available:**
|
|
843
|
-
- /ariadna:discuss-phase 1 — gather detailed context before planning (optional)
|
|
844
|
-
- /ariadna:plan-phase 1 --research — research before planning (for non-standard integrations)
|
|
845
|
-
|
|
846
|
-
───────────────────────────────────────────────────────────────
|
|
11
|
+
INIT=$(ariadna-tools init new-project)
|
|
847
12
|
```
|
|
13
|
+
Parse: `researcher_model`, `synthesizer_model`, `roadmapper_model`, `project_exists`, `needs_codebase_map`, `has_git`. If `project_exists` is true, error and exit — use `/ariadna:progress` instead. If `has_git` is false, run `git init`.
|
|
848
14
|
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
-
|
|
854
|
-
-
|
|
855
|
-
- `.ariadna_planning/research/` (if research selected)
|
|
856
|
-
- `STACK.md`
|
|
857
|
-
- `FEATURES.md`
|
|
858
|
-
- `ARCHITECTURE.md`
|
|
859
|
-
- `PITFALLS.md`
|
|
860
|
-
- `SUMMARY.md`
|
|
861
|
-
- `.ariadna_planning/REQUIREMENTS.md`
|
|
862
|
-
- `.ariadna_planning/ROADMAP.md`
|
|
863
|
-
- `.ariadna_planning/STATE.md`
|
|
864
|
-
|
|
865
|
-
</output>
|
|
866
|
-
|
|
867
|
-
<success_criteria>
|
|
868
|
-
|
|
869
|
-
- [ ] .ariadna_planning/ directory created
|
|
870
|
-
- [ ] Git repo initialized
|
|
871
|
-
- [ ] Brownfield detection completed
|
|
872
|
-
- [ ] Deep questioning completed (threads followed, not rushed)
|
|
873
|
-
- [ ] PROJECT.md captures full context → **committed**
|
|
874
|
-
- [ ] config.json has opinionated defaults → **committed**
|
|
875
|
-
- [ ] Research completed (only if `--research` flag) — 4 parallel agents spawned → **committed**
|
|
876
|
-
- [ ] Requirements gathered (from research or conversation, with Rails conventions as context)
|
|
877
|
-
- [ ] User scoped each category (v1/v2/out of scope)
|
|
878
|
-
- [ ] REQUIREMENTS.md created with REQ-IDs → **committed**
|
|
879
|
-
- [ ] ariadna-roadmapper spawned with context (including rails-conventions.md)
|
|
880
|
-
- [ ] Roadmap files written immediately (not draft)
|
|
881
|
-
- [ ] User feedback incorporated (if any)
|
|
882
|
-
- [ ] ROADMAP.md created with phases, requirement mappings, success criteria
|
|
883
|
-
- [ ] STATE.md initialized
|
|
884
|
-
- [ ] REQUIREMENTS.md traceability updated
|
|
885
|
-
- [ ] User knows next step is `/ariadna:plan-phase 1`
|
|
15
|
+
## Constraints
|
|
16
|
+
- Auto mode (`--auto @doc.md`): skip questioning, skip approval gates, synthesize PROJECT.md from provided document
|
|
17
|
+
- Brownfield: if `needs_codebase_map` is true, offer `/ariadna:map-codebase` first before proceeding
|
|
18
|
+
- Research is off by default — Rails conventions pre-loaded via `rails-conventions.md`; add `--research` to force 4 parallel researchers
|
|
19
|
+
- Commit each artifact immediately after creation: PROJECT.md, config.json, REQUIREMENTS.md, ROADMAP.md + STATE.md
|
|
20
|
+
- Requirements must be specific, testable, user-centric with REQ-IDs (`AUTH-01`, `CONT-02`)
|
|
886
21
|
|
|
887
|
-
|
|
22
|
+
## Success Criteria
|
|
23
|
+
- `.ariadna_planning/` created with PROJECT.md, config.json, REQUIREMENTS.md, ROADMAP.md, STATE.md — all committed
|
|
24
|
+
- Every v1 requirement is mapped to exactly one roadmap phase with observable success criteria
|
|
25
|
+
- User knows the next command: `/ariadna:plan-phase 1`
|
|
888
26
|
|
|
889
|
-
|
|
27
|
+
## On Completion
|
|
28
|
+
Present artifact table, phase count, and requirement count. Offer `/ariadna:plan-phase 1` as next step with a `/clear` reminder for fresh context.
|