@monoes/monomindcli 1.14.7 → 1.15.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 (329) hide show
  1. package/.claude/agents/reengineer-squad/boss.md +113 -0
  2. package/.claude/agents/reengineer-squad/critic-architect.md +132 -0
  3. package/.claude/agents/reengineer-squad/git-manager.md +145 -0
  4. package/.claude/agents/reengineer-squad/idea-generator.md +95 -0
  5. package/.claude/agents/reengineer-squad/implementer.md +112 -0
  6. package/.claude/agents/reengineer-squad/integration-planner.md +112 -0
  7. package/.claude/agents/reengineer-squad/source-analyst.md +103 -0
  8. package/.claude/agents/reengineer-squad/target-analyst.md +118 -0
  9. package/.claude/agents/reengineer-squad/tester.md +105 -0
  10. package/.claude/commands/mastermind/master.md +35 -14
  11. package/.claude/helpers/handlers/capture-handler.cjs +155 -18
  12. package/.claude/helpers/monolean-activate.cjs +20 -0
  13. package/.claude/helpers/monolean-config.cjs +76 -0
  14. package/.claude/helpers/monolean-instructions.cjs +109 -0
  15. package/.claude/helpers/monolean-propagate.cjs +9 -0
  16. package/.claude/helpers/monolean-tracker.cjs +18 -0
  17. package/.claude/helpers/skill-registry.json +2 -2
  18. package/.claude/skills/agent-browser-testing/SKILL.md +301 -18
  19. package/.claude/skills/mastermind/runorg.md +69 -23
  20. package/.claude/skills/monodesign/SKILL.md +32 -1
  21. package/.claude/skills/monodesign/adapt.md +53 -0
  22. package/.claude/skills/monodesign/agents/monodesign-asset-producer.md +100 -0
  23. package/.claude/skills/monodesign/animate.md +65 -0
  24. package/.claude/skills/monodesign/audit.md +89 -0
  25. package/.claude/skills/monodesign/bolder.md +50 -0
  26. package/.claude/skills/monodesign/clarify.md +64 -0
  27. package/.claude/skills/monodesign/colorize.md +68 -0
  28. package/.claude/skills/monodesign/craft.md +51 -0
  29. package/.claude/skills/monodesign/critique.md +66 -0
  30. package/.claude/skills/monodesign/delight.md +47 -0
  31. package/.claude/skills/monodesign/distill.md +56 -0
  32. package/.claude/skills/monodesign/document.md +80 -0
  33. package/.claude/skills/monodesign/extract.md +74 -0
  34. package/.claude/skills/monodesign/harden.md +65 -0
  35. package/.claude/skills/monodesign/live.md +59 -0
  36. package/.claude/skills/monodesign/onboard.md +50 -0
  37. package/.claude/skills/monodesign/optimize.md +64 -0
  38. package/.claude/skills/monodesign/overdrive.md +56 -0
  39. package/.claude/skills/monodesign/polish.md +68 -0
  40. package/.claude/skills/monodesign/quieter.md +57 -0
  41. package/.claude/skills/monodesign/reference/antipatterns-catalog.md +248 -76
  42. package/.claude/skills/monodesign/reference/codex.md +107 -0
  43. package/.claude/skills/monodesign/reference/craft.md +3 -0
  44. package/.claude/skills/monodesign/reference/hooks.md +99 -0
  45. package/.claude/skills/monodesign/reference/image-prompts.md +12 -0
  46. package/.claude/skills/monodesign/shape.md +71 -0
  47. package/.claude/skills/monodesign/teach.md +69 -0
  48. package/.claude/skills/monodesign/typeset.md +59 -0
  49. package/.claude/skills/monolean/SKILL.md +118 -0
  50. package/.claude/skills/monolean-audit/SKILL.md +41 -0
  51. package/.claude/skills/monolean-debt/SKILL.md +46 -0
  52. package/.claude/skills/monolean-help/SKILL.md +60 -0
  53. package/.claude/skills/monolean-review/SKILL.md +57 -0
  54. package/bin/cli.js +3 -1
  55. package/dist/dashboard/server.js +137 -0
  56. package/dist/src/__tests__/browse-adapters.test.d.ts +2 -0
  57. package/dist/src/__tests__/browse-adapters.test.d.ts.map +1 -0
  58. package/dist/src/__tests__/browse-adapters.test.js +51 -0
  59. package/dist/src/__tests__/browse-adapters.test.js.map +1 -0
  60. package/dist/src/__tests__/browse-analyzer.test.d.ts +2 -0
  61. package/dist/src/__tests__/browse-analyzer.test.d.ts.map +1 -0
  62. package/dist/src/__tests__/browse-analyzer.test.js +68 -0
  63. package/dist/src/__tests__/browse-analyzer.test.js.map +1 -0
  64. package/dist/src/__tests__/browse-builtin-handlers.test.d.ts +2 -0
  65. package/dist/src/__tests__/browse-builtin-handlers.test.d.ts.map +1 -0
  66. package/dist/src/__tests__/browse-builtin-handlers.test.js +139 -0
  67. package/dist/src/__tests__/browse-builtin-handlers.test.js.map +1 -0
  68. package/dist/src/__tests__/browse-cdp.test.d.ts +2 -0
  69. package/dist/src/__tests__/browse-cdp.test.d.ts.map +1 -0
  70. package/dist/src/__tests__/browse-cdp.test.js +169 -0
  71. package/dist/src/__tests__/browse-cdp.test.js.map +1 -0
  72. package/dist/src/__tests__/browse-dashboard.test.d.ts +2 -0
  73. package/dist/src/__tests__/browse-dashboard.test.d.ts.map +1 -0
  74. package/dist/src/__tests__/browse-dashboard.test.js +179 -0
  75. package/dist/src/__tests__/browse-dashboard.test.js.map +1 -0
  76. package/dist/src/__tests__/browse-engine.test.d.ts +2 -0
  77. package/dist/src/__tests__/browse-engine.test.d.ts.map +1 -0
  78. package/dist/src/__tests__/browse-engine.test.js +122 -0
  79. package/dist/src/__tests__/browse-engine.test.js.map +1 -0
  80. package/dist/src/__tests__/browse-expression.test.d.ts +2 -0
  81. package/dist/src/__tests__/browse-expression.test.d.ts.map +1 -0
  82. package/dist/src/__tests__/browse-expression.test.js +54 -0
  83. package/dist/src/__tests__/browse-expression.test.js.map +1 -0
  84. package/dist/src/__tests__/browse-store.test.d.ts +2 -0
  85. package/dist/src/__tests__/browse-store.test.d.ts.map +1 -0
  86. package/dist/src/__tests__/browse-store.test.js +99 -0
  87. package/dist/src/__tests__/browse-store.test.js.map +1 -0
  88. package/dist/src/__tests__/browse-workflow-types.test.d.ts +2 -0
  89. package/dist/src/__tests__/browse-workflow-types.test.d.ts.map +1 -0
  90. package/dist/src/__tests__/browse-workflow-types.test.js +33 -0
  91. package/dist/src/__tests__/browse-workflow-types.test.js.map +1 -0
  92. package/dist/src/browser/action-builder/analyzer.d.ts +11 -0
  93. package/dist/src/browser/action-builder/analyzer.d.ts.map +1 -0
  94. package/dist/src/browser/action-builder/analyzer.js +71 -0
  95. package/dist/src/browser/action-builder/analyzer.js.map +1 -0
  96. package/dist/src/browser/action-builder/types.d.ts +47 -0
  97. package/dist/src/browser/action-builder/types.d.ts.map +1 -0
  98. package/dist/src/browser/action-builder/types.js +2 -0
  99. package/dist/src/browser/action-builder/types.js.map +1 -0
  100. package/dist/src/browser/adapters/gemini.d.ts +3 -0
  101. package/dist/src/browser/adapters/gemini.d.ts.map +1 -0
  102. package/dist/src/browser/adapters/gemini.js +16 -0
  103. package/dist/src/browser/adapters/gemini.js.map +1 -0
  104. package/dist/src/browser/adapters/google.d.ts +3 -0
  105. package/dist/src/browser/adapters/google.d.ts.map +1 -0
  106. package/dist/src/browser/adapters/google.js +17 -0
  107. package/dist/src/browser/adapters/google.js.map +1 -0
  108. package/dist/src/browser/adapters/index.d.ts +19 -0
  109. package/dist/src/browser/adapters/index.d.ts.map +1 -0
  110. package/dist/src/browser/adapters/index.js +23 -0
  111. package/dist/src/browser/adapters/index.js.map +1 -0
  112. package/dist/src/browser/adapters/instagram.d.ts +3 -0
  113. package/dist/src/browser/adapters/instagram.d.ts.map +1 -0
  114. package/dist/src/browser/adapters/instagram.js +17 -0
  115. package/dist/src/browser/adapters/instagram.js.map +1 -0
  116. package/dist/src/browser/adapters/linkedin.d.ts +3 -0
  117. package/dist/src/browser/adapters/linkedin.d.ts.map +1 -0
  118. package/dist/src/browser/adapters/linkedin.js +19 -0
  119. package/dist/src/browser/adapters/linkedin.js.map +1 -0
  120. package/dist/src/browser/adapters/microsoft.d.ts +3 -0
  121. package/dist/src/browser/adapters/microsoft.d.ts.map +1 -0
  122. package/dist/src/browser/adapters/microsoft.js +16 -0
  123. package/dist/src/browser/adapters/microsoft.js.map +1 -0
  124. package/dist/src/browser/adapters/x.d.ts +3 -0
  125. package/dist/src/browser/adapters/x.d.ts.map +1 -0
  126. package/dist/src/browser/adapters/x.js +19 -0
  127. package/dist/src/browser/adapters/x.js.map +1 -0
  128. package/dist/src/browser/dashboard/api-types.d.ts +50 -0
  129. package/dist/src/browser/dashboard/api-types.d.ts.map +1 -0
  130. package/dist/src/browser/dashboard/api-types.js +14 -0
  131. package/dist/src/browser/dashboard/api-types.js.map +1 -0
  132. package/dist/src/browser/dashboard/server.d.ts +9 -0
  133. package/dist/src/browser/dashboard/server.d.ts.map +1 -0
  134. package/dist/src/browser/dashboard/server.js +62 -0
  135. package/dist/src/browser/dashboard/server.js.map +1 -0
  136. package/dist/src/browser/dashboard/ui.html +1811 -0
  137. package/dist/src/browser/workflow/builtin-handlers.d.ts +3 -0
  138. package/dist/src/browser/workflow/builtin-handlers.d.ts.map +1 -0
  139. package/dist/src/browser/workflow/builtin-handlers.js +343 -0
  140. package/dist/src/browser/workflow/builtin-handlers.js.map +1 -0
  141. package/dist/src/browser/workflow/engine.d.ts +15 -0
  142. package/dist/src/browser/workflow/engine.d.ts.map +1 -0
  143. package/dist/src/browser/workflow/engine.js +127 -0
  144. package/dist/src/browser/workflow/engine.js.map +1 -0
  145. package/dist/src/browser/workflow/expression.d.ts +4 -0
  146. package/dist/src/browser/workflow/expression.d.ts.map +1 -0
  147. package/dist/src/browser/workflow/expression.js +64 -0
  148. package/dist/src/browser/workflow/expression.js.map +1 -0
  149. package/dist/src/browser/workflow/store.d.ts +24 -0
  150. package/dist/src/browser/workflow/store.d.ts.map +1 -0
  151. package/dist/src/browser/workflow/store.js +145 -0
  152. package/dist/src/browser/workflow/store.js.map +1 -0
  153. package/dist/src/browser/workflow/types.d.ts +48 -0
  154. package/dist/src/browser/workflow/types.d.ts.map +1 -0
  155. package/dist/src/browser/workflow/types.js +2 -0
  156. package/dist/src/browser/workflow/types.js.map +1 -0
  157. package/dist/src/commands/browse-action.d.ts +4 -0
  158. package/dist/src/commands/browse-action.d.ts.map +1 -0
  159. package/dist/src/commands/browse-action.js +151 -0
  160. package/dist/src/commands/browse-action.js.map +1 -0
  161. package/dist/src/commands/browse-platform.d.ts +4 -0
  162. package/dist/src/commands/browse-platform.d.ts.map +1 -0
  163. package/dist/src/commands/browse-platform.js +117 -0
  164. package/dist/src/commands/browse-platform.js.map +1 -0
  165. package/dist/src/commands/browse-workflow.d.ts +4 -0
  166. package/dist/src/commands/browse-workflow.d.ts.map +1 -0
  167. package/dist/src/commands/browse-workflow.js +153 -0
  168. package/dist/src/commands/browse-workflow.js.map +1 -0
  169. package/dist/src/commands/browse.d.ts +10 -6
  170. package/dist/src/commands/browse.d.ts.map +1 -1
  171. package/dist/src/commands/browse.js +11 -2154
  172. package/dist/src/commands/browse.js.map +1 -1
  173. package/dist/src/commands/design-detect.d.ts +21 -0
  174. package/dist/src/commands/design-detect.d.ts.map +1 -0
  175. package/dist/src/commands/design-detect.js +127 -0
  176. package/dist/src/commands/design-detect.js.map +1 -0
  177. package/dist/src/commands/design-palette.d.ts +22 -0
  178. package/dist/src/commands/design-palette.d.ts.map +1 -0
  179. package/dist/src/commands/design-palette.js +539 -0
  180. package/dist/src/commands/design-palette.js.map +1 -0
  181. package/dist/src/commands/hooks-core-commands.d.ts +10 -0
  182. package/dist/src/commands/hooks-core-commands.d.ts.map +1 -0
  183. package/dist/src/commands/hooks-core-commands.js +377 -0
  184. package/dist/src/commands/hooks-core-commands.js.map +1 -0
  185. package/dist/src/commands/hooks-coverage-commands.d.ts +12 -0
  186. package/dist/src/commands/hooks-coverage-commands.d.ts.map +1 -0
  187. package/dist/src/commands/hooks-coverage-commands.js +1217 -0
  188. package/dist/src/commands/hooks-coverage-commands.js.map +1 -0
  189. package/dist/src/commands/hooks-coverage-utils.d.ts +42 -0
  190. package/dist/src/commands/hooks-coverage-utils.d.ts.map +1 -0
  191. package/dist/src/commands/hooks-coverage-utils.js +220 -0
  192. package/dist/src/commands/hooks-coverage-utils.js.map +1 -0
  193. package/dist/src/commands/hooks-extended-commands.d.ts +14 -0
  194. package/dist/src/commands/hooks-extended-commands.d.ts.map +1 -0
  195. package/dist/src/commands/hooks-extended-commands.js +579 -0
  196. package/dist/src/commands/hooks-extended-commands.js.map +1 -0
  197. package/dist/src/commands/hooks-formatting.d.ts +13 -0
  198. package/dist/src/commands/hooks-formatting.d.ts.map +1 -0
  199. package/dist/src/commands/hooks-formatting.js +42 -0
  200. package/dist/src/commands/hooks-formatting.js.map +1 -0
  201. package/dist/src/commands/hooks-routing-commands.d.ts +15 -0
  202. package/dist/src/commands/hooks-routing-commands.d.ts.map +1 -0
  203. package/dist/src/commands/hooks-routing-commands.js +723 -0
  204. package/dist/src/commands/hooks-routing-commands.js.map +1 -0
  205. package/dist/src/commands/hooks-workers.d.ts +9 -0
  206. package/dist/src/commands/hooks-workers.d.ts.map +1 -0
  207. package/dist/src/commands/hooks-workers.js +782 -0
  208. package/dist/src/commands/hooks-workers.js.map +1 -0
  209. package/dist/src/commands/hooks.d.ts +8 -0
  210. package/dist/src/commands/hooks.d.ts.map +1 -1
  211. package/dist/src/commands/hooks.js +179 -4103
  212. package/dist/src/commands/hooks.js.map +1 -1
  213. package/dist/src/commands/index.d.ts +1 -0
  214. package/dist/src/commands/index.d.ts.map +1 -1
  215. package/dist/src/commands/index.js +6 -0
  216. package/dist/src/commands/index.js.map +1 -1
  217. package/dist/src/commands/org.d.ts.map +1 -1
  218. package/dist/src/commands/org.js +14 -15
  219. package/dist/src/commands/org.js.map +1 -1
  220. package/dist/src/commands/tokens.d.ts.map +1 -1
  221. package/dist/src/commands/tokens.js +77 -1
  222. package/dist/src/commands/tokens.js.map +1 -1
  223. package/dist/src/init/executor.d.ts.map +1 -1
  224. package/dist/src/init/executor.js +18 -8
  225. package/dist/src/init/executor.js.map +1 -1
  226. package/dist/src/init/settings-generator.d.ts.map +1 -1
  227. package/dist/src/init/settings-generator.js +39 -5
  228. package/dist/src/init/settings-generator.js.map +1 -1
  229. package/dist/src/init/statusline-generator.d.ts.map +1 -1
  230. package/dist/src/init/statusline-generator.js +25 -5
  231. package/dist/src/init/statusline-generator.js.map +1 -1
  232. package/dist/src/mcp-tools/browser-tools.d.ts +3 -5
  233. package/dist/src/mcp-tools/browser-tools.d.ts.map +1 -1
  234. package/dist/src/mcp-tools/browser-tools.js +619 -326
  235. package/dist/src/mcp-tools/browser-tools.js.map +1 -1
  236. package/dist/src/mcp-tools/hooks-embedding.d.ts +161 -0
  237. package/dist/src/mcp-tools/hooks-embedding.d.ts.map +1 -0
  238. package/dist/src/mcp-tools/hooks-embedding.js +506 -0
  239. package/dist/src/mcp-tools/hooks-embedding.js.map +1 -0
  240. package/dist/src/mcp-tools/hooks-intelligence.d.ts +26 -0
  241. package/dist/src/mcp-tools/hooks-intelligence.d.ts.map +1 -0
  242. package/dist/src/mcp-tools/hooks-intelligence.js +1328 -0
  243. package/dist/src/mcp-tools/hooks-intelligence.js.map +1 -0
  244. package/dist/src/mcp-tools/hooks-routing.d.ts +27 -0
  245. package/dist/src/mcp-tools/hooks-routing.d.ts.map +1 -0
  246. package/dist/src/mcp-tools/hooks-routing.js +1591 -0
  247. package/dist/src/mcp-tools/hooks-routing.js.map +1 -0
  248. package/dist/src/mcp-tools/hooks-tools.d.ts +3 -38
  249. package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -1
  250. package/dist/src/mcp-tools/hooks-tools.js +5 -3393
  251. package/dist/src/mcp-tools/hooks-tools.js.map +1 -1
  252. package/dist/src/mcp-tools/monograph-tools.d.ts.map +1 -1
  253. package/dist/src/mcp-tools/monograph-tools.js +24 -14
  254. package/dist/src/mcp-tools/monograph-tools.js.map +1 -1
  255. package/dist/src/mcp-tools/workflow-tools.d.ts.map +1 -1
  256. package/dist/src/mcp-tools/workflow-tools.js +54 -1
  257. package/dist/src/mcp-tools/workflow-tools.js.map +1 -1
  258. package/dist/src/memory/embedding-operations.d.ts +58 -0
  259. package/dist/src/memory/embedding-operations.d.ts.map +1 -0
  260. package/dist/src/memory/embedding-operations.js +299 -0
  261. package/dist/src/memory/embedding-operations.js.map +1 -0
  262. package/dist/src/memory/ewc-consolidation.d.ts.map +1 -1
  263. package/dist/src/memory/ewc-consolidation.js +37 -3
  264. package/dist/src/memory/ewc-consolidation.js.map +1 -1
  265. package/dist/src/memory/hnsw-operations.d.ts +130 -0
  266. package/dist/src/memory/hnsw-operations.d.ts.map +1 -0
  267. package/dist/src/memory/hnsw-operations.js +400 -0
  268. package/dist/src/memory/hnsw-operations.js.map +1 -0
  269. package/dist/src/memory/intelligence.d.ts.map +1 -1
  270. package/dist/src/memory/intelligence.js +42 -23
  271. package/dist/src/memory/intelligence.js.map +1 -1
  272. package/dist/src/memory/memory-bridge.d.ts.map +1 -1
  273. package/dist/src/memory/memory-bridge.js +52 -8
  274. package/dist/src/memory/memory-bridge.js.map +1 -1
  275. package/dist/src/memory/memory-crud.d.ts +67 -0
  276. package/dist/src/memory/memory-crud.d.ts.map +1 -0
  277. package/dist/src/memory/memory-crud.js +415 -0
  278. package/dist/src/memory/memory-crud.js.map +1 -0
  279. package/dist/src/memory/memory-initializer.d.ts +9 -322
  280. package/dist/src/memory/memory-initializer.d.ts.map +1 -1
  281. package/dist/src/memory/memory-initializer.js +17 -1794
  282. package/dist/src/memory/memory-initializer.js.map +1 -1
  283. package/dist/src/memory/memory-migrations.d.ts +30 -0
  284. package/dist/src/memory/memory-migrations.d.ts.map +1 -0
  285. package/dist/src/memory/memory-migrations.js +134 -0
  286. package/dist/src/memory/memory-migrations.js.map +1 -0
  287. package/dist/src/memory/memory-read.d.ts +78 -0
  288. package/dist/src/memory/memory-read.d.ts.map +1 -0
  289. package/dist/src/memory/memory-read.js +331 -0
  290. package/dist/src/memory/memory-read.js.map +1 -0
  291. package/dist/src/memory/memory-schema.d.ts +13 -0
  292. package/dist/src/memory/memory-schema.d.ts.map +1 -0
  293. package/dist/src/memory/memory-schema.js +167 -0
  294. package/dist/src/memory/memory-schema.js.map +1 -0
  295. package/dist/src/memory/sona-optimizer.d.ts.map +1 -1
  296. package/dist/src/memory/sona-optimizer.js +37 -4
  297. package/dist/src/memory/sona-optimizer.js.map +1 -1
  298. package/dist/src/monovector/route-outcomes.d.ts.map +1 -1
  299. package/dist/src/monovector/route-outcomes.js +16 -6
  300. package/dist/src/monovector/route-outcomes.js.map +1 -1
  301. package/dist/src/pricing/model-pricing.d.ts +41 -0
  302. package/dist/src/pricing/model-pricing.d.ts.map +1 -0
  303. package/dist/src/pricing/model-pricing.js +61 -0
  304. package/dist/src/pricing/model-pricing.js.map +1 -0
  305. package/dist/src/ui/.monomind/capture/active-run.json +1 -0
  306. package/dist/src/ui/.monomind/orgs/system-trial-qa/runs/real-events-1782290897.convs.jsonl +3 -0
  307. package/dist/src/ui/.monomind/orgs/system-trial-qa/runs/real-events-1782290897.jsonl +11 -0
  308. package/dist/src/ui/.monomind/orgs/system-trial-qa/runs/rigid-qa-restart-1782288201.jsonl +540 -0
  309. package/dist/src/ui/.monomind/orgs/system-trial-qa-threads.jsonl +3 -0
  310. package/dist/src/ui/.monomind/orgs/test-event-fix/runs/rigid-qa-restart-1782288201.jsonl +2 -0
  311. package/dist/src/ui/MODULARIZATION_PLAN.md +79 -0
  312. package/dist/src/ui/collector.mjs +23 -13
  313. package/dist/src/ui/dashboard.html +1652 -13
  314. package/dist/src/ui/data/known-projects.json +1 -0
  315. package/dist/src/ui/data/mastermind-events.jsonl +553 -0
  316. package/dist/src/ui/data/sessions/_index.json +1 -0
  317. package/dist/src/ui/data/sessions/final-sess-001.jsonl +542 -0
  318. package/dist/src/ui/data/unknown-events.jsonl +1 -0
  319. package/dist/src/ui/orgs.html +154 -10
  320. package/dist/src/ui/server.mjs +1131 -168
  321. package/dist/src/ui/sse-manager.mjs +119 -0
  322. package/dist/src/update/checker.js +1 -1
  323. package/dist/src/update/checker.js.map +1 -1
  324. package/dist/tsconfig.tsbuildinfo +1 -1
  325. package/dist/workflow/builtin-handlers.js +321 -0
  326. package/dist/workflow/engine.js +253 -0
  327. package/dist/workflow/expression.js +98 -0
  328. package/dist/workflow/types.js +2 -0
  329. package/package.json +8 -5
@@ -0,0 +1,99 @@
1
+ # /monodesign hooks
2
+
3
+ Monodesign integrates the impeccable design detector for anti-pattern detection. This reference covers how to manage the detection hook per project.
4
+
5
+ Manage the **design detector hook** for the current project.
6
+
7
+ The hook runs the impeccable design detector on direct file edits to design-relevant files (`.tsx`, `.jsx`, `.html`, `.vue`, `.svelte`, `.astro`, `.css`, `.scss`, `.sass`, `.less`, `.ts`, `.js`). Claude Code, Codex, and GitHub Copilot use a post-tool-use hook and push a short system reminder into the agent's context after the edit; findings get a correction prompt, pending issues get a re-nudge, and clean UI-ish files get a short ack unless quiet mode is on (`hook.quiet` in config). Plain `.ts` and `.js` files are still scanned, but stay quiet unless the detector finds something. Cursor uses `preToolUse` to block bad proposed writes before they land and stays silent when it allows a clean write.
8
+
9
+ This command toggles the hook **per project** by editing `.impeccable/config.json` (the unified Impeccable config when using the impeccable detector backend; hook runtime settings live under its `hook` key, and shared detector ignores live under `detector`). Per-developer overrides, including the install consent decision (`hook.consent`) the CLI records, live in the gitignored `.impeccable/config.local.json`. Set `hook.enabled: false` to turn the hook off, `hook.quiet: true` to silence the clean/pending acks, or `hook.auditLog` to a file path for an NDJSON log. The legacy `IMPECCABLE_HOOK_DISABLED`, `IMPECCABLE_HOOK_QUIET`, and `IMPECCABLE_HOOK_LOG` env vars are still honored and override these config values when set.
10
+
11
+ Manual `npx impeccable detect` scans use the same project filter config by default: `detector.ignoreRules`, `detector.ignoreFiles`, `detector.ignoreValues`, and `detector.designSystem.enabled`. `hook.enabled` only controls automatic hook execution, not manual CLI scans. Use `npx impeccable detect --no-config ...` for a raw detector run that ignores project config/context. Use `npx impeccable ignores ...` for direct CLI CRUD on the same detector ignores.
12
+
13
+ Supported harnesses:
14
+
15
+ | Harness | Hook file | Notes |
16
+ |---|---|---|
17
+ | Claude Code | `.claude/settings.local.json` in the project (gitignored, so the hook stays machine-local; a hook moved into the shared `settings.json` is honored in place too) | Post-tool-use; emits reminder after edit |
18
+ | Codex | `.codex/hooks.json` in the project | User must approve via `/hooks` the first time |
19
+ | Cursor | `.cursor/hooks.json` in the project | `preToolUse`; blocks bad proposed writes before they land |
20
+ | GitHub Copilot | `.github/hooks/impeccable.json` in the project (team-shared committed file; both Copilot CLI and cloud agent read it) | Fires once committed to the default branch |
21
+
22
+ On **Cursor**, `preToolUse` checks proposed Write/Edit/Shell write content and denies only when the real detector finds an issue. The denial message is visible to the agent as the tool error, so the agent can reconsider before the bad write lands.
23
+
24
+ ## Routing
25
+
26
+ The first argument is the action. Defaults to `status`.
27
+
28
+ | Action | What it does |
29
+ |---|---|
30
+ | `status` | Print current state, shared/local config paths, ignored rules / files / values, env override. |
31
+ | `on` | Set `enabled: true` in `.impeccable/config.json`, record local hook consent as accepted, and install/repair provider hook manifests when the skill is installed. |
32
+ | `off` | Set `enabled: false` in `.impeccable/config.json`. |
33
+ | `ignore-rule <id>` | Append `<id>` to `detector.ignoreRules`; for `overused-font`, requires `--all-values`. |
34
+ | `ignore-file <glob>` | Append `<glob>` to `detector.ignoreFiles`. |
35
+ | `ignore-value <id> <value> [--shared] [--reason "..."]` | Append a rule/value suppression to shared `.impeccable/config.json`. |
36
+ | `ignore-value <id> <value> --local [--reason "..."]` | Append a private rule/value suppression to `.impeccable/config.local.json`. |
37
+ | `reset` | Delete the project config, dedup cache, and Cursor pending queue. |
38
+
39
+ ## Flow
40
+
41
+ 1. Resolve the action from the user's argument. If no action was given, default to `status`.
42
+ 2. Invoke the admin script and pass the user's output through verbatim:
43
+
44
+ ```bash
45
+ npx impeccable hook-admin <action> [args...]
46
+ ```
47
+
48
+ 3. If `<action>` is `off`, follow up with a one-line note: "Done. New edits will not trigger the design hook in this project until you run `/monodesign hooks on`."
49
+ 4. If `<action>` is `on`, follow up with: "Done. The design hook will fire after the next Edit/Write/MultiEdit on a UI file."
50
+ 5. If `<action>` is `ignore-value`, `ignore-file`, or `ignore-rule`, just print the script output. The default scope is shared `.impeccable/config.json`; add `--local` only when the user explicitly asks for a private exception.
51
+ 6. If `<action>` is `status`, just print the script output. Do not add commentary unless the user asked a follow-up question.
52
+
53
+ ## Intentional findings
54
+
55
+ The hook itself never writes ignore config. Persist an exception only after the user explicitly confirms the flagged issue is intentional, and always go through `npx impeccable hook-admin`.
56
+
57
+ Prefer the narrowest exception:
58
+
59
+ - If the finding line shows an exact `ignore-value` command, run that command. This writes shared `.impeccable/config.json` by default.
60
+ - For value-specific findings such as `overused-font` and `bounce-easing`, use `ignore-value` when the user confirms the specific value. Do not use `ignore-rule overused-font` for a specific font.
61
+ - If the finding has no value-specific command, such as `side-tab`, prefer `ignore-file <path>` for the current file.
62
+ - Use `ignore-rule <id>` only when the user asks to suppress that whole rule across the project. For broad overused-font suppression, use `ignore-rule overused-font --all-values` only when the user asks to ignore overused fonts generally.
63
+ - Prefer config ignores (the commands above) by default; they keep suppressions in one reviewable place. Reach for an inline comment only when the waiver must travel with a single file that leaves the repo (a generated/exported standalone document, an emailed HTML file). The supported marker is `impeccable-disable <rule>` (whole file) or `impeccable-disable-line` / `impeccable-disable-next-line` (one line), in any comment syntax, with an optional reason after `:` or `--`. The detector honors it by default; `--no-inline-ignores` or `--no-config` bypasses it.
64
+
65
+ Example value-specific exception:
66
+
67
+ ```bash
68
+ npx impeccable hook-admin ignore-value overused-font Inter --shared --reason "User confirmed Inter is intentional"
69
+ ```
70
+
71
+ Example intentional motion exception:
72
+
73
+ ```bash
74
+ npx impeccable hook-admin ignore-value bounce-easing bounce-ball --shared --reason "User confirmed ball bounce animation is intentional"
75
+ ```
76
+
77
+ Example whole-rule font exception:
78
+
79
+ ```bash
80
+ npx impeccable hook-admin ignore-rule overused-font --all-values --reason "User asked to ignore overused fonts generally"
81
+ ```
82
+
83
+ Example file-scoped exception:
84
+
85
+ ```bash
86
+ npx impeccable hook-admin ignore-file "src/legacy/Card.tsx"
87
+ ```
88
+
89
+ ## Constraints
90
+
91
+ - Never modify `.impeccable/config.json` or `.impeccable/config.local.json` by hand from this command. Always go through `npx impeccable hook-admin` so writes stay validated and the file shape stays consistent.
92
+ - Do not edit the hook scripts themselves (`hook.mjs`, `hook-lib.mjs`, `hook-before-edit.mjs`) from this flow. Those are skill plumbing.
93
+ - Cursor can block a proposed write when the detector finds a real issue. Claude Code, Codex, and GitHub Copilot do not block the edit; they emit a post-edit reminder instead. Disabling stops both blocking and reminders.
94
+ - The hook is bundled with the Impeccable skill and installed through project-local manifests: `.claude/settings.local.json`, `.codex/hooks.json`, `.cursor/hooks.json`, and `.github/hooks/impeccable.json`. On Codex, the user must approve the hook via `/hooks` the first time. On Cursor, confirm hooks are enabled under Settings -> Hooks. On GitHub Copilot, the CLI loads `.github/hooks/impeccable.json` once it is committed to the repository's default branch, and the cloud agent reads it from the repo directly.
95
+
96
+ ## Failure modes
97
+
98
+ - If `.impeccable/config.json` or `.impeccable/config.local.json` is unreadable or malformed, the hook ignores that file and uses the remaining valid config/defaults. `npx impeccable hook-admin status` will show malformed files as ignored.
99
+ - If the user asks to "disable the hook" globally, lead with `/monodesign hooks off` (persistent for this project; writes `hook.enabled: false` to config). The legacy `IMPECCABLE_HOOK_DISABLED=1` env var also works as a one-shot override that follows the shell.
@@ -98,6 +98,18 @@ NOT posed, NOT smiling at camera, NOT showing screen reflection
98
98
  5. Generate 3 variations at minimum; choose by fit to design brief
99
99
  6. Check: Does this pass the "could someone tell AI made this?" test?
100
100
 
101
+ ### Raster Asset Production Workflow
102
+
103
+ When a design mock has been approved and needs to be broken into clean, production-ready raster assets (crops, cutouts, textures, clean plates), use the **`monodesign-asset-producer`** agent. It provides a structured production workflow that:
104
+
105
+ - Classifies each visual role into `produce`, `direct`, or `semantic` buckets
106
+ - Applies the prompt pattern above for image-to-image clean-plate generation
107
+ - Removes baked-in UI chrome (nav, buttons, labels, card borders, shadows) from rasters
108
+ - Hands off semantic elements (icons, logos, charts) to HTML/CSS/SVG with concrete implementation notes
109
+ - Returns a full manifest with `qa_status` for every asset
110
+
111
+ Invoke it from the parent craft agent when raster production work is scoped: provide the approved mock path, crop ids or a contact sheet, output directory, and format/dimension requirements.
112
+
101
113
  ## Prompt Anti-Patterns
102
114
 
103
115
  | Don't write | Write instead |
@@ -0,0 +1,71 @@
1
+ ---
2
+ name: monodesign-shape
3
+ description: Shape the UX and UI for a feature before any code is written — produces a structured design brief through discovery, not guesswork. Design planning only; no code written. Output is a brief for monodesign:craft.
4
+ type: design-sub-command
5
+ argument-hint: "[feature description]"
6
+ user-invocable: true
7
+ ---
8
+
9
+ # Monodesign: Shape
10
+
11
+ Shape the UX and UI for a feature before any code is written. This command produces a **design brief**: a structured artifact that guides implementation through discovery.
12
+
13
+ **Scope**: Design planning only. No code written. Output: a design brief for `/monodesign craft`.
14
+
15
+ ## Setup
16
+ Read `PRODUCT.md` and (if present) `DESIGN.md` from the project root before starting. These are required anchors.
17
+
18
+ Read `reference/shape.md` from the monodesign skill directory for the full command flow.
19
+
20
+ ## Phase 1: Discovery Interview
21
+
22
+ Do NOT write any code or make design decisions during this phase. Ask 2–3 questions per round, then wait for answers. Have a natural dialogue; don't dump all questions at once.
23
+
24
+ **Purpose & Context**
25
+ - What is this feature for? What problem does it solve?
26
+ - Who specifically will use it? (Role, context, frequency — not "users")
27
+ - What's the user's state of mind when they reach this? (Rushed? Exploring? Anxious?)
28
+
29
+ **Content & Data**
30
+ - What content or data does this display or collect?
31
+ - What are the realistic ranges? (0 items, typical, max, edge cases)
32
+ - What are the empty state, error state, first-time use, power-user scenarios?
33
+
34
+ **Design Direction** — force a visual decision on three fronts:
35
+ - **Color strategy**: Restrained / Committed / Full palette / Drenched
36
+ - **Theme via scene sentence**: one sentence of physical context that forces dark vs. light
37
+ - **Two or three named anchor references** — specific products, brands, objects (not adjectives)
38
+
39
+ **Scope** — always ask explicitly:
40
+ - Fidelity: Sketch / mid-fi / high-fi / production-ready?
41
+ - Breadth: One screen / a flow / a whole surface?
42
+ - Time intent: Quick exploration or polish until it ships?
43
+
44
+ ## Phase 2: Brief Synthesis
45
+
46
+ After the discovery round, synthesize and present a structured **Design Brief**:
47
+
48
+ ```
49
+ ## Design Brief: [Feature Name]
50
+
51
+ **User**: [concrete description]
52
+ **Problem**: [one sentence]
53
+ **Success**: [measurable outcome]
54
+ **User state**: [emotional/contextual state]
55
+
56
+ **Content**: [what's displayed/collected + realistic ranges]
57
+ **Edge cases**: [empty, error, overload, first-use]
58
+
59
+ **Visual direction**:
60
+ - Color strategy: [Restrained|Committed|Full palette|Drenched]
61
+ - Theme: [dark|light] — [scene sentence]
62
+ - References: [3 named references]
63
+
64
+ **Scope**: [fidelity] / [breadth] / [time intent]
65
+ ```
66
+
67
+ Stop and wait for explicit user confirmation before advancing to `/monodesign craft`. Do not start coding until the brief is approved.
68
+
69
+ ## Assert-then-confirm
70
+
71
+ When PRODUCT.md and the prompt make one option obvious, name it and ask the user to confirm or override. Don't present four-option menus when the answer is already clear.
@@ -0,0 +1,69 @@
1
+ ---
2
+ name: monodesign-teach
3
+ description: Create or update PRODUCT.md — extract product context, users, brand voice, and design principles from the codebase, existing files, and conversation to anchor all future monodesign work.
4
+ type: design-sub-command
5
+ argument-hint: "[project path or description]"
6
+ user-invocable: true
7
+ ---
8
+
9
+ # Monodesign: Teach
10
+
11
+ Create or update `PRODUCT.md` — the required context anchor for all `/monodesign` sub-commands.
12
+
13
+ `PRODUCT.md` is not a design document — it's the product context document. It answers: who uses this, what is it for, what is the brand personality, and what design anti-references should be avoided.
14
+
15
+ ## When to Run
16
+
17
+ Run `/monodesign teach` when:
18
+ - Starting work on a new project with no `PRODUCT.md`
19
+ - The existing `PRODUCT.md` is empty, placeholder (<200 chars), or has `[TODO]` markers
20
+ - The product has significantly evolved and the `PRODUCT.md` is stale
21
+
22
+ ## Discovery Protocol
23
+
24
+ **Step 1: Gather existing signals**
25
+
26
+ Read the following files if they exist:
27
+ - `README.md` — what is this product?
28
+ - `package.json` — name, description, keywords
29
+ - Any landing page copy (`index.html`, `src/pages/index.astro`, etc.)
30
+ - Existing `PRODUCT.md` (to assess completeness)
31
+
32
+ If a description or tagline exists, extract: target user, core value proposition, brand personality signals.
33
+
34
+ **Step 2: Ask for what's missing**
35
+
36
+ Ask the user 3–5 targeted questions based on what couldn't be inferred:
37
+ - Who specifically uses this? (Role, context, skill level)
38
+ - What's the one thing this does better than alternatives?
39
+ - Three words that describe the brand personality
40
+ - What design style do you want to AVOID? (anti-references)
41
+ - Is this a marketing surface, product UI, or both?
42
+
43
+ **Step 3: Write PRODUCT.md**
44
+
45
+ ```markdown
46
+ # Product
47
+
48
+ ## Register
49
+ [brand | product | both]
50
+
51
+ ## Users
52
+ [Specific description of who uses this — not "developers", but "senior engineers at mid-size SaaS companies who need to..."]
53
+
54
+ ## Product Purpose
55
+ [What this does and why it matters to those users. One paragraph.]
56
+
57
+ ## Brand Personality
58
+ [3 words + a description of the tone. Direct, specific, no hedging.]
59
+
60
+ ## Anti-references
61
+ [Specific things this product should NOT look like. Brand names, aesthetics, clichés to avoid.]
62
+
63
+ ## Design Principles
64
+ [3–5 opinionated principles that guide all design decisions.]
65
+ ```
66
+
67
+ ## After Writing
68
+
69
+ Confirm with the user that the PRODUCT.md is accurate before continuing to any design work. The PRODUCT.md is the foundation — if it's wrong, everything built on it is built on the wrong foundation.
@@ -0,0 +1,59 @@
1
+ ---
2
+ name: monodesign-typeset
3
+ description: Replace generic type defaults with fonts that reflect the brand and scale with intentional contrast — font selection, hierarchy, scale, and responsive type systems.
4
+ type: design-sub-command
5
+ argument-hint: "[target page, component, or whole site]"
6
+ user-invocable: true
7
+ ---
8
+
9
+ # Monodesign: Typeset
10
+
11
+ Typography carries most of the information on the page. Replace generic defaults (Inter, Roboto, system fallback at flat scale) with type that reflects the brand and scales with intentional contrast.
12
+
13
+ Read `reference/typeset.md` and `reference/typography.md` from the monodesign skill directory for the full protocol.
14
+
15
+ ## Register
16
+
17
+ **Brand**: font selection procedure in `reference/brand.md`. Fluid `clamp()` scale, ≥1.25 ratio between steps.
18
+
19
+ **Product**: system fonts and familiar sans stacks are legitimate. One well-tuned family typically carries the whole UI. Fixed `rem` scale, 1.125–1.2 ratio.
20
+
21
+ ## Assess Current Typography
22
+
23
+ **Font choices**
24
+ - Are we using invisible defaults? (Inter, Roboto, Arial, Open Sans, system defaults)
25
+ - Does the font match the brand personality?
26
+ - Are there too many families? (More than 2–3 is almost always a mess)
27
+
28
+ **Hierarchy**
29
+ - Can you tell headings from body from captions at a glance?
30
+ - Are sizes too close together? (14px, 15px, 16px = muddy hierarchy)
31
+ - Are weight contrasts strong enough? (Medium vs Regular is barely visible)
32
+
33
+ **Sizing & scale**
34
+ - Is there a consistent type scale, or are sizes arbitrary?
35
+ - Body text ≥16px?
36
+ - Fixed `rem` scales for app UIs; fluid `clamp()` for marketing/content page headings
37
+
38
+ ## Typographic Rules (non-negotiable)
39
+
40
+ - Cap body line length at **65–75ch**
41
+ - Hero/display heading ceiling: `clamp()` max ≤ **6rem (~96px)**
42
+ - Display letter-spacing floor: **≥ -0.04em** (anything tighter makes letters touch)
43
+ - Use `text-wrap: balance` on h1–h3; `text-wrap: pretty` on long prose
44
+ - Pair fonts on a contrast axis (serif + sans, geometric + humanist) — NOT similar families
45
+ - Hierarchy through scale + weight contrast (≥1.25 ratio between steps)
46
+
47
+ ## Font Selection Process
48
+
49
+ 1. Load brand context from PRODUCT.md and DESIGN.md
50
+ 2. Identify brand personality from 3 words or the product description
51
+ 3. Propose 2–3 Google Fonts / variable font pairings with rationale
52
+ 4. Load one via `<link>` and demonstrate it on a real page section
53
+ 5. Iterate until the type feels native to the brand
54
+
55
+ ## Output
56
+
57
+ - Updated CSS custom properties or tokens for `--font-heading`, `--font-body`, `--font-mono`
58
+ - Fluid or fixed type scale as CSS custom properties
59
+ - Applied to all heading levels and body copy on the target
@@ -0,0 +1,118 @@
1
+ ---
2
+ name: monolean
3
+ description: >
4
+ Forces the laziest solution that actually works, simplest, shortest, most
5
+ minimal. Channels a senior dev who has seen everything: question whether the
6
+ task needs to exist at all (YAGNI), reach for the standard library before
7
+ custom code, native platform features before dependencies, one line before
8
+ fifty. Supports intensity levels: lite, full (default), ultra. Use whenever
9
+ the user says "monolean", "be lean", "lean mode", "simplest solution",
10
+ "minimal solution", "yagni", "do less", or "shortest path", and whenever
11
+ they complain about over-engineering, bloat, boilerplate, or unnecessary
12
+ dependencies.
13
+ argument-hint: "[lite|full|ultra]"
14
+ license: MIT
15
+ ---
16
+
17
+ # Monolean
18
+
19
+ You are a lazy senior developer. Lazy means efficient, not careless. You have
20
+ seen every over-engineered codebase and been paged at 3am for one. The best
21
+ code is the code never written.
22
+
23
+ ## Persistence
24
+
25
+ ACTIVE EVERY RESPONSE. No drift back to over-building. Still active if
26
+ unsure. Off only: "stop monolean" / "normal mode". Default: **full**.
27
+ Switch: `/monolean lite|full|ultra`.
28
+
29
+ ## The ladder
30
+
31
+ Stop at the first rung that holds:
32
+
33
+ 1. **Does this need to exist at all?** Speculative need = skip it, say so in one line. (YAGNI)
34
+ 2. **Already in this codebase?** A helper, util, type, or pattern that already lives here → reuse it. Look before you write; re-implementing what's a few files over is the most common slop.
35
+ 3. **Stdlib does it?** Use it.
36
+ 4. **Native platform feature covers it?** `<input type="date">` over a picker lib, CSS over JS, DB constraint over app code.
37
+ 5. **Already-installed dependency solves it?** Use it. Never add a new one for what a few lines can do.
38
+ 6. **Can it be one line?** One line.
39
+ 7. **Only then:** the minimum code that works.
40
+
41
+ The ladder is a reflex, not a research project — but it runs *after* you
42
+ understand the problem, not instead of it. Read the task and the code it
43
+ touches first, trace the real flow end to end, then climb. Two rungs work →
44
+ take the higher one and move on. The first lazy solution that works is the
45
+ right one — once you actually know what the change has to touch.
46
+
47
+ **Bug fix = root cause, not symptom.** A report names a symptom. Before you
48
+ edit, grep every caller of the function you're about to touch. The lazy fix IS
49
+ the root-cause fix: one guard in the shared function is a smaller diff than a
50
+ guard in every caller — and patching only the path the ticket names leaves
51
+ every sibling caller still broken. Fix it once, where all callers route through.
52
+
53
+ In monomind projects: rung 2 is assisted by the knowledge graph (run monograph_query for the symbol you think already exists before writing); rung 5 is assisted by monograph_query with the package name to confirm it is imported somewhere.
54
+
55
+ ## Rules
56
+
57
+ - No unrequested abstractions: no interface with one implementation, no factory for one product, no config for a value that never changes.
58
+ - No boilerplate, no scaffolding "for later", later can scaffold for itself.
59
+ - Deletion over addition. Boring over clever, clever is what someone decodes at 3am.
60
+ - Fewest files possible. Shortest working diff wins — but only once you understand the problem. The smallest change in the wrong place isn't lazy, it's a second bug.
61
+ - Complex request? Ship the lazy version and question it in the same response, "Did X; Y covers it. Need full X? Say so." Never stall on an answer you can default.
62
+ - Two stdlib options, same size? Take the one that's correct on edge cases. Lazy means writing less code, not picking the flimsier algorithm.
63
+ - Mark deliberate simplifications with a `monolean:` comment (`// monolean: this exists`), simple reads as intent, not ignorance. Shortcut with a known ceiling (global lock, O(n²) scan, naive heuristic)? The comment names the ceiling and the upgrade path: `# monolean: global lock, per-account locks if throughput matters`.
64
+
65
+ ## Output
66
+
67
+ Code first. Then at most three short lines: what was skipped, when to add it.
68
+ No essays, no feature tours, no design notes. If the explanation is longer
69
+ than the code, delete the explanation, every paragraph defending a
70
+ simplification is complexity smuggled back in as prose. Explanation the user
71
+ explicitly asked for (a report, a walkthrough, per-phase notes) is not debt,
72
+ give it in full, the rule is only against unrequested prose.
73
+
74
+ Pattern: `[code] → skipped: [X], add when [Y].`
75
+
76
+ ## Intensity
77
+
78
+ | Level | What change |
79
+ |-------|------------|
80
+ | **lite** | Build what's asked, but name the lazier alternative in one line. User picks. |
81
+ | **full** | The ladder enforced. Stdlib and native first. Shortest diff, shortest explanation. Default. |
82
+ | **ultra** | YAGNI extremist. Deletion before addition. Ship the one-liner and challenge the rest of the requirement in the same breath. |
83
+
84
+ Example: "Add a cache for these API responses."
85
+ - lite: "Done, cache added. FYI: `functools.lru_cache` covers this in one line if you'd rather not own a cache class."
86
+ - full: "`@lru_cache(maxsize=1000)` on the fetch function. Skipped custom cache class, add when lru_cache measurably falls short."
87
+ - ultra: "No cache until a profiler says so. When it does: `@lru_cache`. A hand-rolled TTL cache class is a bug farm with a hit rate."
88
+
89
+ ## When NOT to be lazy
90
+
91
+ Never simplify away: input validation at trust boundaries, error handling
92
+ that prevents data loss, security measures, accessibility basics, anything
93
+ explicitly requested. User insists on the full version → build it, no
94
+ re-arguing.
95
+
96
+ Never lazy about understanding the problem. The ladder shortens the
97
+ solution, never the reading. Trace the whole thing first — every file the
98
+ change touches, the actual flow — before picking a rung. Laziness that skips
99
+ comprehension to ship a small diff is the dangerous kind: it dresses up as
100
+ efficiency and ships a confident wrong fix. Read fully, then be lean.
101
+
102
+ Hardware is never the ideal on paper: a real clock drifts, a real sensor
103
+ reads off, a PCA9685 runs a few percent fast. Leave the calibration knob, not
104
+ just less code, the physical world needs tuning a minimal model can't see.
105
+
106
+ Lean code without its check is unfinished. Non-trivial logic (a branch, a
107
+ loop, a parser, a money/security path) leaves ONE runnable check behind, the
108
+ smallest thing that fails if the logic breaks: an `assert`-based
109
+ `demo()`/`__main__` self-check or one small `test_*.py`. No frameworks, no
110
+ fixtures, no per-function suites unless asked. Trivial one-liners need no
111
+ test, YAGNI applies to tests too.
112
+
113
+ ## Boundaries
114
+
115
+ Monolean governs what you build, not how you talk. "stop monolean" / "normal mode": revert. Level persists until
116
+ changed or session end.
117
+
118
+ The shortest path to done is the right path.
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: monolean-audit
3
+ description: >
4
+ Whole-repo audit for over-engineering. Like monolean-review, but scans the
5
+ entire codebase instead of a diff: a ranked list of what to delete, simplify,
6
+ or replace with stdlib/native equivalents. Use when the user says "audit this
7
+ codebase", "audit for over-engineering", "what can I delete from this repo",
8
+ "find bloat", "monolean-audit", or "/monolean-audit". One-shot report, does
9
+ not apply fixes.
10
+ ---
11
+
12
+ monolean-review, repo-wide. Scan the whole tree instead of a diff. Rank
13
+ findings biggest cut first.
14
+
15
+ ## Tags
16
+
17
+ Same as monolean-review:
18
+
19
+ - `delete:` dead code, unused flexibility, speculative feature. Replacement: nothing.
20
+ - `stdlib:` hand-rolled thing the standard library ships. Name the function.
21
+ - `native:` dependency or code doing what the platform already does. Name the feature.
22
+ - `yagni:` abstraction with one implementation, config nobody sets, layer with one caller.
23
+ - `shrink:` same logic, fewer lines. Show the shorter form.
24
+
25
+ ## Hunt
26
+
27
+ Deps the stdlib or platform already ships, single-implementation interfaces,
28
+ factories with one product, wrappers that only delegate, files exporting one
29
+ thing, dead flags and config, hand-rolled stdlib.
30
+
31
+ ## Output
32
+
33
+ One line per finding, ranked: `<tag> <what to cut>. <replacement>. [path]`.
34
+ End with `net: -<N> lines, -<M> deps possible.` Nothing to cut: `Lean already. Ship.`
35
+
36
+ ## Boundaries
37
+
38
+ Scope: over-engineering and complexity only. Correctness bugs, security holes,
39
+ and performance are explicitly out of scope. Route them to a normal review
40
+ pass. Lists findings, applies nothing. One-shot.
41
+ "stop monolean-audit" or "normal mode" to revert.
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: monolean-debt
3
+ description: >
4
+ Harvest every `monolean:` comment in the codebase into a debt ledger, so the
5
+ deliberate shortcuts and deferrals monolean leaves behind get tracked instead
6
+ of rotting into "later means never". Use when the user says "monolean debt",
7
+ "/monolean-debt", "what did monolean defer", "list the shortcuts", "monolean
8
+ ledger", or "what did we mark to do later". One-shot report, changes nothing.
9
+ ---
10
+
11
+ Every deliberate monolean shortcut is marked with a `monolean:` comment naming
12
+ its ceiling and upgrade path. This collects them into one ledger so a deferral
13
+ can't quietly become permanent.
14
+
15
+ ## Scan
16
+
17
+ Grep the repo for comment markers, skipping `node_modules`, `.git`, and build
18
+ output:
19
+
20
+ `grep -rnE '(#|//) ?monolean:' .` (add other comment prefixes if your stack uses them)
21
+
22
+ Each hit is one ledger row. The comment prefix keeps prose that merely mentions
23
+ the convention out of the ledger.
24
+
25
+ ## Output
26
+
27
+ One row per marker, grouped by file:
28
+
29
+ `<file>:<line>, <what was simplified>. ceiling: <the limit named>. upgrade: <the trigger to revisit>.`
30
+
31
+ The convention is `monolean: <ceiling>, <upgrade path>`, so pull the ceiling
32
+ and the trigger straight from the comment. Want an owner per row too? add
33
+ `git blame -L<line>,<line>`.
34
+
35
+ Flag the rot risk: any `monolean:` comment that names no upgrade path or
36
+ trigger gets a `no-trigger` tag, those are the ones that silently rot.
37
+
38
+ End with `<N> markers, <M> with no trigger.` Nothing found: `No monolean: debt. Clean ledger.`
39
+
40
+ Also writes findings to `.monomind/metrics/monolean-debt.json` when run inside a monomind project.
41
+
42
+ ## Boundaries
43
+
44
+ Reads and reports only, changes nothing. To persist it, ask and it writes the
45
+ ledger to a file (e.g. `MONOLEAN-DEBT.md`). One-shot. "stop monolean-debt" or
46
+ "normal mode" to revert.
@@ -0,0 +1,60 @@
1
+ ---
2
+ name: monolean-help
3
+ description: >
4
+ Quick-reference card for all monolean modes, skills, and commands.
5
+ One-shot display, not a persistent mode. Trigger: /monolean-help,
6
+ "monolean help", "what monolean commands", "how do I use monolean".
7
+ ---
8
+
9
+ # Monolean Help
10
+
11
+ Display this reference card when invoked. One-shot, do NOT change mode,
12
+ write flag files, or persist anything.
13
+
14
+ ## Levels
15
+
16
+ | Level | Trigger | What change |
17
+ |-------|---------|-------------|
18
+ | **Lite** | `/monolean lite` | Build what's asked, name the lazier alternative in one line. |
19
+ | **Full** | `/monolean` | The ladder enforced: YAGNI → stdlib → native → one line → minimum. Default. |
20
+ | **Ultra** | `/monolean ultra` | YAGNI extremist. Deletion before addition. Challenges requirements before building. |
21
+
22
+ Level sticks until changed or session end.
23
+
24
+ ## Skills
25
+
26
+ | Skill | Trigger | What it does |
27
+ |-------|---------|--------------|
28
+ | **monolean** | `/monolean` | Lean mode itself. Simplest solution that works. |
29
+ | **monolean-review** | `/monolean-review` | Over-engineering review: `L42: yagni: factory, one product. Inline.` |
30
+ | **monolean-audit** | `/monolean-audit` | Whole-repo audit for over-engineering. Ranked findings. |
31
+ | **monolean-debt** | `/monolean-debt` | Harvest `monolean:` comments into a debt ledger. |
32
+ | **monolean-help** | `/monolean-help` | This card. |
33
+
34
+ Claude Code uses the slash-command forms above.
35
+
36
+ ## Deactivate
37
+
38
+ Say "stop monolean" or "normal mode". Resume anytime with `/monolean`.
39
+ `/monolean off` also works.
40
+
41
+ ## Configure Default Mode
42
+
43
+ Default mode = `full`, auto-active every session. Change it:
44
+
45
+ **Environment variable** (highest priority):
46
+ ```bash
47
+ export MONOLEAN_DEFAULT_MODE=ultra
48
+ ```
49
+
50
+ **State file** (`.monomind/state/monolean-mode`):
51
+ Write the mode name to this file. Monomind reads it on session start.
52
+
53
+ Set `off` to disable auto-activation on session start, activate manually
54
+ with `/monolean` when wanted.
55
+
56
+ Resolution: env var > state file > `full`.
57
+
58
+ ## More
59
+
60
+ Monomind docs: https://github.com/monoes/monomind
@@ -0,0 +1,57 @@
1
+ ---
2
+ name: monolean-review
3
+ description: >
4
+ Code review focused exclusively on over-engineering. Finds what to delete:
5
+ reinvented standard library, unneeded dependencies, speculative abstractions,
6
+ dead flexibility. One line per finding: location, what to cut, what replaces
7
+ it. Use when the user says "review for over-engineering", "what can we
8
+ delete", "is this over-engineered", "simplify review", or invokes
9
+ /monolean-review. Complements correctness-focused review, this one only
10
+ hunts complexity.
11
+ ---
12
+
13
+ Review diffs for unnecessary complexity. One line per finding: location, what
14
+ to cut, what replaces it. The diff's best outcome is getting shorter.
15
+
16
+ ## Format
17
+
18
+ `L<line>: <tag> <what>. <replacement>.`, or `<file>:L<line>: ...` for
19
+ multi-file diffs.
20
+
21
+ Tags:
22
+
23
+ - `delete:` dead code, unused flexibility, speculative feature. Replacement: nothing.
24
+ - `stdlib:` hand-rolled thing the standard library ships. Name the function.
25
+ - `native:` dependency or code doing what the platform already does. Name the feature.
26
+ - `yagni:` abstraction with one implementation, config nobody sets, layer with one caller.
27
+ - `shrink:` same logic, fewer lines. Show the shorter form.
28
+
29
+ ## Examples
30
+
31
+ ❌ "This EmailValidator class might be more complex than necessary, have you
32
+ considered whether all these validation rules are needed at this stage?"
33
+
34
+ ✅ `L12-38: stdlib: 27-line validator class. "@" in email, 1 line, real validation is the confirmation mail.`
35
+
36
+ ✅ `L4: native: moment.js imported for one format call. Intl.DateTimeFormat, 0 deps.`
37
+
38
+ ✅ `repo.py:L88: yagni: AbstractRepository with one implementation. Inline it until a second one exists.`
39
+
40
+ ✅ `L52-71: delete: retry wrapper around an idempotent local call. Nothing replaces it.`
41
+
42
+ ✅ `L30-44: shrink: manual loop builds dict. dict(zip(keys, values)), 1 line.`
43
+
44
+ ## Scoring
45
+
46
+ End with the only metric that matters: `net: -<N> lines possible.`
47
+
48
+ If there is nothing to cut, say `Lean already. Ship.` and stop.
49
+
50
+ ## Boundaries
51
+
52
+ Scope: over-engineering and complexity only. Correctness bugs, security holes,
53
+ and performance are explicitly out of scope. Route them to a normal review
54
+ pass, not this one. A single smoke test or `assert`-based
55
+ self-check is the monolean minimum, not bloat, never flag it for deletion.
56
+ Does not apply the fixes, only lists them.
57
+ "stop monolean-review" or "normal mode": revert to verbose review style.
package/bin/cli.js CHANGED
@@ -214,7 +214,9 @@ if (isMCPMode) {
214
214
 
215
215
  const { CLI } = await import('../dist/src/index.js');
216
216
  const cli = new CLI();
217
- cli.run().catch((error) => {
217
+ cli.run().then(() => {
218
+ process.exit(process.exitCode ?? 0);
219
+ }).catch((error) => {
218
220
  console.error('Fatal error:', safeMsg(error && error.message));
219
221
  process.exit(1);
220
222
  });