ariadna 1.3.1 → 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 (148) 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. metadata +20 -91
  61. data/data/agents/ariadna-backend-executor.md +0 -261
  62. data/data/agents/ariadna-frontend-executor.md +0 -259
  63. data/data/agents/ariadna-integration-checker.md +0 -418
  64. data/data/agents/ariadna-phase-researcher.md +0 -469
  65. data/data/agents/ariadna-plan-checker.md +0 -622
  66. data/data/agents/ariadna-project-researcher.md +0 -618
  67. data/data/agents/ariadna-research-synthesizer.md +0 -236
  68. data/data/agents/ariadna-test-executor.md +0 -266
  69. data/data/ariadna/references/checkpoints.md +0 -772
  70. data/data/ariadna/references/continuation-format.md +0 -249
  71. data/data/ariadna/references/decimal-phase-calculation.md +0 -65
  72. data/data/ariadna/references/git-integration.md +0 -248
  73. data/data/ariadna/references/git-planning-commit.md +0 -38
  74. data/data/ariadna/references/model-profile-resolution.md +0 -32
  75. data/data/ariadna/references/model-profiles.md +0 -73
  76. data/data/ariadna/references/phase-argument-parsing.md +0 -61
  77. data/data/ariadna/references/planning-config.md +0 -194
  78. data/data/ariadna/references/questioning.md +0 -153
  79. data/data/ariadna/references/rails-conventions.md +0 -416
  80. data/data/ariadna/references/tdd.md +0 -267
  81. data/data/ariadna/references/ui-brand.md +0 -160
  82. data/data/ariadna/references/verification-patterns.md +0 -853
  83. data/data/ariadna/templates/codebase/architecture.md +0 -481
  84. data/data/ariadna/templates/codebase/concerns.md +0 -380
  85. data/data/ariadna/templates/codebase/conventions.md +0 -434
  86. data/data/ariadna/templates/codebase/integrations.md +0 -328
  87. data/data/ariadna/templates/codebase/stack.md +0 -189
  88. data/data/ariadna/templates/codebase/structure.md +0 -418
  89. data/data/ariadna/templates/codebase/testing.md +0 -606
  90. data/data/ariadna/templates/context.md +0 -283
  91. data/data/ariadna/templates/continue-here.md +0 -78
  92. data/data/ariadna/templates/debug-subagent-prompt.md +0 -91
  93. data/data/ariadna/templates/phase-prompt.md +0 -609
  94. data/data/ariadna/templates/planner-subagent-prompt.md +0 -117
  95. data/data/ariadna/templates/research-project/ARCHITECTURE.md +0 -439
  96. data/data/ariadna/templates/research-project/FEATURES.md +0 -168
  97. data/data/ariadna/templates/research-project/PITFALLS.md +0 -406
  98. data/data/ariadna/templates/research-project/STACK.md +0 -251
  99. data/data/ariadna/templates/research-project/SUMMARY.md +0 -247
  100. data/data/ariadna/templates/state.md +0 -176
  101. data/data/ariadna/templates/summary-complex.md +0 -59
  102. data/data/ariadna/templates/summary-minimal.md +0 -41
  103. data/data/ariadna/templates/summary-standard.md +0 -48
  104. data/data/ariadna/templates/user-setup.md +0 -310
  105. data/data/ariadna/workflows/add-phase.md +0 -111
  106. data/data/ariadna/workflows/add-todo.md +0 -157
  107. data/data/ariadna/workflows/audit-milestone.md +0 -241
  108. data/data/ariadna/workflows/check-todos.md +0 -176
  109. data/data/ariadna/workflows/complete-milestone.md +0 -644
  110. data/data/ariadna/workflows/diagnose-issues.md +0 -219
  111. data/data/ariadna/workflows/discovery-phase.md +0 -289
  112. data/data/ariadna/workflows/discuss-phase.md +0 -408
  113. data/data/ariadna/workflows/execute-plan.md +0 -448
  114. data/data/ariadna/workflows/help.md +0 -470
  115. data/data/ariadna/workflows/insert-phase.md +0 -129
  116. data/data/ariadna/workflows/list-phase-assumptions.md +0 -178
  117. data/data/ariadna/workflows/pause-work.md +0 -122
  118. data/data/ariadna/workflows/plan-milestone-gaps.md +0 -256
  119. data/data/ariadna/workflows/remove-phase.md +0 -154
  120. data/data/ariadna/workflows/research-phase.md +0 -74
  121. data/data/ariadna/workflows/resume-project.md +0 -306
  122. data/data/ariadna/workflows/set-profile.md +0 -80
  123. data/data/ariadna/workflows/settings.md +0 -145
  124. data/data/ariadna/workflows/transition.md +0 -493
  125. data/data/ariadna/workflows/update.md +0 -212
  126. data/data/ariadna/workflows/verify-phase.md +0 -226
  127. data/data/commands/ariadna/add-todo.md +0 -42
  128. data/data/commands/ariadna/audit-milestone.md +0 -42
  129. data/data/commands/ariadna/check-todos.md +0 -41
  130. data/data/commands/ariadna/complete-milestone.md +0 -136
  131. data/data/commands/ariadna/discuss-phase.md +0 -86
  132. data/data/commands/ariadna/help.md +0 -22
  133. data/data/commands/ariadna/list-phase-assumptions.md +0 -50
  134. data/data/commands/ariadna/pause-work.md +0 -35
  135. data/data/commands/ariadna/plan-milestone-gaps.md +0 -40
  136. data/data/commands/ariadna/reapply-patches.md +0 -110
  137. data/data/commands/ariadna/research-phase.md +0 -187
  138. data/data/commands/ariadna/resume-work.md +0 -40
  139. data/data/commands/ariadna/set-profile.md +0 -34
  140. data/data/commands/ariadna/settings.md +0 -36
  141. data/data/commands/ariadna/update.md +0 -37
  142. data/data/guides/backend.md +0 -3069
  143. data/data/guides/frontend.md +0 -1479
  144. data/data/guides/performance.md +0 -1193
  145. data/data/guides/security.md +0 -1522
  146. data/data/guides/style-guide.md +0 -1091
  147. data/data/guides/testing.md +0 -504
  148. data/data/templates.md +0 -94
@@ -1,283 +0,0 @@
1
- # Phase Context Template
2
-
3
- Template for `.ariadna_planning/phases/XX-name/{phase}-CONTEXT.md` - captures implementation decisions for a phase.
4
-
5
- **Purpose:** Document decisions that downstream agents need. Researcher uses this to know WHAT to investigate. Planner uses this to know WHAT choices are locked vs flexible.
6
-
7
- **Key principle:** Categories are NOT predefined. They emerge from what was actually discussed for THIS phase. A CLI phase has CLI-relevant sections, a UI phase has UI-relevant sections.
8
-
9
- **Downstream consumers:**
10
- - `ariadna-phase-researcher` — Reads decisions to focus research (e.g., "card layout" → research card component patterns)
11
- - `ariadna-planner` — Reads decisions to create specific tasks (e.g., "infinite scroll" → task includes virtualization)
12
-
13
- ---
14
-
15
- ## File Template
16
-
17
- ```markdown
18
- # Phase [X]: [Name] - Context
19
-
20
- **Gathered:** [date]
21
- **Status:** Ready for planning
22
-
23
- <domain>
24
- ## Phase Boundary
25
-
26
- [Clear statement of what this phase delivers — the scope anchor. This comes from ROADMAP.md and is fixed. Discussion clarifies implementation within this boundary.]
27
-
28
- </domain>
29
-
30
- <decisions>
31
- ## Implementation Decisions
32
-
33
- ### [Area 1 that was discussed]
34
- - [Specific decision made]
35
- - [Another decision if applicable]
36
-
37
- ### [Area 2 that was discussed]
38
- - [Specific decision made]
39
-
40
- ### [Area 3 that was discussed]
41
- - [Specific decision made]
42
-
43
- ### Claude's Discretion
44
- [Areas where user explicitly said "you decide" — Claude has flexibility here during planning/implementation]
45
-
46
- </decisions>
47
-
48
- <specifics>
49
- ## Specific Ideas
50
-
51
- [Any particular references, examples, or "I want it like X" moments from discussion. Product references, specific behaviors, interaction patterns.]
52
-
53
- [If none: "No specific requirements — open to standard approaches"]
54
-
55
- </specifics>
56
-
57
- <deferred>
58
- ## Deferred Ideas
59
-
60
- [Ideas that came up during discussion but belong in other phases. Captured here so they're not lost, but explicitly out of scope for this phase.]
61
-
62
- [If none: "None — discussion stayed within phase scope"]
63
-
64
- </deferred>
65
-
66
- ---
67
-
68
- *Phase: XX-name*
69
- *Context gathered: [date]*
70
- ```
71
-
72
- <good_examples>
73
-
74
- **Example 1: Visual feature (Post Feed)**
75
-
76
- ```markdown
77
- # Phase 3: Post Feed - Context
78
-
79
- **Gathered:** 2025-01-20
80
- **Status:** Ready for planning
81
-
82
- <domain>
83
- ## Phase Boundary
84
-
85
- Display posts from followed users in a scrollable feed. Users can view posts and see engagement counts. Creating posts and interactions are separate phases.
86
-
87
- </domain>
88
-
89
- <decisions>
90
- ## Implementation Decisions
91
-
92
- ### Layout style
93
- - Card-based layout, not timeline or list
94
- - Each card shows: author avatar, name, timestamp, full post content, reaction counts
95
- - Cards have subtle shadows, rounded corners — modern feel
96
-
97
- ### Loading behavior
98
- - Infinite scroll, not pagination
99
- - Pull-to-refresh on mobile
100
- - New posts indicator at top ("3 new posts") rather than auto-inserting
101
-
102
- ### Empty state
103
- - Friendly illustration + "Follow people to see posts here"
104
- - Suggest 3-5 accounts to follow based on interests
105
-
106
- ### Claude's Discretion
107
- - Loading skeleton design
108
- - Exact spacing and typography
109
- - Error state handling
110
-
111
- </decisions>
112
-
113
- <specifics>
114
- ## Specific Ideas
115
-
116
- - "I like how Twitter shows the new posts indicator without disrupting your scroll position"
117
- - Cards should feel like Linear's issue cards — clean, not cluttered
118
-
119
- </specifics>
120
-
121
- <deferred>
122
- ## Deferred Ideas
123
-
124
- - Commenting on posts — Phase 5
125
- - Bookmarking posts — add to backlog
126
-
127
- </deferred>
128
-
129
- ---
130
-
131
- *Phase: 03-post-feed*
132
- *Context gathered: 2025-01-20*
133
- ```
134
-
135
- **Example 2: CLI tool (Database backup)**
136
-
137
- ```markdown
138
- # Phase 2: Backup Command - Context
139
-
140
- **Gathered:** 2025-01-20
141
- **Status:** Ready for planning
142
-
143
- <domain>
144
- ## Phase Boundary
145
-
146
- CLI command to backup database to local file or S3. Supports full and incremental backups. Restore command is a separate phase.
147
-
148
- </domain>
149
-
150
- <decisions>
151
- ## Implementation Decisions
152
-
153
- ### Output format
154
- - JSON for programmatic use, table format for humans
155
- - Default to table, --json flag for JSON
156
- - Verbose mode (-v) shows progress, silent by default
157
-
158
- ### Flag design
159
- - Short flags for common options: -o (output), -v (verbose), -f (force)
160
- - Long flags for clarity: --incremental, --compress, --encrypt
161
- - Required: database connection string (positional or --db)
162
-
163
- ### Error recovery
164
- - Retry 3 times on network failure, then fail with clear message
165
- - --no-retry flag to fail fast
166
- - Partial backups are deleted on failure (no corrupt files)
167
-
168
- ### Claude's Discretion
169
- - Exact progress bar implementation
170
- - Compression algorithm choice
171
- - Temp file handling
172
-
173
- </decisions>
174
-
175
- <specifics>
176
- ## Specific Ideas
177
-
178
- - "I want it to feel like pg_dump — familiar to database people"
179
- - Should work in CI pipelines (exit codes, no interactive prompts)
180
-
181
- </specifics>
182
-
183
- <deferred>
184
- ## Deferred Ideas
185
-
186
- - Scheduled backups — separate phase
187
- - Backup rotation/retention — add to backlog
188
-
189
- </deferred>
190
-
191
- ---
192
-
193
- *Phase: 02-backup-command*
194
- *Context gathered: 2025-01-20*
195
- ```
196
-
197
- **Example 3: Organization task (Photo library)**
198
-
199
- ```markdown
200
- # Phase 1: Photo Organization - Context
201
-
202
- **Gathered:** 2025-01-20
203
- **Status:** Ready for planning
204
-
205
- <domain>
206
- ## Phase Boundary
207
-
208
- Organize existing photo library into structured folders. Handle duplicates and apply consistent naming. Tagging and search are separate phases.
209
-
210
- </domain>
211
-
212
- <decisions>
213
- ## Implementation Decisions
214
-
215
- ### Grouping criteria
216
- - Primary grouping by year, then by month
217
- - Events detected by time clustering (photos within 2 hours = same event)
218
- - Event folders named by date + location if available
219
-
220
- ### Duplicate handling
221
- - Keep highest resolution version
222
- - Move duplicates to _duplicates folder (don't delete)
223
- - Log all duplicate decisions for review
224
-
225
- ### Naming convention
226
- - Format: YYYY-MM-DD_HH-MM-SS_originalname.ext
227
- - Preserve original filename as suffix for searchability
228
- - Handle name collisions with incrementing suffix
229
-
230
- ### Claude's Discretion
231
- - Exact clustering algorithm
232
- - How to handle photos with no EXIF data
233
- - Folder emoji usage
234
-
235
- </decisions>
236
-
237
- <specifics>
238
- ## Specific Ideas
239
-
240
- - "I want to be able to find photos by roughly when they were taken"
241
- - Don't delete anything — worst case, move to a review folder
242
-
243
- </specifics>
244
-
245
- <deferred>
246
- ## Deferred Ideas
247
-
248
- - Face detection grouping — future phase
249
- - Cloud sync — out of scope for now
250
-
251
- </deferred>
252
-
253
- ---
254
-
255
- *Phase: 01-photo-organization*
256
- *Context gathered: 2025-01-20*
257
- ```
258
-
259
- </good_examples>
260
-
261
- <guidelines>
262
- **This template captures DECISIONS for downstream agents.**
263
-
264
- The output should answer: "What does the researcher need to investigate? What choices are locked for the planner?"
265
-
266
- **Good content (concrete decisions):**
267
- - "Card-based layout, not timeline"
268
- - "Retry 3 times on network failure, then fail"
269
- - "Group by year, then by month"
270
- - "JSON for programmatic use, table for humans"
271
-
272
- **Bad content (too vague):**
273
- - "Should feel modern and clean"
274
- - "Good user experience"
275
- - "Fast and responsive"
276
- - "Easy to use"
277
-
278
- **After creation:**
279
- - File lives in phase directory: `.ariadna_planning/phases/XX-name/{phase}-CONTEXT.md`
280
- - `ariadna-phase-researcher` uses decisions to focus investigation
281
- - `ariadna-planner` uses decisions + research to create executable tasks
282
- - Downstream agents should NOT need to ask the user again about captured decisions
283
- </guidelines>
@@ -1,78 +0,0 @@
1
- # Continue-Here Template
2
-
3
- Copy and fill this structure for `.ariadna_planning/phases/XX-name/.continue-here.md`:
4
-
5
- ```yaml
6
- ---
7
- phase: XX-name
8
- task: 3
9
- total_tasks: 7
10
- status: in_progress
11
- last_updated: 2025-01-15T14:30:00Z
12
- ---
13
- ```
14
-
15
- ```markdown
16
- <current_state>
17
- [Where exactly are we? What's the immediate context?]
18
- </current_state>
19
-
20
- <completed_work>
21
- [What got done this session - be specific]
22
-
23
- - Task 1: [name] - Done
24
- - Task 2: [name] - Done
25
- - Task 3: [name] - In progress, [what's done on it]
26
- </completed_work>
27
-
28
- <remaining_work>
29
- [What's left in this phase]
30
-
31
- - Task 3: [name] - [what's left to do]
32
- - Task 4: [name] - Not started
33
- - Task 5: [name] - Not started
34
- </remaining_work>
35
-
36
- <decisions_made>
37
- [Key decisions and why - so next session doesn't re-debate]
38
-
39
- - Decided to use [X] because [reason]
40
- - Chose [approach] over [alternative] because [reason]
41
- </decisions_made>
42
-
43
- <blockers>
44
- [Anything stuck or waiting on external factors]
45
-
46
- - [Blocker 1]: [status/workaround]
47
- </blockers>
48
-
49
- <context>
50
- [Mental state, "vibe", anything that helps resume smoothly]
51
-
52
- [What were you thinking about? What was the plan?
53
- This is the "pick up exactly where you left off" context.]
54
- </context>
55
-
56
- <next_action>
57
- [The very first thing to do when resuming]
58
-
59
- Start with: [specific action]
60
- </next_action>
61
- ```
62
-
63
- <yaml_fields>
64
- Required YAML frontmatter:
65
-
66
- - `phase`: Directory name (e.g., `02-authentication`)
67
- - `task`: Current task number
68
- - `total_tasks`: How many tasks in phase
69
- - `status`: `in_progress`, `blocked`, `almost_done`
70
- - `last_updated`: ISO timestamp
71
- </yaml_fields>
72
-
73
- <guidelines>
74
- - Be specific enough that a fresh Claude instance understands immediately
75
- - Include WHY decisions were made, not just what
76
- - The `<next_action>` should be actionable without reading anything else
77
- - This file gets DELETED after resume - it's not permanent storage
78
- </guidelines>
@@ -1,91 +0,0 @@
1
- # Debug Subagent Prompt Template
2
-
3
- Template for spawning ariadna-debugger agent. The agent contains all debugging expertise - this template provides problem context only.
4
-
5
- ---
6
-
7
- ## Template
8
-
9
- ```markdown
10
- <objective>
11
- Investigate issue: {issue_id}
12
-
13
- **Summary:** {issue_summary}
14
- </objective>
15
-
16
- <symptoms>
17
- expected: {expected}
18
- actual: {actual}
19
- errors: {errors}
20
- reproduction: {reproduction}
21
- timeline: {timeline}
22
- </symptoms>
23
-
24
- <mode>
25
- symptoms_prefilled: {true_or_false}
26
- goal: {find_root_cause_only | find_and_fix}
27
- </mode>
28
-
29
- <debug_file>
30
- Create: .ariadna_planning/debug/{slug}.md
31
- </debug_file>
32
- ```
33
-
34
- ---
35
-
36
- ## Placeholders
37
-
38
- | Placeholder | Source | Example |
39
- |-------------|--------|---------|
40
- | `{issue_id}` | Orchestrator-assigned | `auth-screen-dark` |
41
- | `{issue_summary}` | User description | `Auth screen is too dark` |
42
- | `{expected}` | From symptoms | `See logo clearly` |
43
- | `{actual}` | From symptoms | `Screen is dark` |
44
- | `{errors}` | From symptoms | `None in console` |
45
- | `{reproduction}` | From symptoms | `Open /auth page` |
46
- | `{timeline}` | From symptoms | `After recent deploy` |
47
- | `{goal}` | Orchestrator sets | `find_and_fix` |
48
- | `{slug}` | Generated | `auth-screen-dark` |
49
-
50
- ---
51
-
52
- ## Usage
53
-
54
- **From /ariadna:debug:**
55
- ```python
56
- Task(
57
- prompt=filled_template,
58
- subagent_type="ariadna-debugger",
59
- description="Debug {slug}"
60
- )
61
- ```
62
-
63
- **From diagnose-issues (UAT):**
64
- ```python
65
- Task(prompt=template, subagent_type="ariadna-debugger", description="Debug UAT-001")
66
- ```
67
-
68
- ---
69
-
70
- ## Continuation
71
-
72
- For checkpoints, spawn fresh agent with:
73
-
74
- ```markdown
75
- <objective>
76
- Continue debugging {slug}. Evidence is in the debug file.
77
- </objective>
78
-
79
- <prior_state>
80
- Debug file: @.ariadna_planning/debug/{slug}.md
81
- </prior_state>
82
-
83
- <checkpoint_response>
84
- **Type:** {checkpoint_type}
85
- **Response:** {user_response}
86
- </checkpoint_response>
87
-
88
- <mode>
89
- goal: {goal}
90
- </mode>
91
- ```