@trespies-source/dojo-genesis-plugin 1.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 (209) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/LICENSE +21 -0
  3. package/README.md +204 -0
  4. package/dist/hooks/after-tool-call/handler.d.ts +4 -0
  5. package/dist/hooks/after-tool-call/handler.d.ts.map +1 -0
  6. package/dist/hooks/after-tool-call/handler.js +37 -0
  7. package/dist/hooks/after-tool-call/handler.js.map +1 -0
  8. package/dist/hooks/agent-end/handler.d.ts +4 -0
  9. package/dist/hooks/agent-end/handler.d.ts.map +1 -0
  10. package/dist/hooks/agent-end/handler.js +16 -0
  11. package/dist/hooks/agent-end/handler.js.map +1 -0
  12. package/dist/hooks/before-agent-start/handler.d.ts +4 -0
  13. package/dist/hooks/before-agent-start/handler.d.ts.map +1 -0
  14. package/dist/hooks/before-agent-start/handler.js +81 -0
  15. package/dist/hooks/before-agent-start/handler.js.map +1 -0
  16. package/dist/index.d.ts +18 -0
  17. package/dist/index.d.ts.map +1 -0
  18. package/dist/index.js +35 -0
  19. package/dist/index.js.map +1 -0
  20. package/dist/src/commands/archive.d.ts +4 -0
  21. package/dist/src/commands/archive.d.ts.map +1 -0
  22. package/dist/src/commands/archive.js +20 -0
  23. package/dist/src/commands/archive.js.map +1 -0
  24. package/dist/src/commands/init.d.ts +4 -0
  25. package/dist/src/commands/init.d.ts.map +1 -0
  26. package/dist/src/commands/init.js +57 -0
  27. package/dist/src/commands/init.js.map +1 -0
  28. package/dist/src/commands/list.d.ts +4 -0
  29. package/dist/src/commands/list.d.ts.map +1 -0
  30. package/dist/src/commands/list.js +9 -0
  31. package/dist/src/commands/list.js.map +1 -0
  32. package/dist/src/commands/router.d.ts +3 -0
  33. package/dist/src/commands/router.d.ts.map +1 -0
  34. package/dist/src/commands/router.js +83 -0
  35. package/dist/src/commands/router.js.map +1 -0
  36. package/dist/src/commands/skill-invoke.d.ts +4 -0
  37. package/dist/src/commands/skill-invoke.d.ts.map +1 -0
  38. package/dist/src/commands/skill-invoke.js +26 -0
  39. package/dist/src/commands/skill-invoke.js.map +1 -0
  40. package/dist/src/commands/status.d.ts +4 -0
  41. package/dist/src/commands/status.d.ts.map +1 -0
  42. package/dist/src/commands/status.js +42 -0
  43. package/dist/src/commands/status.js.map +1 -0
  44. package/dist/src/commands/switch.d.ts +4 -0
  45. package/dist/src/commands/switch.d.ts.map +1 -0
  46. package/dist/src/commands/switch.js +20 -0
  47. package/dist/src/commands/switch.js.map +1 -0
  48. package/dist/src/orchestration/tool-registry.d.ts +18 -0
  49. package/dist/src/orchestration/tool-registry.d.ts.map +1 -0
  50. package/dist/src/orchestration/tool-registry.js +153 -0
  51. package/dist/src/orchestration/tool-registry.js.map +1 -0
  52. package/dist/src/skills/catalog.d.ts +9 -0
  53. package/dist/src/skills/catalog.d.ts.map +1 -0
  54. package/dist/src/skills/catalog.js +251 -0
  55. package/dist/src/skills/catalog.js.map +1 -0
  56. package/dist/src/state/manager.d.ts +19 -0
  57. package/dist/src/state/manager.d.ts.map +1 -0
  58. package/dist/src/state/manager.js +114 -0
  59. package/dist/src/state/manager.js.map +1 -0
  60. package/dist/src/state/migrations.d.ts +3 -0
  61. package/dist/src/state/migrations.d.ts.map +1 -0
  62. package/dist/src/state/migrations.js +8 -0
  63. package/dist/src/state/migrations.js.map +1 -0
  64. package/dist/src/state/types.d.ts +62 -0
  65. package/dist/src/state/types.d.ts.map +1 -0
  66. package/dist/src/state/types.js +2 -0
  67. package/dist/src/state/types.js.map +1 -0
  68. package/dist/src/ui/chat-formatter.d.ts +11 -0
  69. package/dist/src/ui/chat-formatter.d.ts.map +1 -0
  70. package/dist/src/ui/chat-formatter.js +39 -0
  71. package/dist/src/ui/chat-formatter.js.map +1 -0
  72. package/dist/src/utils/file-ops.d.ts +6 -0
  73. package/dist/src/utils/file-ops.d.ts.map +1 -0
  74. package/dist/src/utils/file-ops.js +38 -0
  75. package/dist/src/utils/file-ops.js.map +1 -0
  76. package/dist/src/utils/markdown.d.ts +2 -0
  77. package/dist/src/utils/markdown.d.ts.map +1 -0
  78. package/dist/src/utils/markdown.js +11 -0
  79. package/dist/src/utils/markdown.js.map +1 -0
  80. package/dist/src/utils/validation.d.ts +7 -0
  81. package/dist/src/utils/validation.d.ts.map +1 -0
  82. package/dist/src/utils/validation.js +29 -0
  83. package/dist/src/utils/validation.js.map +1 -0
  84. package/dist/tests/__mocks__/openclaw-types.d.ts +54 -0
  85. package/dist/tests/__mocks__/openclaw-types.d.ts.map +1 -0
  86. package/dist/tests/__mocks__/openclaw-types.js +29 -0
  87. package/dist/tests/__mocks__/openclaw-types.js.map +1 -0
  88. package/hooks/after-tool-call/HOOK.md +7 -0
  89. package/hooks/after-tool-call/handler.ts +41 -0
  90. package/hooks/agent-end/HOOK.md +7 -0
  91. package/hooks/agent-end/handler.ts +18 -0
  92. package/hooks/before-agent-start/HOOK.md +7 -0
  93. package/hooks/before-agent-start/handler.ts +133 -0
  94. package/openclaw.plugin.json +19 -0
  95. package/package.json +61 -0
  96. package/skills/agent-teaching/SKILL.md +583 -0
  97. package/skills/agent-teaching/claw.json +12 -0
  98. package/skills/compression-ritual/SKILL.md +136 -0
  99. package/skills/compression-ritual/claw.json +12 -0
  100. package/skills/context-ingestion/SKILL.md +109 -0
  101. package/skills/context-ingestion/claw.json +12 -0
  102. package/skills/decision-propagation/SKILL.md +130 -0
  103. package/skills/decision-propagation/claw.json +12 -0
  104. package/skills/documentation-audit/SKILL.md +146 -0
  105. package/skills/documentation-audit/claw.json +12 -0
  106. package/skills/era-architecture/SKILL.md +166 -0
  107. package/skills/era-architecture/claw.json +12 -0
  108. package/skills/file-management/SKILL.md +127 -0
  109. package/skills/file-management/claw.json +12 -0
  110. package/skills/frontend-from-backend/SKILL.md +127 -0
  111. package/skills/frontend-from-backend/claw.json +12 -0
  112. package/skills/handoff-protocol/SKILL.md +168 -0
  113. package/skills/handoff-protocol/claw.json +12 -0
  114. package/skills/health-audit/SKILL.md +123 -0
  115. package/skills/health-audit/claw.json +12 -0
  116. package/skills/implementation-prompt/SKILL.md +361 -0
  117. package/skills/implementation-prompt/claw.json +12 -0
  118. package/skills/iterative-scouting/SKILL.md +106 -0
  119. package/skills/iterative-scouting/claw.json +12 -0
  120. package/skills/memory-garden/SKILL.md +470 -0
  121. package/skills/memory-garden/claw.json +12 -0
  122. package/skills/multi-surface-strategy/SKILL.md +288 -0
  123. package/skills/multi-surface-strategy/claw.json +12 -0
  124. package/skills/parallel-tracks/SKILL.md +152 -0
  125. package/skills/parallel-tracks/claw.json +12 -0
  126. package/skills/patient-learning-protocol/SKILL.md +438 -0
  127. package/skills/patient-learning-protocol/claw.json +12 -0
  128. package/skills/planning-with-files/SKILL.md +139 -0
  129. package/skills/planning-with-files/claw.json +12 -0
  130. package/skills/pre-implementation-checklist/SKILL.md +156 -0
  131. package/skills/pre-implementation-checklist/claw.json +12 -0
  132. package/skills/process-extraction/SKILL.md +148 -0
  133. package/skills/process-extraction/claw.json +12 -0
  134. package/skills/process-extraction/references/process_example_template.md +40 -0
  135. package/skills/product-positioning/SKILL.md +293 -0
  136. package/skills/product-positioning/claw.json +12 -0
  137. package/skills/project-exploration/SKILL.md +168 -0
  138. package/skills/project-exploration/claw.json +12 -0
  139. package/skills/release-specification/SKILL.md +645 -0
  140. package/skills/release-specification/claw.json +12 -0
  141. package/skills/repo-context-sync/SKILL.md +362 -0
  142. package/skills/repo-context-sync/claw.json +12 -0
  143. package/skills/repo-context-sync/references/file_hierarchy_patterns.md +186 -0
  144. package/skills/repo-context-sync/references/zenflow_repo_patterns.md +328 -0
  145. package/skills/repo-context-sync/scripts/context_mapper.py +251 -0
  146. package/skills/repo-context-sync/scripts/diff_tracker.py +187 -0
  147. package/skills/repo-context-sync/scripts/smart_clone.sh +52 -0
  148. package/skills/repo-context-sync/templates/context_summary.md +58 -0
  149. package/skills/repo-status/SKILL.md +240 -0
  150. package/skills/repo-status/claw.json +12 -0
  151. package/skills/repo-status/references/semantic-clusters.md +159 -0
  152. package/skills/repo-status/references/status-template.md +214 -0
  153. package/skills/research-modes/SKILL.md +515 -0
  154. package/skills/research-modes/claw.json +12 -0
  155. package/skills/research-synthesis/SKILL.md +110 -0
  156. package/skills/research-synthesis/claw.json +12 -0
  157. package/skills/retrospective/SKILL.md +152 -0
  158. package/skills/retrospective/claw.json +12 -0
  159. package/skills/seed-extraction/SKILL.md +419 -0
  160. package/skills/seed-extraction/claw.json +12 -0
  161. package/skills/seed-library/SKILL.md +424 -0
  162. package/skills/seed-library/claw.json +12 -0
  163. package/skills/seed-library/references/seed_catalog.md +171 -0
  164. package/skills/seed-library/scripts/apply_seed.py +129 -0
  165. package/skills/seed-library/scripts/suggest_seeds.py +183 -0
  166. package/skills/seed-library/seeds/01_three_tiered_governance.md +90 -0
  167. package/skills/seed-library/seeds/02_harness_trace.md +135 -0
  168. package/skills/seed-library/seeds/03_context_iceberg.md +120 -0
  169. package/skills/seed-library/seeds/04_agent_connect.md +106 -0
  170. package/skills/seed-library/seeds/05_go_live_bundles.md +40 -0
  171. package/skills/seed-library/seeds/06_cost_guard.md +40 -0
  172. package/skills/seed-library/seeds/07_safety_switch.md +41 -0
  173. package/skills/seed-library/seeds/08_implicit_perspective_extraction.md +41 -0
  174. package/skills/seed-library/seeds/09_mode_based_complexity_gating.md +46 -0
  175. package/skills/seed-library/seeds/10_shared_infrastructure.md +75 -0
  176. package/skills/seed-library/seeds/11_voice_before_structure.md +74 -0
  177. package/skills/seed-library/seeds/12_pointer_directories.md +81 -0
  178. package/skills/seed-library/seeds/13_granular_visibility.md +82 -0
  179. package/skills/seed-library/seeds/meta_governance_multiplies_velocity.md +43 -0
  180. package/skills/seed-to-skill-converter/SKILL.md +113 -0
  181. package/skills/seed-to-skill-converter/claw.json +12 -0
  182. package/skills/semantic-clusters/SKILL.md +246 -0
  183. package/skills/semantic-clusters/claw.json +12 -0
  184. package/skills/semantic-clusters/references/verb-catalog.md +267 -0
  185. package/skills/skill-audit-upgrade/SKILL.md +427 -0
  186. package/skills/skill-audit-upgrade/claw.json +12 -0
  187. package/skills/skill-creation/LICENSE.txt +202 -0
  188. package/skills/skill-creation/SKILL.md +252 -0
  189. package/skills/skill-creation/claw.json +12 -0
  190. package/skills/skill-creation/references/output-patterns.md +82 -0
  191. package/skills/skill-creation/references/progressive-disclosure-patterns.md +79 -0
  192. package/skills/skill-creation/references/workflows.md +28 -0
  193. package/skills/skill-creation/scripts/init_skill.py +305 -0
  194. package/skills/skill-creation/scripts/quick_validate.py +134 -0
  195. package/skills/skill-maintenance/SKILL.md +413 -0
  196. package/skills/skill-maintenance/claw.json +12 -0
  197. package/skills/spec-constellation-to-prompt-suite/SKILL.md +174 -0
  198. package/skills/spec-constellation-to-prompt-suite/claw.json +12 -0
  199. package/skills/status-template/SKILL.md +211 -0
  200. package/skills/status-template/claw.json +12 -0
  201. package/skills/status-template/references/complete-template.md +191 -0
  202. package/skills/status-writing/SKILL.md +161 -0
  203. package/skills/status-writing/claw.json +12 -0
  204. package/skills/strategic-scout/SKILL.md +163 -0
  205. package/skills/strategic-scout/claw.json +12 -0
  206. package/skills/strategic-to-tactical-workflow/SKILL.md +391 -0
  207. package/skills/strategic-to-tactical-workflow/claw.json +12 -0
  208. package/skills/workspace-navigation/SKILL.md +622 -0
  209. package/skills/workspace-navigation/claw.json +12 -0
@@ -0,0 +1,424 @@
1
+ ---
2
+ name: seed-library
3
+ description: Access and apply the 10 Dojo Seed Patches plus 3 field seeds as reusable thinking modules. Use when architecting systems, optimizing costs, debugging complex issues, or grounding ecosystem-level work. Trigger phrases include "which seed applies here", "suggest a seed pattern", "apply a seed to this", "what pattern should we use", "load the seed library".
4
+ ---
5
+
6
+ > **OpenClaw Integration:** This skill is invoked by the Dojo Genesis plugin via `/dojo run seed-library`.
7
+ > The agent receives project context automatically via the `before_agent_start` hook.
8
+ > Use `dojo_get_context` for full state, `dojo_save_artifact` to persist outputs,
9
+ > and `dojo_update_state` to record phase transitions and decisions.
10
+
11
+ # Seed Module Library
12
+
13
+ Manage and apply the **10 Dojo Seed Patches** plus **3 field seeds** as reusable thinking modules. The core seeds derive from Dataiku research; the field seeds emerged from direct practice. Make enterprise-grade agent patterns accessible, consistent, and evolvable.
14
+
15
+ ## When to Use This Skill
16
+
17
+ Trigger this skill when:
18
+ - User asks "What seed applies here?" or "Which pattern should I use?"
19
+ - Keywords match seed triggers (governance, multi-agent, cost, context, routing, etc.)
20
+ - Architecting new features or systems
21
+ - Debugging complex issues
22
+ - Optimizing costs or performance
23
+ - Building trust through transparency
24
+
25
+ ## The 10 Core Seeds
26
+
27
+ 1. **Three-Tiered Governance** - Strategic/Tactical/Operational framework
28
+ 2. **Harness Trace** - Nested spans + events for traceability
29
+ 3. **Context Iceberg** - 6x token multiplier, hierarchical loading
30
+ 4. **Agent Connect** - Routing-first, not swarm-first
31
+ 5. **Go-Live Bundles** - Reusable artifacts (DojoPacket)
32
+ 6. **Cost Guard** - Budget for full iceberg (5-10x multiplier)
33
+ 7. **Safety Switch** - Fallback to conservative mode
34
+ 8. **Implicit Perspective Extraction** - Extract from constraints/metaphors
35
+ 9. **Mode-Based Complexity Gating** - 3-question test
36
+ 10. **Shared Infrastructure** - Build once, reuse everywhere
37
+
38
+ **Meta-Seed:** Governance Multiplies Velocity
39
+
40
+ ### Field Seeds (From Practice)
41
+ 11. **Voice Before Structure** - Read design language before writing structural artifacts
42
+ 12. **Pointer Directories** - Empty directories are references, not gaps
43
+ 13. **Granular Visibility** - Progress tracking serves the user, not the agent
44
+
45
+ ## Core Workflow
46
+
47
+ ### 1. Suggest Relevant Seeds
48
+
49
+ Based on keywords or task context:
50
+
51
+ ```bash
52
+ python3.11 /home/ubuntu/skills/seed-library/scripts/suggest_seeds.py <keywords...>
53
+ ```
54
+
55
+ **Example:**
56
+ ```bash
57
+ python3.11 suggest_seeds.py multi-agent architecture coordination
58
+ ```
59
+
60
+ **Output:**
61
+ - Top 3 relevant seeds ranked by relevance score
62
+ - Brief description of each seed
63
+ - File path to full seed content
64
+
65
+ **Saved to:** `/home/ubuntu/seed-suggestions.md`
66
+
67
+ ### 2. Apply a Seed
68
+
69
+ Load full seed content and application guide:
70
+
71
+ ```bash
72
+ python3.11 /home/ubuntu/skills/seed-library/scripts/apply_seed.py <seed_id> [session_id]
73
+ ```
74
+
75
+ **Example:**
76
+ ```bash
77
+ python3.11 apply_seed.py 04_agent_connect session_123
78
+ ```
79
+
80
+ **Output:**
81
+ - Full seed content (What It Is, Why It Matters, The Pattern, etc.)
82
+ - Application checklist
83
+ - Next steps
84
+ - Usage tracked automatically
85
+
86
+ **Saved to:** `/home/ubuntu/seed-<seed_id>-applied.md`
87
+
88
+ ## Script Reference
89
+
90
+ ### suggest_seeds.py
91
+
92
+ **Purpose:** Suggest relevant seeds based on keywords
93
+
94
+ **Usage:**
95
+ ```bash
96
+ python3.11 suggest_seeds.py <keywords...>
97
+ ```
98
+
99
+ **How it works:**
100
+ 1. Matches keywords to seed triggers
101
+ 2. Calculates relevance score
102
+ 3. Returns top 3 suggestions
103
+
104
+ **Trigger Keywords by Seed:**
105
+
106
+ - **01 (Governance):** governance, capabilities, complexity, multi-agent, coordination, policy, standards
107
+ - **02 (Trace):** debugging, trace, transparency, performance, evaluation, logging, monitoring
108
+ - **03 (Context):** token, cost, context, window, limit, budget, pruning, memory, overhead
109
+ - **04 (Agent Connect):** multi-agent, routing, coordination, specialized, handoff, permission, swarm
110
+ - **05 (Bundles):** export, sharing, reuse, artifact, package, bundle, repeatability, trust
111
+ - **06 (Cost Guard):** cost, budget, estimation, planning, infrastructure, investment, pricing
112
+ - **07 (Safety Switch):** fallback, conservative, alert, drift, failure, recovery, validation, error
113
+ - **08 (Perspective):** perspective, constraint, metaphor, scope, extraction, implicit, natural
114
+ - **09 (Complexity):** mode, complexity, routing, simple, query, reasoning, adaptive
115
+ - **10 (Infrastructure):** infrastructure, reuse, duplication, foundation, shared, common, service
116
+ - **11 (Voice):** voice, philosophy, design-language, manifest, description, ecosystem, grounding, plugin
117
+ - **12 (Pointers):** empty, missing, pointer, provenance, registry, audit, gap, coverage, directory
118
+ - **13 (Visibility):** progress, tracking, visibility, todo, granular, steering, trust, delegation
119
+
120
+ ### apply_seed.py
121
+
122
+ **Purpose:** Load and explain how to apply a seed
123
+
124
+ **Usage:**
125
+ ```bash
126
+ python3.11 apply_seed.py <seed_id> [session_id]
127
+ ```
128
+
129
+ **What it does:**
130
+ 1. Loads full seed content from `/seeds/<seed_id>.md`
131
+ 2. Generates application guide with checklist
132
+ 3. Tracks usage in `/home/ubuntu/.seed-usage.json`
133
+ 4. Saves guide to file
134
+
135
+ **Seed IDs:**
136
+ - `01_three_tiered_governance`
137
+ - `02_harness_trace`
138
+ - `03_context_iceberg`
139
+ - `04_agent_connect`
140
+ - `05_go_live_bundles`
141
+ - `06_cost_guard`
142
+ - `07_safety_switch`
143
+ - `08_implicit_perspective_extraction`
144
+ - `09_mode_based_complexity_gating`
145
+ - `10_shared_infrastructure`
146
+ - `meta_governance_multiplies_velocity`
147
+ - `11_voice_before_structure`
148
+ - `12_pointer_directories`
149
+ - `13_granular_visibility`
150
+
151
+ ## Seed Files
152
+
153
+ All seeds are stored in `/home/ubuntu/skills/seed-library/seeds/` as markdown files.
154
+
155
+ ### Seed File Structure
156
+
157
+ ```markdown
158
+ ---
159
+ seed_id: 01
160
+ name: Three-Tiered Governance
161
+ version: 1.0
162
+ created: 2026-01-12
163
+ source: Dataiku Research
164
+ status: active
165
+ ---
166
+
167
+ # Seed Name
168
+
169
+ ## What It Is
170
+ {description}
171
+
172
+ ## Why It Matters
173
+ {rationale}
174
+
175
+ ## The Pattern
176
+ {pattern description}
177
+
178
+ ## Revisit Trigger
179
+ {when to apply this seed}
180
+
181
+ ## Dojo Application
182
+ {how Dojo uses this pattern}
183
+
184
+ ## What It Refuses
185
+ {what this pattern explicitly rejects}
186
+
187
+ ## Checks
188
+ - [ ] {validation check 1}
189
+ - [ ] {validation check 2}
190
+
191
+ ## Related Seeds
192
+ - {seed name}: {relationship}
193
+ ```
194
+
195
+ ## Usage Tracking
196
+
197
+ The skill automatically tracks seed usage in `/home/ubuntu/.seed-usage.json`:
198
+
199
+ ```json
200
+ {
201
+ "seeds": {
202
+ "04_agent_connect": {
203
+ "usage_count": 3,
204
+ "last_used": "2026-01-29T12:00:00Z",
205
+ "sessions": ["session_123", "session_456"]
206
+ }
207
+ },
208
+ "session_seeds": {
209
+ "session_123": ["04_agent_connect", "10_shared_infrastructure"]
210
+ }
211
+ }
212
+ ```
213
+
214
+ ## Reference Documents
215
+
216
+ ### seed_catalog.md
217
+
218
+ Quick reference to all 10 seeds plus meta-seed:
219
+ - One-line descriptions
220
+ - Triggers and refusals
221
+ - Seed relationships
222
+ - Usage patterns (5 common scenarios)
223
+ - Maintenance guidelines
224
+
225
+ **Read this when:**
226
+ - Getting overview of all seeds
227
+ - Understanding seed relationships
228
+ - Learning usage patterns
229
+
230
+ ## Common Use Cases
231
+
232
+ ### Use Case 1: Architecting Multi-Agent System
233
+
234
+ **User says:** "How should we architect the multi-agent system?"
235
+
236
+ **Workflow:**
237
+ 1. Run `suggest_seeds.py multi-agent architecture coordination`
238
+ 2. Top suggestions: Agent Connect, Shared Infrastructure, Three-Tiered Governance
239
+ 3. Apply Seed 04 (Agent Connect)
240
+ 4. Follow application checklist
241
+ 5. Track usage
242
+
243
+ **Output:**
244
+ > Based on your query, I recommend **Agent Connect** (Seed 04). This seed provides a routing-first pattern where the Supervisor acts as a single entry point, routing to specialized agents (Dojo, Librarian, Debugger, Builder) based on context. This prevents agent sprawl and keeps coordination manageable.
245
+
246
+ ### Use Case 2: Optimizing Token Usage
247
+
248
+ **User says:** "Token usage is spiking, how do we optimize?"
249
+
250
+ **Workflow:**
251
+ 1. Run `suggest_seeds.py token cost context optimization`
252
+ 2. Top suggestions: Context Iceberg, Cost Guard, Mode-Based Complexity Gating
253
+ 3. Apply Seed 03 (Context Iceberg)
254
+ 4. Implement hierarchical context loading (Tier 1-4)
255
+ 5. Set pruning triggers (80%, 90%, 95%)
256
+
257
+ **Output:**
258
+ > The **Context Iceberg** pattern (Seed 03) explains the 6x token multiplier from demo to production. Implement hierarchical context loading with 4 tiers, and set pruning triggers at 80% (prune Tier 4), 90% (prune Tier 3), and 95% (alert user).
259
+
260
+ ### Use Case 3: Debugging Unexpected Behavior
261
+
262
+ **User says:** "Why did Dojo choose Scout instead of Mirror?"
263
+
264
+ **Workflow:**
265
+ 1. Run `suggest_seeds.py debugging trace transparency`
266
+ 2. Top suggestion: Harness Trace
267
+ 3. Apply Seed 02 (Harness Trace)
268
+ 4. Review trace spans for `mode_selection`
269
+ 5. Read `metadata.reasoning`
270
+
271
+ **Output:**
272
+ > Use the **Harness Trace** (Seed 02) to inspect the decision path. Check the `mode_selection` span in the trace JSON. The `metadata.reasoning` field will explain why Scout was chosen over Mirror.
273
+
274
+ ### Use Case 4: Building Trust with Users
275
+
276
+ **User says:** "Users don't understand our recommendations"
277
+
278
+ **Workflow:**
279
+ 1. Run `suggest_seeds.py trust transparency trace`
280
+ 2. Top suggestions: Harness Trace, Go-Live Bundles, Governance Multiplies Velocity
281
+ 3. Apply Seed 02 (Harness Trace) for transparency
282
+ 4. Apply Seed 05 (Go-Live Bundles) for repeatability
283
+ 5. Apply Meta-Seed for philosophy
284
+
285
+ **Output:**
286
+ > Build trust through **Harness Trace** (transparency), **Go-Live Bundles** (repeatability), and the **Governance Multiplies Velocity** philosophy. Show users the decision path, make sessions exportable and inspectable, and emphasize that governance accelerates delivery.
287
+
288
+ ### Use Case 5: Planning New Feature
289
+
290
+ **User says:** "Let's plan the Workbench feature"
291
+
292
+ **Workflow:**
293
+ 1. Run `suggest_seeds.py planning feature governance`
294
+ 2. Top suggestions: Three-Tiered Governance, Cost Guard, Shared Infrastructure
295
+ 3. Apply Seed 01 (Three-Tiered Governance)
296
+ 4. Define strategic (principles), tactical (standards), operational (tools)
297
+ 5. Apply Seed 06 (Cost Guard) to budget for 5-10x multiplier
298
+
299
+ **Output:**
300
+ > Start with **Three-Tiered Governance** (Seed 01). Define strategic principles (does this align with "no autopilot"?), tactical standards (DojoPacket schema, routing logic), and operational tools (tests, traces). Then apply **Cost Guard** (Seed 06) to budget for the full iceberg, not just API costs.
301
+
302
+ ## Integration with Dojo Agent
303
+
304
+ When Dojo is reasoning, it can reference seeds:
305
+
306
+ **Example:**
307
+ > "Considering **Agent Connect** (Seed 04) for this multi-agent architecture. Using Supervisor as router with transparent handoffs."
308
+
309
+ **Example:**
310
+ > "Applying **Context Iceberg** (Seed 03) to manage token usage. Loading Tier 1 + Tier 2 context for this query."
311
+
312
+ ## Seed Relationships
313
+
314
+ ### Foundational Seeds (Start Here)
315
+ - **01. Three-Tiered Governance** - Framework for all other seeds
316
+ - **Meta. Governance Multiplies Velocity** - Philosophy
317
+
318
+ ### Operational Seeds (Day-to-Day)
319
+ - **02. Harness Trace** - Transparency and debugging
320
+ - **03. Context Iceberg** - Token and cost management
321
+ - **07. Safety Switch** - Error handling
322
+ - **09. Mode-Based Complexity Gating** - Query routing
323
+
324
+ ### Architectural Seeds (System Design)
325
+ - **04. Agent Connect** - Multi-agent coordination
326
+ - **10. Shared Infrastructure** - Reusable services
327
+
328
+ ### Delivery Seeds (Shipping)
329
+ - **05. Go-Live Bundles** - Packaging and reuse
330
+ - **06. Cost Guard** - Budgeting and planning
331
+
332
+ ### UX Seeds (User Experience)
333
+ - **08. Implicit Perspective Extraction** - Reduce friction
334
+
335
+ ### Field Seeds (From Practice)
336
+ - **11. Voice Before Structure** - Ground in philosophy before writing
337
+ - **12. Pointer Directories** - Understand provenance before filling gaps
338
+ - **13. Granular Visibility** - Track progress for the user, not the agent
339
+
340
+ ## Seed Maintenance
341
+
342
+ ### When to Update a Seed
343
+ - Pattern evolves based on new learnings
344
+ - Better approach discovered
345
+ - User feedback suggests improvement
346
+
347
+ ### When to Archive a Seed
348
+ - Pattern no longer applies
349
+ - Superseded by better approach
350
+ - Context has fundamentally changed
351
+
352
+ ### Versioning Convention
353
+ - **1.0** - Initial version from Dataiku research
354
+ - **1.1** - Minor update (clarification, example added)
355
+ - **2.0** - Major update (pattern changed)
356
+
357
+ ### Update Process
358
+ 1. Identify need for update
359
+ 2. Draft new version
360
+ 3. Test with real scenarios
361
+ 4. Update seed file with "Revised:" section
362
+ 5. Update seed_catalog.md
363
+ 6. Notify users of change
364
+
365
+ ## Best Practices
366
+
367
+ ### Frequency
368
+ - **Proactive:** Suggest seeds during planning and design
369
+ - **Reactive:** Apply seeds when debugging or optimizing
370
+ - **Continuous:** Track usage to identify most valuable seeds
371
+
372
+ ### Application
373
+ - **Read the full seed** before applying (don't just skim)
374
+ - **Follow the checklist** to validate application
375
+ - **Note what it refuses** to avoid anti-patterns
376
+ - **Track usage** to measure effectiveness
377
+
378
+ ### Evolution
379
+ - **Update when patterns evolve** (not just for the sake of updating)
380
+ - **Archive when obsolete** (don't hoard outdated seeds)
381
+ - **Version carefully** (breaking changes = major version bump)
382
+
383
+ ## Limitations
384
+
385
+ ### What This Skill Does
386
+ - Suggest relevant seeds based on keywords
387
+ - Load and explain how to apply seeds
388
+ - Track usage over time
389
+ - Provide quick reference to all seeds
390
+
391
+ ### What This Skill Doesn't Do
392
+ - Automatically apply seeds (you still need to implement)
393
+ - Make architectural decisions for you
394
+ - Guarantee success (seeds are patterns, not silver bullets)
395
+ - Replace deep thinking (seeds guide, they don't replace reasoning)
396
+
397
+ ## Quick Reference
398
+
399
+ | Task | Command |
400
+ |------|---------|
401
+ | Suggest seeds | `python3.11 suggest_seeds.py <keywords...>` |
402
+ | Apply seed | `python3.11 apply_seed.py <seed_id>` |
403
+ | View catalog | `file read references/seed_catalog.md` |
404
+ | Check usage | `cat /home/ubuntu/.seed-usage.json` |
405
+ | List all seeds | `ls /home/ubuntu/skills/seed-library/seeds/` |
406
+
407
+ ## Success Metrics
408
+
409
+ - **Accessibility:** Find relevant seed in < 10 seconds
410
+ - **Consistency:** Seeds applied correctly 90%+ of the time
411
+ - **Evolution:** Seeds updated when patterns improve
412
+ - **Reuse:** Seeds used across multiple sessions
413
+ - **Learning:** New seeds added as patterns emerge
414
+ ---
415
+
416
+ ## OpenClaw Tool Integration
417
+
418
+ When running inside the Dojo Genesis plugin:
419
+
420
+ 1. **Start** by calling `dojo_get_context` to retrieve full project state, history, and artifacts
421
+ 2. **During** the skill, follow the workflow steps documented above
422
+ 3. **Save** outputs using `dojo_save_artifact` with the `artifacts` output directory
423
+ 4. **Update** project state by calling `dojo_update_state` to record skill completion and any phase transitions
424
+
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "dojo-genesis-plugin-seed-library",
3
+ "version": "1.0.0",
4
+ "description": "Access and apply Dojo Seed Patches",
5
+ "author": "dojo-genesis",
6
+ "license": "MIT",
7
+ "permissions": [],
8
+ "entry": "SKILL.md",
9
+ "tags": ["dojo-genesis", "orchestration", "garden", "memory"],
10
+ "models": ["claude-*", "gpt-*", "gemini-*"],
11
+ "minOpenClawVersion": "2026.1.0"
12
+ }
@@ -0,0 +1,171 @@
1
+ # Seed Module Catalog
2
+
3
+ This document provides a quick reference to all 10 Dojo Seed Patches plus the Meta-Seed.
4
+
5
+ ## The 10 Core Seeds
6
+
7
+ ### 01. Three-Tiered Governance
8
+ **What:** Strategic/Tactical/Operational governance framework
9
+ **Trigger:** Adding new capabilities, governance complexity, multi-agent coordination
10
+ **Refuses:** Single-layer governance
11
+
12
+ ### 02. Harness Trace
13
+ **What:** Nested spans + events for complete traceability
14
+ **Trigger:** Debugging, performance evaluation, building trust
15
+ **Refuses:** Opaque decision-making
16
+
17
+ ### 03. Context Iceberg
18
+ **What:** 6x token multiplier, hierarchical context loading
19
+ **Trigger:** Token spikes, cost overruns, context limit approaching
20
+ **Refuses:** Naive token budgeting
21
+
22
+ ### 04. Agent Connect
23
+ **What:** Routing-first, not swarm-first multi-agent coordination
24
+ **Trigger:** Adding specialized agents, multi-agent workflows
25
+ **Refuses:** Agent sprawl
26
+
27
+ ### 05. Go-Live Bundles
28
+ **What:** Reusable artifacts (DojoPacket) with approval evidence
29
+ **Trigger:** Exporting sessions, sharing work, building repeatability
30
+ **Refuses:** One-off sessions that can't be reused
31
+
32
+ ### 06. Cost Guard
33
+ **What:** Budget for full iceberg (5-10x multiplier), not just API bills
34
+ **Trigger:** Planning features, estimating costs, justifying infrastructure
35
+ **Refuses:** Simple mental models (AI costs = API bills)
36
+
37
+ ### 07. Safety Switch
38
+ **What:** Fallback to conservative mode when drift detected
39
+ **Trigger:** Context approaching limit, perspective conflicts, output validation failures
40
+ **Refuses:** Silent failures
41
+
42
+ ### 08. Implicit Perspective Extraction
43
+ **What:** Extract perspectives from constraints, metaphors, scope
44
+ **Trigger:** Users provide rich context without explicit numbering
45
+ **Refuses:** Rigid perspective format
46
+
47
+ ### 09. Mode-Based Complexity Gating
48
+ **What:** 3-question test to match mode to complexity
49
+ **Trigger:** Mode selection, context loading, token estimation
50
+ **Refuses:** One-size-fits-all complexity
51
+
52
+ ### 10. Shared Infrastructure
53
+ **What:** Build once, reuse everywhere (validation, permissions, monitoring)
54
+ **Trigger:** Adding agents, building capabilities, noticing duplication
55
+ **Refuses:** Per-agent duplication
56
+
57
+ ## Meta-Seed
58
+
59
+ ### Governance Multiplies Velocity
60
+ **What:** Stronger governance accelerates delivery
61
+ **Trigger:** Governance feels like friction, trust is lacking
62
+ **Refuses:** False dichotomy between speed and governance
63
+
64
+ ## Field Seeds (From Practice)
65
+
66
+ Seeds 11-13 emerged from the Marketplace Build Sprint (2026-02-12). Unlike the core seeds (derived from Dataiku Research), these were extracted from direct experience and are marked as experimental.
67
+
68
+ ### 11. Voice Before Structure
69
+ **What:** Read the project's design language before writing any structural artifacts
70
+ **Trigger:** Ecosystem-level work, creating manifests or descriptions, projects with established design language
71
+ **Refuses:** Writing structural artifacts in a vacuum
72
+
73
+ ### 12. Pointer Directories
74
+ **What:** Empty directories are often intentional references, not missing content
75
+ **Trigger:** Encountering empty directories, coverage metrics showing gaps, audit or reorganization
76
+ **Refuses:** Automatically filling empty directories without investigating provenance
77
+
78
+ ### 13. Granular Visibility
79
+ **What:** Progress tracking serves the user's steering needs, not the agent's tidiness preference
80
+ **Trigger:** Tasks with 10+ steps, multi-phase work, the instinct to simplify progress tracking
81
+ **Refuses:** Pre-compressing progress updates for aesthetic reasons
82
+
83
+ ## Seed Relationships
84
+
85
+ ### Foundational Seeds (Start Here)
86
+ - **01. Three-Tiered Governance** - Framework for all other seeds
87
+ - **Meta. Governance Multiplies Velocity** - Philosophy behind the approach
88
+
89
+ ### Operational Seeds (Day-to-Day)
90
+ - **02. Harness Trace** - Transparency and debugging
91
+ - **03. Context Iceberg** - Token and cost management
92
+ - **07. Safety Switch** - Error handling and recovery
93
+ - **09. Mode-Based Complexity Gating** - Query routing
94
+
95
+ ### Architectural Seeds (System Design)
96
+ - **04. Agent Connect** - Multi-agent coordination
97
+ - **10. Shared Infrastructure** - Reusable services
98
+
99
+ ### Delivery Seeds (Shipping)
100
+ - **05. Go-Live Bundles** - Packaging and reuse
101
+ - **06. Cost Guard** - Budgeting and planning
102
+
103
+ ### UX Seeds (User Experience)
104
+ - **08. Implicit Perspective Extraction** - Reduce friction
105
+
106
+ ### Field Seeds (From Practice)
107
+ - **11. Voice Before Structure** - Ground in philosophy before writing
108
+ - **12. Pointer Directories** - Understand provenance before filling gaps
109
+ - **13. Granular Visibility** - Track progress for the user, not the agent
110
+
111
+ ## Usage Patterns
112
+
113
+ ### Pattern 1: Starting a New Feature
114
+ 1. Apply **Seed 01** (Three-Tiered Governance) - Define strategic/tactical/operational
115
+ 2. Apply **Seed 06** (Cost Guard) - Budget for full iceberg
116
+ 3. Apply **Seed 10** (Shared Infrastructure) - Identify reusable components
117
+
118
+ ### Pattern 2: Debugging an Issue
119
+ 1. Apply **Seed 02** (Harness Trace) - Review decision path
120
+ 2. Apply **Seed 07** (Safety Switch) - Check if fallback triggered
121
+ 3. Apply **Seed 03** (Context Iceberg) - Check token usage
122
+
123
+ ### Pattern 3: Adding a New Agent
124
+ 1. Apply **Seed 04** (Agent Connect) - Define routing logic
125
+ 2. Apply **Seed 10** (Shared Infrastructure) - Reuse existing services
126
+ 3. Apply **Seed 01** (Three-Tiered Governance) - Ensure alignment
127
+
128
+ ### Pattern 4: Optimizing Costs
129
+ 1. Apply **Seed 03** (Context Iceberg) - Implement hierarchical loading
130
+ 2. Apply **Seed 06** (Cost Guard) - Budget for 5-10x multiplier
131
+ 3. Apply **Seed 09** (Mode-Based Complexity Gating) - Match complexity to need
132
+
133
+ ### Pattern 5: Improving UX
134
+ 1. Apply **Seed 08** (Implicit Perspective Extraction) - Reduce friction
135
+ 2. Apply **Seed 09** (Mode-Based Complexity Gating) - Faster simple queries
136
+ 3. Apply **Seed 02** (Harness Trace) - Transparent decision-making
137
+
138
+ ### Pattern 6: Ecosystem-Level Work (Plugin Builds, Marketplace Setup)
139
+ 1. Apply **Seed 11** (Voice Before Structure) - Ground in philosophy before writing
140
+ 2. Apply **Seed 12** (Pointer Directories) - Map provenance before filling gaps
141
+ 3. Apply **Seed 13** (Granular Visibility) - Maintain detailed progress tracking
142
+
143
+ ### Pattern 7: Auditing or Reorganizing a Codebase
144
+ 1. Apply **Seed 12** (Pointer Directories) - Check what's intentionally empty
145
+ 2. Apply **Seed 10** (Shared Infrastructure) - Identify shared components
146
+ 3. Apply **Seed 01** (Three-Tiered Governance) - Assess governance at each layer
147
+
148
+ ## Seed Maintenance
149
+
150
+ ### When to Update a Seed
151
+ - Pattern evolves based on new learnings
152
+ - Better approach discovered
153
+ - User feedback suggests improvement
154
+
155
+ ### When to Archive a Seed
156
+ - Pattern no longer applies
157
+ - Superseded by better approach
158
+ - Context has fundamentally changed
159
+
160
+ ### Versioning Convention
161
+ - **1.0** - Initial version from Dataiku research
162
+ - **1.1** - Minor update (clarification, example added)
163
+ - **2.0** - Major update (pattern changed)
164
+
165
+ ### Update Process
166
+ 1. Identify need for update
167
+ 2. Draft new version
168
+ 3. Test with real scenarios
169
+ 4. Update seed file with "Revised:" section
170
+ 5. Update this catalog
171
+ 6. Notify users of change