@soleri/forge 8.1.0 → 9.0.1

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 (111) hide show
  1. package/dist/agent-schema.d.ts +16 -18
  2. package/dist/agent-schema.js +6 -6
  3. package/dist/agent-schema.js.map +1 -1
  4. package/dist/scaffold-filetree.js +19 -3
  5. package/dist/scaffold-filetree.js.map +1 -1
  6. package/dist/scaffolder.js +0 -4
  7. package/dist/scaffolder.js.map +1 -1
  8. package/dist/skills/brain-debrief/SKILL.md +66 -0
  9. package/dist/skills/brainstorming/SKILL.md +85 -0
  10. package/dist/skills/code-patrol/SKILL.md +86 -0
  11. package/dist/skills/context-resume/SKILL.md +92 -0
  12. package/dist/skills/executing-plans/SKILL.md +87 -0
  13. package/dist/skills/fix-and-learn/SKILL.md +98 -0
  14. package/dist/skills/health-check/SKILL.md +131 -0
  15. package/dist/skills/knowledge-harvest/SKILL.md +93 -0
  16. package/dist/skills/onboard-me/SKILL.md +118 -0
  17. package/dist/skills/retrospective/SKILL.md +95 -0
  18. package/dist/skills/second-opinion/SKILL.md +97 -0
  19. package/dist/skills/systematic-debugging/SKILL.md +99 -0
  20. package/dist/skills/test-driven-development/SKILL.md +91 -0
  21. package/dist/skills/vault-capture/SKILL.md +82 -0
  22. package/dist/skills/vault-navigator/SKILL.md +80 -0
  23. package/dist/skills/verification-before-completion/SKILL.md +82 -0
  24. package/dist/skills/writing-plans/SKILL.md +105 -0
  25. package/dist/templates/agents-md.js +0 -1
  26. package/dist/templates/agents-md.js.map +1 -1
  27. package/dist/templates/claude-md-template.js +2 -2
  28. package/dist/templates/claude-md-template.js.map +1 -1
  29. package/dist/templates/entry-point.js +1 -1
  30. package/dist/templates/entry-point.js.map +1 -1
  31. package/dist/templates/shared-rules.js +19 -0
  32. package/dist/templates/shared-rules.js.map +1 -1
  33. package/dist/templates/test-facades.js +0 -11
  34. package/dist/templates/test-facades.js.map +1 -1
  35. package/dist/types.d.ts +20 -20
  36. package/dist/types.js +6 -6
  37. package/dist/types.js.map +1 -1
  38. package/package.json +2 -2
  39. package/src/__tests__/scaffold-filetree.test.ts +0 -2
  40. package/src/agent-schema.ts +6 -6
  41. package/src/scaffold-filetree.ts +21 -2
  42. package/src/scaffolder.ts +0 -4
  43. package/src/skills/brain-debrief/SKILL.md +66 -0
  44. package/src/skills/brainstorming/SKILL.md +85 -0
  45. package/src/skills/code-patrol/SKILL.md +86 -0
  46. package/src/skills/context-resume/SKILL.md +92 -0
  47. package/src/skills/executing-plans/SKILL.md +87 -0
  48. package/src/skills/fix-and-learn/SKILL.md +98 -0
  49. package/src/skills/health-check/SKILL.md +131 -0
  50. package/src/skills/knowledge-harvest/SKILL.md +93 -0
  51. package/src/skills/onboard-me/SKILL.md +118 -0
  52. package/src/skills/retrospective/SKILL.md +95 -0
  53. package/src/skills/second-opinion/SKILL.md +97 -0
  54. package/src/skills/systematic-debugging/SKILL.md +99 -0
  55. package/src/skills/test-driven-development/SKILL.md +91 -0
  56. package/src/skills/vault-capture/SKILL.md +82 -0
  57. package/src/skills/vault-navigator/SKILL.md +80 -0
  58. package/src/skills/verification-before-completion/SKILL.md +82 -0
  59. package/src/skills/writing-plans/SKILL.md +105 -0
  60. package/src/templates/agents-md.ts +0 -1
  61. package/src/templates/claude-md-template.ts +1 -2
  62. package/src/templates/entry-point.ts +1 -1
  63. package/src/templates/shared-rules.ts +20 -0
  64. package/src/templates/test-facades.ts +0 -11
  65. package/src/types.ts +6 -6
  66. package/dist/skills/agent-dev.md +0 -122
  67. package/dist/skills/agent-guide.md +0 -110
  68. package/dist/skills/agent-persona.md +0 -66
  69. package/dist/skills/brain-debrief.md +0 -214
  70. package/dist/skills/brainstorming.md +0 -180
  71. package/dist/skills/code-patrol.md +0 -178
  72. package/dist/skills/context-resume.md +0 -146
  73. package/dist/skills/deliver-and-ship.md +0 -123
  74. package/dist/skills/env-setup.md +0 -151
  75. package/dist/skills/executing-plans.md +0 -216
  76. package/dist/skills/fix-and-learn.md +0 -167
  77. package/dist/skills/health-check.md +0 -231
  78. package/dist/skills/knowledge-harvest.md +0 -185
  79. package/dist/skills/onboard-me.md +0 -198
  80. package/dist/skills/retrospective.md +0 -205
  81. package/dist/skills/second-opinion.md +0 -149
  82. package/dist/skills/systematic-debugging.md +0 -241
  83. package/dist/skills/test-driven-development.md +0 -281
  84. package/dist/skills/vault-capture.md +0 -170
  85. package/dist/skills/vault-curate.md +0 -107
  86. package/dist/skills/vault-navigator.md +0 -140
  87. package/dist/skills/verification-before-completion.md +0 -182
  88. package/dist/skills/writing-plans.md +0 -215
  89. package/src/skills/agent-dev.md +0 -122
  90. package/src/skills/agent-guide.md +0 -110
  91. package/src/skills/agent-persona.md +0 -66
  92. package/src/skills/brain-debrief.md +0 -214
  93. package/src/skills/brainstorming.md +0 -180
  94. package/src/skills/code-patrol.md +0 -178
  95. package/src/skills/context-resume.md +0 -146
  96. package/src/skills/deliver-and-ship.md +0 -123
  97. package/src/skills/env-setup.md +0 -151
  98. package/src/skills/executing-plans.md +0 -216
  99. package/src/skills/fix-and-learn.md +0 -167
  100. package/src/skills/health-check.md +0 -231
  101. package/src/skills/knowledge-harvest.md +0 -185
  102. package/src/skills/onboard-me.md +0 -198
  103. package/src/skills/retrospective.md +0 -205
  104. package/src/skills/second-opinion.md +0 -149
  105. package/src/skills/systematic-debugging.md +0 -241
  106. package/src/skills/test-driven-development.md +0 -281
  107. package/src/skills/vault-capture.md +0 -170
  108. package/src/skills/vault-curate.md +0 -107
  109. package/src/skills/vault-navigator.md +0 -140
  110. package/src/skills/verification-before-completion.md +0 -182
  111. package/src/skills/writing-plans.md +0 -215
@@ -1,215 +0,0 @@
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
-
26
- Check the vault for relevant implementation patterns:
27
-
28
- ```
29
- YOUR_AGENT_core op:search_intelligent
30
- params: { query: "<feature being planned>" }
31
- ```
32
-
33
- Look for:
34
-
35
- - **Implementation patterns** — proven approaches for similar features
36
- - **Anti-patterns** — approaches that failed and should be avoided
37
- - **Testing patterns** — how similar features were tested
38
-
39
- Also check brain strengths for what's worked:
40
-
41
- ```
42
- YOUR_AGENT_core op:brain_strengths
43
- ```
44
-
45
- Browse related knowledge domains for additional context:
46
-
47
- ```
48
- YOUR_AGENT_core op:vault_domains
49
- YOUR_AGENT_core op:vault_tags
50
- ```
51
-
52
- ### 2. Web Search Second
53
-
54
- If the vault doesn't have implementation guidance, search the web:
55
-
56
- - **Libraries and tools** — is there a package that does this already?
57
- - **Reference implementations** — how did other projects solve this?
58
- - **API documentation** — official docs for libraries you'll use
59
- - **Known issues** — pitfalls others ran into
60
-
61
- ### 3. Then Write the Plan
62
-
63
- 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.
64
-
65
- ## Create a Tracked Plan
66
-
67
- Use the agent's planning system to create a tracked, resumable plan:
68
-
69
- ```
70
- YOUR_AGENT_core op:create_plan
71
- params: {
72
- objective: "<one-sentence goal>",
73
- scope: { included: [...], excluded: [...] },
74
- steps: [
75
- { title: "Step 1 title", description: "details" },
76
- ...
77
- ]
78
- }
79
- ```
80
-
81
- This makes the plan persistent across sessions — if context compacts or sessions change, the plan survives.
82
-
83
- ## Grade the Plan
84
-
85
- After drafting, grade the plan for quality before presenting to the user:
86
-
87
- ```
88
- YOUR_AGENT_core op:plan_grade
89
- params: { planId: "<id from create_plan>" }
90
- ```
91
-
92
- If the grade is below target, auto-improve:
93
-
94
- ```
95
- YOUR_AGENT_core op:plan_auto_improve
96
- params: { planId: "<id>" }
97
- ```
98
-
99
- This iterates on the plan — filling gaps, adding missing test steps, clarifying ambiguous instructions. Repeat until the grade meets the target:
100
-
101
- ```
102
- YOUR_AGENT_core op:plan_meets_grade
103
- params: { planId: "<id>", targetGrade: "A" }
104
- ```
105
-
106
- ### Iterate on Drafts
107
-
108
- For complex plans, iterate before finalizing:
109
-
110
- ```
111
- YOUR_AGENT_core op:plan_iterate
112
- params: { planId: "<id>", feedback: "<what needs improvement>" }
113
- ```
114
-
115
- This creates a new version of the plan incorporating the feedback, preserving version history.
116
-
117
- ## Split into Tasks
118
-
119
- Once the plan is approved, split it into trackable tasks:
120
-
121
- ```
122
- YOUR_AGENT_core op:plan_split
123
- params: { planId: "<id>" }
124
- ```
125
-
126
- This generates individual tasks from the plan steps, ready for execution tracking.
127
-
128
- ## Bite-Sized Task Granularity
129
-
130
- **Each step is one action (2-5 minutes):**
131
-
132
- - "Write the failing test" - step
133
- - "Run it to make sure it fails" - step
134
- - "Implement the minimal code to make the test pass" - step
135
- - "Run the tests and make sure they pass" - step
136
- - "Commit" - step
137
-
138
- ## Plan Document Header
139
-
140
- **Every plan MUST start with this header:**
141
-
142
- ```markdown
143
- # [Feature Name] Implementation Plan
144
-
145
- > **For Claude:** REQUIRED SUB-SKILL: Use executing-plans to implement this plan task-by-task.
146
-
147
- **Goal:** [One sentence describing what this builds]
148
-
149
- **Architecture:** [2-3 sentences about approach]
150
-
151
- **Tech Stack:** [Key technologies/libraries]
152
-
153
- ---
154
- ```
155
-
156
- ## Task Structure
157
-
158
- Each task uses this format:
159
-
160
- - Files: Create / Modify / Test paths
161
- - Step 1: Write the failing test (with code)
162
- - Step 2: Run test to verify it fails (with expected output)
163
- - Step 3: Write minimal implementation (with code)
164
- - Step 4: Run test to verify it passes (with expected output)
165
- - Step 5: Commit (with exact git commands)
166
-
167
- ## Remember
168
-
169
- - Exact file paths always
170
- - Complete code in plan (not "add validation")
171
- - Exact commands with expected output
172
- - DRY, YAGNI, TDD, frequent commits
173
-
174
- ## After Plan Approval
175
-
176
- Once the user approves the plan, register it for tracking:
177
-
178
- ```
179
- YOUR_AGENT_core op:approve_plan
180
- params: { planId: "<id from create_plan>" }
181
- ```
182
-
183
- Check plan stats for an overview:
184
-
185
- ```
186
- YOUR_AGENT_core op:plan_stats
187
- ```
188
-
189
- ## Execution Handoff
190
-
191
- After saving the plan, offer execution choice:
192
-
193
- "Plan complete and saved to `docs/plans/<filename>.md`. Two execution options:
194
-
195
- **1. Subagent-Driven (this session)** - I dispatch fresh subagent per task, review between tasks, fast iteration
196
-
197
- **2. Parallel Session (separate)** - Open new session with executing-plans, batch execution with checkpoints
198
-
199
- Which approach?"
200
-
201
- ## Agent Tools Reference
202
-
203
- | Op | When to Use |
204
- | ------------------------------ | -------------------------------------- |
205
- | `search_intelligent` | Find relevant patterns before planning |
206
- | `brain_strengths` | Check proven approaches |
207
- | `vault_domains` / `vault_tags` | Browse knowledge landscape |
208
- | `create_plan` | Create tracked, persistent plan |
209
- | `plan_grade` | Grade plan quality |
210
- | `plan_auto_improve` | Auto-fix plan weaknesses |
211
- | `plan_meets_grade` | Verify grade target reached |
212
- | `plan_iterate` | Iterate on draft with feedback |
213
- | `plan_split` | Split plan into trackable tasks |
214
- | `approve_plan` | Lock in approved plan |
215
- | `plan_stats` | Overview of plan metrics |