@redigg/redigg 0.1.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 (322) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +145 -0
  3. package/dist/agent/ResearchAgent.d.ts +35 -0
  4. package/dist/agent/ResearchAgent.js +818 -0
  5. package/dist/agent/ResearchAgent.js.map +1 -0
  6. package/dist/agent/subagent/SubAgent.d.ts +23 -0
  7. package/dist/agent/subagent/SubAgent.js +87 -0
  8. package/dist/agent/subagent/SubAgent.js.map +1 -0
  9. package/dist/agent/subagent/SubAgentManager.d.ts +19 -0
  10. package/dist/agent/subagent/SubAgentManager.js +40 -0
  11. package/dist/agent/subagent/SubAgentManager.js.map +1 -0
  12. package/dist/bin.d.ts +2 -0
  13. package/dist/bin.js +34 -0
  14. package/dist/bin.js.map +1 -0
  15. package/dist/cli.d.ts +1 -0
  16. package/dist/cli.js +179 -0
  17. package/dist/cli.js.map +1 -0
  18. package/dist/events/EventManager.d.ts +39 -0
  19. package/dist/events/EventManager.js +20 -0
  20. package/dist/events/EventManager.js.map +1 -0
  21. package/dist/gateway/index.d.ts +9 -0
  22. package/dist/gateway/index.js +474 -0
  23. package/dist/gateway/index.js.map +1 -0
  24. package/dist/index.d.ts +3 -0
  25. package/dist/index.js +97 -0
  26. package/dist/index.js.map +1 -0
  27. package/dist/llm/LLMClient.d.ts +30 -0
  28. package/dist/llm/LLMClient.js +21 -0
  29. package/dist/llm/LLMClient.js.map +1 -0
  30. package/dist/llm/OpenAIClient.d.ts +16 -0
  31. package/dist/llm/OpenAIClient.js +58 -0
  32. package/dist/llm/OpenAIClient.js.map +1 -0
  33. package/dist/memory/MemoryManager.d.ts +41 -0
  34. package/dist/memory/MemoryManager.js +221 -0
  35. package/dist/memory/MemoryManager.js.map +1 -0
  36. package/dist/memory/evolution/MemoryEvolutionSystem.d.ts +17 -0
  37. package/dist/memory/evolution/MemoryEvolutionSystem.js +71 -0
  38. package/dist/memory/evolution/MemoryEvolutionSystem.js.map +1 -0
  39. package/dist/memory/search/BM25Search.d.ts +22 -0
  40. package/dist/memory/search/BM25Search.js +61 -0
  41. package/dist/memory/search/BM25Search.js.map +1 -0
  42. package/dist/memory/structure/PageIndex.d.ts +26 -0
  43. package/dist/memory/structure/PageIndex.js +156 -0
  44. package/dist/memory/structure/PageIndex.js.map +1 -0
  45. package/dist/quality/QualityManager.d.ts +12 -0
  46. package/dist/quality/QualityManager.js +61 -0
  47. package/dist/quality/QualityManager.js.map +1 -0
  48. package/dist/scheduling/CronManager.d.ts +21 -0
  49. package/dist/scheduling/CronManager.js +66 -0
  50. package/dist/scheduling/CronManager.js.map +1 -0
  51. package/dist/session/SessionManager.d.ts +37 -0
  52. package/dist/session/SessionManager.js +238 -0
  53. package/dist/session/SessionManager.js.map +1 -0
  54. package/dist/skills/SkillManager.d.ts +31 -0
  55. package/dist/skills/SkillManager.js +254 -0
  56. package/dist/skills/SkillManager.js.map +1 -0
  57. package/dist/skills/agent/PACK.md +13 -0
  58. package/dist/skills/agent/agent-orchestration/SKILL.md +37 -0
  59. package/dist/skills/agent/agent-orchestration/index.d.ts +9 -0
  60. package/dist/skills/agent/agent-orchestration/index.js +70 -0
  61. package/dist/skills/agent/agent-orchestration/index.js.map +1 -0
  62. package/dist/skills/agent/evolution/SKILL.md +25 -0
  63. package/dist/skills/agent/evolution/index.d.ts +9 -0
  64. package/dist/skills/agent/evolution/index.js +57 -0
  65. package/dist/skills/agent/evolution/index.js.map +1 -0
  66. package/dist/skills/agent/heartbeat/index.d.ts +8 -0
  67. package/dist/skills/agent/heartbeat/index.js +44 -0
  68. package/dist/skills/agent/heartbeat/index.js.map +1 -0
  69. package/dist/skills/agent/memory-management/SKILL.md +40 -0
  70. package/dist/skills/agent/memory-management/index.d.ts +8 -0
  71. package/dist/skills/agent/memory-management/index.js +44 -0
  72. package/dist/skills/agent/memory-management/index.js.map +1 -0
  73. package/dist/skills/agent/scheduling/SKILL.md +33 -0
  74. package/dist/skills/agent/scheduling/index.d.ts +13 -0
  75. package/dist/skills/agent/scheduling/index.js +80 -0
  76. package/dist/skills/agent/scheduling/index.js.map +1 -0
  77. package/dist/skills/agent/session-management/SKILL.md +35 -0
  78. package/dist/skills/agent/session-management/index.d.ts +11 -0
  79. package/dist/skills/agent/session-management/index.js +54 -0
  80. package/dist/skills/agent/session-management/index.js.map +1 -0
  81. package/dist/skills/agent/skill-management/SKILL.md +31 -0
  82. package/dist/skills/agent/skill-management/index.d.ts +8 -0
  83. package/dist/skills/agent/skill-management/index.js +25 -0
  84. package/dist/skills/agent/skill-management/index.js.map +1 -0
  85. package/dist/skills/evolution/SkillEvolutionSystem.d.ts +12 -0
  86. package/dist/skills/evolution/SkillEvolutionSystem.js +157 -0
  87. package/dist/skills/evolution/SkillEvolutionSystem.js.map +1 -0
  88. package/dist/skills/lib/ScholarTool.d.ts +14 -0
  89. package/dist/skills/lib/ScholarTool.js +71 -0
  90. package/dist/skills/lib/ScholarTool.js.map +1 -0
  91. package/dist/skills/research/PACK.md +7 -0
  92. package/dist/skills/research/academic-survey-self-improve/SKILL.md +17 -0
  93. package/dist/skills/research/academic-survey-self-improve/index.d.ts +10 -0
  94. package/dist/skills/research/academic-survey-self-improve/index.js +75 -0
  95. package/dist/skills/research/academic-survey-self-improve/index.js.map +1 -0
  96. package/dist/skills/research/concept-explainer/SKILL.md +3 -0
  97. package/dist/skills/research/concept-explainer/index.d.ts +8 -0
  98. package/dist/skills/research/concept-explainer/index.js +37 -0
  99. package/dist/skills/research/concept-explainer/index.js.map +1 -0
  100. package/dist/skills/research/literature-review/SKILL.md +25 -0
  101. package/dist/skills/research/literature-review/index.d.ts +9 -0
  102. package/dist/skills/research/literature-review/index.js +132 -0
  103. package/dist/skills/research/literature-review/index.js.map +1 -0
  104. package/dist/skills/research/paper-analysis/SKILL.md +3 -0
  105. package/dist/skills/research/paper-analysis/index.d.ts +9 -0
  106. package/dist/skills/research/paper-analysis/index.js +64 -0
  107. package/dist/skills/research/paper-analysis/index.js.map +1 -0
  108. package/dist/skills/research/pdf-generator/SKILL.md +16 -0
  109. package/dist/skills/research/pdf-generator/index.d.ts +10 -0
  110. package/dist/skills/research/pdf-generator/index.js +88 -0
  111. package/dist/skills/research/pdf-generator/index.js.map +1 -0
  112. package/dist/skills/system/PACK.md +8 -0
  113. package/dist/skills/system/code-analysis/SKILL.md +43 -0
  114. package/dist/skills/system/code-analysis/index.d.ts +12 -0
  115. package/dist/skills/system/code-analysis/index.js +172 -0
  116. package/dist/skills/system/code-analysis/index.js.map +1 -0
  117. package/dist/skills/system/local-file-ops/SKILL.md +55 -0
  118. package/dist/skills/system/local-file-ops/index.d.ts +9 -0
  119. package/dist/skills/system/local-file-ops/index.js +111 -0
  120. package/dist/skills/system/local-file-ops/index.js.map +1 -0
  121. package/dist/skills/types.d.ts +41 -0
  122. package/dist/skills/types.js +2 -0
  123. package/dist/skills/types.js.map +1 -0
  124. package/dist/skills/vendor/PACK.md +11 -0
  125. package/dist/skills/vendor/agent-browser/CONTRIBUTING.md +63 -0
  126. package/dist/skills/vendor/agent-browser/SKILL.md +328 -0
  127. package/dist/skills/vendor/find-skills/SKILL.md +133 -0
  128. package/dist/skills/vendor/proactive-agent/SKILL-v2.3-backup.md +554 -0
  129. package/dist/skills/vendor/proactive-agent/SKILL-v3-draft.md +499 -0
  130. package/dist/skills/vendor/proactive-agent/SKILL.md +632 -0
  131. package/dist/skills/vendor/proactive-agent/assets/AGENTS.md +155 -0
  132. package/dist/skills/vendor/proactive-agent/assets/HEARTBEAT.md +128 -0
  133. package/dist/skills/vendor/proactive-agent/assets/MEMORY.md +47 -0
  134. package/dist/skills/vendor/proactive-agent/assets/ONBOARDING.md +103 -0
  135. package/dist/skills/vendor/proactive-agent/assets/SOUL.md +40 -0
  136. package/dist/skills/vendor/proactive-agent/assets/TOOLS.md +55 -0
  137. package/dist/skills/vendor/proactive-agent/assets/USER.md +36 -0
  138. package/dist/skills/vendor/proactive-agent/references/onboarding-flow.md +158 -0
  139. package/dist/skills/vendor/proactive-agent/references/security-patterns.md +109 -0
  140. package/dist/skills/vendor/searxng/CHANGELOG.md +38 -0
  141. package/dist/skills/vendor/searxng/PUBLISH.md +147 -0
  142. package/dist/skills/vendor/searxng/PUBLISHING_CHECKLIST.md +111 -0
  143. package/dist/skills/vendor/searxng/README.md +168 -0
  144. package/dist/skills/vendor/searxng/SKILL.md +69 -0
  145. package/dist/skills/vendor/self-improving-agent/.learnings/ERRORS.md +5 -0
  146. package/dist/skills/vendor/self-improving-agent/.learnings/FEATURE_REQUESTS.md +5 -0
  147. package/dist/skills/vendor/self-improving-agent/.learnings/LEARNINGS.md +5 -0
  148. package/dist/skills/vendor/self-improving-agent/SKILL.md +647 -0
  149. package/dist/skills/vendor/self-improving-agent/assets/LEARNINGS.md +45 -0
  150. package/dist/skills/vendor/self-improving-agent/assets/SKILL-TEMPLATE.md +177 -0
  151. package/dist/skills/vendor/self-improving-agent/hooks/openclaw/HOOK.md +23 -0
  152. package/dist/skills/vendor/self-improving-agent/hooks/openclaw/handler.d.ts +9 -0
  153. package/dist/skills/vendor/self-improving-agent/hooks/openclaw/handler.js +54 -0
  154. package/dist/skills/vendor/self-improving-agent/hooks/openclaw/handler.js.map +1 -0
  155. package/dist/skills/vendor/self-improving-agent/references/examples.md +374 -0
  156. package/dist/skills/vendor/self-improving-agent/references/hooks-setup.md +223 -0
  157. package/dist/skills/vendor/self-improving-agent/references/openclaw-integration.md +248 -0
  158. package/dist/skills/vendor/skill-vetter/SKILL.md +138 -0
  159. package/dist/src/agent/ResearchAgent.d.ts +35 -0
  160. package/dist/src/agent/ResearchAgent.js +818 -0
  161. package/dist/src/agent/ResearchAgent.js.map +1 -0
  162. package/dist/src/agent/subagent/SubAgent.d.ts +23 -0
  163. package/dist/src/agent/subagent/SubAgent.js +87 -0
  164. package/dist/src/agent/subagent/SubAgent.js.map +1 -0
  165. package/dist/src/agent/subagent/SubAgentManager.d.ts +19 -0
  166. package/dist/src/agent/subagent/SubAgentManager.js +40 -0
  167. package/dist/src/agent/subagent/SubAgentManager.js.map +1 -0
  168. package/dist/src/bin.d.ts +2 -0
  169. package/dist/src/bin.js +34 -0
  170. package/dist/src/bin.js.map +1 -0
  171. package/dist/src/cli.d.ts +1 -0
  172. package/dist/src/cli.js +179 -0
  173. package/dist/src/cli.js.map +1 -0
  174. package/dist/src/events/EventManager.d.ts +39 -0
  175. package/dist/src/events/EventManager.js +20 -0
  176. package/dist/src/events/EventManager.js.map +1 -0
  177. package/dist/src/gateway/index.d.ts +9 -0
  178. package/dist/src/gateway/index.js +474 -0
  179. package/dist/src/gateway/index.js.map +1 -0
  180. package/dist/src/index.d.ts +3 -0
  181. package/dist/src/index.js +105 -0
  182. package/dist/src/index.js.map +1 -0
  183. package/dist/src/llm/LLMClient.d.ts +30 -0
  184. package/dist/src/llm/LLMClient.js +21 -0
  185. package/dist/src/llm/LLMClient.js.map +1 -0
  186. package/dist/src/llm/OpenAIClient.d.ts +16 -0
  187. package/dist/src/llm/OpenAIClient.js +58 -0
  188. package/dist/src/llm/OpenAIClient.js.map +1 -0
  189. package/dist/src/memory/MemoryManager.d.ts +41 -0
  190. package/dist/src/memory/MemoryManager.js +221 -0
  191. package/dist/src/memory/MemoryManager.js.map +1 -0
  192. package/dist/src/memory/evolution/MemoryEvolutionSystem.d.ts +17 -0
  193. package/dist/src/memory/evolution/MemoryEvolutionSystem.js +71 -0
  194. package/dist/src/memory/evolution/MemoryEvolutionSystem.js.map +1 -0
  195. package/dist/src/memory/search/BM25Search.d.ts +22 -0
  196. package/dist/src/memory/search/BM25Search.js +61 -0
  197. package/dist/src/memory/search/BM25Search.js.map +1 -0
  198. package/dist/src/memory/structure/PageIndex.d.ts +26 -0
  199. package/dist/src/memory/structure/PageIndex.js +156 -0
  200. package/dist/src/memory/structure/PageIndex.js.map +1 -0
  201. package/dist/src/quality/QualityManager.d.ts +12 -0
  202. package/dist/src/quality/QualityManager.js +61 -0
  203. package/dist/src/quality/QualityManager.js.map +1 -0
  204. package/dist/src/scheduling/CronManager.d.ts +21 -0
  205. package/dist/src/scheduling/CronManager.js +66 -0
  206. package/dist/src/scheduling/CronManager.js.map +1 -0
  207. package/dist/src/session/SessionManager.d.ts +37 -0
  208. package/dist/src/session/SessionManager.js +238 -0
  209. package/dist/src/session/SessionManager.js.map +1 -0
  210. package/dist/src/skills/SkillManager.d.ts +33 -0
  211. package/dist/src/skills/SkillManager.js +260 -0
  212. package/dist/src/skills/SkillManager.js.map +1 -0
  213. package/dist/src/skills/evolution/SkillEvolutionSystem.d.ts +12 -0
  214. package/dist/src/skills/evolution/SkillEvolutionSystem.js +157 -0
  215. package/dist/src/skills/evolution/SkillEvolutionSystem.js.map +1 -0
  216. package/dist/src/skills/lib/ScholarTool.d.ts +14 -0
  217. package/dist/src/skills/lib/ScholarTool.js +71 -0
  218. package/dist/src/skills/lib/ScholarTool.js.map +1 -0
  219. package/dist/src/skills/types.d.ts +41 -0
  220. package/dist/src/skills/types.js +2 -0
  221. package/dist/src/skills/types.js.map +1 -0
  222. package/dist/src/storage/sqlite.d.ts +8 -0
  223. package/dist/src/storage/sqlite.js +73 -0
  224. package/dist/src/storage/sqlite.js.map +1 -0
  225. package/dist/src/utils/logger.d.ts +12 -0
  226. package/dist/src/utils/logger.js +53 -0
  227. package/dist/src/utils/logger.js.map +1 -0
  228. package/dist/storage/sqlite.d.ts +8 -0
  229. package/dist/storage/sqlite.js +73 -0
  230. package/dist/storage/sqlite.js.map +1 -0
  231. package/dist/utils/logger.d.ts +12 -0
  232. package/dist/utils/logger.js +53 -0
  233. package/dist/utils/logger.js.map +1 -0
  234. package/package.json +71 -0
  235. package/skills/agent/PACK.md +13 -0
  236. package/skills/agent/agent-orchestration/SKILL.md +37 -0
  237. package/skills/agent/agent-orchestration/index.ts +84 -0
  238. package/skills/agent/evolution/SKILL.md +25 -0
  239. package/skills/agent/evolution/index.ts +67 -0
  240. package/skills/agent/heartbeat/index.ts +48 -0
  241. package/skills/agent/memory-management/SKILL.md +40 -0
  242. package/skills/agent/memory-management/index.ts +48 -0
  243. package/skills/agent/scheduling/SKILL.md +33 -0
  244. package/skills/agent/scheduling/index.ts +97 -0
  245. package/skills/agent/session-management/SKILL.md +35 -0
  246. package/skills/agent/session-management/index.ts +65 -0
  247. package/skills/agent/skill-management/SKILL.md +31 -0
  248. package/skills/agent/skill-management/index.ts +32 -0
  249. package/skills/research/PACK.md +7 -0
  250. package/skills/research/academic-survey-self-improve/SKILL.md +17 -0
  251. package/skills/research/academic-survey-self-improve/index.ts +87 -0
  252. package/skills/research/concept-explainer/SKILL.md +3 -0
  253. package/skills/research/concept-explainer/index.ts +42 -0
  254. package/skills/research/literature-review/SKILL.md +25 -0
  255. package/skills/research/literature-review/index.ts +168 -0
  256. package/skills/research/paper-analysis/SKILL.md +3 -0
  257. package/skills/research/paper-analysis/index.ts +73 -0
  258. package/skills/research/pdf-generator/SKILL.md +16 -0
  259. package/skills/research/pdf-generator/index.d.ts +10 -0
  260. package/skills/research/pdf-generator/index.js +114 -0
  261. package/skills/research/pdf-generator/index.js.map +1 -0
  262. package/skills/research/pdf-generator/index.ts +97 -0
  263. package/skills/system/PACK.md +8 -0
  264. package/skills/system/code-analysis/SKILL.md +43 -0
  265. package/skills/system/code-analysis/index.ts +180 -0
  266. package/skills/system/local-file-ops/SKILL.md +55 -0
  267. package/skills/system/local-file-ops/index.ts +123 -0
  268. package/skills/vendor/PACK.md +11 -0
  269. package/skills/vendor/agent-browser/.clawhub/origin.json +7 -0
  270. package/skills/vendor/agent-browser/CONTRIBUTING.md +63 -0
  271. package/skills/vendor/agent-browser/SKILL.md +328 -0
  272. package/skills/vendor/agent-browser/_meta.json +6 -0
  273. package/skills/vendor/find-skills/.clawhub/origin.json +7 -0
  274. package/skills/vendor/find-skills/SKILL.md +133 -0
  275. package/skills/vendor/find-skills/_meta.json +6 -0
  276. package/skills/vendor/proactive-agent/.clawhub/origin.json +7 -0
  277. package/skills/vendor/proactive-agent/SKILL-v2.3-backup.md +554 -0
  278. package/skills/vendor/proactive-agent/SKILL-v3-draft.md +499 -0
  279. package/skills/vendor/proactive-agent/SKILL.md +632 -0
  280. package/skills/vendor/proactive-agent/_meta.json +6 -0
  281. package/skills/vendor/proactive-agent/assets/AGENTS.md +155 -0
  282. package/skills/vendor/proactive-agent/assets/HEARTBEAT.md +128 -0
  283. package/skills/vendor/proactive-agent/assets/MEMORY.md +47 -0
  284. package/skills/vendor/proactive-agent/assets/ONBOARDING.md +103 -0
  285. package/skills/vendor/proactive-agent/assets/SOUL.md +40 -0
  286. package/skills/vendor/proactive-agent/assets/TOOLS.md +55 -0
  287. package/skills/vendor/proactive-agent/assets/USER.md +36 -0
  288. package/skills/vendor/proactive-agent/references/onboarding-flow.md +158 -0
  289. package/skills/vendor/proactive-agent/references/security-patterns.md +109 -0
  290. package/skills/vendor/proactive-agent/scripts/security-audit.sh +149 -0
  291. package/skills/vendor/searxng/.clawdhub/origin.json +7 -0
  292. package/skills/vendor/searxng/CHANGELOG.md +38 -0
  293. package/skills/vendor/searxng/PUBLISH.md +147 -0
  294. package/skills/vendor/searxng/PUBLISHING_CHECKLIST.md +111 -0
  295. package/skills/vendor/searxng/README.md +168 -0
  296. package/skills/vendor/searxng/SKILL.md +69 -0
  297. package/skills/vendor/searxng/_meta.json +6 -0
  298. package/skills/vendor/searxng/config/settings.yml +36 -0
  299. package/skills/vendor/searxng/run-searxng.sh +48 -0
  300. package/skills/vendor/searxng/scripts/searxng.py +211 -0
  301. package/skills/vendor/self-improving-agent/.clawhub/origin.json +7 -0
  302. package/skills/vendor/self-improving-agent/.learnings/ERRORS.md +5 -0
  303. package/skills/vendor/self-improving-agent/.learnings/FEATURE_REQUESTS.md +5 -0
  304. package/skills/vendor/self-improving-agent/.learnings/LEARNINGS.md +5 -0
  305. package/skills/vendor/self-improving-agent/SKILL.md +647 -0
  306. package/skills/vendor/self-improving-agent/_meta.json +6 -0
  307. package/skills/vendor/self-improving-agent/assets/LEARNINGS.md +45 -0
  308. package/skills/vendor/self-improving-agent/assets/SKILL-TEMPLATE.md +177 -0
  309. package/skills/vendor/self-improving-agent/hooks/openclaw/HOOK.md +23 -0
  310. package/skills/vendor/self-improving-agent/hooks/openclaw/handler.js +56 -0
  311. package/skills/vendor/self-improving-agent/hooks/openclaw/handler.ts +62 -0
  312. package/skills/vendor/self-improving-agent/references/examples.md +374 -0
  313. package/skills/vendor/self-improving-agent/references/hooks-setup.md +223 -0
  314. package/skills/vendor/self-improving-agent/references/openclaw-integration.md +248 -0
  315. package/skills/vendor/self-improving-agent/scripts/activator.sh +20 -0
  316. package/skills/vendor/self-improving-agent/scripts/error-detector.sh +55 -0
  317. package/skills/vendor/self-improving-agent/scripts/extract-skill.sh +221 -0
  318. package/skills/vendor/skill-vetter/.clawhub/origin.json +7 -0
  319. package/skills/vendor/skill-vetter/SKILL.md +138 -0
  320. package/skills/vendor/skill-vetter/_meta.json +6 -0
  321. package/web/README.md +73 -0
  322. package/web/package.json +65 -0
@@ -0,0 +1,647 @@
1
+ ---
2
+ name: self-improvement
3
+ description: "Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude ('No, that's wrong...', 'Actually...'), (3) User requests a capability that doesn't exist, (4) An external API or tool fails, (5) Claude realizes its knowledge is outdated or incorrect, (6) A better approach is discovered for a recurring task. Also review learnings before major tasks."
4
+ metadata:
5
+ ---
6
+
7
+ # Self-Improvement Skill
8
+
9
+ Log learnings and errors to markdown files for continuous improvement. Coding agents can later process these into fixes, and important learnings get promoted to project memory.
10
+
11
+ ## Quick Reference
12
+
13
+ | Situation | Action |
14
+ |-----------|--------|
15
+ | Command/operation fails | Log to `.learnings/ERRORS.md` |
16
+ | User corrects you | Log to `.learnings/LEARNINGS.md` with category `correction` |
17
+ | User wants missing feature | Log to `.learnings/FEATURE_REQUESTS.md` |
18
+ | API/external tool fails | Log to `.learnings/ERRORS.md` with integration details |
19
+ | Knowledge was outdated | Log to `.learnings/LEARNINGS.md` with category `knowledge_gap` |
20
+ | Found better approach | Log to `.learnings/LEARNINGS.md` with category `best_practice` |
21
+ | Simplify/Harden recurring patterns | Log/update `.learnings/LEARNINGS.md` with `Source: simplify-and-harden` and a stable `Pattern-Key` |
22
+ | Similar to existing entry | Link with `**See Also**`, consider priority bump |
23
+ | Broadly applicable learning | Promote to `CLAUDE.md`, `AGENTS.md`, and/or `.github/copilot-instructions.md` |
24
+ | Workflow improvements | Promote to `AGENTS.md` (OpenClaw workspace) |
25
+ | Tool gotchas | Promote to `TOOLS.md` (OpenClaw workspace) |
26
+ | Behavioral patterns | Promote to `SOUL.md` (OpenClaw workspace) |
27
+
28
+ ## OpenClaw Setup (Recommended)
29
+
30
+ OpenClaw is the primary platform for this skill. It uses workspace-based prompt injection with automatic skill loading.
31
+
32
+ ### Installation
33
+
34
+ **Via ClawdHub (recommended):**
35
+ ```bash
36
+ clawdhub install self-improving-agent
37
+ ```
38
+
39
+ **Manual:**
40
+ ```bash
41
+ git clone https://github.com/peterskoett/self-improving-agent.git ~/.openclaw/skills/self-improving-agent
42
+ ```
43
+
44
+ Remade for openclaw from original repo : https://github.com/pskoett/pskoett-ai-skills - https://github.com/pskoett/pskoett-ai-skills/tree/main/skills/self-improvement
45
+
46
+ ### Workspace Structure
47
+
48
+ OpenClaw injects these files into every session:
49
+
50
+ ```
51
+ ~/.openclaw/workspace/
52
+ ├── AGENTS.md # Multi-agent workflows, delegation patterns
53
+ ├── SOUL.md # Behavioral guidelines, personality, principles
54
+ ├── TOOLS.md # Tool capabilities, integration gotchas
55
+ ├── MEMORY.md # Long-term memory (main session only)
56
+ ├── memory/ # Daily memory files
57
+ │ └── YYYY-MM-DD.md
58
+ └── .learnings/ # This skill's log files
59
+ ├── LEARNINGS.md
60
+ ├── ERRORS.md
61
+ └── FEATURE_REQUESTS.md
62
+ ```
63
+
64
+ ### Create Learning Files
65
+
66
+ ```bash
67
+ mkdir -p ~/.openclaw/workspace/.learnings
68
+ ```
69
+
70
+ Then create the log files (or copy from `assets/`):
71
+ - `LEARNINGS.md` — corrections, knowledge gaps, best practices
72
+ - `ERRORS.md` — command failures, exceptions
73
+ - `FEATURE_REQUESTS.md` — user-requested capabilities
74
+
75
+ ### Promotion Targets
76
+
77
+ When learnings prove broadly applicable, promote them to workspace files:
78
+
79
+ | Learning Type | Promote To | Example |
80
+ |---------------|------------|---------|
81
+ | Behavioral patterns | `SOUL.md` | "Be concise, avoid disclaimers" |
82
+ | Workflow improvements | `AGENTS.md` | "Spawn sub-agents for long tasks" |
83
+ | Tool gotchas | `TOOLS.md` | "Git push needs auth configured first" |
84
+
85
+ ### Inter-Session Communication
86
+
87
+ OpenClaw provides tools to share learnings across sessions:
88
+
89
+ - **sessions_list** — View active/recent sessions
90
+ - **sessions_history** — Read another session's transcript
91
+ - **sessions_send** — Send a learning to another session
92
+ - **sessions_spawn** — Spawn a sub-agent for background work
93
+
94
+ ### Optional: Enable Hook
95
+
96
+ For automatic reminders at session start:
97
+
98
+ ```bash
99
+ # Copy hook to OpenClaw hooks directory
100
+ cp -r hooks/openclaw ~/.openclaw/hooks/self-improvement
101
+
102
+ # Enable it
103
+ openclaw hooks enable self-improvement
104
+ ```
105
+
106
+ See `references/openclaw-integration.md` for complete details.
107
+
108
+ ---
109
+
110
+ ## Generic Setup (Other Agents)
111
+
112
+ For Claude Code, Codex, Copilot, or other agents, create `.learnings/` in your project:
113
+
114
+ ```bash
115
+ mkdir -p .learnings
116
+ ```
117
+
118
+ Copy templates from `assets/` or create files with headers.
119
+
120
+ ### Add reference to agent files AGENTS.md, CLAUDE.md, or .github/copilot-instructions.md to remind yourself to log learnings. (this is an alternative to hook-based reminders)
121
+
122
+ #### Self-Improvement Workflow
123
+
124
+ When errors or corrections occur:
125
+ 1. Log to `.learnings/ERRORS.md`, `LEARNINGS.md`, or `FEATURE_REQUESTS.md`
126
+ 2. Review and promote broadly applicable learnings to:
127
+ - `CLAUDE.md` - project facts and conventions
128
+ - `AGENTS.md` - workflows and automation
129
+ - `.github/copilot-instructions.md` - Copilot context
130
+
131
+ ## Logging Format
132
+
133
+ ### Learning Entry
134
+
135
+ Append to `.learnings/LEARNINGS.md`:
136
+
137
+ ```markdown
138
+ ## [LRN-YYYYMMDD-XXX] category
139
+
140
+ **Logged**: ISO-8601 timestamp
141
+ **Priority**: low | medium | high | critical
142
+ **Status**: pending
143
+ **Area**: frontend | backend | infra | tests | docs | config
144
+
145
+ ### Summary
146
+ One-line description of what was learned
147
+
148
+ ### Details
149
+ Full context: what happened, what was wrong, what's correct
150
+
151
+ ### Suggested Action
152
+ Specific fix or improvement to make
153
+
154
+ ### Metadata
155
+ - Source: conversation | error | user_feedback
156
+ - Related Files: path/to/file.ext
157
+ - Tags: tag1, tag2
158
+ - See Also: LRN-20250110-001 (if related to existing entry)
159
+ - Pattern-Key: simplify.dead_code | harden.input_validation (optional, for recurring-pattern tracking)
160
+ - Recurrence-Count: 1 (optional)
161
+ - First-Seen: 2025-01-15 (optional)
162
+ - Last-Seen: 2025-01-15 (optional)
163
+
164
+ ---
165
+ ```
166
+
167
+ ### Error Entry
168
+
169
+ Append to `.learnings/ERRORS.md`:
170
+
171
+ ```markdown
172
+ ## [ERR-YYYYMMDD-XXX] skill_or_command_name
173
+
174
+ **Logged**: ISO-8601 timestamp
175
+ **Priority**: high
176
+ **Status**: pending
177
+ **Area**: frontend | backend | infra | tests | docs | config
178
+
179
+ ### Summary
180
+ Brief description of what failed
181
+
182
+ ### Error
183
+ ```
184
+ Actual error message or output
185
+ ```
186
+
187
+ ### Context
188
+ - Command/operation attempted
189
+ - Input or parameters used
190
+ - Environment details if relevant
191
+
192
+ ### Suggested Fix
193
+ If identifiable, what might resolve this
194
+
195
+ ### Metadata
196
+ - Reproducible: yes | no | unknown
197
+ - Related Files: path/to/file.ext
198
+ - See Also: ERR-20250110-001 (if recurring)
199
+
200
+ ---
201
+ ```
202
+
203
+ ### Feature Request Entry
204
+
205
+ Append to `.learnings/FEATURE_REQUESTS.md`:
206
+
207
+ ```markdown
208
+ ## [FEAT-YYYYMMDD-XXX] capability_name
209
+
210
+ **Logged**: ISO-8601 timestamp
211
+ **Priority**: medium
212
+ **Status**: pending
213
+ **Area**: frontend | backend | infra | tests | docs | config
214
+
215
+ ### Requested Capability
216
+ What the user wanted to do
217
+
218
+ ### User Context
219
+ Why they needed it, what problem they're solving
220
+
221
+ ### Complexity Estimate
222
+ simple | medium | complex
223
+
224
+ ### Suggested Implementation
225
+ How this could be built, what it might extend
226
+
227
+ ### Metadata
228
+ - Frequency: first_time | recurring
229
+ - Related Features: existing_feature_name
230
+
231
+ ---
232
+ ```
233
+
234
+ ## ID Generation
235
+
236
+ Format: `TYPE-YYYYMMDD-XXX`
237
+ - TYPE: `LRN` (learning), `ERR` (error), `FEAT` (feature)
238
+ - YYYYMMDD: Current date
239
+ - XXX: Sequential number or random 3 chars (e.g., `001`, `A7B`)
240
+
241
+ Examples: `LRN-20250115-001`, `ERR-20250115-A3F`, `FEAT-20250115-002`
242
+
243
+ ## Resolving Entries
244
+
245
+ When an issue is fixed, update the entry:
246
+
247
+ 1. Change `**Status**: pending` → `**Status**: resolved`
248
+ 2. Add resolution block after Metadata:
249
+
250
+ ```markdown
251
+ ### Resolution
252
+ - **Resolved**: 2025-01-16T09:00:00Z
253
+ - **Commit/PR**: abc123 or #42
254
+ - **Notes**: Brief description of what was done
255
+ ```
256
+
257
+ Other status values:
258
+ - `in_progress` - Actively being worked on
259
+ - `wont_fix` - Decided not to address (add reason in Resolution notes)
260
+ - `promoted` - Elevated to CLAUDE.md, AGENTS.md, or .github/copilot-instructions.md
261
+
262
+ ## Promoting to Project Memory
263
+
264
+ When a learning is broadly applicable (not a one-off fix), promote it to permanent project memory.
265
+
266
+ ### When to Promote
267
+
268
+ - Learning applies across multiple files/features
269
+ - Knowledge any contributor (human or AI) should know
270
+ - Prevents recurring mistakes
271
+ - Documents project-specific conventions
272
+
273
+ ### Promotion Targets
274
+
275
+ | Target | What Belongs There |
276
+ |--------|-------------------|
277
+ | `CLAUDE.md` | Project facts, conventions, gotchas for all Claude interactions |
278
+ | `AGENTS.md` | Agent-specific workflows, tool usage patterns, automation rules |
279
+ | `.github/copilot-instructions.md` | Project context and conventions for GitHub Copilot |
280
+ | `SOUL.md` | Behavioral guidelines, communication style, principles (OpenClaw workspace) |
281
+ | `TOOLS.md` | Tool capabilities, usage patterns, integration gotchas (OpenClaw workspace) |
282
+
283
+ ### How to Promote
284
+
285
+ 1. **Distill** the learning into a concise rule or fact
286
+ 2. **Add** to appropriate section in target file (create file if needed)
287
+ 3. **Update** original entry:
288
+ - Change `**Status**: pending` → `**Status**: promoted`
289
+ - Add `**Promoted**: CLAUDE.md`, `AGENTS.md`, or `.github/copilot-instructions.md`
290
+
291
+ ### Promotion Examples
292
+
293
+ **Learning** (verbose):
294
+ > Project uses pnpm workspaces. Attempted `npm install` but failed.
295
+ > Lock file is `pnpm-lock.yaml`. Must use `pnpm install`.
296
+
297
+ **In CLAUDE.md** (concise):
298
+ ```markdown
299
+ ## Build & Dependencies
300
+ - Package manager: pnpm (not npm) - use `pnpm install`
301
+ ```
302
+
303
+ **Learning** (verbose):
304
+ > When modifying API endpoints, must regenerate TypeScript client.
305
+ > Forgetting this causes type mismatches at runtime.
306
+
307
+ **In AGENTS.md** (actionable):
308
+ ```markdown
309
+ ## After API Changes
310
+ 1. Regenerate client: `pnpm run generate:api`
311
+ 2. Check for type errors: `pnpm tsc --noEmit`
312
+ ```
313
+
314
+ ## Recurring Pattern Detection
315
+
316
+ If logging something similar to an existing entry:
317
+
318
+ 1. **Search first**: `grep -r "keyword" .learnings/`
319
+ 2. **Link entries**: Add `**See Also**: ERR-20250110-001` in Metadata
320
+ 3. **Bump priority** if issue keeps recurring
321
+ 4. **Consider systemic fix**: Recurring issues often indicate:
322
+ - Missing documentation (→ promote to CLAUDE.md or .github/copilot-instructions.md)
323
+ - Missing automation (→ add to AGENTS.md)
324
+ - Architectural problem (→ create tech debt ticket)
325
+
326
+ ## Simplify & Harden Feed
327
+
328
+ Use this workflow to ingest recurring patterns from the `simplify-and-harden`
329
+ skill and turn them into durable prompt guidance.
330
+
331
+ ### Ingestion Workflow
332
+
333
+ 1. Read `simplify_and_harden.learning_loop.candidates` from the task summary.
334
+ 2. For each candidate, use `pattern_key` as the stable dedupe key.
335
+ 3. Search `.learnings/LEARNINGS.md` for an existing entry with that key:
336
+ - `grep -n "Pattern-Key: <pattern_key>" .learnings/LEARNINGS.md`
337
+ 4. If found:
338
+ - Increment `Recurrence-Count`
339
+ - Update `Last-Seen`
340
+ - Add `See Also` links to related entries/tasks
341
+ 5. If not found:
342
+ - Create a new `LRN-...` entry
343
+ - Set `Source: simplify-and-harden`
344
+ - Set `Pattern-Key`, `Recurrence-Count: 1`, and `First-Seen`/`Last-Seen`
345
+
346
+ ### Promotion Rule (System Prompt Feedback)
347
+
348
+ Promote recurring patterns into agent context/system prompt files when all are true:
349
+
350
+ - `Recurrence-Count >= 3`
351
+ - Seen across at least 2 distinct tasks
352
+ - Occurred within a 30-day window
353
+
354
+ Promotion targets:
355
+ - `CLAUDE.md`
356
+ - `AGENTS.md`
357
+ - `.github/copilot-instructions.md`
358
+ - `SOUL.md` / `TOOLS.md` for OpenClaw workspace-level guidance when applicable
359
+
360
+ Write promoted rules as short prevention rules (what to do before/while coding),
361
+ not long incident write-ups.
362
+
363
+ ## Periodic Review
364
+
365
+ Review `.learnings/` at natural breakpoints:
366
+
367
+ ### When to Review
368
+ - Before starting a new major task
369
+ - After completing a feature
370
+ - When working in an area with past learnings
371
+ - Weekly during active development
372
+
373
+ ### Quick Status Check
374
+ ```bash
375
+ # Count pending items
376
+ grep -h "Status\*\*: pending" .learnings/*.md | wc -l
377
+
378
+ # List pending high-priority items
379
+ grep -B5 "Priority\*\*: high" .learnings/*.md | grep "^## \["
380
+
381
+ # Find learnings for a specific area
382
+ grep -l "Area\*\*: backend" .learnings/*.md
383
+ ```
384
+
385
+ ### Review Actions
386
+ - Resolve fixed items
387
+ - Promote applicable learnings
388
+ - Link related entries
389
+ - Escalate recurring issues
390
+
391
+ ## Detection Triggers
392
+
393
+ Automatically log when you notice:
394
+
395
+ **Corrections** (→ learning with `correction` category):
396
+ - "No, that's not right..."
397
+ - "Actually, it should be..."
398
+ - "You're wrong about..."
399
+ - "That's outdated..."
400
+
401
+ **Feature Requests** (→ feature request):
402
+ - "Can you also..."
403
+ - "I wish you could..."
404
+ - "Is there a way to..."
405
+ - "Why can't you..."
406
+
407
+ **Knowledge Gaps** (→ learning with `knowledge_gap` category):
408
+ - User provides information you didn't know
409
+ - Documentation you referenced is outdated
410
+ - API behavior differs from your understanding
411
+
412
+ **Errors** (→ error entry):
413
+ - Command returns non-zero exit code
414
+ - Exception or stack trace
415
+ - Unexpected output or behavior
416
+ - Timeout or connection failure
417
+
418
+ ## Priority Guidelines
419
+
420
+ | Priority | When to Use |
421
+ |----------|-------------|
422
+ | `critical` | Blocks core functionality, data loss risk, security issue |
423
+ | `high` | Significant impact, affects common workflows, recurring issue |
424
+ | `medium` | Moderate impact, workaround exists |
425
+ | `low` | Minor inconvenience, edge case, nice-to-have |
426
+
427
+ ## Area Tags
428
+
429
+ Use to filter learnings by codebase region:
430
+
431
+ | Area | Scope |
432
+ |------|-------|
433
+ | `frontend` | UI, components, client-side code |
434
+ | `backend` | API, services, server-side code |
435
+ | `infra` | CI/CD, deployment, Docker, cloud |
436
+ | `tests` | Test files, testing utilities, coverage |
437
+ | `docs` | Documentation, comments, READMEs |
438
+ | `config` | Configuration files, environment, settings |
439
+
440
+ ## Best Practices
441
+
442
+ 1. **Log immediately** - context is freshest right after the issue
443
+ 2. **Be specific** - future agents need to understand quickly
444
+ 3. **Include reproduction steps** - especially for errors
445
+ 4. **Link related files** - makes fixes easier
446
+ 5. **Suggest concrete fixes** - not just "investigate"
447
+ 6. **Use consistent categories** - enables filtering
448
+ 7. **Promote aggressively** - if in doubt, add to CLAUDE.md or .github/copilot-instructions.md
449
+ 8. **Review regularly** - stale learnings lose value
450
+
451
+ ## Gitignore Options
452
+
453
+ **Keep learnings local** (per-developer):
454
+ ```gitignore
455
+ .learnings/
456
+ ```
457
+
458
+ **Track learnings in repo** (team-wide):
459
+ Don't add to .gitignore - learnings become shared knowledge.
460
+
461
+ **Hybrid** (track templates, ignore entries):
462
+ ```gitignore
463
+ .learnings/*.md
464
+ !.learnings/.gitkeep
465
+ ```
466
+
467
+ ## Hook Integration
468
+
469
+ Enable automatic reminders through agent hooks. This is **opt-in** - you must explicitly configure hooks.
470
+
471
+ ### Quick Setup (Claude Code / Codex)
472
+
473
+ Create `.claude/settings.json` in your project:
474
+
475
+ ```json
476
+ {
477
+ "hooks": {
478
+ "UserPromptSubmit": [{
479
+ "matcher": "",
480
+ "hooks": [{
481
+ "type": "command",
482
+ "command": "./skills/self-improvement/scripts/activator.sh"
483
+ }]
484
+ }]
485
+ }
486
+ }
487
+ ```
488
+
489
+ This injects a learning evaluation reminder after each prompt (~50-100 tokens overhead).
490
+
491
+ ### Full Setup (With Error Detection)
492
+
493
+ ```json
494
+ {
495
+ "hooks": {
496
+ "UserPromptSubmit": [{
497
+ "matcher": "",
498
+ "hooks": [{
499
+ "type": "command",
500
+ "command": "./skills/self-improvement/scripts/activator.sh"
501
+ }]
502
+ }],
503
+ "PostToolUse": [{
504
+ "matcher": "Bash",
505
+ "hooks": [{
506
+ "type": "command",
507
+ "command": "./skills/self-improvement/scripts/error-detector.sh"
508
+ }]
509
+ }]
510
+ }
511
+ }
512
+ ```
513
+
514
+ ### Available Hook Scripts
515
+
516
+ | Script | Hook Type | Purpose |
517
+ |--------|-----------|---------|
518
+ | `scripts/activator.sh` | UserPromptSubmit | Reminds to evaluate learnings after tasks |
519
+ | `scripts/error-detector.sh` | PostToolUse (Bash) | Triggers on command errors |
520
+
521
+ See `references/hooks-setup.md` for detailed configuration and troubleshooting.
522
+
523
+ ## Automatic Skill Extraction
524
+
525
+ When a learning is valuable enough to become a reusable skill, extract it using the provided helper.
526
+
527
+ ### Skill Extraction Criteria
528
+
529
+ A learning qualifies for skill extraction when ANY of these apply:
530
+
531
+ | Criterion | Description |
532
+ |-----------|-------------|
533
+ | **Recurring** | Has `See Also` links to 2+ similar issues |
534
+ | **Verified** | Status is `resolved` with working fix |
535
+ | **Non-obvious** | Required actual debugging/investigation to discover |
536
+ | **Broadly applicable** | Not project-specific; useful across codebases |
537
+ | **User-flagged** | User says "save this as a skill" or similar |
538
+
539
+ ### Extraction Workflow
540
+
541
+ 1. **Identify candidate**: Learning meets extraction criteria
542
+ 2. **Run helper** (or create manually):
543
+ ```bash
544
+ ./skills/self-improvement/scripts/extract-skill.sh skill-name --dry-run
545
+ ./skills/self-improvement/scripts/extract-skill.sh skill-name
546
+ ```
547
+ 3. **Customize SKILL.md**: Fill in template with learning content
548
+ 4. **Update learning**: Set status to `promoted_to_skill`, add `Skill-Path`
549
+ 5. **Verify**: Read skill in fresh session to ensure it's self-contained
550
+
551
+ ### Manual Extraction
552
+
553
+ If you prefer manual creation:
554
+
555
+ 1. Create `skills/<skill-name>/SKILL.md`
556
+ 2. Use template from `assets/SKILL-TEMPLATE.md`
557
+ 3. Follow [Agent Skills spec](https://agentskills.io/specification):
558
+ - YAML frontmatter with `name` and `description`
559
+ - Name must match folder name
560
+ - No README.md inside skill folder
561
+
562
+ ### Extraction Detection Triggers
563
+
564
+ Watch for these signals that a learning should become a skill:
565
+
566
+ **In conversation:**
567
+ - "Save this as a skill"
568
+ - "I keep running into this"
569
+ - "This would be useful for other projects"
570
+ - "Remember this pattern"
571
+
572
+ **In learning entries:**
573
+ - Multiple `See Also` links (recurring issue)
574
+ - High priority + resolved status
575
+ - Category: `best_practice` with broad applicability
576
+ - User feedback praising the solution
577
+
578
+ ### Skill Quality Gates
579
+
580
+ Before extraction, verify:
581
+
582
+ - [ ] Solution is tested and working
583
+ - [ ] Description is clear without original context
584
+ - [ ] Code examples are self-contained
585
+ - [ ] No project-specific hardcoded values
586
+ - [ ] Follows skill naming conventions (lowercase, hyphens)
587
+
588
+ ## Multi-Agent Support
589
+
590
+ This skill works across different AI coding agents with agent-specific activation.
591
+
592
+ ### Claude Code
593
+
594
+ **Activation**: Hooks (UserPromptSubmit, PostToolUse)
595
+ **Setup**: `.claude/settings.json` with hook configuration
596
+ **Detection**: Automatic via hook scripts
597
+
598
+ ### Codex CLI
599
+
600
+ **Activation**: Hooks (same pattern as Claude Code)
601
+ **Setup**: `.codex/settings.json` with hook configuration
602
+ **Detection**: Automatic via hook scripts
603
+
604
+ ### GitHub Copilot
605
+
606
+ **Activation**: Manual (no hook support)
607
+ **Setup**: Add to `.github/copilot-instructions.md`:
608
+
609
+ ```markdown
610
+ ## Self-Improvement
611
+
612
+ After solving non-obvious issues, consider logging to `.learnings/`:
613
+ 1. Use format from self-improvement skill
614
+ 2. Link related entries with See Also
615
+ 3. Promote high-value learnings to skills
616
+
617
+ Ask in chat: "Should I log this as a learning?"
618
+ ```
619
+
620
+ **Detection**: Manual review at session end
621
+
622
+ ### OpenClaw
623
+
624
+ **Activation**: Workspace injection + inter-agent messaging
625
+ **Setup**: See "OpenClaw Setup" section above
626
+ **Detection**: Via session tools and workspace files
627
+
628
+ ### Agent-Agnostic Guidance
629
+
630
+ Regardless of agent, apply self-improvement when you:
631
+
632
+ 1. **Discover something non-obvious** - solution wasn't immediate
633
+ 2. **Correct yourself** - initial approach was wrong
634
+ 3. **Learn project conventions** - discovered undocumented patterns
635
+ 4. **Hit unexpected errors** - especially if diagnosis was difficult
636
+ 5. **Find better approaches** - improved on your original solution
637
+
638
+ ### Copilot Chat Integration
639
+
640
+ For Copilot users, add this to your prompts when relevant:
641
+
642
+ > After completing this task, evaluate if any learnings should be logged to `.learnings/` using the self-improvement skill format.
643
+
644
+ Or use quick prompts:
645
+ - "Log this to learnings"
646
+ - "Create a skill from this solution"
647
+ - "Check .learnings/ for related issues"
@@ -0,0 +1,45 @@
1
+ # Learnings
2
+
3
+ Corrections, insights, and knowledge gaps captured during development.
4
+
5
+ **Categories**: correction | insight | knowledge_gap | best_practice
6
+ **Areas**: frontend | backend | infra | tests | docs | config
7
+ **Statuses**: pending | in_progress | resolved | wont_fix | promoted | promoted_to_skill
8
+
9
+ ## Status Definitions
10
+
11
+ | Status | Meaning |
12
+ |--------|---------|
13
+ | `pending` | Not yet addressed |
14
+ | `in_progress` | Actively being worked on |
15
+ | `resolved` | Issue fixed or knowledge integrated |
16
+ | `wont_fix` | Decided not to address (reason in Resolution) |
17
+ | `promoted` | Elevated to CLAUDE.md, AGENTS.md, or copilot-instructions.md |
18
+ | `promoted_to_skill` | Extracted as a reusable skill |
19
+
20
+ ## Skill Extraction Fields
21
+
22
+ When a learning is promoted to a skill, add these fields:
23
+
24
+ ```markdown
25
+ **Status**: promoted_to_skill
26
+ **Skill-Path**: skills/skill-name
27
+ ```
28
+
29
+ Example:
30
+ ```markdown
31
+ ## [LRN-20250115-001] best_practice
32
+
33
+ **Logged**: 2025-01-15T10:00:00Z
34
+ **Priority**: high
35
+ **Status**: promoted_to_skill
36
+ **Skill-Path**: skills/docker-m1-fixes
37
+ **Area**: infra
38
+
39
+ ### Summary
40
+ Docker build fails on Apple Silicon due to platform mismatch
41
+ ...
42
+ ```
43
+
44
+ ---
45
+