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,162 +1,30 @@
1
1
  ---
2
2
  name: ariadna:debug
3
3
  description: Systematic debugging with persistent state across context resets
4
- argument-hint: [issue description]
4
+ argument-hint: "[issue description]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Bash
8
8
  - Task
9
9
  - AskUserQuestion
10
10
  ---
11
-
12
11
  <objective>
13
12
  Debug issues using scientific method with subagent isolation.
14
13
 
15
- **Orchestrator role:** Gather symptoms, spawn ariadna-debugger agent, handle checkpoints, spawn continuations.
16
-
17
- **Why subagent:** Investigation burns context fast (reading files, forming hypotheses, testing). Fresh 200k context per investigation. Main context stays lean for user interaction.
14
+ Spawns `ariadna-debugger` with a fresh 200k context per investigation. Orchestrator stays lean: gather symptoms, spawn agent, handle checkpoints and continuations.
18
15
  </objective>
19
16
 
20
17
  <context>
21
- User's issue: $ARGUMENTS
22
-
23
- Check for active sessions:
24
- ```bash
25
- ls .ariadna_planning/debug/*.md 2>/dev/null | grep -v resolved | head -5
26
- ```
18
+ Issue: $ARGUMENTS
27
19
  </context>
28
20
 
29
21
  <process>
30
-
31
- ## 0. Initialize Context
32
-
33
- ```bash
34
- INIT=$(ariadna-tools state load)
35
- ```
36
-
37
- Extract `commit_docs` from init JSON. Resolve debugger model:
38
- ```bash
39
- DEBUGGER_MODEL=$(ariadna-tools resolve-model ariadna-debugger --raw)
40
- ```
41
-
42
- ## 1. Check Active Sessions
43
-
44
- If active sessions exist AND no $ARGUMENTS:
45
- - List sessions with status, hypothesis, next action
46
- - User picks number to resume OR describes new issue
47
-
48
- If $ARGUMENTS provided OR user describes new issue:
49
- - Continue to symptom gathering
50
-
51
- ## 2. Gather Symptoms (if new issue)
52
-
53
- Use AskUserQuestion for each:
54
-
55
- 1. **Expected behavior** - What should happen?
56
- 2. **Actual behavior** - What happens instead?
57
- 3. **Error messages** - Any errors? (paste or describe)
58
- 4. **Timeline** - When did this start? Ever worked?
59
- 5. **Reproduction** - How do you trigger it?
60
-
61
- After all gathered, confirm ready to investigate.
62
-
63
- ## 3. Spawn ariadna-debugger Agent
64
-
65
- Fill prompt and spawn:
66
-
67
- ```markdown
68
- <objective>
69
- Investigate issue: {slug}
70
-
71
- **Summary:** {trigger}
72
- </objective>
73
-
74
- <symptoms>
75
- expected: {expected}
76
- actual: {actual}
77
- errors: {errors}
78
- reproduction: {reproduction}
79
- timeline: {timeline}
80
- </symptoms>
81
-
82
- <mode>
83
- symptoms_prefilled: true
84
- goal: find_and_fix
85
- </mode>
86
-
87
- <debug_file>
88
- Create: .ariadna_planning/debug/{slug}.md
89
- </debug_file>
90
- ```
91
-
92
- ```
93
- Task(
94
- prompt=filled_prompt,
95
- subagent_type="ariadna-debugger",
96
- model="{debugger_model}",
97
- description="Debug {slug}"
98
- )
99
- ```
100
-
101
- ## 4. Handle Agent Return
102
-
103
- **If `## ROOT CAUSE FOUND`:**
104
- - Display root cause and evidence summary
105
- - Offer options:
106
- - "Fix now" - spawn fix subagent
107
- - "Plan fix" - suggest /ariadna:plan-phase --gaps
108
- - "Manual fix" - done
109
-
110
- **If `## CHECKPOINT REACHED`:**
111
- - Present checkpoint details to user
112
- - Get user response
113
- - Spawn continuation agent (see step 5)
114
-
115
- **If `## INVESTIGATION INCONCLUSIVE`:**
116
- - Show what was checked and eliminated
117
- - Offer options:
118
- - "Continue investigating" - spawn new agent with additional context
119
- - "Manual investigation" - done
120
- - "Add more context" - gather more symptoms, spawn again
121
-
122
- ## 5. Spawn Continuation Agent (After Checkpoint)
123
-
124
- When user responds to checkpoint, spawn fresh agent:
125
-
126
- ```markdown
127
- <objective>
128
- Continue debugging {slug}. Evidence is in the debug file.
129
- </objective>
130
-
131
- <prior_state>
132
- Debug file: @.ariadna_planning/debug/{slug}.md
133
- </prior_state>
134
-
135
- <checkpoint_response>
136
- **Type:** {checkpoint_type}
137
- **Response:** {user_response}
138
- </checkpoint_response>
139
-
140
- <mode>
141
- goal: find_and_fix
142
- </mode>
143
- ```
144
-
145
- ```
146
- Task(
147
- prompt=continuation_prompt,
148
- subagent_type="ariadna-debugger",
149
- model="{debugger_model}",
150
- description="Continue debug {slug}"
151
- )
152
- ```
153
-
22
+ 1. Run `ariadna-tools state load` and `ariadna-tools resolve-model ariadna-debugger --raw`.
23
+ 2. Check for active debug sessions: `ls .ariadna_planning/debug/*.md 2>/dev/null | grep -v resolved`.
24
+ 3. If active sessions and no $ARGUMENTS: list sessions, let user pick to resume or start new.
25
+ 4. If new issue: gather 5 symptoms via AskUserQuestion (expected, actual, errors, timeline, reproduction).
26
+ 5. Spawn `ariadna-debugger` with symptoms; agent creates `.ariadna_planning/debug/{slug}.md`.
27
+ 6. On `## ROOT CAUSE FOUND`: present cause, offer fix-now / plan-fix / manual.
28
+ 7. On `## CHECKPOINT REACHED`: collect user response, spawn continuation agent with debug file + response.
29
+ 8. On `## INVESTIGATION INCONCLUSIVE`: show what was eliminated, offer continue / manual / add context.
154
30
  </process>
155
-
156
- <success_criteria>
157
- - [ ] Active sessions checked
158
- - [ ] Symptoms gathered (if new)
159
- - [ ] ariadna-debugger spawned with context
160
- - [ ] Checkpoints handled correctly
161
- - [ ] Root cause confirmed before fixing
162
- </success_criteria>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: ariadna:execute-phase
3
3
  description: Execute all plans in a phase with wave-based parallelization
4
- argument-hint: "<phase-number> [--gaps-only] [--team] [--no-team]"
4
+ argument-hint: "<phase-number> [--gaps-only]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -11,46 +11,28 @@ allowed-tools:
11
11
  - Bash
12
12
  - Task
13
13
  - TodoWrite
14
- - AskUserQuestion
15
- - TeamCreate
16
- - SendMessage
17
- - TaskCreate
18
- - TaskUpdate
19
- - TaskList
20
- - TeamDelete
21
14
  ---
22
15
  <objective>
23
- Execute all plans in a phase using wave-based parallel execution or team-based execution.
16
+ Execute all plans in a phase using wave-based parallel execution.
24
17
 
25
- Orchestrator stays lean: discover plans, analyze dependencies, group into waves, spawn subagents, collect results. Each subagent loads the full execute-plan context and handles its own plan.
18
+ Orchestrator stays lean: load context, group plans into waves, spawn `ariadna-executor` subagents, collect results. Each subagent loads its plan and handles its own work.
26
19
 
27
- **Execution modes:**
28
- - **Wave mode (default):** Sequential waves of parallel `Task()` spawns. Standard for most phases.
29
- - **Team mode (`--team` flag, `team_execution: true` or `"auto"` in config):** Creates a team with domain-specialized executor agents that coordinate via shared task list. Better for large phases with domain-split plans. When `team_execution: "auto"`, team mode activates for phases with 3+ plans across 2+ non-general domains.
30
-
31
- Context budget: ~15% orchestrator, 100% fresh per subagent.
20
+ Context budget: ~10-15% orchestrator, 100% fresh per subagent.
32
21
  </objective>
33
22
 
34
- <execution_context>
35
- @~/.claude/ariadna/workflows/execute-phase.md
36
- @~/.claude/ariadna/references/ui-brand.md
37
- </execution_context>
38
-
39
23
  <context>
40
24
  Phase: $ARGUMENTS
41
25
 
42
- **Flags:**
43
- - `--gaps-only` — Execute only gap closure plans (plans with `gap_closure: true` in frontmatter). Use after verify-work creates fix plans.
44
- - `--team` — Use team-based execution with domain-specialized agents instead of wave-based execution.
45
- - `--no-team` — Force wave-based execution even when auto-detection would choose team mode.
26
+ - `--gaps-only` — Execute only gap closure plans (`gap_closure: true` in frontmatter). Use after verify-work creates fix plans.
46
27
 
47
- @.ariadna_planning/ROADMAP.md
48
- @.ariadna_planning/STATE.md
28
+ Follow the workflow in `~/.claude/ariadna/workflows/execute-phase.md` end-to-end.
49
29
  </context>
50
30
 
51
31
  <process>
52
- Execute the execute-phase workflow from @~/.claude/ariadna/workflows/execute-phase.md end-to-end.
53
- Preserve all workflow gates (wave/team execution, checkpoint handling, verification, state updates, routing).
54
-
55
- **Mode selection:** Follow the `decide_execution_mode` step in the workflow to determine team vs wave execution based on flags, config, and plan analysis.
32
+ 1. Run `ariadna-tools init execute-phase "$PHASE_ARG"` to load phase context as JSON.
33
+ 2. Read `.ariadna_planning/STATE.md` for current project position.
34
+ 3. Group plans by wave; skip plans where `has_summary: true`.
35
+ 4. For each wave: spawn `ariadna-executor` per plan in parallel via Task tool.
36
+ 5. On completion: spawn `ariadna-verifier`, update STATE.md, commit.
37
+ 6. If gaps found: offer `/ariadna:plan-phase {N} --gaps`.
56
38
  </process>
@@ -7,27 +7,20 @@ allowed-tools:
7
7
  - Write
8
8
  - Bash
9
9
  ---
10
-
11
10
  <objective>
12
- Insert a decimal phase for urgent work discovered mid-milestone that must be completed between existing integer phases.
13
-
14
- Uses decimal numbering (72.1, 72.2, etc.) to preserve the logical sequence of planned phases while accommodating urgent insertions.
15
-
16
- Purpose: Handle urgent work discovered during execution without renumbering entire roadmap.
11
+ Insert a decimal phase for urgent work discovered mid-milestone between existing integer phases. Uses decimal numbering (72.1, 72.2, etc.) to preserve logical sequence without renumbering the entire roadmap.
17
12
  </objective>
18
13
 
19
- <execution_context>
20
- @~/.claude/ariadna/workflows/insert-phase.md
21
- </execution_context>
22
-
23
14
  <context>
24
15
  Arguments: $ARGUMENTS (format: <after-phase-number> <description>)
25
16
 
26
- @.ariadna_planning/ROADMAP.md
27
- @.ariadna_planning/STATE.md
17
+ Follow the workflow in `~/.claude/ariadna/workflows/insert-phase.md` end-to-end.
28
18
  </context>
29
19
 
30
20
  <process>
31
- Execute the insert-phase workflow from @~/.claude/ariadna/workflows/insert-phase.md end-to-end.
32
- Preserve all validation gates (argument parsing, phase verification, decimal calculation, roadmap updates).
21
+ 1. Parse $ARGUMENTS: first token = integer phase to insert after, rest = description. Error if missing.
22
+ 2. Run `ariadna-tools init phase-op "$AFTER"` check `roadmap_exists`.
23
+ 3. Run `ariadna-tools phase insert "$AFTER" "$DESCRIPTION"` — calculates decimal number, creates directory, updates ROADMAP.md with (INSERTED) marker.
24
+ 4. Update STATE.md "Roadmap Evolution" section with urgent insertion note.
25
+ 5. Display decimal phase number, directory, and next step: `/ariadna:plan-phase {N.M}`.
33
26
  </process>
@@ -10,62 +10,29 @@ allowed-tools:
10
10
  - Write
11
11
  - Task
12
12
  ---
13
-
14
13
  <objective>
15
- Analyze existing codebase using parallel ariadna-codebase-mapper agents to produce structured codebase documents.
16
-
17
- Each mapper agent explores a focus area and **writes documents directly** to `.ariadna_planning/codebase/`. The orchestrator only receives confirmations, keeping context usage minimal.
14
+ Analyze existing codebase using 4 parallel `ariadna-codebase-mapper` agents to produce structured documents in `.ariadna_planning/codebase/`. Each agent writes directly; orchestrator receives only confirmations.
18
15
 
19
- Output: .ariadna_planning/codebase/ folder with 7 structured documents about the codebase state.
16
+ **Output:** 7 documents STACK.md, INTEGRATIONS.md, ARCHITECTURE.md, STRUCTURE.md, CONVENTIONS.md, TESTING.md, CONCERNS.md
20
17
  </objective>
21
18
 
22
- <execution_context>
23
- @~/.claude/ariadna/workflows/map-codebase.md
24
- </execution_context>
25
-
26
19
  <context>
27
- Focus area: $ARGUMENTS (optional - if provided, tells agents to focus on specific subsystem)
28
-
29
- **Load project state if exists:**
30
- Check for .ariadna_planning/STATE.md - loads context if project already initialized
20
+ Focus area: $ARGUMENTS (optional directs agents to focus on a specific subsystem)
31
21
 
32
- **This command can run:**
33
- - Before /ariadna:new-project (brownfield codebases) - creates codebase map first
34
- - After /ariadna:new-project (greenfield codebases) - updates codebase map as code evolves
35
- - Anytime to refresh codebase understanding
22
+ Follow the workflow in `~/.claude/ariadna/workflows/map-codebase.md` end-to-end.
36
23
  </context>
37
24
 
38
- <when_to_use>
39
- **Use map-codebase for:**
40
- - Brownfield projects before initialization (understand existing code first)
41
- - Refreshing codebase map after significant changes
42
- - Onboarding to an unfamiliar codebase
43
- - Before major refactoring (understand current state)
44
- - When STATE.md references outdated codebase info
45
-
46
- **Skip map-codebase for:**
47
- - Greenfield projects with no code yet (nothing to map)
48
- - Trivial codebases (<5 files)
49
- </when_to_use>
50
-
51
25
  <process>
52
- 1. Check if .ariadna_planning/codebase/ already exists (offer to refresh or skip)
53
- 2. Create .ariadna_planning/codebase/ directory structure
54
- 3. Spawn 4 parallel ariadna-codebase-mapper agents:
55
- - Agent 1: tech focus writes STACK.md, INTEGRATIONS.md
56
- - Agent 2: arch focus writes ARCHITECTURE.md, STRUCTURE.md
57
- - Agent 3: quality focus writes CONVENTIONS.md, TESTING.md
58
- - Agent 4: concerns focus writes CONCERNS.md
59
- 4. Wait for agents to complete, collect confirmations (NOT document contents)
60
- 5. Verify all 7 documents exist with line counts
61
- 6. Commit codebase map
62
- 7. Offer next steps (typically: /ariadna:new-project or /ariadna:plan-phase)
26
+ 1. Run `ariadna-tools init map-codebase` to load context as JSON.
27
+ 2. If `.ariadna_planning/codebase/` exists: offer Refresh / Update / Skip.
28
+ 3. Create `.ariadna_planning/codebase/` directory.
29
+ 4. Spawn 4 parallel `ariadna-codebase-mapper` agents (run_in_background=true):
30
+ - Agent 1: techSTACK.md, INTEGRATIONS.md
31
+ - Agent 2: archARCHITECTURE.md, STRUCTURE.md
32
+ - Agent 3: qualityCONVENTIONS.md, TESTING.md
33
+ - Agent 4: concerns CONCERNS.md
34
+ 5. Scan output files for accidentally leaked secrets before committing.
35
+ 6. Verify all 7 documents exist with `wc -l`; note any failures.
36
+ 7. Commit: `ariadna-tools commit "docs: map existing codebase" --files .ariadna_planning/codebase/*.md`
37
+ 8. Display line counts and next step: `/ariadna:new-project`.
63
38
  </process>
64
-
65
- <success_criteria>
66
- - [ ] .ariadna_planning/codebase/ directory created
67
- - [ ] All 7 codebase documents written by mapper agents
68
- - [ ] Documents follow template structure
69
- - [ ] Parallel agents completed without errors
70
- - [ ] User knows next steps
71
- </success_criteria>
@@ -14,38 +14,25 @@ Start a new milestone: questioning → research (optional) → requirements →
14
14
 
15
15
  Brownfield equivalent of new-project. Project exists, PROJECT.md has history. Gathers "what's next", updates PROJECT.md, then runs requirements → roadmap cycle.
16
16
 
17
- **Creates/Updates:**
18
- - `.ariadna_planning/PROJECT.md` — updated with new milestone goals
19
- - `.ariadna_planning/research/` — domain research (optional, NEW features only)
20
- - `.ariadna_planning/REQUIREMENTS.md` — scoped requirements for this milestone
21
- - `.ariadna_planning/ROADMAP.md` — phase structure (continues numbering)
22
- - `.ariadna_planning/STATE.md` — reset for new milestone
17
+ **Creates/Updates:** `PROJECT.md`, `REQUIREMENTS.md`, `ROADMAP.md`, `STATE.md`
23
18
 
24
19
  **After:** `/ariadna:plan-phase [N]` to start execution.
25
20
  </objective>
26
21
 
27
- <execution_context>
28
- @~/.claude/ariadna/workflows/new-milestone.md
29
- @~/.claude/ariadna/references/questioning.md
30
- @~/.claude/ariadna/references/ui-brand.md
31
- @~/.claude/ariadna/templates/project.md
32
- @~/.claude/ariadna/templates/requirements.md
33
- </execution_context>
34
-
35
22
  <context>
36
- Milestone name: $ARGUMENTS (optional - will prompt if not provided)
37
-
38
- **Load project context:**
39
- @.ariadna_planning/PROJECT.md
40
- @.ariadna_planning/STATE.md
41
- @.ariadna_planning/MILESTONES.md
42
- @.ariadna_planning/config.json
23
+ Milestone name: $ARGUMENTS (optional will prompt if not provided)
43
24
 
44
- **Load milestone context (if exists, from /ariadna:discuss-milestone):**
45
- @.ariadna_planning/MILESTONE-CONTEXT.md
25
+ Follow the workflow in `~/.claude/ariadna/workflows/new-milestone.md` end-to-end.
46
26
  </context>
47
27
 
48
28
  <process>
49
- Execute the new-milestone workflow from @~/.claude/ariadna/workflows/new-milestone.md end-to-end.
50
- Preserve all workflow gates (validation, questioning, research, requirements, roadmap approval, commits).
29
+ 1. Run `ariadna-tools init new-milestone` to load context as JSON.
30
+ 2. Load PROJECT.md, STATE.md, MILESTONES.md; check for MILESTONE-CONTEXT.md.
31
+ 3. Gather milestone goals through conversation (or use existing MILESTONE-CONTEXT.md).
32
+ 4. Determine milestone version; update PROJECT.md and STATE.md; commit.
33
+ 5. Ask about research; optionally spawn 4 parallel researchers + synthesizer.
34
+ 6. Define requirements by category; write REQUIREMENTS.md; commit.
35
+ 7. Spawn `ariadna-roadmapper` with continuing phase numbering.
36
+ 8. Present roadmap for approval; commit on approval.
37
+ 9. Display next step: `/ariadna:plan-phase [N]`.
51
38
  </process>
@@ -4,41 +4,37 @@ description: Initialize a new project with deep context gathering and PROJECT.md
4
4
  argument-hint: "[--auto] [--research]"
5
5
  allowed-tools:
6
6
  - Read
7
- - Bash
8
7
  - Write
8
+ - Bash
9
9
  - Task
10
10
  - AskUserQuestion
11
11
  ---
12
- <context>
13
- **Flags:**
14
- - `--auto` — Automatic mode. Skips config questions, runs requirements → roadmap without further interaction. Expects idea document via @ reference.
15
- - `--research` — Force domain research (4 parallel researchers + synthesizer). By default, research is skipped and Rails conventions are pre-loaded.
16
- </context>
17
-
18
12
  <objective>
19
- Initialize a new project through streamlined flow: questioning → requirements → roadmap. Research skipped by default (Rails conventions pre-loaded); use --research for non-standard domains.
13
+ Initialize a new project through streamlined flow: questioning → requirements → roadmap. Research skipped by default (Rails conventions pre-loaded); use `--research` for non-standard domains.
20
14
 
21
- **Creates:**
22
- - `.ariadna_planning/PROJECT.md` — project context
23
- - `.ariadna_planning/config.json` — workflow preferences (opinionated defaults)
24
- - `.ariadna_planning/research/` — domain research (only with --research flag)
25
- - `.ariadna_planning/REQUIREMENTS.md` scoped requirements
26
- - `.ariadna_planning/ROADMAP.md` — phase structure
27
- - `.ariadna_planning/STATE.md` — project memory
15
+ **Flags:**
16
+ - `--auto` — Automatic mode. Skips questions, runs requirements → roadmap without interaction. Requires idea document via @ reference.
17
+ - `--research` — Force parallel domain research before requirements.
18
+
19
+ **Creates:** `.ariadna_planning/PROJECT.md`, `config.json`, `REQUIREMENTS.md`, `ROADMAP.md`, `STATE.md`
28
20
 
29
- **After this command:** Run `/ariadna:plan-phase 1` to start planning.
21
+ **After this command:** `/ariadna:plan-phase 1`
30
22
  </objective>
31
23
 
32
- <execution_context>
33
- @~/.claude/ariadna/workflows/new-project.md
34
- @~/.claude/ariadna/references/questioning.md
35
- @~/.claude/ariadna/references/ui-brand.md
36
- @~/.claude/ariadna/references/rails-conventions.md
37
- @~/.claude/ariadna/templates/project.md
38
- @~/.claude/ariadna/templates/requirements.md
39
- </execution_context>
24
+ <context>
25
+ Arguments: $ARGUMENTS
26
+
27
+ Follow the workflow in `~/.claude/ariadna/workflows/new-project.md` end-to-end.
28
+ </context>
40
29
 
41
30
  <process>
42
- Execute the new-project workflow from @~/.claude/ariadna/workflows/new-project.md end-to-end.
43
- Preserve all workflow gates (validation, approvals, commits, routing).
31
+ 1. Run `ariadna-tools init new-project` to load context as JSON.
32
+ 2. Offer codebase mapping if existing code detected but no map present.
33
+ 3. Gather project context through deep questioning (or extract from `--auto` document).
34
+ 4. Write PROJECT.md, config.json; commit each atomically.
35
+ 5. Optionally spawn research agents (4 parallel + synthesizer) if `--research` flag.
36
+ 6. Define requirements by category (table stakes / differentiators / out of scope).
37
+ 7. Spawn `ariadna-roadmapper` to create ROADMAP.md and STATE.md.
38
+ 8. Present roadmap for approval; loop on revisions until approved.
39
+ 9. Commit all artifacts; display next step: `/ariadna:plan-phase 1`.
44
40
  </process>
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: ariadna:plan-phase
3
3
  description: Create detailed execution plan for a phase (PLAN.md) with verification loop
4
- argument-hint: "[phase] [--research] [--skip-research] [--gaps] [--skip-verify] [--skip-context]"
5
- agent: ariadna-planner
4
+ argument-hint: "[phase] [--research] [--gaps] [--skip-verify]"
6
5
  allowed-tools:
7
6
  - Read
8
7
  - Write
8
+ - Edit
9
9
  - Bash
10
10
  - Glob
11
11
  - Grep
@@ -14,33 +14,24 @@ allowed-tools:
14
14
  - mcp__context7__*
15
15
  ---
16
16
  <objective>
17
- Create executable phase prompts (PLAN.md files) for a roadmap phase. Research skipped by default (Rails conventions pre-loaded). Includes optional inline context gathering (replaces separate discuss-phase step).
17
+ Produce PLAN.md files that `execute-phase` can run directly. Plans must have valid frontmatter (wave, domain, depends_on, files_modified) with tasks specific enough for autonomous execution.
18
18
 
19
- **Default flow:** Context (inline if needed) Plan Verify Done
20
-
21
- **Orchestrator role:** Parse arguments, validate phase, offer inline context gathering, spawn ariadna-planner (with Rails conventions), verify with ariadna-plan-checker (single pass, inline fixes for minor issues), present results.
19
+ Spawn `ariadna-planner` for planning and self-checking. Minor issues fixed inline; major issues presented to user.
22
20
  </objective>
23
21
 
24
- <execution_context>
25
- @~/.claude/ariadna/workflows/plan-phase.md
26
- @~/.claude/ariadna/references/ui-brand.md
27
- @~/.claude/ariadna/references/rails-conventions.md
28
- </execution_context>
29
-
30
22
  <context>
31
- Phase number: $ARGUMENTS (optional — auto-detects next unplanned phase if omitted)
23
+ Phase: $ARGUMENTS (optional — auto-detects next unplanned phase if omitted)
32
24
 
33
- **Flags:**
34
- - `--research` — Force research even if not enabled in config (for non-standard integrations)
35
- - `--skip-research` — Skip research, go straight to planning (default behavior)
36
- - `--gaps` — Gap closure mode (reads VERIFICATION.md, skips research)
37
- - `--skip-verify` — Skip plan verification
38
- - `--skip-context` — Skip inline context gathering, plan directly
25
+ - `--research` — Force research for non-standard integrations
26
+ - `--gaps` — Gap closure mode: reads VERIFICATION.md, creates `gap_closure: true` plans only
27
+ - `--skip-verify` — Skip plan self-check pass
39
28
 
40
- Normalize phase input in step 2 before any directory lookups.
29
+ Follow the workflow in `~/.claude/ariadna/workflows/plan-phase.md` end-to-end.
41
30
  </context>
42
31
 
43
32
  <process>
44
- Execute the plan-phase workflow from @~/.claude/ariadna/workflows/plan-phase.md end-to-end.
45
- Preserve all workflow gates (validation, research, planning, verification loop, routing).
33
+ 1. Run `ariadna-tools init plan-phase "$PHASE_ARG" --include state,roadmap,requirements,context,research,verification`.
34
+ 2. Spawn `ariadna-planner` with rails-conventions reference; planner handles research and self-check inline.
35
+ 3. Fix minor issues (wrong wave, missing tags, frontmatter typos) with Edit tool — no re-spawn.
36
+ 4. Update `memory/progress.md`; display next step: `/ariadna:execute-phase {N}` with `/clear` reminder.
46
37
  </process>
@@ -9,16 +9,26 @@ allowed-tools:
9
9
  - SlashCommand
10
10
  ---
11
11
  <objective>
12
- Check project progress, summarize recent work and what's ahead, then intelligently route to the next action - either executing an existing plan or creating the next one.
12
+ Check project progress, summarize recent work and what's ahead, then intelligently route to the next action either executing an existing plan or creating the next one.
13
13
 
14
14
  Provides situational awareness before continuing work.
15
15
  </objective>
16
16
 
17
- <execution_context>
18
- @~/.claude/ariadna/workflows/progress.md
19
- </execution_context>
17
+ <context>
18
+ Follow the workflow in `~/.claude/ariadna/workflows/progress.md` end-to-end.
19
+ </context>
20
20
 
21
21
  <process>
22
- Execute the progress workflow from @~/.claude/ariadna/workflows/progress.md end-to-end.
23
- Preserve all routing logic (Routes A through F) and edge case handling.
22
+ 1. Run `ariadna-tools init progress --include state,roadmap,project,config` to load context as JSON.
23
+ 2. Run `ariadna-tools roadmap analyze` for structured phase/plan status.
24
+ 3. Find 2-3 recent SUMMARY.md files; extract one-liners with `ariadna-tools summary-extract`.
25
+ 4. Generate progress bar: `ariadna-tools progress bar --raw`.
26
+ 5. Present rich status report: recent work, current position, decisions, blockers, pending todos.
27
+ 6. Route to next action based on verified plan/summary counts:
28
+ - UAT gaps present → `/ariadna:plan-phase {N} --gaps`
29
+ - Unexecuted plans → `/ariadna:execute-phase {N}`
30
+ - Phase needs planning → `/ariadna:plan-phase {N}`
31
+ - Phase complete, more remain → `/ariadna:discuss-phase {N+1}`
32
+ - Milestone complete → `/ariadna:complete-milestone`
33
+ - Between milestones → `/ariadna:new-milestone`
24
34
  </process>
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: ariadna:quick
3
3
  description: Execute a quick task with Ariadna guarantees (atomic commits, state tracking) but skip optional agents
4
- argument-hint: ""
5
4
  allowed-tools:
6
5
  - Read
7
6
  - Write
@@ -15,24 +14,23 @@ allowed-tools:
15
14
  <objective>
16
15
  Execute small, ad-hoc tasks with Ariadna guarantees (atomic commits, STATE.md tracking) while skipping optional agents (research, plan-checker, verifier).
17
16
 
18
- Quick mode is the same system with a shorter path:
19
- - Spawns ariadna-planner (quick mode) + ariadna-executor(s)
20
- - Skips ariadna-phase-researcher, ariadna-plan-checker, ariadna-verifier
17
+ - Spawns `ariadna-planner` (quick mode) + `ariadna-executor`
21
18
  - Quick tasks live in `.ariadna_planning/quick/` separate from planned phases
22
19
  - Updates STATE.md "Quick Tasks Completed" table (NOT ROADMAP.md)
23
20
 
24
21
  Use when: You know exactly what to do and the task is small enough to not need research or verification.
25
22
  </objective>
26
23
 
27
- <execution_context>
28
- @~/.claude/ariadna/workflows/quick.md
29
- </execution_context>
30
-
31
24
  <context>
32
- @.ariadna_planning/STATE.md
25
+ Follow the workflow in `~/.claude/ariadna/workflows/quick.md` end-to-end.
33
26
  </context>
34
27
 
35
28
  <process>
36
- Execute the quick workflow from @~/.claude/ariadna/workflows/quick.md end-to-end.
37
- Preserve all workflow gates (validation, task description, planning, execution, state updates, commits).
29
+ 1. Prompt user for task description via AskUserQuestion.
30
+ 2. Run `ariadna-tools init quick "$DESCRIPTION"` validates ROADMAP.md exists; returns slug, next_num, paths.
31
+ 3. Create `.ariadna_planning/quick/{NNN}-{slug}/` directory.
32
+ 4. Spawn `ariadna-planner` (quick mode) → produces single PLAN.md with 1-3 focused tasks.
33
+ 5. Spawn `ariadna-executor` → executes plan, commits atomically, writes SUMMARY.md.
34
+ 6. Update STATE.md "Quick Tasks Completed" table with row + last activity.
35
+ 7. Commit STATE.md + plan + summary; display completion with commit hash.
38
36
  </process>
@@ -9,24 +9,21 @@ allowed-tools:
9
9
  - Glob
10
10
  ---
11
11
  <objective>
12
- Remove an unstarted future phase from the roadmap and renumber all subsequent phases to maintain a clean, linear sequence.
13
-
14
- Purpose: Clean removal of work you've decided not to do, without polluting context with cancelled/deferred markers.
15
- Output: Phase deleted, all subsequent phases renumbered, git commit as historical record.
12
+ Remove an unstarted future phase from the roadmap and renumber all subsequent phases to maintain a clean linear sequence. Git commit serves as the historical record.
16
13
  </objective>
17
14
 
18
- <execution_context>
19
- @~/.claude/ariadna/workflows/remove-phase.md
20
- </execution_context>
21
-
22
15
  <context>
23
16
  Phase: $ARGUMENTS
24
17
 
25
- @.ariadna_planning/ROADMAP.md
26
- @.ariadna_planning/STATE.md
18
+ Follow the workflow in `~/.claude/ariadna/workflows/remove-phase.md` end-to-end.
27
19
  </context>
28
20
 
29
21
  <process>
30
- Execute the remove-phase workflow from @~/.claude/ariadna/workflows/remove-phase.md end-to-end.
31
- Preserve all validation gates (future phase check, work check), renumbering logic, and commit.
22
+ 1. Validate $ARGUMENTS provided; error with usage if missing.
23
+ 2. Run `ariadna-tools init phase-op "$ARGUMENTS"` to load context; check `roadmap_exists`.
24
+ 3. Verify target is a future (unstarted) phase vs current phase in STATE.md; error if not.
25
+ 4. Present removal summary (what will be deleted/renumbered); confirm with user.
26
+ 5. Run `ariadna-tools phase remove "$ARGUMENTS"` — deletes directory, renumbers subsequent phases, updates ROADMAP.md and STATE.md. Use `--force` only if user confirms for phases with summaries.
27
+ 6. Commit: `ariadna-tools commit "chore: remove phase $ARGUMENTS ({name})" --files .ariadna_planning/`
28
+ 7. Display changes made and offer `/ariadna:progress` to review updated roadmap.
32
29
  </process>