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,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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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]
|
|
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
|
|
16
|
+
Execute all plans in a phase using wave-based parallel execution.
|
|
24
17
|
|
|
25
|
-
Orchestrator stays lean:
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
32
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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.
|
|
53
|
-
2.
|
|
54
|
-
3.
|
|
55
|
-
|
|
56
|
-
- Agent
|
|
57
|
-
- Agent
|
|
58
|
-
- Agent
|
|
59
|
-
|
|
60
|
-
5.
|
|
61
|
-
6.
|
|
62
|
-
7.
|
|
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: tech → STACK.md, INTEGRATIONS.md
|
|
31
|
+
- Agent 2: arch → ARCHITECTURE.md, STRUCTURE.md
|
|
32
|
+
- Agent 3: quality → CONVENTIONS.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
|
|
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
|
-
|
|
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
|
-
|
|
50
|
-
|
|
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
|
|
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
|
-
**
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
|
|
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:**
|
|
21
|
+
**After this command:** `/ariadna:plan-phase 1`
|
|
30
22
|
</objective>
|
|
31
23
|
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
43
|
-
|
|
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] [--
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
23
|
+
Phase: $ARGUMENTS (optional — auto-detects next unplanned phase if omitted)
|
|
32
24
|
|
|
33
|
-
|
|
34
|
-
- `--
|
|
35
|
-
- `--skip-
|
|
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
|
-
|
|
29
|
+
Follow the workflow in `~/.claude/ariadna/workflows/plan-phase.md` end-to-end.
|
|
41
30
|
</context>
|
|
42
31
|
|
|
43
32
|
<process>
|
|
44
|
-
|
|
45
|
-
|
|
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
|
|
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
|
-
<
|
|
18
|
-
|
|
19
|
-
</
|
|
17
|
+
<context>
|
|
18
|
+
Follow the workflow in `~/.claude/ariadna/workflows/progress.md` end-to-end.
|
|
19
|
+
</context>
|
|
20
20
|
|
|
21
21
|
<process>
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
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
|
-
|
|
25
|
+
Follow the workflow in `~/.claude/ariadna/workflows/quick.md` end-to-end.
|
|
33
26
|
</context>
|
|
34
27
|
|
|
35
28
|
<process>
|
|
36
|
-
|
|
37
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
31
|
-
|
|
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>
|