@monoes/monomindcli 2.16.3 → 2.16.5

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 (488) hide show
  1. package/.claude/agents/github/repo-architect.md +1 -1
  2. package/.claude/agents/specialists/integration-architect.md +9 -13
  3. package/.claude/commands/agents/agent-capabilities.md +1 -0
  4. package/.claude/commands/agents/agent-coordination.md +1 -0
  5. package/.claude/commands/agents/agent-spawning.md +1 -0
  6. package/.claude/commands/agents/agent-types.md +1 -0
  7. package/.claude/commands/analysis/bottleneck-detect.md +1 -0
  8. package/.claude/commands/analysis/performance-bottlenecks.md +1 -0
  9. package/.claude/commands/analysis/performance-report.md +1 -0
  10. package/.claude/commands/analysis/token-usage.md +1 -0
  11. package/.claude/commands/automation/README.md +1 -1
  12. package/.claude/commands/automation/auto-agent.md +1 -0
  13. package/.claude/commands/automation/self-healing.md +1 -0
  14. package/.claude/commands/automation/session-memory.md +1 -0
  15. package/.claude/commands/automation/smart-agents.md +1 -0
  16. package/.claude/commands/automation/smart-spawn.md +1 -0
  17. package/.claude/commands/automation/workflow-select.md +22 -27
  18. package/.claude/commands/coordination/README.md +2 -2
  19. package/.claude/commands/coordination/agent-spawn.md +1 -0
  20. package/.claude/commands/coordination/monoswarm-init.md +9 -8
  21. package/.claude/commands/coordination/task-orchestrate.md +6 -5
  22. package/.claude/commands/github/README.md +1 -1
  23. package/.claude/commands/github/github-modes.md +1 -0
  24. package/.claude/commands/github/issue-tracker.md +1 -0
  25. package/.claude/commands/github/pr-manager.md +1 -0
  26. package/.claude/commands/github/release-manager.md +1 -2
  27. package/.claude/commands/github/repo-architect.md +1 -0
  28. package/.claude/commands/github/sync-coordinator.md +1 -0
  29. package/.claude/commands/hooks/overview.md +1 -0
  30. package/.claude/commands/hooks/post-edit.md +1 -0
  31. package/.claude/commands/hooks/post-task.md +1 -0
  32. package/.claude/commands/hooks/pre-edit.md +1 -0
  33. package/.claude/commands/hooks/pre-task.md +1 -0
  34. package/.claude/commands/hooks/session-end.md +1 -0
  35. package/.claude/commands/hooks/setup.md +1 -0
  36. package/.claude/commands/mastermind/adr.md +3 -1
  37. package/.claude/commands/mastermind/brain.md +3 -1
  38. package/.claude/commands/mastermind/budget.md +3 -1
  39. package/.claude/commands/mastermind/code-review.md +3 -1
  40. package/.claude/commands/mastermind/content.md +3 -1
  41. package/.claude/commands/mastermind/createorg.md +4 -2
  42. package/.claude/commands/mastermind/createtask.md +6 -4
  43. package/.claude/commands/mastermind/debug.md +3 -1
  44. package/.claude/commands/mastermind/design.md +3 -1
  45. package/.claude/commands/mastermind/do.md +5 -3
  46. package/.claude/commands/mastermind/execute.md +3 -1
  47. package/.claude/commands/mastermind/finance.md +3 -1
  48. package/.claude/commands/mastermind/graph-status.md +3 -1
  49. package/.claude/commands/mastermind/help.md +17 -20
  50. package/.claude/commands/mastermind/idea.md +3 -1
  51. package/.claude/commands/mastermind/ideate.md +4 -2
  52. package/.claude/commands/mastermind/improve.md +4 -2
  53. package/.claude/commands/mastermind/loops.md +3 -1
  54. package/.claude/commands/mastermind/marketing.md +3 -1
  55. package/.claude/commands/mastermind/master.md +4 -3
  56. package/.claude/commands/mastermind/memory.md +8 -36
  57. package/.claude/commands/mastermind/monoswarm.md +3 -2
  58. package/.claude/commands/mastermind/okf-export.md +3 -1
  59. package/.claude/commands/mastermind/okf-import.md +3 -1
  60. package/.claude/commands/mastermind/ops.md +3 -1
  61. package/.claude/commands/mastermind/orgs.md +3 -1
  62. package/.claude/commands/mastermind/orgstatus.md +3 -1
  63. package/.claude/commands/mastermind/plan.md +3 -1
  64. package/.claude/commands/mastermind/receive-review.md +3 -1
  65. package/.claude/commands/mastermind/release.md +3 -1
  66. package/.claude/commands/mastermind/repeat.md +3 -1
  67. package/.claude/commands/mastermind/research.md +3 -1
  68. package/.claude/commands/mastermind/review.md +3 -1
  69. package/.claude/commands/mastermind/runorg.md +4 -2
  70. package/.claude/commands/mastermind/sales.md +3 -1
  71. package/.claude/commands/mastermind/skill-builder.md +3 -1
  72. package/.claude/commands/mastermind/specialagents.md +3 -1
  73. package/.claude/commands/mastermind/stoporg.md +9 -11
  74. package/.claude/commands/mastermind/techport.md +3 -1
  75. package/.claude/commands/mastermind/topology.md +4 -3
  76. package/.claude/commands/mastermind/understand.md +3 -1
  77. package/.claude/commands/mastermind/worktree.md +3 -1
  78. package/.claude/commands/memory/memory-search.md +1 -0
  79. package/.claude/commands/monitoring/README.md +1 -1
  80. package/.claude/commands/monitoring/agent-metrics.md +1 -0
  81. package/.claude/commands/monitoring/agents.md +1 -0
  82. package/.claude/commands/monitoring/status.md +1 -0
  83. package/.claude/commands/monoswarm/README.md +3 -3
  84. package/.claude/commands/monoswarm/analysis.md +2 -2
  85. package/.claude/commands/monoswarm/consensus.md +1 -0
  86. package/.claude/commands/monoswarm/development.md +3 -3
  87. package/.claude/commands/monoswarm/examples.md +4 -4
  88. package/.claude/commands/monoswarm/init.md +2 -1
  89. package/.claude/commands/monoswarm/maintenance.md +2 -2
  90. package/.claude/commands/monoswarm/memory.md +1 -0
  91. package/.claude/commands/monoswarm/monoswarm.md +5 -5
  92. package/.claude/commands/monoswarm/optimization.md +2 -2
  93. package/.claude/commands/monoswarm/research.md +2 -2
  94. package/.claude/commands/monoswarm/spawn.md +1 -0
  95. package/.claude/commands/monoswarm/status.md +2 -1
  96. package/.claude/commands/monoswarm/stop.md +2 -1
  97. package/.claude/commands/monoswarm/testing.md +2 -2
  98. package/.claude/commands/pair/README.md +8 -9
  99. package/.claude/commands/pair/examples.md +3 -4
  100. package/.claude/commands/pair/session.md +1 -1
  101. package/.claude/commands/workflows/README.md +45 -40
  102. package/.claude/commands/workflows/development.md +42 -55
  103. package/.claude/commands/workflows/research.md +41 -57
  104. package/.claude/commands/workflows/workflow-create.md +43 -45
  105. package/.claude/commands/workflows/workflow-execute.md +58 -68
  106. package/.claude/commands/workflows/workflow-export.md +37 -63
  107. package/.claude/helpers/agent-registry.cjs +434 -0
  108. package/.claude/helpers/build-skill-registry.cjs +10 -6
  109. package/.claude/helpers/handlers/pick-core.cjs +55 -26
  110. package/.claude/helpers/handlers/route-handler.cjs +11 -3
  111. package/.claude/helpers/handlers/session-restore-handler.cjs +4 -1
  112. package/.claude/helpers/hook-handler.cjs +4 -2
  113. package/.claude/helpers/jev-catalog.cjs +14 -6
  114. package/.claude/helpers/jev-picker.cjs +52 -8
  115. package/.claude/helpers/pick-rank.cjs +184 -6
  116. package/.claude/helpers/pick-stats.cjs +86 -2
  117. package/.claude/skills/agentic-jujutsu/SKILL.md +2 -3
  118. package/.claude/skills/github-toolkit/SKILL.md +1 -1
  119. package/.claude/skills/hooks-automation/SKILL.md +243 -938
  120. package/.claude/skills/mastermind-agent-detail/SKILL.md +1 -1
  121. package/.claude/skills/mastermind-agent-select/SKILL.md +16 -1
  122. package/.claude/skills/mastermind-agents/SKILL.md +31 -38
  123. package/.claude/skills/mastermind-createorg/SKILL.md +3 -3
  124. package/.claude/skills/mastermind-env/SKILL.md +4 -18
  125. package/.claude/skills/mastermind-inbox/SKILL.md +31 -52
  126. package/.claude/skills/mastermind-instance/SKILL.md +7 -5
  127. package/.claude/skills/mastermind-new-agent/SKILL.md +3 -3
  128. package/.claude/skills/mastermind-org-settings/SKILL.md +3 -4
  129. package/.claude/skills/mastermind-orgs/SKILL.md +26 -32
  130. package/.claude/skills/mastermind-orgstatus/SKILL.md +49 -140
  131. package/.claude/skills/mastermind-plugins/SKILL.md +1 -1
  132. package/.claude/skills/mastermind-release/SKILL.md +9 -1
  133. package/.claude/skills/mastermind-research/SKILL.md +9 -1
  134. package/.claude/skills/mastermind-review/SKILL.md +9 -1
  135. package/.claude/skills/mastermind-routine-detail/SKILL.md +1 -1
  136. package/.claude/skills/mastermind-runorg/SKILL.md +13 -13
  137. package/.claude/skills/mastermind-stoporg/SKILL.md +7 -62
  138. package/.claude/skills/mastermind-tasks/SKILL.md +6 -8
  139. package/.claude/skills/monodesign/SKILL.md +257 -0
  140. package/.claude/skills/monodesign/adapt.md +53 -0
  141. package/.claude/skills/monodesign/agents/monodesign-asset-producer.md +100 -0
  142. package/.claude/skills/monodesign/agents/monodesign-manual-edit-applier.md +103 -0
  143. package/.claude/skills/monodesign/animate.md +65 -0
  144. package/.claude/skills/monodesign/audit.md +89 -0
  145. package/.claude/skills/monodesign/bolder.md +50 -0
  146. package/.claude/skills/monodesign/clarify.md +64 -0
  147. package/.claude/skills/monodesign/colorize.md +68 -0
  148. package/.claude/skills/monodesign/craft.md +51 -0
  149. package/.claude/skills/monodesign/critique.md +66 -0
  150. package/.claude/skills/monodesign/delight.md +47 -0
  151. package/.claude/skills/monodesign/distill.md +56 -0
  152. package/.claude/skills/monodesign/document.md +83 -0
  153. package/.claude/skills/monodesign/extract.md +74 -0
  154. package/.claude/skills/monodesign/harden.md +65 -0
  155. package/.claude/skills/monodesign/init.md +30 -0
  156. package/.claude/skills/monodesign/layout.md +36 -0
  157. package/.claude/skills/monodesign/live.md +34 -0
  158. package/.claude/skills/monodesign/onboard.md +50 -0
  159. package/.claude/skills/monodesign/optimize.md +64 -0
  160. package/.claude/skills/monodesign/overdrive.md +56 -0
  161. package/.claude/skills/monodesign/polish.md +68 -0
  162. package/.claude/skills/monodesign/quieter.md +57 -0
  163. package/.claude/skills/monodesign/reference/adapt.md +312 -0
  164. package/.claude/skills/monodesign/reference/adapt.native.md +58 -0
  165. package/.claude/skills/monodesign/reference/android.md +40 -0
  166. package/.claude/skills/monodesign/reference/animate.md +203 -0
  167. package/.claude/skills/monodesign/reference/antipatterns-catalog.md +410 -0
  168. package/.claude/skills/monodesign/reference/audit.md +135 -0
  169. package/.claude/skills/monodesign/reference/audit.native.md +139 -0
  170. package/.claude/skills/monodesign/reference/bolder.md +120 -0
  171. package/.claude/skills/monodesign/reference/brand-workflow.md +180 -0
  172. package/.claude/skills/monodesign/reference/brand.md +108 -0
  173. package/.claude/skills/monodesign/reference/clarify.md +288 -0
  174. package/.claude/skills/monodesign/reference/codex.md +105 -0
  175. package/.claude/skills/monodesign/reference/cognitive-load.md +106 -0
  176. package/.claude/skills/monodesign/reference/color-and-contrast.md +105 -0
  177. package/.claude/skills/monodesign/reference/colorize.md +257 -0
  178. package/.claude/skills/monodesign/reference/component-specs.md +260 -0
  179. package/.claude/skills/monodesign/reference/component-states.md +274 -0
  180. package/.claude/skills/monodesign/reference/component-system.md +358 -0
  181. package/.claude/skills/monodesign/reference/copy-formulas.md +160 -0
  182. package/.claude/skills/monodesign/reference/craft.md +123 -0
  183. package/.claude/skills/monodesign/reference/critique.md +780 -0
  184. package/.claude/skills/monodesign/reference/delight.md +302 -0
  185. package/.claude/skills/monodesign/reference/design-principles.md +246 -0
  186. package/.claude/skills/monodesign/reference/distill.md +111 -0
  187. package/.claude/skills/monodesign/reference/document.md +429 -0
  188. package/.claude/skills/monodesign/reference/extract.md +69 -0
  189. package/.claude/skills/monodesign/reference/harden.md +347 -0
  190. package/.claude/skills/monodesign/reference/heuristics-scoring.md +234 -0
  191. package/.claude/skills/monodesign/reference/hooks.md +92 -0
  192. package/.claude/skills/monodesign/reference/image-prompts.md +130 -0
  193. package/.claude/skills/monodesign/reference/init.md +221 -0
  194. package/.claude/skills/monodesign/reference/interaction-design.md +189 -0
  195. package/.claude/skills/monodesign/reference/ios.md +45 -0
  196. package/.claude/skills/monodesign/reference/layout.md +185 -0
  197. package/.claude/skills/monodesign/reference/live.md +710 -0
  198. package/.claude/skills/monodesign/reference/motion-design.md +109 -0
  199. package/.claude/skills/monodesign/reference/onboard.md +234 -0
  200. package/.claude/skills/monodesign/reference/optimize.md +258 -0
  201. package/.claude/skills/monodesign/reference/overdrive.md +130 -0
  202. package/.claude/skills/monodesign/reference/personas.md +179 -0
  203. package/.claude/skills/monodesign/reference/polish.md +241 -0
  204. package/.claude/skills/monodesign/reference/pre-delivery-checklist.md +108 -0
  205. package/.claude/skills/monodesign/reference/product.md +60 -0
  206. package/.claude/skills/monodesign/reference/quieter.md +99 -0
  207. package/.claude/skills/monodesign/reference/responsive-design.md +114 -0
  208. package/.claude/skills/monodesign/reference/shape.md +165 -0
  209. package/.claude/skills/monodesign/reference/spatial-design.md +100 -0
  210. package/.claude/skills/monodesign/reference/teach.md +10 -0
  211. package/.claude/skills/monodesign/reference/token-architecture.md +222 -0
  212. package/.claude/skills/monodesign/reference/typeset.md +301 -0
  213. package/.claude/skills/monodesign/reference/typography.md +159 -0
  214. package/.claude/skills/monodesign/reference/ux-research.md +143 -0
  215. package/.claude/skills/monodesign/reference/ux-rules.md +211 -0
  216. package/.claude/skills/monodesign/reference/ux-writing.md +107 -0
  217. package/.claude/skills/monodesign/scripts/command-metadata.json +94 -0
  218. package/.claude/skills/monodesign/scripts/context-signals.mjs +260 -0
  219. package/.claude/skills/monodesign/scripts/context.mjs +1065 -0
  220. package/.claude/skills/monodesign/scripts/critique-storage.mjs +416 -0
  221. package/.claude/skills/monodesign/scripts/detect-csp.mjs +193 -0
  222. package/.claude/skills/monodesign/scripts/detect.mjs +33 -0
  223. package/.claude/skills/monodesign/scripts/detector/browser/injected/index.mjs +1960 -0
  224. package/.claude/skills/monodesign/scripts/detector/cli/main.mjs +321 -0
  225. package/.claude/skills/monodesign/scripts/detector/design-system.mjs +814 -0
  226. package/.claude/skills/monodesign/scripts/detector/detect-antipatterns-browser.js +5628 -0
  227. package/.claude/skills/monodesign/scripts/detector/detect-antipatterns.mjs +50 -0
  228. package/.claude/skills/monodesign/scripts/detector/engines/browser/detect-url.mjs +259 -0
  229. package/.claude/skills/monodesign/scripts/detector/engines/browser/drivers.mjs +339 -0
  230. package/.claude/skills/monodesign/scripts/detector/engines/regex/detect-text.mjs +636 -0
  231. package/.claude/skills/monodesign/scripts/detector/engines/static-html/css-cascade.mjs +1016 -0
  232. package/.claude/skills/monodesign/scripts/detector/engines/static-html/detect-html.mjs +253 -0
  233. package/.claude/skills/monodesign/scripts/detector/engines/visual/screenshot-contrast.mjs +198 -0
  234. package/.claude/skills/monodesign/scripts/detector/findings.mjs +12 -0
  235. package/.claude/skills/monodesign/scripts/detector/fix/css-regions.mjs +181 -0
  236. package/.claude/skills/monodesign/scripts/detector/fix/fixers.mjs +373 -0
  237. package/.claude/skills/monodesign/scripts/detector/fix/index.mjs +426 -0
  238. package/.claude/skills/monodesign/scripts/detector/node/file-system.mjs +198 -0
  239. package/.claude/skills/monodesign/scripts/detector/profile/profiler.mjs +166 -0
  240. package/.claude/skills/monodesign/scripts/detector/registry/antipatterns.mjs +563 -0
  241. package/.claude/skills/monodesign/scripts/detector/rules/checks.mjs +3024 -0
  242. package/.claude/skills/monodesign/scripts/detector/shared/color.mjs +124 -0
  243. package/.claude/skills/monodesign/scripts/detector/shared/constants.mjs +101 -0
  244. package/.claude/skills/monodesign/scripts/detector/shared/fonts.mjs +30 -0
  245. package/.claude/skills/monodesign/scripts/detector/shared/inline-ignores.mjs +148 -0
  246. package/.claude/skills/monodesign/scripts/detector/shared/page.mjs +7 -0
  247. package/.claude/skills/monodesign/scripts/hook-admin.mjs +694 -0
  248. package/.claude/skills/monodesign/scripts/hook-before-edit.mjs +516 -0
  249. package/.claude/skills/monodesign/scripts/hook-lib.mjs +1785 -0
  250. package/.claude/skills/monodesign/scripts/hook.mjs +61 -0
  251. package/.claude/skills/monodesign/scripts/lib/design-parser.mjs +809 -0
  252. package/.claude/skills/monodesign/scripts/lib/is-generated.mjs +69 -0
  253. package/.claude/skills/monodesign/scripts/lib/monodesign-config.mjs +640 -0
  254. package/.claude/skills/monodesign/scripts/lib/monodesign-paths.mjs +129 -0
  255. package/.claude/skills/monodesign/scripts/lib/provider.mjs +4 -0
  256. package/.claude/skills/monodesign/scripts/lib/target-args.mjs +42 -0
  257. package/.claude/skills/monodesign/scripts/live/browser-script-parts.mjs +50 -0
  258. package/.claude/skills/monodesign/scripts/live/completion.mjs +19 -0
  259. package/.claude/skills/monodesign/scripts/live/event-validation.mjs +137 -0
  260. package/.claude/skills/monodesign/scripts/live/insert-ui.mjs +458 -0
  261. package/.claude/skills/monodesign/scripts/live/manual-apply.mjs +939 -0
  262. package/.claude/skills/monodesign/scripts/live/manual-edit-routes.mjs +357 -0
  263. package/.claude/skills/monodesign/scripts/live/manual-edits-buffer.mjs +152 -0
  264. package/.claude/skills/monodesign/scripts/live/session-store.mjs +293 -0
  265. package/.claude/skills/monodesign/scripts/live/svelte-component.mjs +826 -0
  266. package/.claude/skills/monodesign/scripts/live/sveltekit-adapter.mjs +279 -0
  267. package/.claude/skills/monodesign/scripts/live/ui-core.mjs +180 -0
  268. package/.claude/skills/monodesign/scripts/live/vocabulary.mjs +36 -0
  269. package/.claude/skills/monodesign/scripts/live-accept.mjs +812 -0
  270. package/.claude/skills/monodesign/scripts/live-browser-dom.js +147 -0
  271. package/.claude/skills/monodesign/scripts/live-browser-session.js +124 -0
  272. package/.claude/skills/monodesign/scripts/live-browser.js +11213 -0
  273. package/.claude/skills/monodesign/scripts/live-commit-manual-edits.mjs +1241 -0
  274. package/.claude/skills/monodesign/scripts/live-complete.mjs +75 -0
  275. package/.claude/skills/monodesign/scripts/live-copy-edit-agent.mjs +683 -0
  276. package/.claude/skills/monodesign/scripts/live-discard-manual-edits.mjs +51 -0
  277. package/.claude/skills/monodesign/scripts/live-inject.mjs +596 -0
  278. package/.claude/skills/monodesign/scripts/live-insert.mjs +272 -0
  279. package/.claude/skills/monodesign/scripts/live-manual-edit-evidence.mjs +363 -0
  280. package/.claude/skills/monodesign/scripts/live-poll.mjs +384 -0
  281. package/.claude/skills/monodesign/scripts/live-resume.mjs +94 -0
  282. package/.claude/skills/monodesign/scripts/live-server.mjs +1210 -0
  283. package/.claude/skills/monodesign/scripts/live-status.mjs +61 -0
  284. package/.claude/skills/monodesign/scripts/live-target.mjs +30 -0
  285. package/.claude/skills/monodesign/scripts/live-wrap.mjs +884 -0
  286. package/.claude/skills/monodesign/scripts/live.mjs +297 -0
  287. package/.claude/skills/monodesign/scripts/modern-screenshot.umd.js +14 -0
  288. package/.claude/skills/monodesign/scripts/palette.mjs +635 -0
  289. package/.claude/skills/monodesign/scripts/pin.mjs +221 -0
  290. package/.claude/skills/monodesign/shape.md +71 -0
  291. package/.claude/skills/monodesign/teach.md +18 -0
  292. package/.claude/skills/monodesign/typeset.md +59 -0
  293. package/.claude/skills/monolean-audit/SKILL.md +4 -6
  294. package/.claude/skills/monolean-help/SKILL.md +0 -1
  295. package/.claude/skills/monoswarm/SKILL.md +17 -17
  296. package/.claude/skills/pair-programming/SKILL.md +127 -1100
  297. package/README.md +28 -43
  298. package/dist/src/agents/registry-builder.d.ts +58 -22
  299. package/dist/src/agents/registry-builder.d.ts.map +1 -1
  300. package/dist/src/agents/registry-builder.js +41 -341
  301. package/dist/src/agents/registry-builder.js.map +1 -1
  302. package/dist/src/agents/registry-freshness.d.ts +4 -4
  303. package/dist/src/agents/registry-freshness.d.ts.map +1 -1
  304. package/dist/src/agents/registry-freshness.js +11 -60
  305. package/dist/src/agents/registry-freshness.js.map +1 -1
  306. package/dist/src/commands/doc.d.ts.map +1 -1
  307. package/dist/src/commands/doc.js +6 -15
  308. package/dist/src/commands/doc.js.map +1 -1
  309. package/dist/src/commands/doctor-pick-checks.d.ts +20 -3
  310. package/dist/src/commands/doctor-pick-checks.d.ts.map +1 -1
  311. package/dist/src/commands/doctor-pick-checks.js +138 -45
  312. package/dist/src/commands/doctor-pick-checks.js.map +1 -1
  313. package/dist/src/commands/doctor-project-checks.d.ts +2 -2
  314. package/dist/src/commands/doctor-project-checks.d.ts.map +1 -1
  315. package/dist/src/commands/doctor-project-checks.js +21 -17
  316. package/dist/src/commands/doctor-project-checks.js.map +1 -1
  317. package/dist/src/commands/doctor.d.ts.map +1 -1
  318. package/dist/src/commands/doctor.js +6 -4
  319. package/dist/src/commands/doctor.js.map +1 -1
  320. package/dist/src/commands/hooks-routing-commands.d.ts.map +1 -1
  321. package/dist/src/commands/hooks-routing-commands.js +4 -3
  322. package/dist/src/commands/hooks-routing-commands.js.map +1 -1
  323. package/dist/src/commands/init-upgrade.d.ts.map +1 -1
  324. package/dist/src/commands/init-upgrade.js +10 -0
  325. package/dist/src/commands/init-upgrade.js.map +1 -1
  326. package/dist/src/commands/init-wizard.d.ts.map +1 -1
  327. package/dist/src/commands/init-wizard.js +7 -2
  328. package/dist/src/commands/init-wizard.js.map +1 -1
  329. package/dist/src/commands/init.d.ts.map +1 -1
  330. package/dist/src/commands/init.js +27 -27
  331. package/dist/src/commands/init.js.map +1 -1
  332. package/dist/src/commands/monograph.d.ts.map +1 -1
  333. package/dist/src/commands/monograph.js +16 -21
  334. package/dist/src/commands/monograph.js.map +1 -1
  335. package/dist/src/commands/org.js +1 -1
  336. package/dist/src/commands/org.js.map +1 -1
  337. package/dist/src/commands/pick.d.ts.map +1 -1
  338. package/dist/src/commands/pick.js +4 -3
  339. package/dist/src/commands/pick.js.map +1 -1
  340. package/dist/src/decision/jev.d.ts +20 -0
  341. package/dist/src/decision/jev.d.ts.map +1 -1
  342. package/dist/src/decision/jev.js +12 -0
  343. package/dist/src/decision/jev.js.map +1 -1
  344. package/dist/src/decision/pick-eval.d.ts +23 -0
  345. package/dist/src/decision/pick-eval.d.ts.map +1 -1
  346. package/dist/src/decision/pick-eval.js +24 -1
  347. package/dist/src/decision/pick-eval.js.map +1 -1
  348. package/dist/src/decision/pick-real.d.ts +93 -0
  349. package/dist/src/decision/pick-real.d.ts.map +1 -0
  350. package/dist/src/decision/pick-real.js +253 -0
  351. package/dist/src/decision/pick-real.js.map +1 -0
  352. package/dist/src/decision/picks.d.ts +6 -0
  353. package/dist/src/decision/picks.d.ts.map +1 -1
  354. package/dist/src/decision/picks.js +34 -11
  355. package/dist/src/decision/picks.js.map +1 -1
  356. package/dist/src/init/claudemd-generator.d.ts.map +1 -1
  357. package/dist/src/init/claudemd-generator.js +1 -0
  358. package/dist/src/init/claudemd-generator.js.map +1 -1
  359. package/dist/src/init/copy-assets.d.ts.map +1 -1
  360. package/dist/src/init/copy-assets.js +17 -9
  361. package/dist/src/init/copy-assets.js.map +1 -1
  362. package/dist/src/init/embeddings-step.d.ts +23 -0
  363. package/dist/src/init/embeddings-step.d.ts.map +1 -0
  364. package/dist/src/init/embeddings-step.js +53 -0
  365. package/dist/src/init/embeddings-step.js.map +1 -0
  366. package/dist/src/init/executor.d.ts.map +1 -1
  367. package/dist/src/init/executor.js +35 -5
  368. package/dist/src/init/executor.js.map +1 -1
  369. package/dist/src/init/file-guard.d.ts +93 -0
  370. package/dist/src/init/file-guard.d.ts.map +1 -0
  371. package/dist/src/init/file-guard.js +239 -0
  372. package/dist/src/init/file-guard.js.map +1 -0
  373. package/dist/src/init/helpers-generator.d.ts +7 -0
  374. package/dist/src/init/helpers-generator.d.ts.map +1 -1
  375. package/dist/src/init/helpers-generator.js +13 -0
  376. package/dist/src/init/helpers-generator.js.map +1 -1
  377. package/dist/src/init/init-memory.d.ts +10 -0
  378. package/dist/src/init/init-memory.d.ts.map +1 -1
  379. package/dist/src/init/init-memory.js +44 -1
  380. package/dist/src/init/init-memory.js.map +1 -1
  381. package/dist/src/init/managed-block.d.ts +3 -1
  382. package/dist/src/init/managed-block.d.ts.map +1 -1
  383. package/dist/src/init/managed-block.js +9 -2
  384. package/dist/src/init/managed-block.js.map +1 -1
  385. package/dist/src/init/mcp-generator.d.ts +9 -0
  386. package/dist/src/init/mcp-generator.d.ts.map +1 -1
  387. package/dist/src/init/mcp-generator.js +28 -0
  388. package/dist/src/init/mcp-generator.js.map +1 -1
  389. package/dist/src/init/project-indexes.d.ts +19 -0
  390. package/dist/src/init/project-indexes.d.ts.map +1 -0
  391. package/dist/src/init/project-indexes.js +44 -0
  392. package/dist/src/init/project-indexes.js.map +1 -0
  393. package/dist/src/init/runtime-config-merge.d.ts +21 -0
  394. package/dist/src/init/runtime-config-merge.d.ts.map +1 -0
  395. package/dist/src/init/runtime-config-merge.js +88 -0
  396. package/dist/src/init/runtime-config-merge.js.map +1 -0
  397. package/dist/src/init/settings-generator.js +1 -1
  398. package/dist/src/init/settings-generator.js.map +1 -1
  399. package/dist/src/init/shared-instructions-generator.d.ts +3 -1
  400. package/dist/src/init/shared-instructions-generator.d.ts.map +1 -1
  401. package/dist/src/init/shared-instructions-generator.js +14 -39
  402. package/dist/src/init/shared-instructions-generator.js.map +1 -1
  403. package/dist/src/init/shared.d.ts +17 -2
  404. package/dist/src/init/shared.d.ts.map +1 -1
  405. package/dist/src/init/shared.js +39 -7
  406. package/dist/src/init/shared.js.map +1 -1
  407. package/dist/src/init/types.d.ts +22 -2
  408. package/dist/src/init/types.d.ts.map +1 -1
  409. package/dist/src/init/types.js +11 -3
  410. package/dist/src/init/types.js.map +1 -1
  411. package/dist/src/init/upgrade.d.ts +7 -0
  412. package/dist/src/init/upgrade.d.ts.map +1 -1
  413. package/dist/src/init/upgrade.js +60 -48
  414. package/dist/src/init/upgrade.js.map +1 -1
  415. package/dist/src/init/write-antigravity.d.ts +1 -0
  416. package/dist/src/init/write-antigravity.d.ts.map +1 -1
  417. package/dist/src/init/write-antigravity.js +28 -4
  418. package/dist/src/init/write-antigravity.js.map +1 -1
  419. package/dist/src/init/write-claude.d.ts.map +1 -1
  420. package/dist/src/init/write-claude.js +47 -23
  421. package/dist/src/init/write-claude.js.map +1 -1
  422. package/dist/src/init/write-kimicode.d.ts +27 -0
  423. package/dist/src/init/write-kimicode.d.ts.map +1 -1
  424. package/dist/src/init/write-kimicode.js +119 -92
  425. package/dist/src/init/write-kimicode.js.map +1 -1
  426. package/dist/src/init/write-opencode.d.ts.map +1 -1
  427. package/dist/src/init/write-opencode.js +45 -6
  428. package/dist/src/init/write-opencode.js.map +1 -1
  429. package/dist/src/init/write-runtime-config.d.ts.map +1 -1
  430. package/dist/src/init/write-runtime-config.js +108 -81
  431. package/dist/src/init/write-runtime-config.js.map +1 -1
  432. package/dist/src/knowledge/eval/golden-set.js +0 -15
  433. package/dist/src/knowledge/eval/golden-set.js.map +1 -1
  434. package/dist/src/mcp-tools/embeddings-tools.d.ts.map +1 -1
  435. package/dist/src/mcp-tools/embeddings-tools.js +14 -5
  436. package/dist/src/mcp-tools/embeddings-tools.js.map +1 -1
  437. package/dist/src/mcp-tools/hooks-routing.d.ts.map +1 -1
  438. package/dist/src/mcp-tools/hooks-routing.js +4 -3
  439. package/dist/src/mcp-tools/hooks-routing.js.map +1 -1
  440. package/dist/src/mcp-tools/monograph/build-tools.d.ts.map +1 -1
  441. package/dist/src/mcp-tools/monograph/build-tools.js +16 -9
  442. package/dist/src/mcp-tools/monograph/build-tools.js.map +1 -1
  443. package/dist/src/mcp-tools/org-skill-tools.d.ts.map +1 -1
  444. package/dist/src/mcp-tools/org-skill-tools.js +6 -2
  445. package/dist/src/mcp-tools/org-skill-tools.js.map +1 -1
  446. package/dist/src/mcp-tools/pick-tools.d.ts.map +1 -1
  447. package/dist/src/mcp-tools/pick-tools.js +13 -4
  448. package/dist/src/mcp-tools/pick-tools.js.map +1 -1
  449. package/dist/src/memory/embedding-operations.d.ts +0 -4
  450. package/dist/src/memory/embedding-operations.d.ts.map +1 -1
  451. package/dist/src/memory/embedding-operations.js +11 -85
  452. package/dist/src/memory/embedding-operations.js.map +1 -1
  453. package/dist/src/memory/memory-bridge.d.ts +7 -0
  454. package/dist/src/memory/memory-bridge.d.ts.map +1 -1
  455. package/dist/src/memory/memory-bridge.js +15 -0
  456. package/dist/src/memory/memory-bridge.js.map +1 -1
  457. package/dist/src/orgrt/bash-timeout.d.ts +17 -0
  458. package/dist/src/orgrt/bash-timeout.d.ts.map +1 -1
  459. package/dist/src/orgrt/bash-timeout.js +15 -0
  460. package/dist/src/orgrt/bash-timeout.js.map +1 -1
  461. package/dist/src/orgrt/session.d.ts.map +1 -1
  462. package/dist/src/orgrt/session.js +5 -2
  463. package/dist/src/orgrt/session.js.map +1 -1
  464. package/dist/src/orgrt/task-match.d.ts +3 -1
  465. package/dist/src/orgrt/task-match.d.ts.map +1 -1
  466. package/dist/src/orgrt/task-match.js +12 -4
  467. package/dist/src/orgrt/task-match.js.map +1 -1
  468. package/dist/src/platform-adapters/merge.d.ts +4 -3
  469. package/dist/src/platform-adapters/merge.d.ts.map +1 -1
  470. package/dist/src/platform-adapters/merge.js +18 -8
  471. package/dist/src/platform-adapters/merge.js.map +1 -1
  472. package/dist/src/platform-adapters/mutation.d.ts +6 -1
  473. package/dist/src/platform-adapters/mutation.d.ts.map +1 -1
  474. package/dist/src/platform-adapters/mutation.js +9 -3
  475. package/dist/src/platform-adapters/mutation.js.map +1 -1
  476. package/dist/src/platform-adapters/operations.d.ts.map +1 -1
  477. package/dist/src/platform-adapters/operations.js +14 -6
  478. package/dist/src/platform-adapters/operations.js.map +1 -1
  479. package/dist/src/platform-adapters/types.d.ts +5 -0
  480. package/dist/src/platform-adapters/types.d.ts.map +1 -1
  481. package/dist/src/routing/agent-pick.d.ts +9 -7
  482. package/dist/src/routing/agent-pick.d.ts.map +1 -1
  483. package/dist/src/routing/agent-pick.js +17 -17
  484. package/dist/src/routing/agent-pick.js.map +1 -1
  485. package/dist/tsconfig.tsbuildinfo +1 -1
  486. package/package.json +6 -6
  487. package/.claude/skills/github-issue-triage/SKILL.md +0 -354
  488. package/.claude/skills/github-repo-recap/SKILL.md +0 -207
@@ -0,0 +1,274 @@
1
+ # Component States
2
+
3
+ Interactive state system for all UI components: state definitions, priority, focus rings, disabled/loading/error patterns, and ARIA semantics.
4
+
5
+ ---
6
+
7
+ ## State Definitions
8
+
9
+ | State | Trigger | Visual change |
10
+ |-------|---------|---------------|
11
+ | `default` | None | Base appearance |
12
+ | `hover` | Mouse over | Slight color/background shift |
13
+ | `focus` | Tab or click | Focus ring (see below) |
14
+ | `active` | Mouse/touch down | Darkest color state |
15
+ | `disabled` | `disabled` attribute | Reduced opacity, no interaction |
16
+ | `loading` | Async in progress | Spinner + reduced opacity, no interaction |
17
+ | `error` | Validation failure | Error color on border + ring |
18
+
19
+ ### State Priority
20
+
21
+ When multiple states apply simultaneously, highest priority wins:
22
+
23
+ ```
24
+ 1. disabled ← always wins
25
+ 2. loading
26
+ 3. active
27
+ 4. focus
28
+ 5. hover
29
+ 6. default
30
+ ```
31
+
32
+ ---
33
+
34
+ ## Standard Transition
35
+
36
+ Apply to all interactive elements:
37
+
38
+ ```css
39
+ .interactive {
40
+ transition-property: color, background-color, border-color, box-shadow, opacity;
41
+ transition-duration: var(--duration-fast); /* 150ms */
42
+ transition-timing-function: var(--ease-out); /* cubic-bezier(0.16, 1, 0.3, 1) */
43
+ }
44
+ ```
45
+
46
+ | Property | Duration | Easing |
47
+ |----------|----------|--------|
48
+ | Color changes | 150ms | `var(--ease-out)` |
49
+ | Background | 150ms | `var(--ease-out)` |
50
+ | Transform | 200ms | `var(--ease-out)` |
51
+ | Opacity | 150ms | `var(--ease-out)` |
52
+ | Shadow | 200ms | `var(--ease-out)` |
53
+
54
+ **Never** use `transition: all` — it catches layout properties and causes jank.
55
+
56
+ ---
57
+
58
+ ## Focus Ring
59
+
60
+ Use `focus-visible` (not `focus`) to avoid showing rings on mouse click.
61
+
62
+ ```css
63
+ .focusable:focus-visible {
64
+ outline: none;
65
+ box-shadow:
66
+ 0 0 0 2px var(--color-bg), /* offset — matches page background */
67
+ 0 0 0 4px var(--color-accent-veil); /* ring — Magenta Veil */
68
+ }
69
+ ```
70
+
71
+ | Property | Value |
72
+ |----------|-------|
73
+ | Ring width | 2px |
74
+ | Ring offset | 2px (matches page background) |
75
+ | Ring color | `var(--color-accent-veil)` — `oklch(60% 0.25 350 / 0.25)` |
76
+
77
+ For inputs, the container gets the focus ring on `:focus-within`:
78
+
79
+ ```css
80
+ .input-wrapper:focus-within {
81
+ border-color: var(--color-accent);
82
+ box-shadow: 0 0 0 3px var(--color-accent-dim);
83
+ }
84
+ ```
85
+
86
+ **Never use `outline: none` without a visible replacement.** This breaks keyboard navigation and fails accessibility requirements.
87
+
88
+ ---
89
+
90
+ ## Disabled State
91
+
92
+ ```css
93
+ .disabled,
94
+ [disabled],
95
+ [aria-disabled="true"] {
96
+ opacity: 0.5;
97
+ pointer-events: none;
98
+ cursor: not-allowed;
99
+ }
100
+ ```
101
+
102
+ | Property | Value |
103
+ |----------|-------|
104
+ | Opacity | 0.5 (0.38 minimum for WCAG 3:1) |
105
+ | Pointer events | none |
106
+ | Cursor | not-allowed |
107
+
108
+ **ARIA:**
109
+ ```html
110
+ <!-- Form controls: use disabled attribute -->
111
+ <button disabled>Submit</button>
112
+ <input disabled type="text">
113
+
114
+ <!-- Non-form interactive elements: use aria-disabled -->
115
+ <div role="button" aria-disabled="true" tabindex="-1">Action</div>
116
+ ```
117
+
118
+ ---
119
+
120
+ ## Loading State
121
+
122
+ ```css
123
+ .loading {
124
+ position: relative;
125
+ pointer-events: none;
126
+ opacity: 0.7;
127
+ }
128
+ ```
129
+
130
+ ### Spinner placement by component
131
+
132
+ | Component | Spinner position |
133
+ |-----------|-----------------|
134
+ | Button | Replaces leading icon, or center of icon-only button |
135
+ | Input | Trailing position |
136
+ | Card | Center overlay with translucent scrim |
137
+ | Page section | Center of section |
138
+ | Full page | Center of viewport |
139
+
140
+ **ARIA:**
141
+ ```html
142
+ <button aria-busy="true" aria-describedby="loading-msg" disabled>
143
+ <span aria-hidden="true"><!-- spinner SVG --></span>
144
+ <span id="loading-msg" class="sr-only">Saving...</span>
145
+ </button>
146
+ ```
147
+
148
+ **Rule:** Always disable the trigger element during loading. Never allow double-submit.
149
+
150
+ ---
151
+
152
+ ## Error State
153
+
154
+ ```css
155
+ .field-error .input {
156
+ border-color: var(--color-error); /* oklch(55% 0.22 27) */
157
+ }
158
+
159
+ .field-error .input:focus-visible {
160
+ box-shadow:
161
+ 0 0 0 2px var(--color-bg),
162
+ 0 0 0 4px oklch(55% 0.22 27 / 0.25);
163
+ }
164
+
165
+ .error-message {
166
+ color: var(--color-error);
167
+ font-size: var(--font-size-sm);
168
+ margin-top: 4px;
169
+ }
170
+ ```
171
+
172
+ | Element | Treatment |
173
+ |---------|-----------|
174
+ | Input border | `var(--color-error)` |
175
+ | Input focus ring | `oklch(55% 0.22 27 / 0.25)` |
176
+ | Error message text | `var(--color-error)` |
177
+ | Error icon | `var(--color-error)` |
178
+
179
+ **Rules:**
180
+ - Position error message directly below the field (not at page top)
181
+ - Clear error on valid input (validate on blur, not on keystroke)
182
+ - Auto-focus the first invalid field after a failed submit
183
+ - Use `role="alert"` or `aria-live="polite"` on the error message
184
+
185
+ **ARIA:**
186
+ ```html
187
+ <div class="field" role="group">
188
+ <label for="email">Email</label>
189
+ <input
190
+ id="email"
191
+ type="email"
192
+ aria-invalid="true"
193
+ aria-describedby="email-error"
194
+ >
195
+ <span id="email-error" role="alert" class="error-message">
196
+ Enter a valid email address.
197
+ </span>
198
+ </div>
199
+ ```
200
+
201
+ ---
202
+
203
+ ## Color Variants — CSS Pattern
204
+
205
+ Use CSS custom properties scoped to the component for variant colors. Never hard-code variant colors directly on the element:
206
+
207
+ ```css
208
+ /* Pattern */
209
+ .btn {
210
+ --btn-bg: var(--color-ink);
211
+ --btn-fg: var(--color-surface);
212
+ background: var(--btn-bg);
213
+ color: var(--btn-fg);
214
+ }
215
+
216
+ .btn.secondary {
217
+ --btn-bg: var(--color-mist);
218
+ --btn-fg: var(--color-ink);
219
+ }
220
+
221
+ .btn.destructive {
222
+ --btn-bg: var(--color-error);
223
+ --btn-fg: white;
224
+ }
225
+ ```
226
+
227
+ This pattern means dark mode only needs to override semantic tokens — component variant CSS stays unchanged.
228
+
229
+ ---
230
+
231
+ ## Size Variants — CSS Pattern
232
+
233
+ ```css
234
+ /* Pattern */
235
+ .btn {
236
+ --btn-height: 40px;
237
+ --btn-px: var(--space-2); /* 16px */
238
+ --btn-font: var(--font-size-sm);
239
+ height: var(--btn-height);
240
+ padding-inline: var(--btn-px);
241
+ font-size: var(--btn-font);
242
+ }
243
+
244
+ .btn.sm {
245
+ --btn-height: 32px;
246
+ --btn-px: 12px;
247
+ --btn-font: var(--font-size-xs);
248
+ }
249
+
250
+ .btn.lg {
251
+ --btn-height: 48px;
252
+ --btn-px: var(--space-3); /* 24px */
253
+ --btn-font: var(--font-size-base);
254
+ }
255
+ ```
256
+
257
+ ---
258
+
259
+ ## ARIA State Reference
260
+
261
+ Quick reference for the most commonly missed ARIA attributes:
262
+
263
+ | Situation | Attribute | Example |
264
+ |-----------|-----------|---------|
265
+ | Currently selected (tabs, nav) | `aria-selected="true"` | `<button role="tab" aria-selected="true">` |
266
+ | Expanded/collapsed | `aria-expanded="true/false"` | `<button aria-expanded="false" aria-controls="menu">` |
267
+ | Loading | `aria-busy="true"` | `<button aria-busy="true">` |
268
+ | Disabled (non-form) | `aria-disabled="true"` | `<div role="button" aria-disabled="true">` |
269
+ | Invalid input | `aria-invalid="true"` | `<input aria-invalid="true">` |
270
+ | Error description | `aria-describedby` | `<input aria-describedby="field-error">` |
271
+ | Live region | `aria-live="polite"` | `<div aria-live="polite">` (for toasts, status) |
272
+ | Alert / urgent | `role="alert"` | `<span role="alert">Error message</span>` |
273
+ | Sorted column | `aria-sort` | `<th aria-sort="ascending">Name</th>` |
274
+ | Controls another element | `aria-controls` | `<button aria-controls="dropdown-menu">` |
@@ -0,0 +1,358 @@
1
+ # Component System
2
+
3
+ Build production-quality component libraries with consistent visual language, design tokens, developer-ready CSS, and proper accessibility.
4
+
5
+ ## Token-First Approach
6
+
7
+ Every component is built on semantic tokens. Never hard-code values — always reference the token system. Use the OKLCH token system from `tokens.css` as the foundation; extend it with semantic aliases per project.
8
+
9
+ ```css
10
+ :root {
11
+ /* Semantic aliases (project-specific — map to OKLCH tokens) */
12
+ --bg-primary: var(--color-cream);
13
+ --bg-elevated: var(--color-paper);
14
+ --text-primary: var(--color-ink);
15
+ --text-secondary: var(--color-charcoal);
16
+ --text-muted: var(--color-ash);
17
+ --border-subtle: var(--color-mist);
18
+ --interactive: var(--color-accent);
19
+ --interactive-hover: var(--color-accent-hover);
20
+ }
21
+
22
+ [data-theme="dark"] {
23
+ --bg-primary: oklch(10% 0.002 350);
24
+ --bg-elevated: oklch(15% 0.003 350);
25
+ --text-primary: oklch(94% 0 0);
26
+ --text-secondary: oklch(75% 0 0);
27
+ --text-muted: oklch(55% 0 0);
28
+ --border-subtle: oklch(22% 0 0);
29
+ }
30
+ ```
31
+
32
+ ## Theme System
33
+
34
+ Every new project gets light/dark/system toggle. Never default to one without a scene sentence that forces the answer (see shared design laws).
35
+
36
+ ```html
37
+ <!-- Theme toggle — place in header navigation -->
38
+ <div class="theme-toggle" role="radiogroup" aria-label="Color theme">
39
+ <button class="theme-toggle-option" data-theme="light" aria-checked="false">Light</button>
40
+ <button class="theme-toggle-option" data-theme="dark" aria-checked="false">Dark</button>
41
+ <button class="theme-toggle-option" data-theme="system" aria-checked="true">System</button>
42
+ </div>
43
+ ```
44
+
45
+ ```javascript
46
+ class ThemeManager {
47
+ constructor() {
48
+ this.current = localStorage.getItem('theme') || 'system';
49
+ this.apply(this.current);
50
+ document.querySelector('.theme-toggle')?.addEventListener('click', (e) => {
51
+ const btn = e.target.closest('.theme-toggle-option');
52
+ if (btn) this.apply(btn.dataset.theme);
53
+ });
54
+ }
55
+
56
+ apply(theme) {
57
+ if (theme === 'system') {
58
+ document.documentElement.removeAttribute('data-theme');
59
+ localStorage.removeItem('theme');
60
+ } else {
61
+ document.documentElement.setAttribute('data-theme', theme);
62
+ localStorage.setItem('theme', theme);
63
+ }
64
+ this.current = theme;
65
+ document.querySelectorAll('.theme-toggle-option').forEach(btn =>
66
+ btn.setAttribute('aria-checked', String(btn.dataset.theme === theme))
67
+ );
68
+ }
69
+ }
70
+ document.addEventListener('DOMContentLoaded', () => new ThemeManager());
71
+ ```
72
+
73
+ ## Core Components
74
+
75
+ ### Button
76
+
77
+ ```css
78
+ .btn {
79
+ display: inline-flex;
80
+ align-items: center;
81
+ justify-content: center;
82
+ font-family: var(--font-body);
83
+ font-weight: 500;
84
+ text-decoration: none;
85
+ border: none;
86
+ cursor: pointer;
87
+ transition: background-color var(--duration-fast) var(--ease-out),
88
+ transform var(--duration-fast) var(--ease-out),
89
+ box-shadow var(--duration-fast) var(--ease-out);
90
+ user-select: none;
91
+
92
+ &:focus-visible {
93
+ outline: 2px solid var(--color-accent);
94
+ outline-offset: 2px;
95
+ }
96
+
97
+ &:disabled {
98
+ opacity: 0.6;
99
+ cursor: not-allowed;
100
+ pointer-events: none;
101
+ }
102
+ }
103
+
104
+ /* Sizes */
105
+ .btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--font-size-sm); }
106
+ .btn--md { padding: var(--space-3) var(--space-6); font-size: var(--font-size-base); }
107
+ .btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--font-size-lg); }
108
+
109
+ /* Primary — solid accent fill */
110
+ .btn--primary {
111
+ background-color: var(--color-accent);
112
+ color: var(--color-paper);
113
+ border-radius: var(--radius-none); /* editorial: no rounding */
114
+
115
+ &:hover:not(:disabled) {
116
+ background-color: var(--color-accent-hover);
117
+ transform: translateY(-1px);
118
+ box-shadow: var(--shadow-md);
119
+ }
120
+ }
121
+
122
+ /* Secondary — outlined */
123
+ .btn--secondary {
124
+ background-color: transparent;
125
+ color: var(--color-accent);
126
+ border: 1.5px solid var(--color-accent);
127
+ border-radius: var(--radius-none);
128
+
129
+ &:hover:not(:disabled) {
130
+ background-color: var(--color-accent-dim);
131
+ }
132
+ }
133
+
134
+ /* Ghost — no border */
135
+ .btn--ghost {
136
+ background-color: transparent;
137
+ color: var(--text-secondary);
138
+
139
+ &:hover:not(:disabled) {
140
+ background-color: var(--color-mist);
141
+ color: var(--text-primary);
142
+ }
143
+ }
144
+ ```
145
+
146
+ ### Form Input
147
+
148
+ ```css
149
+ .form-field {
150
+ display: flex;
151
+ flex-direction: column;
152
+ gap: var(--space-2);
153
+ }
154
+
155
+ .form-label {
156
+ font-size: var(--font-size-sm);
157
+ font-weight: 500;
158
+ color: var(--text-secondary);
159
+ letter-spacing: 0.01em;
160
+ }
161
+
162
+ .form-input {
163
+ padding: var(--space-3) var(--space-4);
164
+ border: 1.5px solid var(--border-subtle);
165
+ background-color: var(--bg-primary);
166
+ color: var(--text-primary);
167
+ font-size: var(--font-size-base);
168
+ font-family: var(--font-body);
169
+ border-radius: var(--radius-sm);
170
+ transition: border-color var(--duration-fast) var(--ease-out),
171
+ box-shadow var(--duration-fast) var(--ease-out);
172
+
173
+ &::placeholder { color: var(--text-muted); }
174
+
175
+ &:focus {
176
+ outline: none;
177
+ border-color: var(--color-accent);
178
+ box-shadow: 0 0 0 3px var(--color-accent-dim);
179
+ }
180
+
181
+ &[aria-invalid="true"] {
182
+ border-color: oklch(50% 0.2 25);
183
+ }
184
+ }
185
+
186
+ .form-error {
187
+ font-size: var(--font-size-sm);
188
+ color: oklch(50% 0.2 25);
189
+ }
190
+ ```
191
+
192
+ ### Card
193
+
194
+ Cards are not the default layout answer — use them only when content requires clear grouping. Never nest cards.
195
+
196
+ ```css
197
+ .card {
198
+ background-color: var(--bg-elevated);
199
+ border: 1px solid var(--border-subtle);
200
+ border-radius: var(--radius-md);
201
+ overflow: hidden;
202
+ transition: box-shadow var(--duration-base) var(--ease-out),
203
+ transform var(--duration-base) var(--ease-out);
204
+
205
+ &:where([href], [tabindex], [role="button"]):hover {
206
+ box-shadow: var(--shadow-md);
207
+ transform: translateY(-2px);
208
+ }
209
+ }
210
+
211
+ .card__media {
212
+ aspect-ratio: 16 / 9;
213
+ overflow: hidden;
214
+
215
+ img { width: 100%; height: 100%; object-fit: cover; }
216
+ }
217
+
218
+ .card__body {
219
+ padding: var(--space-6);
220
+ }
221
+
222
+ .card__title {
223
+ font-size: var(--font-size-xl);
224
+ font-weight: 600;
225
+ color: var(--text-primary);
226
+ margin-bottom: var(--space-2);
227
+ }
228
+ ```
229
+
230
+ ### Navigation
231
+
232
+ ```css
233
+ .nav {
234
+ display: flex;
235
+ align-items: center;
236
+ gap: var(--space-8);
237
+ padding: var(--space-4) var(--space-8);
238
+ }
239
+
240
+ .nav__link {
241
+ font-size: var(--font-size-sm);
242
+ font-weight: 500;
243
+ color: var(--text-secondary);
244
+ text-decoration: none;
245
+ letter-spacing: 0.02em;
246
+ position: relative;
247
+ transition: color var(--duration-fast) var(--ease-out);
248
+
249
+ &::after {
250
+ content: '';
251
+ position: absolute;
252
+ left: 0; bottom: -2px;
253
+ width: 100%; height: 1px;
254
+ background-color: var(--color-accent);
255
+ transform: scaleX(0);
256
+ transform-origin: right;
257
+ transition: transform var(--duration-base) var(--ease-out);
258
+ }
259
+
260
+ &:hover, &[aria-current="page"] {
261
+ color: var(--text-primary);
262
+ }
263
+
264
+ &:hover::after, &[aria-current="page"]::after {
265
+ transform: scaleX(1);
266
+ transform-origin: left;
267
+ }
268
+ }
269
+ ```
270
+
271
+ ## Responsive Layout System
272
+
273
+ Mobile-first. Grid collapses from desktop to tablet to mobile. Use CSS Grid for 2D layouts, Flexbox for 1D.
274
+
275
+ ```css
276
+ .container {
277
+ width: 100%;
278
+ margin-inline: auto;
279
+ padding-inline: var(--space-4);
280
+ }
281
+
282
+ @media (min-width: 640px) { .container { max-width: 640px; padding-inline: var(--space-6); } }
283
+ @media (min-width: 768px) { .container { max-width: 768px; } }
284
+ @media (min-width: 1024px) { .container { max-width: 1024px; padding-inline: var(--space-8); } }
285
+ @media (min-width: 1280px) { .container { max-width: 1280px; } }
286
+ @media (min-width: 1536px) { .container { max-width: 1400px; } }
287
+
288
+ /* Auto-responsive grid — no breakpoint classes needed */
289
+ .grid-auto {
290
+ display: grid;
291
+ grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
292
+ gap: var(--space-6);
293
+ }
294
+
295
+ /* Explicit column grid */
296
+ .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
297
+ .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
298
+
299
+ @media (max-width: 768px) {
300
+ .grid-2, .grid-3 { grid-template-columns: 1fr; }
301
+ }
302
+
303
+ /* Sidebar layout */
304
+ .layout-sidebar {
305
+ display: grid;
306
+ grid-template-columns: 1fr 320px;
307
+ gap: var(--space-12);
308
+ align-items: start;
309
+ }
310
+
311
+ @media (max-width: 1024px) {
312
+ .layout-sidebar { grid-template-columns: 1fr; }
313
+ }
314
+ ```
315
+
316
+ ## Accessibility Baseline
317
+
318
+ Required on every component:
319
+ - 4.5:1 contrast for body text; 3:1 for large text (≥24px or 18.5px bold)
320
+ - 44×44px minimum touch target
321
+ - Focus-visible on all interactive elements — never `outline: none` without replacement
322
+ - Keyboard navigation: tab order matches visual order
323
+ - All images have `alt` text; decorative images have `alt=""`
324
+ - Form inputs have associated `<label>` elements (not just placeholder text)
325
+ - Error messages use `aria-describedby`, not just color
326
+
327
+ ## Component States Required
328
+
329
+ For every interactive component, define all states before shipping:
330
+
331
+ | State | Required behavior |
332
+ |---|---|
333
+ | Default | Base appearance |
334
+ | Hover | Visible feedback (not just cursor change) |
335
+ | Focus-visible | Distinct ring; keyboard users need this |
336
+ | Active | Pressed indication |
337
+ | Disabled | Reduced opacity + `cursor: not-allowed` |
338
+ | Loading | Spinner or skeleton; disable interaction |
339
+ | Error | Red border/icon + error message |
340
+ | Success | Confirmation feedback |
341
+ | Empty | Helpful empty state with action |
342
+
343
+ ## File Structure
344
+
345
+ ```
346
+ styles/
347
+ ├── tokens.css # Design tokens (OKLCH palette, spacing, motion)
348
+ ├── reset.css # Opinionated reset
349
+ ├── typography.css # Type hierarchy classes
350
+ ├── layout.css # Container, grid, section patterns
351
+ ├── components.css # All component styles
352
+ ├── utilities.css # Helper classes (.sr-only, .visually-hidden)
353
+ └── main.css # Import orchestration
354
+
355
+ scripts/
356
+ ├── theme-manager.js # Light/dark/system toggle
357
+ └── main.js # App init
358
+ ```