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.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/ariadna.gemspec +0 -1
  3. data/data/agents/ariadna-codebase-mapper.md +34 -722
  4. data/data/agents/ariadna-debugger.md +44 -1139
  5. data/data/agents/ariadna-executor.md +75 -396
  6. data/data/agents/ariadna-planner.md +78 -1215
  7. data/data/agents/ariadna-roadmapper.md +55 -582
  8. data/data/agents/ariadna-verifier.md +60 -702
  9. data/data/ariadna/templates/config.json +8 -33
  10. data/data/ariadna/workflows/debug.md +28 -0
  11. data/data/ariadna/workflows/execute-phase.md +31 -513
  12. data/data/ariadna/workflows/map-codebase.md +20 -319
  13. data/data/ariadna/workflows/new-milestone.md +20 -365
  14. data/data/ariadna/workflows/new-project.md +19 -880
  15. data/data/ariadna/workflows/plan-phase.md +24 -443
  16. data/data/ariadna/workflows/progress.md +20 -376
  17. data/data/ariadna/workflows/quick.md +19 -221
  18. data/data/ariadna/workflows/roadmap-ops.md +28 -0
  19. data/data/ariadna/workflows/verify-work.md +23 -560
  20. data/data/commands/ariadna/add-phase.md +11 -22
  21. data/data/commands/ariadna/debug.md +11 -143
  22. data/data/commands/ariadna/execute-phase.md +12 -30
  23. data/data/commands/ariadna/insert-phase.md +7 -14
  24. data/data/commands/ariadna/map-codebase.md +16 -49
  25. data/data/commands/ariadna/new-milestone.md +12 -25
  26. data/data/commands/ariadna/new-project.md +22 -26
  27. data/data/commands/ariadna/plan-phase.md +13 -22
  28. data/data/commands/ariadna/progress.md +16 -6
  29. data/data/commands/ariadna/quick.md +9 -11
  30. data/data/commands/ariadna/remove-phase.md +9 -12
  31. data/data/commands/ariadna/verify-work.md +14 -19
  32. data/data/skills/rails-backend/API.md +138 -0
  33. data/data/skills/rails-backend/CONTROLLERS.md +154 -0
  34. data/data/skills/rails-backend/JOBS.md +132 -0
  35. data/data/skills/rails-backend/MODELS.md +213 -0
  36. data/data/skills/rails-backend/SKILL.md +169 -0
  37. data/data/skills/rails-frontend/ASSETS.md +154 -0
  38. data/data/skills/rails-frontend/COMPONENTS.md +253 -0
  39. data/data/skills/rails-frontend/SKILL.md +187 -0
  40. data/data/skills/rails-frontend/VIEWS.md +168 -0
  41. data/data/skills/rails-performance/PROFILING.md +106 -0
  42. data/data/skills/rails-performance/SKILL.md +217 -0
  43. data/data/skills/rails-security/AUDIT.md +118 -0
  44. data/data/skills/rails-security/SKILL.md +422 -0
  45. data/data/skills/rails-testing/FIXTURES.md +78 -0
  46. data/data/skills/rails-testing/SKILL.md +160 -0
  47. data/data/skills/rails-testing/SYSTEM-TESTS.md +73 -0
  48. data/lib/ariadna/installer.rb +11 -15
  49. data/lib/ariadna/tools/cli.rb +0 -12
  50. data/lib/ariadna/tools/config_manager.rb +10 -72
  51. data/lib/ariadna/tools/frontmatter.rb +23 -1
  52. data/lib/ariadna/tools/init.rb +201 -401
  53. data/lib/ariadna/tools/model_profiles.rb +6 -14
  54. data/lib/ariadna/tools/phase_manager.rb +1 -10
  55. data/lib/ariadna/tools/state_manager.rb +170 -451
  56. data/lib/ariadna/tools/template_filler.rb +4 -12
  57. data/lib/ariadna/tools/verification.rb +21 -399
  58. data/lib/ariadna/uninstaller.rb +9 -0
  59. data/lib/ariadna/version.rb +1 -1
  60. data/lib/ariadna.rb +1 -0
  61. metadata +20 -91
  62. data/data/agents/ariadna-backend-executor.md +0 -261
  63. data/data/agents/ariadna-frontend-executor.md +0 -259
  64. data/data/agents/ariadna-integration-checker.md +0 -418
  65. data/data/agents/ariadna-phase-researcher.md +0 -469
  66. data/data/agents/ariadna-plan-checker.md +0 -622
  67. data/data/agents/ariadna-project-researcher.md +0 -618
  68. data/data/agents/ariadna-research-synthesizer.md +0 -236
  69. data/data/agents/ariadna-test-executor.md +0 -266
  70. data/data/ariadna/references/checkpoints.md +0 -772
  71. data/data/ariadna/references/continuation-format.md +0 -249
  72. data/data/ariadna/references/decimal-phase-calculation.md +0 -65
  73. data/data/ariadna/references/git-integration.md +0 -248
  74. data/data/ariadna/references/git-planning-commit.md +0 -38
  75. data/data/ariadna/references/model-profile-resolution.md +0 -32
  76. data/data/ariadna/references/model-profiles.md +0 -73
  77. data/data/ariadna/references/phase-argument-parsing.md +0 -61
  78. data/data/ariadna/references/planning-config.md +0 -194
  79. data/data/ariadna/references/questioning.md +0 -153
  80. data/data/ariadna/references/rails-conventions.md +0 -416
  81. data/data/ariadna/references/tdd.md +0 -267
  82. data/data/ariadna/references/ui-brand.md +0 -160
  83. data/data/ariadna/references/verification-patterns.md +0 -853
  84. data/data/ariadna/templates/codebase/architecture.md +0 -481
  85. data/data/ariadna/templates/codebase/concerns.md +0 -380
  86. data/data/ariadna/templates/codebase/conventions.md +0 -434
  87. data/data/ariadna/templates/codebase/integrations.md +0 -328
  88. data/data/ariadna/templates/codebase/stack.md +0 -189
  89. data/data/ariadna/templates/codebase/structure.md +0 -418
  90. data/data/ariadna/templates/codebase/testing.md +0 -606
  91. data/data/ariadna/templates/context.md +0 -283
  92. data/data/ariadna/templates/continue-here.md +0 -78
  93. data/data/ariadna/templates/debug-subagent-prompt.md +0 -91
  94. data/data/ariadna/templates/phase-prompt.md +0 -609
  95. data/data/ariadna/templates/planner-subagent-prompt.md +0 -117
  96. data/data/ariadna/templates/research-project/ARCHITECTURE.md +0 -439
  97. data/data/ariadna/templates/research-project/FEATURES.md +0 -168
  98. data/data/ariadna/templates/research-project/PITFALLS.md +0 -406
  99. data/data/ariadna/templates/research-project/STACK.md +0 -251
  100. data/data/ariadna/templates/research-project/SUMMARY.md +0 -247
  101. data/data/ariadna/templates/state.md +0 -176
  102. data/data/ariadna/templates/summary-complex.md +0 -59
  103. data/data/ariadna/templates/summary-minimal.md +0 -41
  104. data/data/ariadna/templates/summary-standard.md +0 -48
  105. data/data/ariadna/templates/user-setup.md +0 -310
  106. data/data/ariadna/workflows/add-phase.md +0 -111
  107. data/data/ariadna/workflows/add-todo.md +0 -157
  108. data/data/ariadna/workflows/audit-milestone.md +0 -241
  109. data/data/ariadna/workflows/check-todos.md +0 -176
  110. data/data/ariadna/workflows/complete-milestone.md +0 -644
  111. data/data/ariadna/workflows/diagnose-issues.md +0 -219
  112. data/data/ariadna/workflows/discovery-phase.md +0 -289
  113. data/data/ariadna/workflows/discuss-phase.md +0 -408
  114. data/data/ariadna/workflows/execute-plan.md +0 -448
  115. data/data/ariadna/workflows/help.md +0 -470
  116. data/data/ariadna/workflows/insert-phase.md +0 -129
  117. data/data/ariadna/workflows/list-phase-assumptions.md +0 -178
  118. data/data/ariadna/workflows/pause-work.md +0 -122
  119. data/data/ariadna/workflows/plan-milestone-gaps.md +0 -256
  120. data/data/ariadna/workflows/remove-phase.md +0 -154
  121. data/data/ariadna/workflows/research-phase.md +0 -74
  122. data/data/ariadna/workflows/resume-project.md +0 -306
  123. data/data/ariadna/workflows/set-profile.md +0 -80
  124. data/data/ariadna/workflows/settings.md +0 -145
  125. data/data/ariadna/workflows/transition.md +0 -493
  126. data/data/ariadna/workflows/update.md +0 -212
  127. data/data/ariadna/workflows/verify-phase.md +0 -226
  128. data/data/commands/ariadna/add-todo.md +0 -42
  129. data/data/commands/ariadna/audit-milestone.md +0 -42
  130. data/data/commands/ariadna/check-todos.md +0 -41
  131. data/data/commands/ariadna/complete-milestone.md +0 -136
  132. data/data/commands/ariadna/discuss-phase.md +0 -86
  133. data/data/commands/ariadna/help.md +0 -22
  134. data/data/commands/ariadna/list-phase-assumptions.md +0 -50
  135. data/data/commands/ariadna/pause-work.md +0 -35
  136. data/data/commands/ariadna/plan-milestone-gaps.md +0 -40
  137. data/data/commands/ariadna/reapply-patches.md +0 -110
  138. data/data/commands/ariadna/research-phase.md +0 -187
  139. data/data/commands/ariadna/resume-work.md +0 -40
  140. data/data/commands/ariadna/set-profile.md +0 -34
  141. data/data/commands/ariadna/settings.md +0 -36
  142. data/data/commands/ariadna/update.md +0 -37
  143. data/data/guides/backend.md +0 -3069
  144. data/data/guides/frontend.md +0 -1479
  145. data/data/guides/performance.md +0 -1193
  146. data/data/guides/security.md +0 -1522
  147. data/data/guides/style-guide.md +0 -1091
  148. data/data/guides/testing.md +0 -504
  149. data/data/templates.md +0 -94
@@ -1,74 +0,0 @@
1
- <purpose>
2
- Research how to implement a phase. Spawns ariadna-phase-researcher with phase context.
3
-
4
- Standalone research command. For most workflows, use `/ariadna:plan-phase` which integrates research automatically.
5
- </purpose>
6
-
7
- <process>
8
-
9
- ## Step 0: Resolve Model Profile
10
-
11
- @~/.claude/ariadna/references/model-profile-resolution.md
12
-
13
- Resolve model for:
14
- - `ariadna-phase-researcher`
15
-
16
- ## Step 1: Normalize and Validate Phase
17
-
18
- @~/.claude/ariadna/references/phase-argument-parsing.md
19
-
20
- ```bash
21
- PHASE_INFO=$(ariadna-tools roadmap get-phase "${PHASE}")
22
- ```
23
-
24
- If `found` is false: Error and exit.
25
-
26
- ## Step 2: Check Existing Research
27
-
28
- ```bash
29
- ls .ariadna_planning/phases/${PHASE}-*/RESEARCH.md 2>/dev/null
30
- ```
31
-
32
- If exists: Offer update/view/skip options.
33
-
34
- ## Step 3: Gather Phase Context
35
-
36
- ```bash
37
- # Phase section from roadmap (already loaded in PHASE_INFO)
38
- echo "$PHASE_INFO" | jq -r '.section'
39
- cat .ariadna_planning/REQUIREMENTS.md 2>/dev/null
40
- cat .ariadna_planning/phases/${PHASE}-*/*-CONTEXT.md 2>/dev/null
41
- # Decisions from state-snapshot (structured JSON)
42
- ariadna-tools state-snapshot | jq '.decisions'
43
- ```
44
-
45
- ## Step 4: Spawn Researcher
46
-
47
- ```
48
- Task(
49
- prompt="<objective>
50
- Research implementation approach for Phase {phase}: {name}
51
- </objective>
52
-
53
- <context>
54
- Phase description: {description}
55
- Requirements: {requirements}
56
- Prior decisions: {decisions}
57
- Phase context: {context_md}
58
- </context>
59
-
60
- <output>
61
- Write to: .ariadna_planning/phases/${PHASE}-{slug}/${PHASE}-RESEARCH.md
62
- </output>",
63
- subagent_type="ariadna-phase-researcher",
64
- model="{researcher_model}"
65
- )
66
- ```
67
-
68
- ## Step 5: Handle Return
69
-
70
- - `## RESEARCH COMPLETE` — Display summary, offer: Plan/Dig deeper/Review/Done
71
- - `## CHECKPOINT REACHED` — Present to user, spawn continuation
72
- - `## RESEARCH INCONCLUSIVE` — Show attempts, offer: Add context/Try different mode/Manual
73
-
74
- </process>
@@ -1,306 +0,0 @@
1
- <trigger>
2
- Use this workflow when:
3
- - Starting a new session on an existing project
4
- - User says "continue", "what's next", "where were we", "resume"
5
- - Any planning operation when .ariadna_planning/ already exists
6
- - User returns after time away from project
7
- </trigger>
8
-
9
- <purpose>
10
- Instantly restore full project context so "Where were we?" has an immediate, complete answer.
11
- </purpose>
12
-
13
- <required_reading>
14
- @~/.claude/ariadna/references/continuation-format.md
15
- </required_reading>
16
-
17
- <process>
18
-
19
- <step name="initialize">
20
- Load all context in one call:
21
-
22
- ```bash
23
- INIT=$(ariadna-tools init resume)
24
- ```
25
-
26
- Parse JSON for: `state_exists`, `roadmap_exists`, `project_exists`, `planning_exists`, `has_interrupted_agent`, `interrupted_agent_id`, `commit_docs`.
27
-
28
- **If `state_exists` is true:** Proceed to load_state
29
- **If `state_exists` is false but `roadmap_exists` or `project_exists` is true:** Offer to reconstruct STATE.md
30
- **If `planning_exists` is false:** This is a new project - route to /ariadna:new-project
31
- </step>
32
-
33
- <step name="load_state">
34
-
35
- Read and parse STATE.md, then PROJECT.md:
36
-
37
- ```bash
38
- cat .ariadna_planning/STATE.md
39
- cat .ariadna_planning/PROJECT.md
40
- ```
41
-
42
- **From STATE.md extract:**
43
-
44
- - **Project Reference**: Core value and current focus
45
- - **Current Position**: Phase X of Y, Plan A of B, Status
46
- - **Progress**: Visual progress bar
47
- - **Recent Decisions**: Key decisions affecting current work
48
- - **Pending Todos**: Ideas captured during sessions
49
- - **Blockers/Concerns**: Issues carried forward
50
- - **Session Continuity**: Where we left off, any resume files
51
-
52
- **From PROJECT.md extract:**
53
-
54
- - **What This Is**: Current accurate description
55
- - **Requirements**: Validated, Active, Out of Scope
56
- - **Key Decisions**: Full decision log with outcomes
57
- - **Constraints**: Hard limits on implementation
58
-
59
- </step>
60
-
61
- <step name="check_incomplete_work">
62
- Look for incomplete work that needs attention:
63
-
64
- ```bash
65
- # Check for continue-here files (mid-plan resumption)
66
- ls .ariadna_planning/phases/*/.continue-here*.md 2>/dev/null
67
-
68
- # Check for plans without summaries (incomplete execution)
69
- for plan in .ariadna_planning/phases/*/*-PLAN.md; do
70
- summary="${plan/PLAN/SUMMARY}"
71
- [ ! -f "$summary" ] && echo "Incomplete: $plan"
72
- done 2>/dev/null
73
-
74
- # Check for interrupted agents (use has_interrupted_agent and interrupted_agent_id from init)
75
- if [ "$has_interrupted_agent" = "true" ]; then
76
- echo "Interrupted agent: $interrupted_agent_id"
77
- fi
78
- ```
79
-
80
- **If .continue-here file exists:**
81
-
82
- - This is a mid-plan resumption point
83
- - Read the file for specific resumption context
84
- - Flag: "Found mid-plan checkpoint"
85
-
86
- **If PLAN without SUMMARY exists:**
87
-
88
- - Execution was started but not completed
89
- - Flag: "Found incomplete plan execution"
90
-
91
- **If interrupted agent found:**
92
-
93
- - Subagent was spawned but session ended before completion
94
- - Read agent-history.json for task details
95
- - Flag: "Found interrupted agent"
96
- </step>
97
-
98
- <step name="present_status">
99
- Present complete project status to user:
100
-
101
- ```
102
- ╔══════════════════════════════════════════════════════════════╗
103
- ║ PROJECT STATUS ║
104
- ╠══════════════════════════════════════════════════════════════╣
105
- ║ Building: [one-liner from PROJECT.md "What This Is"] ║
106
- ║ ║
107
- ║ Phase: [X] of [Y] - [Phase name] ║
108
- ║ Plan: [A] of [B] - [Status] ║
109
- ║ Progress: [██████░░░░] XX% ║
110
- ║ ║
111
- ║ Last activity: [date] - [what happened] ║
112
- ╚══════════════════════════════════════════════════════════════╝
113
-
114
- [If incomplete work found:]
115
- ⚠️ Incomplete work detected:
116
- - [.continue-here file or incomplete plan]
117
-
118
- [If interrupted agent found:]
119
- ⚠️ Interrupted agent detected:
120
- Agent ID: [id]
121
- Task: [task description from agent-history.json]
122
- Interrupted: [timestamp]
123
-
124
- Resume with: Task tool (resume parameter with agent ID)
125
-
126
- [If pending todos exist:]
127
- 📋 [N] pending todos — /ariadna:check-todos to review
128
-
129
- [If blockers exist:]
130
- ⚠️ Carried concerns:
131
- - [blocker 1]
132
- - [blocker 2]
133
-
134
- [If alignment is not ✓:]
135
- ⚠️ Brief alignment: [status] - [assessment]
136
- ```
137
-
138
- </step>
139
-
140
- <step name="determine_next_action">
141
- Based on project state, determine the most logical next action:
142
-
143
- **If interrupted agent exists:**
144
- → Primary: Resume interrupted agent (Task tool with resume parameter)
145
- → Option: Start fresh (abandon agent work)
146
-
147
- **If .continue-here file exists:**
148
- → Primary: Resume from checkpoint
149
- → Option: Start fresh on current plan
150
-
151
- **If incomplete plan (PLAN without SUMMARY):**
152
- → Primary: Complete the incomplete plan
153
- → Option: Abandon and move on
154
-
155
- **If phase in progress, all plans complete:**
156
- → Primary: Transition to next phase
157
- → Option: Review completed work
158
-
159
- **If phase ready to plan:**
160
- → Check if CONTEXT.md exists for this phase:
161
-
162
- - If CONTEXT.md missing:
163
- → Primary: Discuss phase vision (how user imagines it working)
164
- → Secondary: Plan directly (skip context gathering)
165
- - If CONTEXT.md exists:
166
- → Primary: Plan the phase
167
- → Option: Review roadmap
168
-
169
- **If phase ready to execute:**
170
- → Primary: Execute next plan
171
- → Option: Review the plan first
172
- </step>
173
-
174
- <step name="offer_options">
175
- Present contextual options based on project state:
176
-
177
- ```
178
- What would you like to do?
179
-
180
- [Primary action based on state - e.g.:]
181
- 1. Resume interrupted agent [if interrupted agent found]
182
- OR
183
- 1. Execute phase (/ariadna:execute-phase {phase})
184
- OR
185
- 1. Discuss Phase 3 context (/ariadna:discuss-phase 3) [if CONTEXT.md missing]
186
- OR
187
- 1. Plan Phase 3 (/ariadna:plan-phase 3) [if CONTEXT.md exists or discuss option declined]
188
-
189
- [Secondary options:]
190
- 2. Review current phase status
191
- 3. Check pending todos ([N] pending)
192
- 4. Review brief alignment
193
- 5. Something else
194
- ```
195
-
196
- **Note:** When offering phase planning, check for CONTEXT.md existence first:
197
-
198
- ```bash
199
- ls .ariadna_planning/phases/XX-name/*-CONTEXT.md 2>/dev/null
200
- ```
201
-
202
- If missing, suggest discuss-phase before plan. If exists, offer plan directly.
203
-
204
- Wait for user selection.
205
- </step>
206
-
207
- <step name="route_to_workflow">
208
- Based on user selection, route to appropriate workflow:
209
-
210
- - **Execute plan** → Show command for user to run after clearing:
211
- ```
212
- ---
213
-
214
- ## ▶ Next Up
215
-
216
- **{phase}-{plan}: [Plan Name]** — [objective from PLAN.md]
217
-
218
- `/ariadna:execute-phase {phase}`
219
-
220
- <sub>`/clear` first → fresh context window</sub>
221
-
222
- ---
223
- ```
224
- - **Plan phase** → Show command for user to run after clearing:
225
- ```
226
- ---
227
-
228
- ## ▶ Next Up
229
-
230
- **Phase [N]: [Name]** — [Goal from ROADMAP.md]
231
-
232
- `/ariadna:plan-phase [phase-number]`
233
-
234
- <sub>`/clear` first → fresh context window</sub>
235
-
236
- ---
237
-
238
- **Also available:**
239
- - `/ariadna:discuss-phase [N]` — gather context first
240
- - `/ariadna:research-phase [N]` — investigate unknowns
241
-
242
- ---
243
- ```
244
- - **Transition** → ./transition.md
245
- - **Check todos** → Read .ariadna_planning/todos/pending/, present summary
246
- - **Review alignment** → Read PROJECT.md, compare to current state
247
- - **Something else** → Ask what they need
248
- </step>
249
-
250
- <step name="update_session">
251
- Before proceeding to routed workflow, update session continuity:
252
-
253
- Update STATE.md:
254
-
255
- ```markdown
256
- ## Session Continuity
257
-
258
- Last session: [now]
259
- Stopped at: Session resumed, proceeding to [action]
260
- Resume file: [updated if applicable]
261
- ```
262
-
263
- This ensures if session ends unexpectedly, next resume knows the state.
264
- </step>
265
-
266
- </process>
267
-
268
- <reconstruction>
269
- If STATE.md is missing but other artifacts exist:
270
-
271
- "STATE.md missing. Reconstructing from artifacts..."
272
-
273
- 1. Read PROJECT.md → Extract "What This Is" and Core Value
274
- 2. Read ROADMAP.md → Determine phases, find current position
275
- 3. Scan \*-SUMMARY.md files → Extract decisions, concerns
276
- 4. Count pending todos in .ariadna_planning/todos/pending/
277
- 5. Check for .continue-here files → Session continuity
278
-
279
- Reconstruct and write STATE.md, then proceed normally.
280
-
281
- This handles cases where:
282
-
283
- - Project predates STATE.md introduction
284
- - File was accidentally deleted
285
- - Cloning repo without full .ariadna_planning/ state
286
- </reconstruction>
287
-
288
- <quick_resume>
289
- If user says "continue" or "go":
290
- - Load state silently
291
- - Determine primary action
292
- - Execute immediately without presenting options
293
-
294
- "Continuing from [state]... [action]"
295
- </quick_resume>
296
-
297
- <success_criteria>
298
- Resume is complete when:
299
-
300
- - [ ] STATE.md loaded (or reconstructed)
301
- - [ ] Incomplete work detected and flagged
302
- - [ ] Clear status presented to user
303
- - [ ] Contextual next actions offered
304
- - [ ] User knows exactly where project stands
305
- - [ ] Session continuity updated
306
- </success_criteria>
@@ -1,80 +0,0 @@
1
- <purpose>
2
- Switch the model profile used by Ariadna agents. Controls which Claude model each agent uses, balancing quality vs token spend.
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
- <process>
10
-
11
- <step name="validate">
12
- Validate argument:
13
-
14
- ```
15
- if $ARGUMENTS.profile not in ["quality", "balanced", "budget"]:
16
- Error: Invalid profile "$ARGUMENTS.profile"
17
- Valid profiles: quality, balanced, budget
18
- EXIT
19
- ```
20
- </step>
21
-
22
- <step name="ensure_and_load_config">
23
- Ensure config exists and load current state:
24
-
25
- ```bash
26
- ariadna-tools config-ensure-section
27
- INIT=$(ariadna-tools state load)
28
- ```
29
-
30
- This creates `.ariadna_planning/config.json` with defaults if missing and loads current config.
31
- </step>
32
-
33
- <step name="update_config">
34
- Read current config from state load or directly:
35
-
36
- Update `model_profile` field:
37
- ```json
38
- {
39
- "model_profile": "$ARGUMENTS.profile"
40
- }
41
- ```
42
-
43
- Write updated config back to `.ariadna_planning/config.json`.
44
- </step>
45
-
46
- <step name="confirm">
47
- Display confirmation with model table for selected profile:
48
-
49
- ```
50
- ✓ Model profile set to: $ARGUMENTS.profile
51
-
52
- Agents will now use:
53
-
54
- [Show table from MODEL_PROFILES in ariadna-tools for selected profile]
55
-
56
- Example:
57
- | Agent | Model |
58
- |-------|-------|
59
- | ariadna-planner | opus |
60
- | ariadna-executor | sonnet |
61
- | ariadna-verifier | haiku |
62
- | ... | ... |
63
-
64
- Next spawned agents will use the new profile.
65
- ```
66
-
67
- Map profile names:
68
- - quality: use "quality" column from MODEL_PROFILES
69
- - balanced: use "balanced" column from MODEL_PROFILES
70
- - budget: use "budget" column from MODEL_PROFILES
71
- </step>
72
-
73
- </process>
74
-
75
- <success_criteria>
76
- - [ ] Argument validated
77
- - [ ] Config file ensured
78
- - [ ] Config updated with new model_profile
79
- - [ ] Confirmation displayed with model table
80
- </success_criteria>
@@ -1,145 +0,0 @@
1
- <purpose>
2
- Interactive configuration of Ariadna workflow agents (research, plan_check, verifier) and model profile selection via multi-question prompt. Updates .ariadna_planning/config.json with user preferences.
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
- <process>
10
-
11
- <step name="ensure_and_load_config">
12
- Ensure config exists and load current state:
13
-
14
- ```bash
15
- ariadna-tools config-ensure-section
16
- INIT=$(ariadna-tools state load)
17
- ```
18
-
19
- Creates `.ariadna_planning/config.json` with defaults if missing and loads current config values.
20
- </step>
21
-
22
- <step name="read_current">
23
- ```bash
24
- cat .ariadna_planning/config.json
25
- ```
26
-
27
- Parse current values (default to `true` if not present):
28
- - `workflow.research` — spawn researcher during plan-phase
29
- - `workflow.plan_check` — spawn plan checker during plan-phase
30
- - `workflow.verifier` — spawn verifier during execute-phase
31
- - `model_profile` — which model each agent uses (default: `balanced`)
32
- - `git.branching_strategy` — branching approach (default: `"none"`)
33
- </step>
34
-
35
- <step name="present_settings">
36
- Use AskUserQuestion with current values pre-selected:
37
-
38
- ```
39
- AskUserQuestion([
40
- {
41
- question: "Which model profile for agents?",
42
- header: "Model",
43
- multiSelect: false,
44
- options: [
45
- { label: "Quality", description: "Opus everywhere except verification (highest cost)" },
46
- { label: "Balanced (Recommended)", description: "Opus for planning, Sonnet for execution/verification" },
47
- { label: "Budget", description: "Sonnet for writing, Haiku for research/verification (lowest cost)" }
48
- ]
49
- },
50
- {
51
- question: "Spawn Plan Researcher? (researches domain before planning)",
52
- header: "Research",
53
- multiSelect: false,
54
- options: [
55
- { label: "Yes", description: "Research phase goals before planning" },
56
- { label: "No", description: "Skip research, plan directly" }
57
- ]
58
- },
59
- {
60
- question: "Spawn Plan Checker? (verifies plans before execution)",
61
- header: "Plan Check",
62
- multiSelect: false,
63
- options: [
64
- { label: "Yes", description: "Verify plans meet phase goals" },
65
- { label: "No", description: "Skip plan verification" }
66
- ]
67
- },
68
- {
69
- question: "Spawn Execution Verifier? (verifies phase completion)",
70
- header: "Verifier",
71
- multiSelect: false,
72
- options: [
73
- { label: "Yes", description: "Verify must-haves after execution" },
74
- { label: "No", description: "Skip post-execution verification" }
75
- ]
76
- },
77
- {
78
- question: "Git branching strategy?",
79
- header: "Branching",
80
- multiSelect: false,
81
- options: [
82
- { label: "None (Recommended)", description: "Commit directly to current branch" },
83
- { label: "Per Phase", description: "Create branch for each phase (ariadna/phase-{N}-{name})" },
84
- { label: "Per Milestone", description: "Create branch for entire milestone (ariadna/{version}-{name})" }
85
- ]
86
- }
87
- ])
88
- ```
89
- </step>
90
-
91
- <step name="update_config">
92
- Merge new settings into existing config.json:
93
-
94
- ```json
95
- {
96
- ...existing_config,
97
- "model_profile": "quality" | "balanced" | "budget",
98
- "workflow": {
99
- "research": true/false,
100
- "plan_check": true/false,
101
- "verifier": true/false
102
- },
103
- "git": {
104
- "branching_strategy": "none" | "phase" | "milestone"
105
- }
106
- }
107
- ```
108
-
109
- Write updated config to `.ariadna_planning/config.json`.
110
- </step>
111
-
112
- <step name="confirm">
113
- Display:
114
-
115
- ```
116
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
117
- Ariadna ► SETTINGS UPDATED
118
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
119
-
120
- | Setting | Value |
121
- |----------------------|-------|
122
- | Model Profile | {quality/balanced/budget} |
123
- | Plan Researcher | {On/Off} |
124
- | Plan Checker | {On/Off} |
125
- | Execution Verifier | {On/Off} |
126
- | Git Branching | {None/Per Phase/Per Milestone} |
127
-
128
- These settings apply to future /ariadna:plan-phase and /ariadna:execute-phase runs.
129
-
130
- Quick commands:
131
- - /ariadna:set-profile <profile> — switch model profile
132
- - /ariadna:plan-phase --research — force research
133
- - /ariadna:plan-phase --skip-research — skip research
134
- - /ariadna:plan-phase --skip-verify — skip plan check
135
- ```
136
- </step>
137
-
138
- </process>
139
-
140
- <success_criteria>
141
- - [ ] Current config read
142
- - [ ] User presented with 5 settings (profile + 3 workflow toggles + git branching)
143
- - [ ] Config updated with model_profile, workflow, and git sections
144
- - [ ] Changes confirmed to user
145
- </success_criteria>