@organon-methodology/tools 0.3.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 (287) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +152 -0
  3. package/dist/cli/commands/coverage.d.ts +12 -0
  4. package/dist/cli/commands/coverage.d.ts.map +1 -0
  5. package/dist/cli/commands/coverage.js +80 -0
  6. package/dist/cli/commands/coverage.js.map +1 -0
  7. package/dist/cli/commands/find.d.ts +15 -0
  8. package/dist/cli/commands/find.d.ts.map +1 -0
  9. package/dist/cli/commands/find.js +81 -0
  10. package/dist/cli/commands/find.js.map +1 -0
  11. package/dist/cli/commands/generate-tests.d.ts +14 -0
  12. package/dist/cli/commands/generate-tests.d.ts.map +1 -0
  13. package/dist/cli/commands/generate-tests.js +87 -0
  14. package/dist/cli/commands/generate-tests.js.map +1 -0
  15. package/dist/cli/commands/generate.d.ts +15 -0
  16. package/dist/cli/commands/generate.d.ts.map +1 -0
  17. package/dist/cli/commands/generate.js +77 -0
  18. package/dist/cli/commands/generate.js.map +1 -0
  19. package/dist/cli/commands/health.d.ts +13 -0
  20. package/dist/cli/commands/health.d.ts.map +1 -0
  21. package/dist/cli/commands/health.js +79 -0
  22. package/dist/cli/commands/health.js.map +1 -0
  23. package/dist/cli/commands/init.d.ts +14 -0
  24. package/dist/cli/commands/init.d.ts.map +1 -0
  25. package/dist/cli/commands/init.js +132 -0
  26. package/dist/cli/commands/init.js.map +1 -0
  27. package/dist/cli/commands/mcp.d.ts +11 -0
  28. package/dist/cli/commands/mcp.d.ts.map +1 -0
  29. package/dist/cli/commands/mcp.js +26 -0
  30. package/dist/cli/commands/mcp.js.map +1 -0
  31. package/dist/cli/commands/query.d.ts +19 -0
  32. package/dist/cli/commands/query.d.ts.map +1 -0
  33. package/dist/cli/commands/query.js +103 -0
  34. package/dist/cli/commands/query.js.map +1 -0
  35. package/dist/cli/commands/upgrade.d.ts +13 -0
  36. package/dist/cli/commands/upgrade.d.ts.map +1 -0
  37. package/dist/cli/commands/upgrade.js +162 -0
  38. package/dist/cli/commands/upgrade.js.map +1 -0
  39. package/dist/cli/commands/validate.d.ts +13 -0
  40. package/dist/cli/commands/validate.d.ts.map +1 -0
  41. package/dist/cli/commands/validate.js +89 -0
  42. package/dist/cli/commands/validate.js.map +1 -0
  43. package/dist/cli/commands/verify.d.ts +12 -0
  44. package/dist/cli/commands/verify.d.ts.map +1 -0
  45. package/dist/cli/commands/verify.js +67 -0
  46. package/dist/cli/commands/verify.js.map +1 -0
  47. package/dist/cli/index.d.ts +19 -0
  48. package/dist/cli/index.d.ts.map +1 -0
  49. package/dist/cli/index.js +59 -0
  50. package/dist/cli/index.js.map +1 -0
  51. package/dist/core/add-protocols-array.d.ts +17 -0
  52. package/dist/core/add-protocols-array.d.ts.map +1 -0
  53. package/dist/core/add-protocols-array.js +95 -0
  54. package/dist/core/add-protocols-array.js.map +1 -0
  55. package/dist/core/add-protocols-array.test.d.ts +2 -0
  56. package/dist/core/add-protocols-array.test.d.ts.map +1 -0
  57. package/dist/core/add-protocols-array.test.js +86 -0
  58. package/dist/core/add-protocols-array.test.js.map +1 -0
  59. package/dist/core/config.d.ts +44 -0
  60. package/dist/core/config.d.ts.map +1 -0
  61. package/dist/core/config.js +130 -0
  62. package/dist/core/config.js.map +1 -0
  63. package/dist/core/config.test.d.ts +2 -0
  64. package/dist/core/config.test.d.ts.map +1 -0
  65. package/dist/core/config.test.js +88 -0
  66. package/dist/core/config.test.js.map +1 -0
  67. package/dist/core/find.d.ts +29 -0
  68. package/dist/core/find.d.ts.map +1 -0
  69. package/dist/core/find.js +191 -0
  70. package/dist/core/find.js.map +1 -0
  71. package/dist/core/find.test.d.ts +2 -0
  72. package/dist/core/find.test.d.ts.map +1 -0
  73. package/dist/core/find.test.js +91 -0
  74. package/dist/core/find.test.js.map +1 -0
  75. package/dist/core/frontmatter-parser.d.ts +45 -0
  76. package/dist/core/frontmatter-parser.d.ts.map +1 -0
  77. package/dist/core/frontmatter-parser.js +122 -0
  78. package/dist/core/frontmatter-parser.js.map +1 -0
  79. package/dist/core/frontmatter-parser.test.d.ts +2 -0
  80. package/dist/core/frontmatter-parser.test.d.ts.map +1 -0
  81. package/dist/core/frontmatter-parser.test.js +200 -0
  82. package/dist/core/frontmatter-parser.test.js.map +1 -0
  83. package/dist/core/generate-frontmatter.d.ts +27 -0
  84. package/dist/core/generate-frontmatter.d.ts.map +1 -0
  85. package/dist/core/generate-frontmatter.js +219 -0
  86. package/dist/core/generate-frontmatter.js.map +1 -0
  87. package/dist/core/generate-frontmatter.test.d.ts +2 -0
  88. package/dist/core/generate-frontmatter.test.d.ts.map +1 -0
  89. package/dist/core/generate-frontmatter.test.js +161 -0
  90. package/dist/core/generate-frontmatter.test.js.map +1 -0
  91. package/dist/core/generate-tests.d.ts +41 -0
  92. package/dist/core/generate-tests.d.ts.map +1 -0
  93. package/dist/core/generate-tests.js +191 -0
  94. package/dist/core/generate-tests.js.map +1 -0
  95. package/dist/core/generate-tests.test.d.ts +2 -0
  96. package/dist/core/generate-tests.test.d.ts.map +1 -0
  97. package/dist/core/generate-tests.test.js +205 -0
  98. package/dist/core/generate-tests.test.js.map +1 -0
  99. package/dist/core/health.d.ts +16 -0
  100. package/dist/core/health.d.ts.map +1 -0
  101. package/dist/core/health.js +156 -0
  102. package/dist/core/health.js.map +1 -0
  103. package/dist/core/health.test.d.ts +2 -0
  104. package/dist/core/health.test.d.ts.map +1 -0
  105. package/dist/core/health.test.js +97 -0
  106. package/dist/core/health.test.js.map +1 -0
  107. package/dist/core/init.d.ts +25 -0
  108. package/dist/core/init.d.ts.map +1 -0
  109. package/dist/core/init.js +100 -0
  110. package/dist/core/init.js.map +1 -0
  111. package/dist/core/init.test.d.ts +8 -0
  112. package/dist/core/init.test.d.ts.map +1 -0
  113. package/dist/core/init.test.js +203 -0
  114. package/dist/core/init.test.js.map +1 -0
  115. package/dist/core/invariant-coverage.d.ts +41 -0
  116. package/dist/core/invariant-coverage.d.ts.map +1 -0
  117. package/dist/core/invariant-coverage.js +181 -0
  118. package/dist/core/invariant-coverage.js.map +1 -0
  119. package/dist/core/invariant-coverage.test.d.ts +2 -0
  120. package/dist/core/invariant-coverage.test.d.ts.map +1 -0
  121. package/dist/core/invariant-coverage.test.js +188 -0
  122. package/dist/core/invariant-coverage.test.js.map +1 -0
  123. package/dist/core/meta-invariants.test.d.ts +17 -0
  124. package/dist/core/meta-invariants.test.d.ts.map +1 -0
  125. package/dist/core/meta-invariants.test.js +191 -0
  126. package/dist/core/meta-invariants.test.js.map +1 -0
  127. package/dist/core/node-fs.d.ts +22 -0
  128. package/dist/core/node-fs.d.ts.map +1 -0
  129. package/dist/core/node-fs.js +47 -0
  130. package/dist/core/node-fs.js.map +1 -0
  131. package/dist/core/organon-invariants.test.d.ts +15 -0
  132. package/dist/core/organon-invariants.test.d.ts.map +1 -0
  133. package/dist/core/organon-invariants.test.js +149 -0
  134. package/dist/core/organon-invariants.test.js.map +1 -0
  135. package/dist/core/query.d.ts +35 -0
  136. package/dist/core/query.d.ts.map +1 -0
  137. package/dist/core/query.js +139 -0
  138. package/dist/core/query.js.map +1 -0
  139. package/dist/core/query.test.d.ts +2 -0
  140. package/dist/core/query.test.d.ts.map +1 -0
  141. package/dist/core/query.test.js +97 -0
  142. package/dist/core/query.test.js.map +1 -0
  143. package/dist/core/suggest-tools.d.ts +15 -0
  144. package/dist/core/suggest-tools.d.ts.map +1 -0
  145. package/dist/core/suggest-tools.js +139 -0
  146. package/dist/core/suggest-tools.js.map +1 -0
  147. package/dist/core/suggest-tools.test.d.ts +2 -0
  148. package/dist/core/suggest-tools.test.d.ts.map +1 -0
  149. package/dist/core/suggest-tools.test.js +122 -0
  150. package/dist/core/suggest-tools.test.js.map +1 -0
  151. package/dist/core/test-helpers.d.ts +63 -0
  152. package/dist/core/test-helpers.d.ts.map +1 -0
  153. package/dist/core/test-helpers.js +265 -0
  154. package/dist/core/test-helpers.js.map +1 -0
  155. package/dist/core/types.d.ts +277 -0
  156. package/dist/core/types.d.ts.map +1 -0
  157. package/dist/core/types.js +9 -0
  158. package/dist/core/types.js.map +1 -0
  159. package/dist/core/upgrade.d.ts +46 -0
  160. package/dist/core/upgrade.d.ts.map +1 -0
  161. package/dist/core/upgrade.js +227 -0
  162. package/dist/core/upgrade.js.map +1 -0
  163. package/dist/core/upgrade.test.d.ts +8 -0
  164. package/dist/core/upgrade.test.d.ts.map +1 -0
  165. package/dist/core/upgrade.test.js +370 -0
  166. package/dist/core/upgrade.test.js.map +1 -0
  167. package/dist/core/validate-frontmatter.d.ts +20 -0
  168. package/dist/core/validate-frontmatter.d.ts.map +1 -0
  169. package/dist/core/validate-frontmatter.js +529 -0
  170. package/dist/core/validate-frontmatter.js.map +1 -0
  171. package/dist/core/validate-frontmatter.test.d.ts +2 -0
  172. package/dist/core/validate-frontmatter.test.d.ts.map +1 -0
  173. package/dist/core/validate-frontmatter.test.js +366 -0
  174. package/dist/core/validate-frontmatter.test.js.map +1 -0
  175. package/dist/core/validate-workflow.d.ts +17 -0
  176. package/dist/core/validate-workflow.d.ts.map +1 -0
  177. package/dist/core/validate-workflow.js +233 -0
  178. package/dist/core/validate-workflow.js.map +1 -0
  179. package/dist/core/validate-workflow.test.d.ts +2 -0
  180. package/dist/core/validate-workflow.test.d.ts.map +1 -0
  181. package/dist/core/validate-workflow.test.js +205 -0
  182. package/dist/core/validate-workflow.test.js.map +1 -0
  183. package/dist/core/verify-tier4-tests.d.ts +34 -0
  184. package/dist/core/verify-tier4-tests.d.ts.map +1 -0
  185. package/dist/core/verify-tier4-tests.js +106 -0
  186. package/dist/core/verify-tier4-tests.js.map +1 -0
  187. package/dist/core/verify-tier4-tests.test.d.ts +2 -0
  188. package/dist/core/verify-tier4-tests.test.d.ts.map +1 -0
  189. package/dist/core/verify-tier4-tests.test.js +140 -0
  190. package/dist/core/verify-tier4-tests.test.js.map +1 -0
  191. package/dist/core/verify-triplets.d.ts +17 -0
  192. package/dist/core/verify-triplets.d.ts.map +1 -0
  193. package/dist/core/verify-triplets.js +217 -0
  194. package/dist/core/verify-triplets.js.map +1 -0
  195. package/dist/core/verify-triplets.test.d.ts +2 -0
  196. package/dist/core/verify-triplets.test.d.ts.map +1 -0
  197. package/dist/core/verify-triplets.test.js +147 -0
  198. package/dist/core/verify-triplets.test.js.map +1 -0
  199. package/dist/core/verify.d.ts +19 -0
  200. package/dist/core/verify.d.ts.map +1 -0
  201. package/dist/core/verify.js +162 -0
  202. package/dist/core/verify.js.map +1 -0
  203. package/dist/core/verify.test.d.ts +2 -0
  204. package/dist/core/verify.test.d.ts.map +1 -0
  205. package/dist/core/verify.test.js +147 -0
  206. package/dist/core/verify.test.js.map +1 -0
  207. package/dist/index.d.ts +31 -0
  208. package/dist/index.d.ts.map +1 -0
  209. package/dist/index.js +27 -0
  210. package/dist/index.js.map +1 -0
  211. package/dist/mcp/prompts.d.ts +9 -0
  212. package/dist/mcp/prompts.d.ts.map +1 -0
  213. package/dist/mcp/prompts.js +265 -0
  214. package/dist/mcp/prompts.js.map +1 -0
  215. package/dist/mcp/resources.d.ts +7 -0
  216. package/dist/mcp/resources.d.ts.map +1 -0
  217. package/dist/mcp/resources.js +111 -0
  218. package/dist/mcp/resources.js.map +1 -0
  219. package/dist/mcp/server.d.ts +7 -0
  220. package/dist/mcp/server.d.ts.map +1 -0
  221. package/dist/mcp/server.js +31 -0
  222. package/dist/mcp/server.js.map +1 -0
  223. package/dist/mcp/tools.d.ts +7 -0
  224. package/dist/mcp/tools.d.ts.map +1 -0
  225. package/dist/mcp/tools.js +130 -0
  226. package/dist/mcp/tools.js.map +1 -0
  227. package/dist/templates/config.d.ts +6 -0
  228. package/dist/templates/config.d.ts.map +1 -0
  229. package/dist/templates/config.js +30 -0
  230. package/dist/templates/config.js.map +1 -0
  231. package/dist/templates/index.d.ts +7 -0
  232. package/dist/templates/index.d.ts.map +1 -0
  233. package/dist/templates/index.js +7 -0
  234. package/dist/templates/index.js.map +1 -0
  235. package/dist/templates/organon/claude-md.d.ts +7 -0
  236. package/dist/templates/organon/claude-md.d.ts.map +1 -0
  237. package/dist/templates/organon/claude-md.js +32 -0
  238. package/dist/templates/organon/claude-md.js.map +1 -0
  239. package/dist/templates/organon/ethos.d.ts +5 -0
  240. package/dist/templates/organon/ethos.d.ts.map +1 -0
  241. package/dist/templates/organon/ethos.js +69 -0
  242. package/dist/templates/organon/ethos.js.map +1 -0
  243. package/dist/templates/organon/index.d.ts +10 -0
  244. package/dist/templates/organon/index.d.ts.map +1 -0
  245. package/dist/templates/organon/index.js +10 -0
  246. package/dist/templates/organon/index.js.map +1 -0
  247. package/dist/templates/organon/observations-readme.d.ts +5 -0
  248. package/dist/templates/organon/observations-readme.d.ts.map +1 -0
  249. package/dist/templates/organon/observations-readme.js +25 -0
  250. package/dist/templates/organon/observations-readme.js.map +1 -0
  251. package/dist/templates/organon/philosophy.d.ts +5 -0
  252. package/dist/templates/organon/philosophy.d.ts.map +1 -0
  253. package/dist/templates/organon/philosophy.js +75 -0
  254. package/dist/templates/organon/philosophy.js.map +1 -0
  255. package/dist/templates/organon/protocols.d.ts +7 -0
  256. package/dist/templates/organon/protocols.d.ts.map +1 -0
  257. package/dist/templates/organon/protocols.js +197 -0
  258. package/dist/templates/organon/protocols.js.map +1 -0
  259. package/dist/templates/organon/readme.d.ts +5 -0
  260. package/dist/templates/organon/readme.d.ts.map +1 -0
  261. package/dist/templates/organon/readme.js +40 -0
  262. package/dist/templates/organon/readme.js.map +1 -0
  263. package/dist/templates/skills/domain-feature-design.d.ts +9 -0
  264. package/dist/templates/skills/domain-feature-design.d.ts.map +1 -0
  265. package/dist/templates/skills/domain-feature-design.js +123 -0
  266. package/dist/templates/skills/domain-feature-design.js.map +1 -0
  267. package/dist/templates/skills/index.d.ts +15 -0
  268. package/dist/templates/skills/index.d.ts.map +1 -0
  269. package/dist/templates/skills/index.js +35 -0
  270. package/dist/templates/skills/index.js.map +1 -0
  271. package/dist/templates/skills/organon-file-creation.d.ts +9 -0
  272. package/dist/templates/skills/organon-file-creation.d.ts.map +1 -0
  273. package/dist/templates/skills/organon-file-creation.js +138 -0
  274. package/dist/templates/skills/organon-file-creation.js.map +1 -0
  275. package/dist/templates/skills/quality-review.d.ts +9 -0
  276. package/dist/templates/skills/quality-review.d.ts.map +1 -0
  277. package/dist/templates/skills/quality-review.js +127 -0
  278. package/dist/templates/skills/quality-review.js.map +1 -0
  279. package/dist/templates/skills/session-compounding.d.ts +9 -0
  280. package/dist/templates/skills/session-compounding.d.ts.map +1 -0
  281. package/dist/templates/skills/session-compounding.js +118 -0
  282. package/dist/templates/skills/session-compounding.js.map +1 -0
  283. package/dist/templates/skills/verify-and-health.d.ts +9 -0
  284. package/dist/templates/skills/verify-and-health.d.ts.map +1 -0
  285. package/dist/templates/skills/verify-and-health.js +99 -0
  286. package/dist/templates/skills/verify-and-health.js.map +1 -0
  287. package/package.json +72 -0
@@ -0,0 +1,197 @@
1
+ /**
2
+ * PROTOCOLS.md scaffold template for organon init.
3
+ *
4
+ * Contains 5 generic protocols matching the 5 distributable skills.
5
+ */
6
+ export const PROTOCOLS_TEMPLATE = [
7
+ '---',
8
+ 'type: procedures',
9
+ 'scope: product',
10
+ 'name: protocols',
11
+ 'version: "1.0"',
12
+ 'summary: Development protocols for this project — step-by-step procedures with workflow bindings',
13
+ 'token_estimate: 2400',
14
+ 'protocols_count: 5',
15
+ 'protocols:',
16
+ ' - id: PROTO-ORG-1',
17
+ ' name: RFC-Driven Design',
18
+ ' steps: 6',
19
+ ' automation_tier: automated',
20
+ ' workflow: domain-feature-design',
21
+ ' tools: [organon-validate, organon-verify]',
22
+ ' complexity: high',
23
+ ' - id: PROTO-ORG-4',
24
+ ' name: Verification and Health',
25
+ ' steps: 5',
26
+ ' automation_tier: automated',
27
+ ' workflow: verify-and-health',
28
+ ' tools: [organon-verify, organon-health]',
29
+ ' complexity: low',
30
+ ' - id: PROTO-ORG-5',
31
+ ' name: Session Compounding',
32
+ ' steps: 7',
33
+ ' automation_tier: automated',
34
+ ' workflow: session-compounding',
35
+ ' tools: [organon-verify, organon-health, organon-find]',
36
+ ' complexity: medium',
37
+ ' - id: PROTO-ORG-6',
38
+ ' name: Organon File Creation',
39
+ ' steps: 8',
40
+ ' automation_tier: automated',
41
+ ' workflow: organon-file-creation',
42
+ ' tools: [organon-generate, organon-validate, organon-verify]',
43
+ ' complexity: medium',
44
+ ' - id: PROTO-ORG-7',
45
+ ' name: Quality Review',
46
+ ' steps: 7',
47
+ ' automation_tier: automated',
48
+ ' workflow: quality-review',
49
+ ' tools: [organon-verify, organon-validate, organon-health]',
50
+ ' complexity: high',
51
+ 'audience: [llm, human, tooling]',
52
+ '---',
53
+ '',
54
+ '# Development Protocols',
55
+ '',
56
+ '> Step-by-step procedures for development activities. Each protocol has a corresponding workflow (skill) binding.',
57
+ '',
58
+ '---',
59
+ '',
60
+ '## Protocol Overview',
61
+ '',
62
+ '| ID | Name | Workflow | Complexity |',
63
+ '|----|------|----------|------------|',
64
+ '| PROTO-ORG-1 | RFC-Driven Design | domain-feature-design | High |',
65
+ '| PROTO-ORG-4 | Verification and Health | verify-and-health | Low |',
66
+ '| PROTO-ORG-5 | Session Compounding | session-compounding | Medium |',
67
+ '| PROTO-ORG-6 | Organon File Creation | organon-file-creation | Medium |',
68
+ '| PROTO-ORG-7 | Quality Review | quality-review | High |',
69
+ '',
70
+ '---',
71
+ '',
72
+ '## PROTO-ORG-1: RFC-Driven Design',
73
+ '',
74
+ '> Design new domains and features using RFC-Driven Evolution.',
75
+ '',
76
+ '### Goal',
77
+ '',
78
+ 'Produce a complete RFC with both organon mutation plan and technical implementation plan.',
79
+ '',
80
+ '### Steps',
81
+ '',
82
+ '1. **Load context.** Read organon/ETHOS.md and CLAUDE.md.',
83
+ '2. **Classify scope.** Domain (bounded context), feature (cross-cutting), or component.',
84
+ '3. **Create RFC.** Determine next number, create rfcs/NNN-name.md.',
85
+ '4. **Write organon plan.** Exact ETHOS.md and PHILOSOPHY.md content.',
86
+ '5. **Write technical plan.** Architecture, API, implementation phases.',
87
+ '6. **Self-review.** Both plans present, invariants testable, principles prioritized.',
88
+ '',
89
+ '### Verification',
90
+ '',
91
+ '- [ ] RFC has both organon and technical plans',
92
+ '- [ ] Invariants are testable',
93
+ '- [ ] `organon validate` passes on RFC',
94
+ '',
95
+ '---',
96
+ '',
97
+ '## PROTO-ORG-4: Verification and Health',
98
+ '',
99
+ '> Run all verification gates and health checks.',
100
+ '',
101
+ '### Goal',
102
+ '',
103
+ 'Confirm project integrity with actionable fix guidance.',
104
+ '',
105
+ '### Steps',
106
+ '',
107
+ '1. **Run verification.** `organon verify` (all gates).',
108
+ '2. **Run health.** `organon health` for overall score.',
109
+ '3. **Interpret failures.** Map each to specific fix.',
110
+ '4. **Apply fixes.** Edit specific files and fields.',
111
+ '5. **Re-verify.** Confirm all gates pass.',
112
+ '',
113
+ '### Verification',
114
+ '',
115
+ '- [ ] All gates pass',
116
+ '- [ ] Health score reported',
117
+ '',
118
+ '---',
119
+ '',
120
+ '## PROTO-ORG-5: Session Compounding',
121
+ '',
122
+ '> Review session output, detect patterns, execute improvements.',
123
+ '',
124
+ '### Goal',
125
+ '',
126
+ 'Convert session learnings into durable improvements.',
127
+ '',
128
+ '### Steps',
129
+ '',
130
+ '1. **Review session.** Examine git diff of changes.',
131
+ '2. **Detect patterns.** Look for repeated steps, unclear workflows, new heuristics.',
132
+ '3. **Classify.** Tool candidate, protocol update, heuristic addition, or workflow refinement.',
133
+ '4. **Prioritize.** Frequency x impact.',
134
+ '5. **Execute.** Implement highest-priority improvement.',
135
+ '6. **Verify.** `organon verify` and `organon health`.',
136
+ '7. **Record observations.** If session revealed lasting insights.',
137
+ '',
138
+ '### Verification',
139
+ '',
140
+ '- [ ] At least one improvement identified',
141
+ '- [ ] `organon verify` passes',
142
+ '',
143
+ '---',
144
+ '',
145
+ '## PROTO-ORG-6: Organon File Creation',
146
+ '',
147
+ '> Create valid organon files with correct placement and references.',
148
+ '',
149
+ '### Goal',
150
+ '',
151
+ 'Produce a valid organon file with proper frontmatter, structure, and inheritance.',
152
+ '',
153
+ '### Steps',
154
+ '',
155
+ '1. **Classify scope.** Product, domain, feature, or component.',
156
+ '2. **Check parent.** Load parent ETHOS.md, new file must inherit constraints.',
157
+ '3. **Select template.** ETHOS, PHILOSOPHY, PROTOCOL, or README.',
158
+ '4. **Determine placement.** Under organon/domains/ or organon/features/.',
159
+ '5. **Generate frontmatter.** Type, scope, name, version, summary, token_estimate.',
160
+ '6. **Write content.** Follow template section structure.',
161
+ '7. **Validate.** `organon validate` on new file.',
162
+ '8. **Check references.** `organon verify --gate triplets` for bidirectional refs.',
163
+ '',
164
+ '### Verification',
165
+ '',
166
+ '- [ ] `organon validate` passes',
167
+ '- [ ] File in correct directory',
168
+ '- [ ] Parent constraints inherited',
169
+ '',
170
+ '---',
171
+ '',
172
+ '## PROTO-ORG-7: Quality Review',
173
+ '',
174
+ '> Semantic review beyond automated gates.',
175
+ '',
176
+ '### Goal',
177
+ '',
178
+ "Find quality issues automation can't detect: vague invariants, misordered principles, inconsistent terminology.",
179
+ '',
180
+ '### Steps',
181
+ '',
182
+ '1. **Run automated gates.** `organon verify` and `organon validate`.',
183
+ '2. **Review invariants.** Testable? Specific? Enforceable?',
184
+ '3. **Review principles.** Genuinely prioritized? Conflict test passes?',
185
+ '4. **Review identity.** Specific and distinguishing?',
186
+ '5. **Review heuristics.** Cover actual recurring decisions?',
187
+ '6. **Check anti-patterns.** Phantom enforcement, aspiration as invariant, etc.',
188
+ '7. **Generate report.** Findings by severity with fix recommendations.',
189
+ '',
190
+ '### Verification',
191
+ '',
192
+ '- [ ] All automated gates pass',
193
+ '- [ ] Every invariant passes "testable?" filter',
194
+ '- [ ] No anti-pattern matches',
195
+ '',
196
+ ].join('\n');
197
+ //# sourceMappingURL=protocols.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protocols.js","sourceRoot":"","sources":["../../../src/templates/organon/protocols.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,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AAE;IACF,gCAAgC;IAChC,iDAAiD;IACjD,+BAA+B;IAC/B,EAAE;CACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * README.md router template for organon init.
3
+ */
4
+ export declare const README_TEMPLATE: string;
5
+ //# sourceMappingURL=readme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readme.d.ts","sourceRoot":"","sources":["../../../src/templates/organon/readme.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,eAAe,QAmChB,CAAC"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * README.md router template for organon init.
3
+ */
4
+ export const README_TEMPLATE = [
5
+ '---',
6
+ 'type: navigation',
7
+ 'scope: product',
8
+ 'name: organon-root',
9
+ 'version: "1.0"',
10
+ "summary: Navigation hub for this project's organon hierarchy",
11
+ 'token_estimate: 100',
12
+ 'provides: [organon-navigation]',
13
+ 'audience: [llm, human]',
14
+ '---',
15
+ '',
16
+ '# Organon',
17
+ '',
18
+ '> This project uses the [Organon methodology](https://github.com/VledicFranco/organon) for documentation-driven development.',
19
+ '',
20
+ '---',
21
+ '',
22
+ '## Contents',
23
+ '',
24
+ '| File | Type | Description |',
25
+ '|------|------|-------------|',
26
+ '| [ETHOS.md](ETHOS.md) | Constraints | Product-level identity, invariants, and principles |',
27
+ '| [PHILOSOPHY.md](PHILOSOPHY.md) | Rationale | Design decisions and trade-offs |',
28
+ '| [protocols/PROTOCOLS.md](protocols/PROTOCOLS.md) | Procedures | Step-by-step development protocols |',
29
+ '',
30
+ '---',
31
+ '',
32
+ '## Getting Started',
33
+ '',
34
+ "1. Edit `ETHOS.md` to define your project's identity and constraints",
35
+ '2. Edit `PHILOSOPHY.md` to document your design rationale',
36
+ '3. Run `organon verify` to check integrity',
37
+ '4. Run `organon health` for a project health score',
38
+ '',
39
+ ].join('\n');
40
+ //# sourceMappingURL=readme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readme.js","sourceRoot":"","sources":["../../../src/templates/organon/readme.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,KAAK;IACL,kBAAkB;IAClB,gBAAgB;IAChB,oBAAoB;IACpB,gBAAgB;IAChB,8DAA8D;IAC9D,qBAAqB;IACrB,gCAAgC;IAChC,wBAAwB;IACxB,KAAK;IACL,EAAE;IACF,WAAW;IACX,EAAE;IACF,8HAA8H;IAC9H,EAAE;IACF,KAAK;IACL,EAAE;IACF,aAAa;IACb,EAAE;IACF,+BAA+B;IAC/B,+BAA+B;IAC/B,6FAA6F;IAC7F,kFAAkF;IAClF,wGAAwG;IACxG,EAAE;IACF,KAAK;IACL,EAAE;IACF,oBAAoB;IACpB,EAAE;IACF,sEAAsE;IACtE,2DAA2D;IAC3D,4CAA4C;IAC5C,oDAAoD;IACpD,EAAE;CACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Domain/Feature Design skill template — adapted for distribution.
3
+ *
4
+ * Adapted from .claude/skills/domain-feature-design/SKILL.md:
5
+ * - loads: references organon/ETHOS.md and CLAUDE.md (not book-llms/)
6
+ * - Essential templates/scopes guidance embedded in body
7
+ */
8
+ export declare const DOMAIN_FEATURE_DESIGN_SKILL: string;
9
+ //# sourceMappingURL=domain-feature-design.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domain-feature-design.d.ts","sourceRoot":"","sources":["../../../src/templates/skills/domain-feature-design.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,2BAA2B,QAkH5B,CAAC"}
@@ -0,0 +1,123 @@
1
+ /**
2
+ * Domain/Feature Design skill template — adapted for distribution.
3
+ *
4
+ * Adapted from .claude/skills/domain-feature-design/SKILL.md:
5
+ * - loads: references organon/ETHOS.md and CLAUDE.md (not book-llms/)
6
+ * - Essential templates/scopes guidance embedded in body
7
+ */
8
+ export const DOMAIN_FEATURE_DESIGN_SKILL = [
9
+ '---',
10
+ 'name: domain-feature-design',
11
+ 'description: Guides agents through proper domain/feature design following Organon methodology. Ensures RFCs contain both organon mutation plan (ETHOS.md, PHILOSOPHY.md content) AND technical implementation plan (architecture, API, phases). Prevents common mistake of writing only technical plan or only organon plan.',
12
+ 'protocol_id: PROTO-ORG-1',
13
+ 'protocol_file: organon/protocols/PROTOCOLS.md',
14
+ 'tools: [organon-validate, organon-verify]',
15
+ 'loads:',
16
+ ' - organon/ETHOS.md',
17
+ ' - CLAUDE.md',
18
+ 'methodology_version: "0.3.0"',
19
+ '---',
20
+ '',
21
+ '# Domain/Feature Design Skill',
22
+ '',
23
+ '> Design new domains and features using RFC-Driven Evolution — ensures organon defines "should be" before code implements "what is."',
24
+ '',
25
+ '---',
26
+ '',
27
+ '## When to Use This Skill',
28
+ '',
29
+ 'Use this skill when:',
30
+ '- **Adding a new domain** to a product (bounded context with its own organon)',
31
+ '- **Adding a new feature** (cross-cutting capability)',
32
+ '- **Proposing significant changes** that require organon evolution',
33
+ '',
34
+ '---',
35
+ '',
36
+ '## Core Principle',
37
+ '',
38
+ ' ORGANON ("should be") <--cites--> RFC ("will be") --implements--> CODE ("what is")',
39
+ '',
40
+ '**RFCs have dual nature:**',
41
+ '1. **Organon mutation plan** — What constraints the domain will define',
42
+ '2. **Technical implementation plan** — How code will implement those constraints',
43
+ '',
44
+ '**BOTH are required.** Writing only one is incomplete.',
45
+ '',
46
+ '---',
47
+ '',
48
+ '## Scope Classification',
49
+ '',
50
+ '| Type | Question Answered | Use When |',
51
+ '|------|-------------------|----------|',
52
+ '| **Domain** | "What business concepts exist?" | Rich bounded context, \u22653 unique concepts |',
53
+ '| **Feature** | "What can users do?" | Cross-cutting capability |',
54
+ '| **Component** | "Where is the code?" | Code modules |',
55
+ '',
56
+ '**Decision heuristic:** Has \u22653 unique concepts + lifecycle \u2192 Domain. Crosses multiple domains \u2192 Feature. Code terms \u2192 Component.',
57
+ '',
58
+ '---',
59
+ '',
60
+ '## Steps',
61
+ '',
62
+ '### Step 1: Load Context',
63
+ '',
64
+ 'Read the loaded files:',
65
+ '- `organon/ETHOS.md` — product constraints this domain inherits',
66
+ '- `CLAUDE.md` — project-level guidance',
67
+ '',
68
+ '### Step 2: Classify Scope',
69
+ '',
70
+ 'Determine if this is a domain, feature, or component.',
71
+ '',
72
+ '### Step 3: Create RFC',
73
+ '',
74
+ '1. Determine next RFC number from `rfcs/` directory',
75
+ '2. Create `rfcs/NNN-<feature-name>.md`',
76
+ '',
77
+ '### Step 4: Write Organon Mutation Plan',
78
+ '',
79
+ 'Write the exact ETHOS.md content (identity, invariants, principles, heuristics) and PHILOSOPHY.md content (problem, bet, trade-offs) that will be created.',
80
+ '',
81
+ '**ETHOS.md requirements:**',
82
+ '- \u22653 identity IS statements (specific, not generic)',
83
+ '- \u22653 identity IS NOT statements (real boundaries)',
84
+ '- \u22653 invariants with enforcement mechanisms',
85
+ '- \u22653 prioritized principles (lower number wins)',
86
+ '- \u22655 decision heuristics (situation \u2192 action)',
87
+ '',
88
+ '**PHILOSOPHY.md requirements:**',
89
+ '- Problem statement with root causes',
90
+ '- The bet (falsifiable hypothesis)',
91
+ '- \u22655 trade-offs with rationale',
92
+ '- \u22653 alternatives considered',
93
+ '- Measurable success criteria',
94
+ '',
95
+ '### Step 5: Write Technical Implementation Plan',
96
+ '',
97
+ '- Architecture (package structure, core abstractions)',
98
+ '- API design (function signatures, interfaces)',
99
+ '- Phased implementation plan',
100
+ '- \u22655 design decisions linked to domain principles',
101
+ '',
102
+ '### Step 6: Self-Review',
103
+ '',
104
+ 'Verify both plans are present and detailed using the checklist:',
105
+ '- [ ] RFC has both organon mutation plan AND technical implementation plan',
106
+ '- [ ] Invariants are testable (not vague aspirations)',
107
+ '- [ ] Principles are genuinely prioritized',
108
+ '- [ ] Technical plan has architecture, API, and phases',
109
+ '',
110
+ '---',
111
+ '',
112
+ '## Error Recovery',
113
+ '',
114
+ '| Failure | Recovery Action |',
115
+ '|---------|-----------------|',
116
+ '| Can\'t classify scope | Ask: does it have \u22653 unique concepts + lifecycle? If yes \u2192 domain. Crosses domains? \u2192 feature. |',
117
+ '| Invariants too vague | Apply "testable?" filter — if you can\'t write a verification gate, rewrite to be more specific. |',
118
+ '| Missing organon plan | Stop and write exact ETHOS.md/PHILOSOPHY.md content before technical plan. |',
119
+ '| Missing technical plan | Stop and add architecture, API, implementation phases. Both plans required. |',
120
+ '| RFC too large | Split into multiple RFCs with explicit dependency chain. |',
121
+ '',
122
+ ].join('\n');
123
+ //# sourceMappingURL=domain-feature-design.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domain-feature-design.js","sourceRoot":"","sources":["../../../src/templates/skills/domain-feature-design.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,KAAK;IACL,6BAA6B;IAC7B,8TAA8T;IAC9T,0BAA0B;IAC1B,+CAA+C;IAC/C,2CAA2C;IAC3C,QAAQ;IACR,sBAAsB;IACtB,eAAe;IACf,8BAA8B;IAC9B,KAAK;IACL,EAAE;IACF,+BAA+B;IAC/B,EAAE;IACF,sIAAsI;IACtI,EAAE;IACF,KAAK;IACL,EAAE;IACF,2BAA2B;IAC3B,EAAE;IACF,sBAAsB;IACtB,+EAA+E;IAC/E,uDAAuD;IACvD,oEAAoE;IACpE,EAAE;IACF,KAAK;IACL,EAAE;IACF,mBAAmB;IACnB,EAAE;IACF,wFAAwF;IACxF,EAAE;IACF,4BAA4B;IAC5B,wEAAwE;IACxE,kFAAkF;IAClF,EAAE;IACF,wDAAwD;IACxD,EAAE;IACF,KAAK;IACL,EAAE;IACF,yBAAyB;IACzB,EAAE;IACF,yCAAyC;IACzC,yCAAyC;IACzC,kGAAkG;IAClG,mEAAmE;IACnE,yDAAyD;IACzD,EAAE;IACF,sJAAsJ;IACtJ,EAAE;IACF,KAAK;IACL,EAAE;IACF,UAAU;IACV,EAAE;IACF,0BAA0B;IAC1B,EAAE;IACF,wBAAwB;IACxB,iEAAiE;IACjE,wCAAwC;IACxC,EAAE;IACF,4BAA4B;IAC5B,EAAE;IACF,uDAAuD;IACvD,EAAE;IACF,wBAAwB;IACxB,EAAE;IACF,qDAAqD;IACrD,wCAAwC;IACxC,EAAE;IACF,yCAAyC;IACzC,EAAE;IACF,4JAA4J;IAC5J,EAAE;IACF,4BAA4B;IAC5B,0DAA0D;IAC1D,wDAAwD;IACxD,kDAAkD;IAClD,sDAAsD;IACtD,yDAAyD;IACzD,EAAE;IACF,iCAAiC;IACjC,sCAAsC;IACtC,oCAAoC;IACpC,qCAAqC;IACrC,mCAAmC;IACnC,+BAA+B;IAC/B,EAAE;IACF,iDAAiD;IACjD,EAAE;IACF,uDAAuD;IACvD,gDAAgD;IAChD,8BAA8B;IAC9B,wDAAwD;IACxD,EAAE;IACF,yBAAyB;IACzB,EAAE;IACF,iEAAiE;IACjE,4EAA4E;IAC5E,uDAAuD;IACvD,4CAA4C;IAC5C,wDAAwD;IACxD,EAAE;IACF,KAAK;IACL,EAAE;IACF,mBAAmB;IACnB,EAAE;IACF,+BAA+B;IAC/B,+BAA+B;IAC/B,2IAA2I;IAC3I,6HAA6H;IAC7H,uGAAuG;IACvG,0GAA0G;IAC1G,8EAA8E;IAC9E,EAAE;CACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Skill templates index — all 5 distributable skills.
3
+ */
4
+ import { DOMAIN_FEATURE_DESIGN_SKILL } from './domain-feature-design.js';
5
+ import { ORGANON_FILE_CREATION_SKILL } from './organon-file-creation.js';
6
+ import { QUALITY_REVIEW_SKILL } from './quality-review.js';
7
+ import { SESSION_COMPOUNDING_SKILL } from './session-compounding.js';
8
+ import { VERIFY_AND_HEALTH_SKILL } from './verify-and-health.js';
9
+ export { DOMAIN_FEATURE_DESIGN_SKILL, ORGANON_FILE_CREATION_SKILL, QUALITY_REVIEW_SKILL, SESSION_COMPOUNDING_SKILL, VERIFY_AND_HEALTH_SKILL, };
10
+ /** Map of skill name → { path, content } for all distributable skills. */
11
+ export declare function getSkillTemplates(): Map<string, {
12
+ path: string;
13
+ content: string;
14
+ }>;
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/skills/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,oBAAoB,EACpB,yBAAyB,EACzB,uBAAuB,GACxB,CAAC;AAEF,0EAA0E;AAC1E,wBAAgB,iBAAiB,IAAI,GAAG,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CA6BlF"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Skill templates index — all 5 distributable skills.
3
+ */
4
+ import { DOMAIN_FEATURE_DESIGN_SKILL } from './domain-feature-design.js';
5
+ import { ORGANON_FILE_CREATION_SKILL } from './organon-file-creation.js';
6
+ import { QUALITY_REVIEW_SKILL } from './quality-review.js';
7
+ import { SESSION_COMPOUNDING_SKILL } from './session-compounding.js';
8
+ import { VERIFY_AND_HEALTH_SKILL } from './verify-and-health.js';
9
+ export { DOMAIN_FEATURE_DESIGN_SKILL, ORGANON_FILE_CREATION_SKILL, QUALITY_REVIEW_SKILL, SESSION_COMPOUNDING_SKILL, VERIFY_AND_HEALTH_SKILL, };
10
+ /** Map of skill name → { path, content } for all distributable skills. */
11
+ export function getSkillTemplates() {
12
+ const skills = new Map();
13
+ skills.set('domain-feature-design', {
14
+ path: '.claude/skills/domain-feature-design/SKILL.md',
15
+ content: DOMAIN_FEATURE_DESIGN_SKILL,
16
+ });
17
+ skills.set('organon-file-creation', {
18
+ path: '.claude/skills/organon-file-creation/SKILL.md',
19
+ content: ORGANON_FILE_CREATION_SKILL,
20
+ });
21
+ skills.set('quality-review', {
22
+ path: '.claude/skills/quality-review/SKILL.md',
23
+ content: QUALITY_REVIEW_SKILL,
24
+ });
25
+ skills.set('session-compounding', {
26
+ path: '.claude/skills/session-compounding/SKILL.md',
27
+ content: SESSION_COMPOUNDING_SKILL,
28
+ });
29
+ skills.set('verify-and-health', {
30
+ path: '.claude/skills/verify-and-health/SKILL.md',
31
+ content: VERIFY_AND_HEALTH_SKILL,
32
+ });
33
+ return skills;
34
+ }
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/skills/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,oBAAoB,EACpB,yBAAyB,EACzB,uBAAuB,GACxB,CAAC;AAEF,0EAA0E;AAC1E,MAAM,UAAU,iBAAiB;IAC/B,MAAM,MAAM,GAAG,IAAI,GAAG,EAA6C,CAAC;IAEpE,MAAM,CAAC,GAAG,CAAC,uBAAuB,EAAE;QAClC,IAAI,EAAE,+CAA+C;QACrD,OAAO,EAAE,2BAA2B;KACrC,CAAC,CAAC;IAEH,MAAM,CAAC,GAAG,CAAC,uBAAuB,EAAE;QAClC,IAAI,EAAE,+CAA+C;QACrD,OAAO,EAAE,2BAA2B;KACrC,CAAC,CAAC;IAEH,MAAM,CAAC,GAAG,CAAC,gBAAgB,EAAE;QAC3B,IAAI,EAAE,wCAAwC;QAC9C,OAAO,EAAE,oBAAoB;KAC9B,CAAC,CAAC;IAEH,MAAM,CAAC,GAAG,CAAC,qBAAqB,EAAE;QAChC,IAAI,EAAE,6CAA6C;QACnD,OAAO,EAAE,yBAAyB;KACnC,CAAC,CAAC;IAEH,MAAM,CAAC,GAAG,CAAC,mBAAmB,EAAE;QAC9B,IAAI,EAAE,2CAA2C;QACjD,OAAO,EAAE,uBAAuB;KACjC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Organon File Creation skill template — adapted for distribution.
3
+ *
4
+ * Adapted from .claude/skills/organon-file-creation/SKILL.md:
5
+ * - loads: references organon/ETHOS.md and CLAUDE.md (not book-llms/)
6
+ * - Templates and scopes guidance embedded in body
7
+ */
8
+ export declare const ORGANON_FILE_CREATION_SKILL: string;
9
+ //# sourceMappingURL=organon-file-creation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organon-file-creation.d.ts","sourceRoot":"","sources":["../../../src/templates/skills/organon-file-creation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,2BAA2B,QAiI5B,CAAC"}
@@ -0,0 +1,138 @@
1
+ /**
2
+ * Organon File Creation skill template — adapted for distribution.
3
+ *
4
+ * Adapted from .claude/skills/organon-file-creation/SKILL.md:
5
+ * - loads: references organon/ETHOS.md and CLAUDE.md (not book-llms/)
6
+ * - Templates and scopes guidance embedded in body
7
+ */
8
+ export const ORGANON_FILE_CREATION_SKILL = [
9
+ '---',
10
+ 'name: organon-file-creation',
11
+ 'description: Creates new organon files (ETHOS.md, PHILOSOPHY.md, PROTOCOL.md, README.md) with correct structure, frontmatter, scope inheritance, and bidirectional references. Use when adding a new domain, feature, component, or scope that needs organon documentation.',
12
+ 'protocol_id: PROTO-ORG-6',
13
+ 'protocol_file: organon/protocols/PROTOCOLS.md',
14
+ 'tools: [organon-generate, organon-validate, organon-verify]',
15
+ 'loads:',
16
+ ' - organon/ETHOS.md',
17
+ ' - CLAUDE.md',
18
+ 'methodology_version: "0.3.0"',
19
+ '---',
20
+ '',
21
+ '# Organon File Creation Workflow',
22
+ '',
23
+ '> Creates valid organon files with correct placement, structure, and references.',
24
+ '',
25
+ '---',
26
+ '',
27
+ '## When to Use This Skill',
28
+ '',
29
+ 'Use this skill when:',
30
+ '- **Adding a new domain** that needs its own ETHOS.md',
31
+ '- **Adding a new feature** organon',
32
+ '- **Creating PHILOSOPHY.md** for design rationale',
33
+ '- **Creating PROTOCOL.md** for procedures',
34
+ '- **Adding a new scope directory** that needs a README.md router',
35
+ '',
36
+ '---',
37
+ '',
38
+ '## Scope Classification',
39
+ '',
40
+ '| Scope | Question | Characteristics |',
41
+ '|-------|----------|-----------------|',
42
+ '| **product** | "What is this project?" | Top-level, inherits from meta-organon only |',
43
+ '| **domain** | "What business concepts exist?" | Bounded context, \u22653 unique concepts |',
44
+ '| **feature** | "What can users do?" | Cross-cutting capability |',
45
+ '| **component** | "Where is the code?" | Code module, dependency relationships |',
46
+ '',
47
+ '**Decision heuristic:** Has \u22653 unique concepts + lifecycle \u2192 domain. Crosses multiple domains \u2192 feature.',
48
+ '',
49
+ '---',
50
+ '',
51
+ '## Steps',
52
+ '',
53
+ '### Step 1: Classify Scope',
54
+ '',
55
+ 'Determine product, domain, feature, or component.',
56
+ '',
57
+ '### Step 2: Check Parent Scope',
58
+ '',
59
+ 'Load the parent scope\'s ETHOS.md. New file must inherit, never contradict parent constraints.',
60
+ '',
61
+ '### Step 3: Select Template',
62
+ '',
63
+ '| Artifact | Required Sections |',
64
+ '|----------|-------------------|',
65
+ '| ETHOS.md | Identity (IS/IS NOT), Invariants, Principles, Decision Heuristics |',
66
+ '| PHILOSOPHY.md | The Problem, The Bet, Design Decisions, Trade-offs |',
67
+ '| PROTOCOL.md | Goal, Preconditions, Steps, Verification, Recovery |',
68
+ '| README.md | Contents table with paths, types, descriptions |',
69
+ '',
70
+ '### Step 4: Determine File Placement',
71
+ '',
72
+ 'Follow Pattern A (dedicated `organon/` directory):',
73
+ '',
74
+ ' organon/',
75
+ ' \u251c\u2500\u2500 domains/',
76
+ ' \u2502 \u2514\u2500\u2500 <domain-name>/',
77
+ ' \u2502 \u251c\u2500\u2500 ETHOS.md',
78
+ ' \u2502 \u251c\u2500\u2500 PHILOSOPHY.md',
79
+ ' \u2502 \u2514\u2500\u2500 README.md',
80
+ ' \u2514\u2500\u2500 protocols/',
81
+ ' \u2514\u2500\u2500 PROTOCOLS.md',
82
+ '',
83
+ '### Step 5: Generate Frontmatter',
84
+ '',
85
+ 'Required fields: type, scope, name, version, summary, token_estimate.',
86
+ '',
87
+ ' ---',
88
+ ' type: [constraints|rationale|procedures|navigation]',
89
+ ' scope: [product|domain|feature|component]',
90
+ ' name: [kebab-case-name]',
91
+ ' version: "1.0"',
92
+ ' summary: [One-sentence, max 200 chars]',
93
+ ' token_estimate: [number, ~12 tokens/line]',
94
+ ' inherits_from: [parent-scope-names]',
95
+ ' ---',
96
+ '',
97
+ '### Step 6: Write Content',
98
+ '',
99
+ '**For ETHOS.md:** \u22653 IS statements, \u22653 IS NOT statements, \u22653 invariants with enforcement, \u22653 prioritized principles, \u22655 heuristics.',
100
+ '',
101
+ '**For PHILOSOPHY.md:** Problem with root causes, bet (falsifiable), \u22655 trade-offs, \u22653 alternatives.',
102
+ '',
103
+ '**For PROTOCOL.md:** Goal, \u22653 preconditions, numbered steps, verification checklist, recovery table.',
104
+ '',
105
+ '**For README.md:** Under 100 lines, contents table with all children.',
106
+ '',
107
+ '### Step 7: Validate',
108
+ '',
109
+ ' organon validate <path-to-new-file>',
110
+ ' organon verify --gate triplets',
111
+ '',
112
+ '### Step 8: Check Bidirectional References',
113
+ '',
114
+ 'If setting `inherits_from`, ensure parent exists. If protocol has `workflow`, ensure workflow has matching `protocol_id`.',
115
+ '',
116
+ '---',
117
+ '',
118
+ '## Verification',
119
+ '',
120
+ '- [ ] `organon validate` passes',
121
+ '- [ ] File is in correct directory per scope',
122
+ '- [ ] Frontmatter has all required fields',
123
+ '- [ ] Section headings match template for artifact type',
124
+ '- [ ] Parent scope constraints inherited, not contradicted',
125
+ '',
126
+ '---',
127
+ '',
128
+ '## Error Recovery',
129
+ '',
130
+ '| Failure | Recovery Action |',
131
+ '|---------|-----------------|',
132
+ '| Wrong scope classification | Apply heuristic: \u22653 concepts \u2192 domain, cross-cutting \u2192 feature. |',
133
+ '| `organon validate` fails | Check frontmatter for missing fields, wrong type enum. |',
134
+ '| Parent scope contradiction | Remove contradicting constraint. Child scopes can only add, never relax. |',
135
+ '| Bidirectional reference broken | Add missing back-reference. Run `organon verify --gate triplets`. |',
136
+ '',
137
+ ].join('\n');
138
+ //# sourceMappingURL=organon-file-creation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organon-file-creation.js","sourceRoot":"","sources":["../../../src/templates/skills/organon-file-creation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,KAAK;IACL,6BAA6B;IAC7B,6QAA6Q;IAC7Q,0BAA0B;IAC1B,+CAA+C;IAC/C,6DAA6D;IAC7D,QAAQ;IACR,sBAAsB;IACtB,eAAe;IACf,8BAA8B;IAC9B,KAAK;IACL,EAAE;IACF,kCAAkC;IAClC,EAAE;IACF,kFAAkF;IAClF,EAAE;IACF,KAAK;IACL,EAAE;IACF,2BAA2B;IAC3B,EAAE;IACF,sBAAsB;IACtB,uDAAuD;IACvD,oCAAoC;IACpC,mDAAmD;IACnD,2CAA2C;IAC3C,kEAAkE;IAClE,EAAE;IACF,KAAK;IACL,EAAE;IACF,yBAAyB;IACzB,EAAE;IACF,wC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FAAuF;IACvF,2GAA2G;IAC3G,wGAAwG;IACxG,EAAE;CACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Quality Review skill template — adapted for distribution.
3
+ *
4
+ * Adapted from .claude/skills/quality-review/SKILL.md:
5
+ * - loads: references organon/ETHOS.md and CLAUDE.md (not book-llms/)
6
+ * - Anti-pattern checklist embedded in body
7
+ */
8
+ export declare const QUALITY_REVIEW_SKILL: string;
9
+ //# sourceMappingURL=quality-review.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quality-review.d.ts","sourceRoot":"","sources":["../../../src/templates/skills/quality-review.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,oBAAoB,QAsHrB,CAAC"}