@soleri/cli 1.7.0 → 1.9.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 (59) hide show
  1. package/code-reviewer/.claude/hookify.focus-ring-required.local.md +21 -0
  2. package/code-reviewer/.claude/hookify.no-ai-attribution.local.md +18 -0
  3. package/code-reviewer/.claude/hookify.no-any-types.local.md +18 -0
  4. package/code-reviewer/.claude/hookify.no-console-log.local.md +21 -0
  5. package/code-reviewer/.claude/hookify.no-important.local.md +18 -0
  6. package/code-reviewer/.claude/hookify.no-inline-styles.local.md +21 -0
  7. package/code-reviewer/.claude/hookify.semantic-html.local.md +18 -0
  8. package/code-reviewer/.claude/hookify.ux-touch-targets.local.md +18 -0
  9. package/code-reviewer/.mcp.json +11 -0
  10. package/code-reviewer/README.md +346 -0
  11. package/code-reviewer/package-lock.json +4484 -0
  12. package/code-reviewer/package.json +45 -0
  13. package/code-reviewer/scripts/copy-assets.js +15 -0
  14. package/code-reviewer/scripts/setup.sh +130 -0
  15. package/code-reviewer/skills/brainstorming/SKILL.md +170 -0
  16. package/code-reviewer/skills/code-patrol/SKILL.md +176 -0
  17. package/code-reviewer/skills/context-resume/SKILL.md +143 -0
  18. package/code-reviewer/skills/executing-plans/SKILL.md +201 -0
  19. package/code-reviewer/skills/fix-and-learn/SKILL.md +164 -0
  20. package/code-reviewer/skills/health-check/SKILL.md +225 -0
  21. package/code-reviewer/skills/second-opinion/SKILL.md +142 -0
  22. package/code-reviewer/skills/systematic-debugging/SKILL.md +230 -0
  23. package/code-reviewer/skills/verification-before-completion/SKILL.md +170 -0
  24. package/code-reviewer/skills/writing-plans/SKILL.md +207 -0
  25. package/code-reviewer/src/__tests__/facades.test.ts +598 -0
  26. package/code-reviewer/src/activation/activate.ts +125 -0
  27. package/code-reviewer/src/activation/claude-md-content.ts +217 -0
  28. package/code-reviewer/src/activation/inject-claude-md.ts +113 -0
  29. package/code-reviewer/src/extensions/index.ts +47 -0
  30. package/code-reviewer/src/extensions/ops/example.ts +28 -0
  31. package/code-reviewer/src/identity/persona.ts +62 -0
  32. package/code-reviewer/src/index.ts +278 -0
  33. package/code-reviewer/src/intelligence/data/architecture.json +5 -0
  34. package/code-reviewer/src/intelligence/data/code-review.json +5 -0
  35. package/code-reviewer/tsconfig.json +30 -0
  36. package/code-reviewer/vitest.config.ts +23 -0
  37. package/dist/commands/create.js +6 -0
  38. package/dist/commands/create.js.map +1 -1
  39. package/dist/commands/extend.d.ts +2 -0
  40. package/dist/commands/extend.js +167 -0
  41. package/dist/commands/extend.js.map +1 -0
  42. package/dist/main.js +2 -0
  43. package/dist/main.js.map +1 -1
  44. package/dist/prompts/archetypes.d.ts +21 -0
  45. package/dist/prompts/archetypes.js +183 -0
  46. package/dist/prompts/archetypes.js.map +1 -0
  47. package/dist/prompts/create-wizard.d.ts +1 -1
  48. package/dist/prompts/create-wizard.js +295 -76
  49. package/dist/prompts/create-wizard.js.map +1 -1
  50. package/dist/prompts/playbook.d.ts +63 -0
  51. package/dist/prompts/playbook.js +250 -0
  52. package/dist/prompts/playbook.js.map +1 -0
  53. package/package.json +1 -1
  54. package/src/commands/create.ts +6 -0
  55. package/src/commands/extend.ts +197 -0
  56. package/src/main.ts +2 -0
  57. package/src/prompts/archetypes.ts +212 -0
  58. package/src/prompts/create-wizard.ts +345 -69
  59. package/src/prompts/playbook.ts +301 -0
@@ -0,0 +1,207 @@
1
+ ---
2
+ name: writing-plans
3
+ description: Use when you have a spec or requirements for a multi-step task, before touching code
4
+ ---
5
+
6
+ <!-- Adapted from superpowers (MIT License) -->
7
+
8
+ # Writing Plans
9
+
10
+ ## Overview
11
+
12
+ Write comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste. Document everything they need to know: which files to touch for each task, code, testing, docs they might need to check, how to test it. Give them the whole plan as bite-sized tasks. DRY. YAGNI. TDD. Frequent commits.
13
+
14
+ Assume they are a skilled developer, but know almost nothing about our toolset or problem domain. Assume they don't know good test design very well.
15
+
16
+ **Announce at start:** "I'm using the writing-plans skill to create the implementation plan."
17
+
18
+ **Save plans to:** `docs/plans/YYYY-MM-DD-<feature-name>.md`
19
+
20
+ ## Before Writing — Search First, Plan Second
21
+
22
+ **Never write a plan from scratch.** Always search for existing knowledge first.
23
+
24
+ ### 1. Vault First
25
+ Check the vault for relevant implementation patterns:
26
+
27
+ ```
28
+ code-reviewer_core op:search_intelligent
29
+ params: { query: "<feature being planned>" }
30
+ ```
31
+
32
+ Look for:
33
+ - **Implementation patterns** — proven approaches for similar features
34
+ - **Anti-patterns** — approaches that failed and should be avoided
35
+ - **Testing patterns** — how similar features were tested
36
+
37
+ Also check brain strengths for what's worked:
38
+
39
+ ```
40
+ code-reviewer_core op:brain_strengths
41
+ ```
42
+
43
+ Browse related knowledge domains for additional context:
44
+
45
+ ```
46
+ code-reviewer_core op:vault_domains
47
+ code-reviewer_core op:vault_tags
48
+ ```
49
+
50
+ ### 2. Web Search Second
51
+ If the vault doesn't have implementation guidance, search the web:
52
+ - **Libraries and tools** — is there a package that does this already?
53
+ - **Reference implementations** — how did other projects solve this?
54
+ - **API documentation** — official docs for libraries you'll use
55
+ - **Known issues** — pitfalls others ran into
56
+
57
+ ### 3. Then Write the Plan
58
+ Incorporate vault insights and web findings into the plan. Reference specific vault entries and documentation links when they inform a step. A plan informed by existing knowledge is dramatically better than one written from first principles.
59
+
60
+ ## Create a Tracked Plan
61
+
62
+ Use the agent's planning system to create a tracked, resumable plan:
63
+
64
+ ```
65
+ code-reviewer_core op:create_plan
66
+ params: {
67
+ objective: "<one-sentence goal>",
68
+ scope: { included: [...], excluded: [...] },
69
+ steps: [
70
+ { title: "Step 1 title", description: "details" },
71
+ ...
72
+ ]
73
+ }
74
+ ```
75
+
76
+ This makes the plan persistent across sessions — if context compacts or sessions change, the plan survives.
77
+
78
+ ## Grade the Plan
79
+
80
+ After drafting, grade the plan for quality before presenting to the user:
81
+
82
+ ```
83
+ code-reviewer_core op:plan_grade
84
+ params: { planId: "<id from create_plan>" }
85
+ ```
86
+
87
+ If the grade is below target, auto-improve:
88
+
89
+ ```
90
+ code-reviewer_core op:plan_auto_improve
91
+ params: { planId: "<id>" }
92
+ ```
93
+
94
+ This iterates on the plan — filling gaps, adding missing test steps, clarifying ambiguous instructions. Repeat until the grade meets the target:
95
+
96
+ ```
97
+ code-reviewer_core op:plan_meets_grade
98
+ params: { planId: "<id>", targetGrade: "A" }
99
+ ```
100
+
101
+ ### Iterate on Drafts
102
+
103
+ For complex plans, iterate before finalizing:
104
+
105
+ ```
106
+ code-reviewer_core op:plan_iterate
107
+ params: { planId: "<id>", feedback: "<what needs improvement>" }
108
+ ```
109
+
110
+ This creates a new version of the plan incorporating the feedback, preserving version history.
111
+
112
+ ## Split into Tasks
113
+
114
+ Once the plan is approved, split it into trackable tasks:
115
+
116
+ ```
117
+ code-reviewer_core op:plan_split
118
+ params: { planId: "<id>" }
119
+ ```
120
+
121
+ This generates individual tasks from the plan steps, ready for execution tracking.
122
+
123
+ ## Bite-Sized Task Granularity
124
+
125
+ **Each step is one action (2-5 minutes):**
126
+ - "Write the failing test" - step
127
+ - "Run it to make sure it fails" - step
128
+ - "Implement the minimal code to make the test pass" - step
129
+ - "Run the tests and make sure they pass" - step
130
+ - "Commit" - step
131
+
132
+ ## Plan Document Header
133
+
134
+ **Every plan MUST start with this header:**
135
+
136
+ ```markdown
137
+ # [Feature Name] Implementation Plan
138
+
139
+ > **For Claude:** REQUIRED SUB-SKILL: Use executing-plans to implement this plan task-by-task.
140
+
141
+ **Goal:** [One sentence describing what this builds]
142
+
143
+ **Architecture:** [2-3 sentences about approach]
144
+
145
+ **Tech Stack:** [Key technologies/libraries]
146
+
147
+ ---
148
+ ```
149
+
150
+ ## Task Structure
151
+
152
+ Each task uses this format:
153
+ - Files: Create / Modify / Test paths
154
+ - Step 1: Write the failing test (with code)
155
+ - Step 2: Run test to verify it fails (with expected output)
156
+ - Step 3: Write minimal implementation (with code)
157
+ - Step 4: Run test to verify it passes (with expected output)
158
+ - Step 5: Commit (with exact git commands)
159
+
160
+ ## Remember
161
+ - Exact file paths always
162
+ - Complete code in plan (not "add validation")
163
+ - Exact commands with expected output
164
+ - DRY, YAGNI, TDD, frequent commits
165
+
166
+ ## After Plan Approval
167
+
168
+ Once the user approves the plan, register it for tracking:
169
+
170
+ ```
171
+ code-reviewer_core op:approve_plan
172
+ params: { planId: "<id from create_plan>" }
173
+ ```
174
+
175
+ Check plan stats for an overview:
176
+
177
+ ```
178
+ code-reviewer_core op:plan_stats
179
+ ```
180
+
181
+ ## Execution Handoff
182
+
183
+ After saving the plan, offer execution choice:
184
+
185
+ "Plan complete and saved to `docs/plans/<filename>.md`. Two execution options:
186
+
187
+ **1. Subagent-Driven (this session)** - I dispatch fresh subagent per task, review between tasks, fast iteration
188
+
189
+ **2. Parallel Session (separate)** - Open new session with executing-plans, batch execution with checkpoints
190
+
191
+ Which approach?"
192
+
193
+ ## Agent Tools Reference
194
+
195
+ | Op | When to Use |
196
+ |----|-------------|
197
+ | `search_intelligent` | Find relevant patterns before planning |
198
+ | `brain_strengths` | Check proven approaches |
199
+ | `vault_domains` / `vault_tags` | Browse knowledge landscape |
200
+ | `create_plan` | Create tracked, persistent plan |
201
+ | `plan_grade` | Grade plan quality |
202
+ | `plan_auto_improve` | Auto-fix plan weaknesses |
203
+ | `plan_meets_grade` | Verify grade target reached |
204
+ | `plan_iterate` | Iterate on draft with feedback |
205
+ | `plan_split` | Split plan into trackable tasks |
206
+ | `approve_plan` | Lock in approved plan |
207
+ | `plan_stats` | Overview of plan metrics |