@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,470 @@
1
+ ---
2
+ name: memory-garden
3
+ description: Write structured memory entries following the 4-Tier Context Iceberg for efficient context management. Use when recording daily learnings, documenting decisions, or extracting seeds. Trigger phrases: "write a memory entry", "record this learning", "save this to memory", "create a context artifact", "document this insight".
4
+ ---
5
+
6
+ > **OpenClaw Integration:** This skill is invoked by the Dojo Genesis plugin via `/dojo run memory-garden`.
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
+ # Memory Garden Writer Skill
12
+
13
+ **Version:** 1.0
14
+ **Created:** 2026-02-02
15
+ **Author:** Manus
16
+ **Purpose:** Write structured, semantically rich memory entries for efficient context management
17
+
18
+ ---
19
+
20
+ ## Overview
21
+
22
+ This skill encodes the pattern for writing memory entries that follow the **4-Tier Context Iceberg** and **Hierarchical Memory** principles from Dojo Genesis v0.0.19. Use this skill to create memory entries that are easy to search, retrieve, and compress.
23
+
24
+ **Philosophy:** Memory should be a garden, not a landfill. Cultivate what matters, compost what doesn't.
25
+
26
+ ---
27
+
28
+ ## When to Use This Skill
29
+
30
+ - Creating daily memory notes after a session
31
+ - Writing compressed summaries of conversations
32
+ - Extracting "seeds" (reusable insights) from experiences
33
+ - Documenting decisions and their rationale
34
+ - Maintaining the memory hierarchy (Tier A → Tier B → Tier C)
35
+
36
+ ---
37
+
38
+ ## Memory Hierarchy (From v0.0.19)
39
+
40
+ ### Tier A: Raw Daily Notes
41
+ - **Location:** `memory/YYYY-MM-DD.md`
42
+ - **Purpose:** Capture everything from today's session
43
+ - **Lifespan:** 1-3 days before compression
44
+ - **Format:** Timestamped entries with context
45
+
46
+ ### Tier B: Curated Wisdom
47
+ - **Location:** `MEMORY.md` (root level)
48
+ - **Purpose:** Distilled insights, decisions, patterns
49
+ - **Lifespan:** Permanent, but evolves
50
+ - **Format:** Structured sections with triggers
51
+
52
+ ### Tier C: Compressed Archive
53
+ - **Location:** `memory/archive/YYYY-MM.md`
54
+ - **Purpose:** Historical record, rarely accessed
55
+ - **Lifespan:** Permanent, read-only
56
+ - **Format:** Semantic summaries
57
+
58
+ ---
59
+
60
+ ## Daily Memory Entry Template (Tier A)
61
+
62
+ ```markdown
63
+ # Memory: YYYY-MM-DD
64
+
65
+ **Session:** [Morning Planning | Deep Work | Creative Session | Review]
66
+ **Context:** [What we were working on]
67
+ **Duration:** [Approximate time spent]
68
+
69
+ ---
70
+
71
+ ## Key Activities
72
+
73
+ ### [HH:MM] [Activity Name]
74
+
75
+ **What:** [Brief description of what happened]
76
+
77
+ **Why:** [The goal or motivation]
78
+
79
+ **Outcome:** [What was produced or decided]
80
+
81
+ **Insights:**
82
+ - [Specific insight or learning]
83
+ - [Pattern or principle discovered]
84
+
85
+ **Related:**
86
+ - Links to: [file, artifact, or previous memory]
87
+ - Builds on: [previous work or decision]
88
+
89
+ ---
90
+
91
+ ## Decisions Made
92
+
93
+ ### Decision: [Short title]
94
+
95
+ **Context:** [What led to this decision]
96
+
97
+ **Options Considered:**
98
+ 1. [Option A] - [Pros/Cons]
99
+ 2. [Option B] - [Pros/Cons]
100
+
101
+ **Chosen:** [Selected option]
102
+
103
+ **Rationale:** [Why this was the best choice]
104
+
105
+ **Trigger:** [When to revisit this decision]
106
+
107
+ ---
108
+
109
+ ## Seeds Extracted
110
+
111
+ ### Seed: [Name]
112
+
113
+ **Pattern:** [The reusable insight or principle]
114
+
115
+ **Why It Matters:** [The value or application]
116
+
117
+ **Trigger:** [When to apply this seed]
118
+ - [Context or situation]
119
+ - [Keywords or signals]
120
+
121
+ **Example:** [Concrete example from this session]
122
+
123
+ **Related Seeds:** [Other seeds this connects to]
124
+
125
+ ---
126
+
127
+ ## Open Questions
128
+
129
+ - [ ] [Question that needs resolution]
130
+ - [ ] [Uncertainty or ambiguity to clarify]
131
+
132
+ ---
133
+
134
+ ## Next Steps
135
+
136
+ - [ ] [Actionable task]
137
+ - [ ] [Follow-up or continuation]
138
+
139
+ ---
140
+
141
+ ## Metadata
142
+
143
+ **Tags:** #[category] #[topic] #[type]
144
+ **Compression Status:** Raw (not yet compressed)
145
+ **Importance:** High | Medium | Low
146
+ **Retention:** [How long to keep in Tier A before compression]
147
+ ```
148
+
149
+ ---
150
+
151
+ ## Curated Memory Template (Tier B)
152
+
153
+ ```markdown
154
+ # Memory (Curated Wisdom)
155
+
156
+ **Last Updated:** YYYY-MM-DD
157
+ **Maintenance Cycle:** Every 3-7 days
158
+ **Purpose:** Distilled insights, decisions, and patterns that matter beyond a single session
159
+
160
+ ---
161
+
162
+ ## Core Principles
163
+
164
+ ### [Principle Name]
165
+
166
+ **Statement:** [Clear, concise principle]
167
+
168
+ **Origin:** [Where this came from - date, context, or experience]
169
+
170
+ **Application:** [When and how to apply this]
171
+
172
+ **Examples:**
173
+ - [Concrete example 1]
174
+ - [Concrete example 2]
175
+
176
+ **Trigger:** [Keywords or contexts that should surface this principle]
177
+
178
+ ---
179
+
180
+ ## Key Decisions
181
+
182
+ ### [Decision Title]
183
+
184
+ **Date:** YYYY-MM-DD
185
+ **Context:** [What led to this decision]
186
+ **Decision:** [What was decided]
187
+ **Rationale:** [Why this was chosen]
188
+ **Status:** Active | Revisit on [date] | Deprecated
189
+
190
+ **Trigger:** [When to recall this decision]
191
+
192
+ ---
193
+
194
+ ## Patterns & Insights
195
+
196
+ ### [Pattern Name]
197
+
198
+ **Observation:** [What we've noticed repeatedly]
199
+
200
+ **Evidence:**
201
+ - [Instance 1: date, context]
202
+ - [Instance 2: date, context]
203
+ - [Instance 3: date, context]
204
+
205
+ **Implication:** [What this means for future work]
206
+
207
+ **Trigger:** [When to apply this pattern]
208
+
209
+ ---
210
+
211
+ ## Seeds (Reusable Knowledge)
212
+
213
+ ### Seed: [Name]
214
+
215
+ **Pattern:** [The reusable insight]
216
+ **Why It Matters:** [The value]
217
+ **Trigger:** [When to apply]
218
+ **Origin:** [Where this came from]
219
+ **Last Used:** YYYY-MM-DD
220
+ **Usage Count:** [Number of times applied]
221
+
222
+ ---
223
+
224
+ ## Compression History
225
+
226
+ | Date | Compressed From | Summary | Retained |
227
+ |------|-----------------|---------|----------|
228
+ | YYYY-MM-DD | memory/YYYY-MM-DD.md | [Brief summary] | [What was kept] |
229
+
230
+ ---
231
+
232
+ ## Metadata
233
+
234
+ **Total Seeds:** [Number]
235
+ **Total Decisions:** [Number]
236
+ **Total Patterns:** [Number]
237
+ **Last Maintenance:** YYYY-MM-DD
238
+ **Next Maintenance:** YYYY-MM-DD
239
+ ```
240
+
241
+ ---
242
+
243
+ ## Compressed Archive Template (Tier C)
244
+
245
+ ```markdown
246
+ # Memory Archive: YYYY-MM
247
+
248
+ **Compressed:** YYYY-MM-DD
249
+ **Source:** [List of daily files compressed]
250
+ **Compression Ratio:** [X]%
251
+ **Method:** Semantic compression (3-month rule)
252
+
253
+ ---
254
+
255
+ ## Summary
256
+
257
+ [2-3 paragraph summary of the month's activities, focusing on decisions, lessons, and patterns]
258
+
259
+ ---
260
+
261
+ ## Significant Events
262
+
263
+ ### [Event Name]
264
+
265
+ **Date:** YYYY-MM-DD
266
+ **What:** [Brief description]
267
+ **Impact:** [Why this mattered]
268
+ **Outcome:** [Result or consequence]
269
+
270
+ ---
271
+
272
+ ## Lessons Learned
273
+
274
+ 1. **[Lesson Title]:** [What we learned and why it matters]
275
+ 2. **[Lesson Title]:** [What we learned and why it matters]
276
+
277
+ ---
278
+
279
+ ## Decisions Made
280
+
281
+ | Date | Decision | Rationale | Status |
282
+ |------|----------|-----------|--------|
283
+ | YYYY-MM-DD | [Brief decision] | [Why] | [Active/Deprecated] |
284
+
285
+ ---
286
+
287
+ ## Seeds Extracted
288
+
289
+ | Seed Name | Pattern | Trigger |
290
+ |-----------|---------|---------|
291
+ | [Name] | [Brief pattern] | [When to apply] |
292
+
293
+ ---
294
+
295
+ ## Metadata
296
+
297
+ **Compression Method:** Semantic (3-month rule)
298
+ **Original Size:** [X] lines
299
+ **Compressed Size:** [Y] lines
300
+ **Compression Ratio:** [Z]%
301
+ **Retention:** Permanent (read-only)
302
+ ```
303
+
304
+ ---
305
+
306
+ ## The "3-Month Rule" (From Cipher)
307
+
308
+ **Rule:** If it wouldn't matter in 3 months → compress or discard.
309
+
310
+ **Keep:**
311
+ - Decisions and their rationale
312
+ - Lessons learned and patterns discovered
313
+ - Seeds (reusable insights)
314
+ - Significant events and outcomes
315
+
316
+ **Compress:**
317
+ - Routine activities ("worked on X")
318
+ - Pleasantries and confirmations
319
+ - Detailed step-by-step logs (keep summary only)
320
+
321
+ **Discard:**
322
+ - Duplicate information
323
+ - Temporary notes that were resolved
324
+ - Irrelevant tangents
325
+
326
+ ---
327
+
328
+ ## Semantic Compression Guidelines
329
+
330
+ ### What to Keep (Verbatim)
331
+
332
+ 1. **Decisions:** The choice, rationale, and context
333
+ 2. **Insights:** Novel patterns or principles
334
+ 3. **Seeds:** Reusable knowledge with triggers
335
+ 4. **Failures:** What didn't work and why
336
+ 5. **Breakthroughs:** Moments of clarity or innovation
337
+
338
+ ### What to Summarize
339
+
340
+ 1. **Activities:** "Worked on X, Y, Z" → "Implemented feature X"
341
+ 2. **Discussions:** Long back-and-forth → Key points and outcome
342
+ 3. **Research:** Detailed findings → Summary and conclusion
343
+ 4. **Iterations:** Multiple attempts → Final approach and why
344
+
345
+ ### What to Discard
346
+
347
+ 1. **Pleasantries:** "Great work!" "Thank you!" (unless significant)
348
+ 2. **Confirmations:** "Got it" "Understood" "Proceeding"
349
+ 3. **Redundant logs:** Repeated information
350
+ 4. **Resolved questions:** Questions that were answered and no longer relevant
351
+
352
+ ---
353
+
354
+ ## Memory Maintenance Cycle
355
+
356
+ **Every 3-7 Days:**
357
+
358
+ 1. **Review Tier A (Daily Notes):**
359
+ - Identify seeds to extract
360
+ - Identify decisions to document
361
+ - Identify patterns to record
362
+
363
+ 2. **Update Tier B (Curated Wisdom):**
364
+ - Add new seeds, decisions, patterns
365
+ - Update existing entries if needed
366
+ - Remove deprecated information
367
+
368
+ 3. **Compress to Tier C (Archive):**
369
+ - Apply 3-month rule
370
+ - Create semantic summary
371
+ - Move to archive folder
372
+
373
+ 4. **Prune:**
374
+ - Delete raw daily notes older than 7 days (after compression)
375
+ - Keep only what matters
376
+
377
+ ---
378
+
379
+ ## Quality Checklist
380
+
381
+ Before finalizing a memory entry, verify:
382
+
383
+ ### Daily Notes (Tier A)
384
+ - [ ] Timestamped entries with context
385
+ - [ ] Clear "What, Why, Outcome" structure
386
+ - [ ] Insights and learnings captured
387
+ - [ ] Decisions documented with rationale
388
+ - [ ] Seeds extracted with triggers
389
+ - [ ] Tags and metadata included
390
+
391
+ ### Curated Memory (Tier B)
392
+ - [ ] Principles are clear and actionable
393
+ - [ ] Decisions include context and rationale
394
+ - [ ] Patterns have evidence (3+ instances)
395
+ - [ ] Seeds have clear triggers
396
+ - [ ] Compression history is updated
397
+ - [ ] Maintenance date is set
398
+
399
+ ### Compressed Archive (Tier C)
400
+ - [ ] Summary captures key events
401
+ - [ ] Decisions and lessons are preserved
402
+ - [ ] Seeds are extracted
403
+ - [ ] Compression ratio is calculated
404
+ - [ ] Original files are deleted after compression
405
+
406
+ ---
407
+
408
+ ## Examples
409
+
410
+ **From Dojo Genesis:**
411
+ - Daily notes from v0.0.17-v0.0.23 development
412
+ - Curated wisdom from Cipher collaboration
413
+ - Compressed archives from backend migration
414
+
415
+ **Study these for:**
416
+ - How to extract seeds from experiences
417
+ - How to document decisions with context
418
+ - How to apply the 3-month rule
419
+ - How to maintain the memory hierarchy
420
+
421
+ ---
422
+
423
+ ## Common Pitfalls to Avoid
424
+
425
+ ❌ **Hoarding Everything:** Keeping every detail → ✅ Compress ruthlessly
426
+ ❌ **Vague Insights:** "This was useful" → ✅ "This pattern applies when X"
427
+ ❌ **Missing Triggers:** Seed without context → ✅ Seed with clear "when to apply"
428
+ ❌ **No Maintenance:** Let Tier A grow forever → ✅ Compress every 3-7 days
429
+ ❌ **Duplicate Information:** Same thing in multiple places → ✅ Single source of truth
430
+
431
+ ---
432
+
433
+ ## Usage Instructions
434
+
435
+ 1. **Read this skill** before writing memory entries
436
+ 2. **Choose the right template** (Tier A, B, or C)
437
+ 3. **Fill in each section** with specific, structured content
438
+ 4. **Apply the 3-month rule** when compressing
439
+ 5. **Maintain the cycle** every 3-7 days
440
+ 6. **Run the quality checklist** before finalizing
441
+
442
+ ---
443
+
444
+ ## Skill Metadata
445
+
446
+ **Token Savings:** ~5,000-8,000 tokens per session (structured format enables efficient retrieval)
447
+ **Quality Impact:** Ensures consistent memory format across sessions
448
+ **Maintenance:** Update when new memory patterns emerge
449
+
450
+ **Related Skills:**
451
+ - `specification-writer` - For documenting technical decisions
452
+ - `seed-extraction` - For extracting reusable insights
453
+ - `workspace-navigation` - For managing memory files efficiently
454
+
455
+ ---
456
+
457
+ **Last Updated:** 2026-02-02
458
+ **Maintained By:** Manus
459
+ **Status:** Active
460
+ ---
461
+
462
+ ## OpenClaw Tool Integration
463
+
464
+ When running inside the Dojo Genesis plugin:
465
+
466
+ 1. **Start** by calling `dojo_get_context` to retrieve full project state, history, and artifacts
467
+ 2. **During** the skill, follow the workflow steps documented above
468
+ 3. **Save** outputs using `dojo_save_artifact` with the `artifacts` output directory
469
+ 4. **Update** project state by calling `dojo_update_state` to record skill completion and any phase transitions
470
+
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "dojo-genesis-plugin-memory-garden",
3
+ "version": "1.0.0",
4
+ "description": "Write structured memory entries for context management",
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
+ }