opencode-starterkit 1.0.1

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 (656) hide show
  1. package/README.md +47 -0
  2. package/baseline/.env.example +196 -0
  3. package/baseline/.template-manifest.json +646 -0
  4. package/baseline/.version +1 -0
  5. package/baseline/AGENTS.md +410 -0
  6. package/baseline/AGENT_ALIGNMENT.md +564 -0
  7. package/baseline/README.md +79 -0
  8. package/baseline/agent/build.md +373 -0
  9. package/baseline/agent/explore.md +96 -0
  10. package/baseline/agent/general.md +186 -0
  11. package/baseline/agent/painter.md +74 -0
  12. package/baseline/agent/plan.md +435 -0
  13. package/baseline/agent/review.md +243 -0
  14. package/baseline/agent/runner.md +79 -0
  15. package/baseline/agent/scout.md +100 -0
  16. package/baseline/agent/vision.md +91 -0
  17. package/baseline/command/compound.md +143 -0
  18. package/baseline/command/create.md +213 -0
  19. package/baseline/command/design.md +112 -0
  20. package/baseline/command/handoff.md +147 -0
  21. package/baseline/command/init-context.md +273 -0
  22. package/baseline/command/init-user.md +105 -0
  23. package/baseline/command/init.md +117 -0
  24. package/baseline/command/lfg.md +170 -0
  25. package/baseline/command/plan.md +355 -0
  26. package/baseline/command/pr.md +161 -0
  27. package/baseline/command/research.md +125 -0
  28. package/baseline/command/resume.md +87 -0
  29. package/baseline/command/review-codebase.md +131 -0
  30. package/baseline/command/ship.md +342 -0
  31. package/baseline/command/start.md +158 -0
  32. package/baseline/command/status.md +117 -0
  33. package/baseline/command/ui-review.md +92 -0
  34. package/baseline/command/ui-slop-check.md +146 -0
  35. package/baseline/command/verify.md +160 -0
  36. package/baseline/context/README.md +29 -0
  37. package/baseline/dcp.jsonc +72 -0
  38. package/baseline/memory/README.md +89 -0
  39. package/baseline/memory/_templates/design.md +59 -0
  40. package/baseline/memory/_templates/prd.md +192 -0
  41. package/baseline/memory/_templates/project.md +58 -0
  42. package/baseline/memory/_templates/proposal.md +38 -0
  43. package/baseline/memory/_templates/roadmap.md +93 -0
  44. package/baseline/memory/_templates/state.md +89 -0
  45. package/baseline/memory/_templates/tasks.md +198 -0
  46. package/baseline/memory/_templates/tech-stack.md +85 -0
  47. package/baseline/memory/_templates/user.md +26 -0
  48. package/baseline/memory/project/gotchas.md +67 -0
  49. package/baseline/memory/project/project.md +92 -0
  50. package/baseline/memory/project/roadmap.md +142 -0
  51. package/baseline/memory/project/state.md +84 -0
  52. package/baseline/memory/project/tech-stack.md +53 -0
  53. package/baseline/memory/project/user.md +38 -0
  54. package/baseline/memory/research/benchmark-framework.md +162 -0
  55. package/baseline/memory/research/ccpm-analysis.md +334 -0
  56. package/baseline/memory/research/context-management-analysis.md +685 -0
  57. package/baseline/memory/research/effectiveness-audit.md +213 -0
  58. package/baseline/memory/research/opencode-mcp-bug-report.md +129 -0
  59. package/baseline/memory/research/openspec-analysis.md +226 -0
  60. package/baseline/memory/session-context.md +40 -0
  61. package/baseline/opencode.json +1431 -0
  62. package/baseline/opencode.json.tui-migration.bak +1380 -0
  63. package/baseline/package-lock.json +87 -0
  64. package/baseline/package.json +21 -0
  65. package/baseline/plans/1768385996691-silent-wizard.md +247 -0
  66. package/baseline/plans/1770006237537-mighty-otter.md +418 -0
  67. package/baseline/plans/1770006913647-glowing-forest.md +170 -0
  68. package/baseline/plans/1770013678126-witty-planet.md +278 -0
  69. package/baseline/plans/1770112267595-shiny-rocket.md +258 -0
  70. package/baseline/plans/swarm-protocol.md +123 -0
  71. package/baseline/plugin/README.md +70 -0
  72. package/baseline/plugin/copilot-auth.ts +607 -0
  73. package/baseline/plugin/lib/capture.ts +177 -0
  74. package/baseline/plugin/lib/context.ts +198 -0
  75. package/baseline/plugin/lib/curator.ts +234 -0
  76. package/baseline/plugin/lib/db/maintenance.ts +312 -0
  77. package/baseline/plugin/lib/db/observations.ts +299 -0
  78. package/baseline/plugin/lib/db/pipeline.ts +520 -0
  79. package/baseline/plugin/lib/db/schema.ts +356 -0
  80. package/baseline/plugin/lib/db/types.ts +211 -0
  81. package/baseline/plugin/lib/distill.ts +376 -0
  82. package/baseline/plugin/lib/inject.ts +126 -0
  83. package/baseline/plugin/lib/memory-admin-tools.ts +188 -0
  84. package/baseline/plugin/lib/memory-db.ts +58 -0
  85. package/baseline/plugin/lib/memory-helpers.ts +111 -0
  86. package/baseline/plugin/lib/memory-hooks.ts +195 -0
  87. package/baseline/plugin/lib/memory-tools.ts +341 -0
  88. package/baseline/plugin/lib/notify.ts +81 -0
  89. package/baseline/plugin/memory.ts +89 -0
  90. package/baseline/plugin/notification.ts.bak +64 -0
  91. package/baseline/plugin/package.json +7 -0
  92. package/baseline/plugin/sdk/copilot/chat/convert-to-openai-compatible-chat-messages.ts +178 -0
  93. package/baseline/plugin/sdk/copilot/chat/get-response-metadata.ts +15 -0
  94. package/baseline/plugin/sdk/copilot/chat/map-openai-compatible-finish-reason.ts +19 -0
  95. package/baseline/plugin/sdk/copilot/chat/openai-compatible-api-types.ts +72 -0
  96. package/baseline/plugin/sdk/copilot/chat/openai-compatible-chat-language-model.ts +833 -0
  97. package/baseline/plugin/sdk/copilot/chat/openai-compatible-chat-options.ts +30 -0
  98. package/baseline/plugin/sdk/copilot/chat/openai-compatible-metadata-extractor.ts +48 -0
  99. package/baseline/plugin/sdk/copilot/chat/openai-compatible-prepare-tools.ts +92 -0
  100. package/baseline/plugin/sdk/copilot/copilot-provider.ts +94 -0
  101. package/baseline/plugin/sdk/copilot/index.ts +5 -0
  102. package/baseline/plugin/sdk/copilot/openai-compatible-error.ts +30 -0
  103. package/baseline/plugin/sessions.ts +428 -0
  104. package/baseline/plugin/skill-mcp.ts +618 -0
  105. package/baseline/plugin/tsconfig.json +16 -0
  106. package/baseline/skill/accessibility-audit/SKILL.md +191 -0
  107. package/baseline/skill/agent-browser/SKILL.md +413 -0
  108. package/baseline/skill/agent-teams/SKILL.md +268 -0
  109. package/baseline/skill/augment-context-engine/SKILL.md +122 -0
  110. package/baseline/skill/augment-context-engine/mcp.json +6 -0
  111. package/baseline/skill/beads/SKILL.md +181 -0
  112. package/baseline/skill/beads/references/BEST_PRACTICES.md +27 -0
  113. package/baseline/skill/beads/references/BOUNDARIES.md +219 -0
  114. package/baseline/skill/beads/references/DEPENDENCIES.md +124 -0
  115. package/baseline/skill/beads/references/EXAMPLES.md +45 -0
  116. package/baseline/skill/beads/references/FILE_CLAIMING.md +101 -0
  117. package/baseline/skill/beads/references/GIT_SYNC.md +25 -0
  118. package/baseline/skill/beads/references/HIERARCHY.md +71 -0
  119. package/baseline/skill/beads/references/MULTI_AGENT.md +40 -0
  120. package/baseline/skill/beads/references/RESUMABILITY.md +177 -0
  121. package/baseline/skill/beads/references/SESSION_PROTOCOL.md +61 -0
  122. package/baseline/skill/beads/references/TASK_CREATION.md +38 -0
  123. package/baseline/skill/beads/references/TROUBLESHOOTING.md +38 -0
  124. package/baseline/skill/beads/references/WORKFLOWS.md +226 -0
  125. package/baseline/skill/beads-bridge/SKILL.md +321 -0
  126. package/baseline/skill/brainstorming/SKILL.md +114 -0
  127. package/baseline/skill/chrome-devtools/SKILL.md +76 -0
  128. package/baseline/skill/chrome-devtools/mcp.json +19 -0
  129. package/baseline/skill/cloudflare/SKILL.md +253 -0
  130. package/baseline/skill/cloudflare/references/agents-sdk/README.md +35 -0
  131. package/baseline/skill/cloudflare/references/agents-sdk/api.md +100 -0
  132. package/baseline/skill/cloudflare/references/agents-sdk/configuration.md +99 -0
  133. package/baseline/skill/cloudflare/references/agents-sdk/gotchas.md +59 -0
  134. package/baseline/skill/cloudflare/references/agents-sdk/patterns.md +89 -0
  135. package/baseline/skill/cloudflare/references/ai-gateway/README.md +695 -0
  136. package/baseline/skill/cloudflare/references/ai-search/README.md +14 -0
  137. package/baseline/skill/cloudflare/references/ai-search/api.md +38 -0
  138. package/baseline/skill/cloudflare/references/ai-search/configuration.md +52 -0
  139. package/baseline/skill/cloudflare/references/ai-search/gotchas.md +41 -0
  140. package/baseline/skill/cloudflare/references/ai-search/patterns.md +45 -0
  141. package/baseline/skill/cloudflare/references/analytics-engine/README.md +14 -0
  142. package/baseline/skill/cloudflare/references/analytics-engine/api.md +27 -0
  143. package/baseline/skill/cloudflare/references/analytics-engine/configuration.md +45 -0
  144. package/baseline/skill/cloudflare/references/analytics-engine/gotchas.md +3 -0
  145. package/baseline/skill/cloudflare/references/analytics-engine/patterns.md +36 -0
  146. package/baseline/skill/cloudflare/references/api/README.md +21 -0
  147. package/baseline/skill/cloudflare/references/api/api.md +31 -0
  148. package/baseline/skill/cloudflare/references/api/configuration.md +20 -0
  149. package/baseline/skill/cloudflare/references/api/gotchas.md +28 -0
  150. package/baseline/skill/cloudflare/references/api/patterns.md +47 -0
  151. package/baseline/skill/cloudflare/references/api-shield/README.md +20 -0
  152. package/baseline/skill/cloudflare/references/api-shield/api.md +78 -0
  153. package/baseline/skill/cloudflare/references/api-shield/configuration.md +128 -0
  154. package/baseline/skill/cloudflare/references/api-shield/gotchas.md +51 -0
  155. package/baseline/skill/cloudflare/references/api-shield/patterns.md +145 -0
  156. package/baseline/skill/cloudflare/references/argo-smart-routing/README.md +16 -0
  157. package/baseline/skill/cloudflare/references/argo-smart-routing/api.md +50 -0
  158. package/baseline/skill/cloudflare/references/argo-smart-routing/configuration.md +53 -0
  159. package/baseline/skill/cloudflare/references/argo-smart-routing/gotchas.md +16 -0
  160. package/baseline/skill/cloudflare/references/argo-smart-routing/patterns.md +45 -0
  161. package/baseline/skill/cloudflare/references/bindings/README.md +14 -0
  162. package/baseline/skill/cloudflare/references/bindings/api.md +3 -0
  163. package/baseline/skill/cloudflare/references/bindings/configuration.md +58 -0
  164. package/baseline/skill/cloudflare/references/bindings/gotchas.md +35 -0
  165. package/baseline/skill/cloudflare/references/bindings/patterns.md +37 -0
  166. package/baseline/skill/cloudflare/references/bot-management/README.md +71 -0
  167. package/baseline/skill/cloudflare/references/bot-management/api.md +168 -0
  168. package/baseline/skill/cloudflare/references/bot-management/configuration.md +114 -0
  169. package/baseline/skill/cloudflare/references/bot-management/gotchas.md +99 -0
  170. package/baseline/skill/cloudflare/references/bot-management/patterns.md +125 -0
  171. package/baseline/skill/cloudflare/references/browser-rendering/README.md +16 -0
  172. package/baseline/skill/cloudflare/references/browser-rendering/api.md +54 -0
  173. package/baseline/skill/cloudflare/references/browser-rendering/configuration.md +47 -0
  174. package/baseline/skill/cloudflare/references/browser-rendering/gotchas.md +29 -0
  175. package/baseline/skill/cloudflare/references/browser-rendering/patterns.md +29 -0
  176. package/baseline/skill/cloudflare/references/c3/README.md +264 -0
  177. package/baseline/skill/cloudflare/references/cache-reserve/README.md +93 -0
  178. package/baseline/skill/cloudflare/references/cache-reserve/api.md +176 -0
  179. package/baseline/skill/cloudflare/references/cache-reserve/configuration.md +164 -0
  180. package/baseline/skill/cloudflare/references/cache-reserve/gotchas.md +203 -0
  181. package/baseline/skill/cloudflare/references/cache-reserve/patterns.md +180 -0
  182. package/baseline/skill/cloudflare/references/containers/README.md +16 -0
  183. package/baseline/skill/cloudflare/references/containers/api.md +43 -0
  184. package/baseline/skill/cloudflare/references/containers/configuration.md +56 -0
  185. package/baseline/skill/cloudflare/references/containers/gotchas.md +21 -0
  186. package/baseline/skill/cloudflare/references/containers/patterns.md +40 -0
  187. package/baseline/skill/cloudflare/references/cron-triggers/README.md +85 -0
  188. package/baseline/skill/cloudflare/references/cron-triggers/api.md +198 -0
  189. package/baseline/skill/cloudflare/references/cron-triggers/configuration.md +151 -0
  190. package/baseline/skill/cloudflare/references/cron-triggers/gotchas.md +129 -0
  191. package/baseline/skill/cloudflare/references/cron-triggers/patterns.md +122 -0
  192. package/baseline/skill/cloudflare/references/d1/README.md +92 -0
  193. package/baseline/skill/cloudflare/references/d1/api.md +141 -0
  194. package/baseline/skill/cloudflare/references/d1/configuration.md +127 -0
  195. package/baseline/skill/cloudflare/references/d1/gotchas.md +70 -0
  196. package/baseline/skill/cloudflare/references/d1/patterns.md +144 -0
  197. package/baseline/skill/cloudflare/references/ddos/README.md +34 -0
  198. package/baseline/skill/cloudflare/references/ddos/api.md +136 -0
  199. package/baseline/skill/cloudflare/references/ddos/configuration.md +67 -0
  200. package/baseline/skill/cloudflare/references/ddos/gotchas.md +114 -0
  201. package/baseline/skill/cloudflare/references/ddos/patterns.md +158 -0
  202. package/baseline/skill/cloudflare/references/do-storage/README.md +62 -0
  203. package/baseline/skill/cloudflare/references/do-storage/api.md +89 -0
  204. package/baseline/skill/cloudflare/references/do-storage/configuration.md +116 -0
  205. package/baseline/skill/cloudflare/references/do-storage/gotchas.md +93 -0
  206. package/baseline/skill/cloudflare/references/do-storage/patterns.md +112 -0
  207. package/baseline/skill/cloudflare/references/durable-objects/README.md +125 -0
  208. package/baseline/skill/cloudflare/references/durable-objects/api.md +152 -0
  209. package/baseline/skill/cloudflare/references/durable-objects/configuration.md +148 -0
  210. package/baseline/skill/cloudflare/references/durable-objects/gotchas.md +158 -0
  211. package/baseline/skill/cloudflare/references/durable-objects/patterns.md +255 -0
  212. package/baseline/skill/cloudflare/references/email-routing/README.md +18 -0
  213. package/baseline/skill/cloudflare/references/email-routing/api.md +46 -0
  214. package/baseline/skill/cloudflare/references/email-routing/configuration.md +63 -0
  215. package/baseline/skill/cloudflare/references/email-routing/gotchas.md +16 -0
  216. package/baseline/skill/cloudflare/references/email-routing/patterns.md +46 -0
  217. package/baseline/skill/cloudflare/references/email-workers/README.md +598 -0
  218. package/baseline/skill/cloudflare/references/hyperdrive/README.md +62 -0
  219. package/baseline/skill/cloudflare/references/hyperdrive/api.md +137 -0
  220. package/baseline/skill/cloudflare/references/hyperdrive/configuration.md +133 -0
  221. package/baseline/skill/cloudflare/references/hyperdrive/gotchas.md +184 -0
  222. package/baseline/skill/cloudflare/references/hyperdrive/patterns.md +176 -0
  223. package/baseline/skill/cloudflare/references/images/README.md +14 -0
  224. package/baseline/skill/cloudflare/references/images/api.md +3 -0
  225. package/baseline/skill/cloudflare/references/images/configuration.md +45 -0
  226. package/baseline/skill/cloudflare/references/images/gotchas.md +23 -0
  227. package/baseline/skill/cloudflare/references/images/patterns.md +31 -0
  228. package/baseline/skill/cloudflare/references/kv/README.md +60 -0
  229. package/baseline/skill/cloudflare/references/kv/api.md +114 -0
  230. package/baseline/skill/cloudflare/references/kv/configuration.md +92 -0
  231. package/baseline/skill/cloudflare/references/kv/gotchas.md +117 -0
  232. package/baseline/skill/cloudflare/references/kv/patterns.md +139 -0
  233. package/baseline/skill/cloudflare/references/miniflare/README.md +64 -0
  234. package/baseline/skill/cloudflare/references/miniflare/api.md +144 -0
  235. package/baseline/skill/cloudflare/references/miniflare/configuration.md +203 -0
  236. package/baseline/skill/cloudflare/references/miniflare/gotchas.md +187 -0
  237. package/baseline/skill/cloudflare/references/miniflare/patterns.md +211 -0
  238. package/baseline/skill/cloudflare/references/network-interconnect/README.md +60 -0
  239. package/baseline/skill/cloudflare/references/network-interconnect/api.md +240 -0
  240. package/baseline/skill/cloudflare/references/network-interconnect/configuration.md +127 -0
  241. package/baseline/skill/cloudflare/references/network-interconnect/gotchas.md +171 -0
  242. package/baseline/skill/cloudflare/references/network-interconnect/patterns.md +171 -0
  243. package/baseline/skill/cloudflare/references/observability/README.md +18 -0
  244. package/baseline/skill/cloudflare/references/observability/api.md +51 -0
  245. package/baseline/skill/cloudflare/references/observability/configuration.md +60 -0
  246. package/baseline/skill/cloudflare/references/observability/gotchas.md +36 -0
  247. package/baseline/skill/cloudflare/references/observability/patterns.md +42 -0
  248. package/baseline/skill/cloudflare/references/pages/README.md +76 -0
  249. package/baseline/skill/cloudflare/references/pages/api.md +200 -0
  250. package/baseline/skill/cloudflare/references/pages/configuration.md +228 -0
  251. package/baseline/skill/cloudflare/references/pages/gotchas.md +161 -0
  252. package/baseline/skill/cloudflare/references/pages/patterns.md +145 -0
  253. package/baseline/skill/cloudflare/references/pages-functions/README.md +57 -0
  254. package/baseline/skill/cloudflare/references/pages-functions/api.md +201 -0
  255. package/baseline/skill/cloudflare/references/pages-functions/configuration.md +159 -0
  256. package/baseline/skill/cloudflare/references/pages-functions/gotchas.md +151 -0
  257. package/baseline/skill/cloudflare/references/pages-functions/patterns.md +190 -0
  258. package/baseline/skill/cloudflare/references/pipelines/README.md +664 -0
  259. package/baseline/skill/cloudflare/references/pulumi/README.md +107 -0
  260. package/baseline/skill/cloudflare/references/pulumi/api.md +194 -0
  261. package/baseline/skill/cloudflare/references/pulumi/configuration.md +216 -0
  262. package/baseline/skill/cloudflare/references/pulumi/gotchas.md +223 -0
  263. package/baseline/skill/cloudflare/references/pulumi/patterns.md +139 -0
  264. package/baseline/skill/cloudflare/references/queues/README.md +69 -0
  265. package/baseline/skill/cloudflare/references/queues/api.md +138 -0
  266. package/baseline/skill/cloudflare/references/queues/configuration.md +125 -0
  267. package/baseline/skill/cloudflare/references/queues/gotchas.md +112 -0
  268. package/baseline/skill/cloudflare/references/queues/patterns.md +155 -0
  269. package/baseline/skill/cloudflare/references/r2/README.md +61 -0
  270. package/baseline/skill/cloudflare/references/r2/api.md +127 -0
  271. package/baseline/skill/cloudflare/references/r2/configuration.md +76 -0
  272. package/baseline/skill/cloudflare/references/r2/gotchas.md +94 -0
  273. package/baseline/skill/cloudflare/references/r2/patterns.md +127 -0
  274. package/baseline/skill/cloudflare/references/r2-data-catalog/README.md +18 -0
  275. package/baseline/skill/cloudflare/references/r2-data-catalog/api.md +29 -0
  276. package/baseline/skill/cloudflare/references/r2-data-catalog/configuration.md +39 -0
  277. package/baseline/skill/cloudflare/references/r2-data-catalog/gotchas.md +20 -0
  278. package/baseline/skill/cloudflare/references/r2-data-catalog/patterns.md +46 -0
  279. package/baseline/skill/cloudflare/references/r2-sql/README.md +512 -0
  280. package/baseline/skill/cloudflare/references/realtime-sfu/README.md +21 -0
  281. package/baseline/skill/cloudflare/references/realtime-sfu/api.md +135 -0
  282. package/baseline/skill/cloudflare/references/realtime-sfu/configuration.md +63 -0
  283. package/baseline/skill/cloudflare/references/realtime-sfu/gotchas.md +75 -0
  284. package/baseline/skill/cloudflare/references/realtime-sfu/patterns.md +102 -0
  285. package/baseline/skill/cloudflare/references/realtimekit/README.md +81 -0
  286. package/baseline/skill/cloudflare/references/realtimekit/api.md +164 -0
  287. package/baseline/skill/cloudflare/references/realtimekit/configuration.md +147 -0
  288. package/baseline/skill/cloudflare/references/realtimekit/gotchas.md +172 -0
  289. package/baseline/skill/cloudflare/references/realtimekit/patterns.md +155 -0
  290. package/baseline/skill/cloudflare/references/sandbox/README.md +90 -0
  291. package/baseline/skill/cloudflare/references/sandbox/api.md +178 -0
  292. package/baseline/skill/cloudflare/references/sandbox/configuration.md +131 -0
  293. package/baseline/skill/cloudflare/references/sandbox/gotchas.md +156 -0
  294. package/baseline/skill/cloudflare/references/sandbox/patterns.md +203 -0
  295. package/baseline/skill/cloudflare/references/secrets-store/README.md +58 -0
  296. package/baseline/skill/cloudflare/references/secrets-store/api.md +182 -0
  297. package/baseline/skill/cloudflare/references/secrets-store/configuration.md +140 -0
  298. package/baseline/skill/cloudflare/references/secrets-store/gotchas.md +129 -0
  299. package/baseline/skill/cloudflare/references/secrets-store/patterns.md +218 -0
  300. package/baseline/skill/cloudflare/references/smart-placement/README.md +91 -0
  301. package/baseline/skill/cloudflare/references/smart-placement/api.md +139 -0
  302. package/baseline/skill/cloudflare/references/smart-placement/configuration.md +129 -0
  303. package/baseline/skill/cloudflare/references/smart-placement/gotchas.md +87 -0
  304. package/baseline/skill/cloudflare/references/smart-placement/patterns.md +135 -0
  305. package/baseline/skill/cloudflare/references/snippets/README.md +15 -0
  306. package/baseline/skill/cloudflare/references/snippets/api.md +47 -0
  307. package/baseline/skill/cloudflare/references/snippets/configuration.md +33 -0
  308. package/baseline/skill/cloudflare/references/snippets/gotchas.md +21 -0
  309. package/baseline/skill/cloudflare/references/snippets/patterns.md +34 -0
  310. package/baseline/skill/cloudflare/references/spectrum/README.md +16 -0
  311. package/baseline/skill/cloudflare/references/spectrum/api.md +24 -0
  312. package/baseline/skill/cloudflare/references/spectrum/configuration.md +43 -0
  313. package/baseline/skill/cloudflare/references/spectrum/gotchas.md +42 -0
  314. package/baseline/skill/cloudflare/references/spectrum/patterns.md +40 -0
  315. package/baseline/skill/cloudflare/references/static-assets/README.md +14 -0
  316. package/baseline/skill/cloudflare/references/static-assets/api.md +3 -0
  317. package/baseline/skill/cloudflare/references/static-assets/configuration.md +47 -0
  318. package/baseline/skill/cloudflare/references/static-assets/gotchas.md +44 -0
  319. package/baseline/skill/cloudflare/references/static-assets/patterns.md +42 -0
  320. package/baseline/skill/cloudflare/references/stream/README.md +103 -0
  321. package/baseline/skill/cloudflare/references/stream/api.md +204 -0
  322. package/baseline/skill/cloudflare/references/stream/configuration.md +127 -0
  323. package/baseline/skill/cloudflare/references/stream/gotchas.md +131 -0
  324. package/baseline/skill/cloudflare/references/stream/patterns.md +152 -0
  325. package/baseline/skill/cloudflare/references/tail-workers/README.md +640 -0
  326. package/baseline/skill/cloudflare/references/terraform/README.md +76 -0
  327. package/baseline/skill/cloudflare/references/terraform/api.md +159 -0
  328. package/baseline/skill/cloudflare/references/terraform/configuration.md +156 -0
  329. package/baseline/skill/cloudflare/references/terraform/gotchas.md +207 -0
  330. package/baseline/skill/cloudflare/references/terraform/patterns.md +135 -0
  331. package/baseline/skill/cloudflare/references/tunnel/README.md +82 -0
  332. package/baseline/skill/cloudflare/references/tunnel/api.md +105 -0
  333. package/baseline/skill/cloudflare/references/tunnel/configuration.md +113 -0
  334. package/baseline/skill/cloudflare/references/tunnel/gotchas.md +115 -0
  335. package/baseline/skill/cloudflare/references/tunnel/patterns.md +157 -0
  336. package/baseline/skill/cloudflare/references/turn/README.md +699 -0
  337. package/baseline/skill/cloudflare/references/turnstile/README.md +14 -0
  338. package/baseline/skill/cloudflare/references/turnstile/api.md +3 -0
  339. package/baseline/skill/cloudflare/references/turnstile/configuration.md +19 -0
  340. package/baseline/skill/cloudflare/references/turnstile/gotchas.md +27 -0
  341. package/baseline/skill/cloudflare/references/turnstile/patterns.md +41 -0
  342. package/baseline/skill/cloudflare/references/vectorize/README.md +682 -0
  343. package/baseline/skill/cloudflare/references/waf/README.md +14 -0
  344. package/baseline/skill/cloudflare/references/waf/api.md +3 -0
  345. package/baseline/skill/cloudflare/references/waf/configuration.md +44 -0
  346. package/baseline/skill/cloudflare/references/waf/gotchas.md +24 -0
  347. package/baseline/skill/cloudflare/references/waf/patterns.md +29 -0
  348. package/baseline/skill/cloudflare/references/web-analytics/README.md +19 -0
  349. package/baseline/skill/cloudflare/references/web-analytics/api.md +52 -0
  350. package/baseline/skill/cloudflare/references/web-analytics/configuration.md +31 -0
  351. package/baseline/skill/cloudflare/references/web-analytics/gotchas.md +28 -0
  352. package/baseline/skill/cloudflare/references/web-analytics/patterns.md +52 -0
  353. package/baseline/skill/cloudflare/references/workerd/README.md +47 -0
  354. package/baseline/skill/cloudflare/references/workerd/api.md +199 -0
  355. package/baseline/skill/cloudflare/references/workerd/configuration.md +185 -0
  356. package/baseline/skill/cloudflare/references/workerd/gotchas.md +203 -0
  357. package/baseline/skill/cloudflare/references/workerd/patterns.md +216 -0
  358. package/baseline/skill/cloudflare/references/workers/README.md +96 -0
  359. package/baseline/skill/cloudflare/references/workers/api.md +137 -0
  360. package/baseline/skill/cloudflare/references/workers/configuration.md +147 -0
  361. package/baseline/skill/cloudflare/references/workers/gotchas.md +99 -0
  362. package/baseline/skill/cloudflare/references/workers/patterns.md +149 -0
  363. package/baseline/skill/cloudflare/references/workers-ai/README.md +116 -0
  364. package/baseline/skill/cloudflare/references/workers-for-platforms/README.md +48 -0
  365. package/baseline/skill/cloudflare/references/workers-for-platforms/api.md +169 -0
  366. package/baseline/skill/cloudflare/references/workers-for-platforms/configuration.md +136 -0
  367. package/baseline/skill/cloudflare/references/workers-for-platforms/gotchas.md +130 -0
  368. package/baseline/skill/cloudflare/references/workers-for-platforms/patterns.md +170 -0
  369. package/baseline/skill/cloudflare/references/workers-playground/README.md +16 -0
  370. package/baseline/skill/cloudflare/references/workers-playground/api.md +20 -0
  371. package/baseline/skill/cloudflare/references/workers-playground/configuration.md +3 -0
  372. package/baseline/skill/cloudflare/references/workers-playground/gotchas.md +35 -0
  373. package/baseline/skill/cloudflare/references/workers-playground/patterns.md +42 -0
  374. package/baseline/skill/cloudflare/references/workers-vpc/README.md +579 -0
  375. package/baseline/skill/cloudflare/references/workflows/README.md +62 -0
  376. package/baseline/skill/cloudflare/references/workflows/api.md +125 -0
  377. package/baseline/skill/cloudflare/references/workflows/configuration.md +177 -0
  378. package/baseline/skill/cloudflare/references/workflows/gotchas.md +136 -0
  379. package/baseline/skill/cloudflare/references/workflows/patterns.md +132 -0
  380. package/baseline/skill/cloudflare/references/wrangler/README.md +90 -0
  381. package/baseline/skill/cloudflare/references/wrangler/api.md +140 -0
  382. package/baseline/skill/cloudflare/references/wrangler/configuration.md +128 -0
  383. package/baseline/skill/cloudflare/references/wrangler/gotchas.md +93 -0
  384. package/baseline/skill/cloudflare/references/wrangler/patterns.md +150 -0
  385. package/baseline/skill/cloudflare/references/zaraz/README.md +360 -0
  386. package/baseline/skill/code-navigation/SKILL.md +130 -0
  387. package/baseline/skill/compaction/SKILL.md +317 -0
  388. package/baseline/skill/condition-based-waiting/SKILL.md +123 -0
  389. package/baseline/skill/condition-based-waiting/example.ts +158 -0
  390. package/baseline/skill/context-engineering/SKILL.md +176 -0
  391. package/baseline/skill/context-initialization/SKILL.md +70 -0
  392. package/baseline/skill/context-management/SKILL.md +163 -0
  393. package/baseline/skill/core-data-expert/SKILL.md +93 -0
  394. package/baseline/skill/core-data-expert/references/batch-operations.md +543 -0
  395. package/baseline/skill/core-data-expert/references/cloudkit-integration.md +259 -0
  396. package/baseline/skill/core-data-expert/references/concurrency.md +522 -0
  397. package/baseline/skill/core-data-expert/references/fetch-requests.md +643 -0
  398. package/baseline/skill/core-data-expert/references/glossary.md +233 -0
  399. package/baseline/skill/core-data-expert/references/migration.md +393 -0
  400. package/baseline/skill/core-data-expert/references/model-configuration.md +597 -0
  401. package/baseline/skill/core-data-expert/references/performance.md +300 -0
  402. package/baseline/skill/core-data-expert/references/persistent-history.md +553 -0
  403. package/baseline/skill/core-data-expert/references/project-audit.md +60 -0
  404. package/baseline/skill/core-data-expert/references/saving.md +574 -0
  405. package/baseline/skill/core-data-expert/references/stack-setup.md +625 -0
  406. package/baseline/skill/core-data-expert/references/testing.md +300 -0
  407. package/baseline/skill/core-data-expert/references/threading.md +589 -0
  408. package/baseline/skill/deep-research/SKILL.md +384 -0
  409. package/baseline/skill/defense-in-depth/SKILL.md +166 -0
  410. package/baseline/skill/design-system-audit/SKILL.md +153 -0
  411. package/baseline/skill/development-lifecycle/SKILL.md +356 -0
  412. package/baseline/skill/dispatching-parallel-agents/SKILL.md +191 -0
  413. package/baseline/skill/executing-plans/SKILL.md +247 -0
  414. package/baseline/skill/figma/SKILL.md +224 -0
  415. package/baseline/skill/finishing-a-development-branch/SKILL.md +357 -0
  416. package/baseline/skill/frontend-design/SKILL.md +235 -0
  417. package/baseline/skill/frontend-design/references/animation/motion-advanced.md +224 -0
  418. package/baseline/skill/frontend-design/references/animation/motion-core.md +181 -0
  419. package/baseline/skill/frontend-design/references/canvas/execution.md +90 -0
  420. package/baseline/skill/frontend-design/references/canvas/philosophy.md +94 -0
  421. package/baseline/skill/frontend-design/references/design/color-system.md +111 -0
  422. package/baseline/skill/frontend-design/references/design/interaction.md +149 -0
  423. package/baseline/skill/frontend-design/references/design/typography-rules.md +106 -0
  424. package/baseline/skill/frontend-design/references/design/ux-writing.md +99 -0
  425. package/baseline/skill/frontend-design/references/shadcn/accessibility.md +132 -0
  426. package/baseline/skill/frontend-design/references/shadcn/core-components.md +153 -0
  427. package/baseline/skill/frontend-design/references/shadcn/form-components.md +158 -0
  428. package/baseline/skill/frontend-design/references/shadcn/setup.md +69 -0
  429. package/baseline/skill/frontend-design/references/shadcn/theming.md +152 -0
  430. package/baseline/skill/frontend-design/references/tailwind/responsive.md +112 -0
  431. package/baseline/skill/frontend-design/references/tailwind/utilities-layout.md +134 -0
  432. package/baseline/skill/frontend-design/references/tailwind/utilities-styling.md +165 -0
  433. package/baseline/skill/frontend-design/references/tailwind/v4-config.md +147 -0
  434. package/baseline/skill/frontend-design/references/tailwind/v4-features.md +128 -0
  435. package/baseline/skill/gemini-large-context/SKILL.md +216 -0
  436. package/baseline/skill/index-knowledge/SKILL.md +413 -0
  437. package/baseline/skill/jira/SKILL.md +283 -0
  438. package/baseline/skill/jira/mcp.json +6 -0
  439. package/baseline/skill/memory-system/SKILL.md +84 -0
  440. package/baseline/skill/mockup-to-code/SKILL.md +184 -0
  441. package/baseline/skill/mqdh/SKILL.md +171 -0
  442. package/baseline/skill/obsidian/SKILL.md +192 -0
  443. package/baseline/skill/obsidian/mcp.json +22 -0
  444. package/baseline/skill/opensrc/SKILL.md +127 -0
  445. package/baseline/skill/opensrc/references/architecture.md +176 -0
  446. package/baseline/skill/opensrc/references/cli-usage.md +176 -0
  447. package/baseline/skill/opensrc/references/registry-support.md +137 -0
  448. package/baseline/skill/pdf-extract/SKILL.md +438 -0
  449. package/baseline/skill/playwright/SKILL.md +320 -0
  450. package/baseline/skill/playwright/mcp.json +16 -0
  451. package/baseline/skill/playwriter/SKILL.md +158 -0
  452. package/baseline/skill/polar/SKILL.md +102 -0
  453. package/baseline/skill/prd/SKILL.md +146 -0
  454. package/baseline/skill/prd-task/SKILL.md +182 -0
  455. package/baseline/skill/prd-task/references/prd-schema.json +124 -0
  456. package/baseline/skill/ralph/SKILL.md +296 -0
  457. package/baseline/skill/react-best-practices/AGENTS.md +2410 -0
  458. package/baseline/skill/react-best-practices/README.md +123 -0
  459. package/baseline/skill/react-best-practices/SKILL.md +133 -0
  460. package/baseline/skill/react-best-practices/metadata.json +15 -0
  461. package/baseline/skill/react-best-practices/rules/_sections.md +46 -0
  462. package/baseline/skill/react-best-practices/rules/_template.md +28 -0
  463. package/baseline/skill/react-best-practices/rules/advanced-event-handler-refs.md +55 -0
  464. package/baseline/skill/react-best-practices/rules/advanced-use-latest.md +49 -0
  465. package/baseline/skill/react-best-practices/rules/async-api-routes.md +38 -0
  466. package/baseline/skill/react-best-practices/rules/async-defer-await.md +80 -0
  467. package/baseline/skill/react-best-practices/rules/async-dependencies.md +36 -0
  468. package/baseline/skill/react-best-practices/rules/async-parallel.md +28 -0
  469. package/baseline/skill/react-best-practices/rules/async-suspense-boundaries.md +99 -0
  470. package/baseline/skill/react-best-practices/rules/bundle-barrel-imports.md +59 -0
  471. package/baseline/skill/react-best-practices/rules/bundle-conditional.md +31 -0
  472. package/baseline/skill/react-best-practices/rules/bundle-defer-third-party.md +49 -0
  473. package/baseline/skill/react-best-practices/rules/bundle-dynamic-imports.md +35 -0
  474. package/baseline/skill/react-best-practices/rules/bundle-preload.md +50 -0
  475. package/baseline/skill/react-best-practices/rules/client-event-listeners.md +74 -0
  476. package/baseline/skill/react-best-practices/rules/client-localstorage-schema.md +71 -0
  477. package/baseline/skill/react-best-practices/rules/client-passive-event-listeners.md +48 -0
  478. package/baseline/skill/react-best-practices/rules/client-swr-dedup.md +56 -0
  479. package/baseline/skill/react-best-practices/rules/js-batch-dom-css.md +82 -0
  480. package/baseline/skill/react-best-practices/rules/js-cache-function-results.md +80 -0
  481. package/baseline/skill/react-best-practices/rules/js-cache-property-access.md +28 -0
  482. package/baseline/skill/react-best-practices/rules/js-cache-storage.md +70 -0
  483. package/baseline/skill/react-best-practices/rules/js-combine-iterations.md +32 -0
  484. package/baseline/skill/react-best-practices/rules/js-early-exit.md +50 -0
  485. package/baseline/skill/react-best-practices/rules/js-hoist-regexp.md +45 -0
  486. package/baseline/skill/react-best-practices/rules/js-index-maps.md +37 -0
  487. package/baseline/skill/react-best-practices/rules/js-length-check-first.md +49 -0
  488. package/baseline/skill/react-best-practices/rules/js-min-max-loop.md +82 -0
  489. package/baseline/skill/react-best-practices/rules/js-set-map-lookups.md +24 -0
  490. package/baseline/skill/react-best-practices/rules/js-tosorted-immutable.md +57 -0
  491. package/baseline/skill/react-best-practices/rules/rendering-activity.md +26 -0
  492. package/baseline/skill/react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
  493. package/baseline/skill/react-best-practices/rules/rendering-conditional-render.md +40 -0
  494. package/baseline/skill/react-best-practices/rules/rendering-content-visibility.md +38 -0
  495. package/baseline/skill/react-best-practices/rules/rendering-hoist-jsx.md +46 -0
  496. package/baseline/skill/react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
  497. package/baseline/skill/react-best-practices/rules/rendering-svg-precision.md +28 -0
  498. package/baseline/skill/react-best-practices/rules/rerender-defer-reads.md +39 -0
  499. package/baseline/skill/react-best-practices/rules/rerender-dependencies.md +45 -0
  500. package/baseline/skill/react-best-practices/rules/rerender-derived-state.md +29 -0
  501. package/baseline/skill/react-best-practices/rules/rerender-functional-setstate.md +74 -0
  502. package/baseline/skill/react-best-practices/rules/rerender-lazy-state-init.md +58 -0
  503. package/baseline/skill/react-best-practices/rules/rerender-memo.md +44 -0
  504. package/baseline/skill/react-best-practices/rules/rerender-transitions.md +40 -0
  505. package/baseline/skill/react-best-practices/rules/server-after-nonblocking.md +73 -0
  506. package/baseline/skill/react-best-practices/rules/server-cache-lru.md +41 -0
  507. package/baseline/skill/react-best-practices/rules/server-cache-react.md +76 -0
  508. package/baseline/skill/react-best-practices/rules/server-parallel-fetching.md +83 -0
  509. package/baseline/skill/react-best-practices/rules/server-serialization.md +38 -0
  510. package/baseline/skill/receiving-code-review/SKILL.md +252 -0
  511. package/baseline/skill/requesting-code-review/SKILL.md +397 -0
  512. package/baseline/skill/requesting-code-review/review.md +160 -0
  513. package/baseline/skill/resend/SKILL.md +177 -0
  514. package/baseline/skill/resend/references/react-email.md +287 -0
  515. package/baseline/skill/resend/references/receive-email.md +248 -0
  516. package/baseline/skill/resend/references/send-email.md +318 -0
  517. package/baseline/skill/root-cause-tracing/SKILL.md +192 -0
  518. package/baseline/skill/root-cause-tracing/find-polluter.sh +63 -0
  519. package/baseline/skill/session-management/SKILL.md +9 -0
  520. package/baseline/skill/sharing-skills/SKILL.md +214 -0
  521. package/baseline/skill/skill-creator/SKILL.md +156 -0
  522. package/baseline/skill/source-code-research/SKILL.md +293 -0
  523. package/baseline/skill/source-code-research/references/analysis-tips.md +43 -0
  524. package/baseline/skill/source-code-research/references/anti-patterns.md +36 -0
  525. package/baseline/skill/source-code-research/references/common-patterns.md +57 -0
  526. package/baseline/skill/source-code-research/references/example-workflow.md +60 -0
  527. package/baseline/skill/source-code-research/references/further-reading.md +5 -0
  528. package/baseline/skill/source-code-research/references/source-structure.md +45 -0
  529. package/baseline/skill/stitch/SKILL.md +147 -0
  530. package/baseline/skill/stitch/mcp.json +9 -0
  531. package/baseline/skill/structured-edit/SKILL.md +181 -0
  532. package/baseline/skill/subagent-driven-development/SKILL.md +237 -0
  533. package/baseline/skill/supabase/SKILL.md +130 -0
  534. package/baseline/skill/supabase/mcp.json +27 -0
  535. package/baseline/skill/supabase-postgres-best-practices/AGENTS.md +1490 -0
  536. package/baseline/skill/supabase-postgres-best-practices/SKILL.md +65 -0
  537. package/baseline/skill/supabase-postgres-best-practices/rules/advanced-full-text-search.md +55 -0
  538. package/baseline/skill/supabase-postgres-best-practices/rules/advanced-jsonb-indexing.md +49 -0
  539. package/baseline/skill/supabase-postgres-best-practices/rules/conn-idle-timeout.md +46 -0
  540. package/baseline/skill/supabase-postgres-best-practices/rules/conn-limits.md +44 -0
  541. package/baseline/skill/supabase-postgres-best-practices/rules/conn-pooling.md +41 -0
  542. package/baseline/skill/supabase-postgres-best-practices/rules/conn-prepared-statements.md +46 -0
  543. package/baseline/skill/supabase-postgres-best-practices/rules/data-batch-inserts.md +54 -0
  544. package/baseline/skill/supabase-postgres-best-practices/rules/data-n-plus-one.md +53 -0
  545. package/baseline/skill/supabase-postgres-best-practices/rules/data-pagination.md +50 -0
  546. package/baseline/skill/supabase-postgres-best-practices/rules/data-upsert.md +50 -0
  547. package/baseline/skill/supabase-postgres-best-practices/rules/lock-advisory.md +56 -0
  548. package/baseline/skill/supabase-postgres-best-practices/rules/lock-deadlock-prevention.md +68 -0
  549. package/baseline/skill/supabase-postgres-best-practices/rules/lock-short-transactions.md +50 -0
  550. package/baseline/skill/supabase-postgres-best-practices/rules/lock-skip-locked.md +54 -0
  551. package/baseline/skill/supabase-postgres-best-practices/rules/monitor-explain-analyze.md +45 -0
  552. package/baseline/skill/supabase-postgres-best-practices/rules/monitor-pg-stat-statements.md +55 -0
  553. package/baseline/skill/supabase-postgres-best-practices/rules/monitor-vacuum-analyze.md +55 -0
  554. package/baseline/skill/supabase-postgres-best-practices/rules/query-composite-indexes.md +44 -0
  555. package/baseline/skill/supabase-postgres-best-practices/rules/query-covering-indexes.md +40 -0
  556. package/baseline/skill/supabase-postgres-best-practices/rules/query-index-types.md +45 -0
  557. package/baseline/skill/supabase-postgres-best-practices/rules/query-missing-indexes.md +43 -0
  558. package/baseline/skill/supabase-postgres-best-practices/rules/query-partial-indexes.md +45 -0
  559. package/baseline/skill/supabase-postgres-best-practices/rules/schema-data-types.md +46 -0
  560. package/baseline/skill/supabase-postgres-best-practices/rules/schema-foreign-key-indexes.md +59 -0
  561. package/baseline/skill/supabase-postgres-best-practices/rules/schema-lowercase-identifiers.md +55 -0
  562. package/baseline/skill/supabase-postgres-best-practices/rules/schema-partitioning.md +55 -0
  563. package/baseline/skill/supabase-postgres-best-practices/rules/schema-primary-keys.md +61 -0
  564. package/baseline/skill/supabase-postgres-best-practices/rules/security-privileges.md +54 -0
  565. package/baseline/skill/supabase-postgres-best-practices/rules/security-rls-basics.md +50 -0
  566. package/baseline/skill/supabase-postgres-best-practices/rules/security-rls-performance.md +57 -0
  567. package/baseline/skill/swarm-coordination/SKILL.md +179 -0
  568. package/baseline/skill/swarm-coordination/references/architecture.md +39 -0
  569. package/baseline/skill/swarm-coordination/references/delegation-worker-protocol.md +145 -0
  570. package/baseline/skill/swarm-coordination/references/dependency-graph.md +50 -0
  571. package/baseline/skill/swarm-coordination/references/drift-check.md +90 -0
  572. package/baseline/skill/swarm-coordination/references/integration-beads.md +20 -0
  573. package/baseline/skill/swarm-coordination/references/launch-flow.md +186 -0
  574. package/baseline/skill/swarm-coordination/references/reconciler.md +172 -0
  575. package/baseline/skill/swarm-coordination/references/tier-enforcement.md +78 -0
  576. package/baseline/skill/swarm-coordination/references/tmux-integration.md +134 -0
  577. package/baseline/skill/swift-concurrency/SKILL.md +266 -0
  578. package/baseline/skill/swift-concurrency/references/actors.md +640 -0
  579. package/baseline/skill/swift-concurrency/references/async-algorithms.md +822 -0
  580. package/baseline/skill/swift-concurrency/references/async-await-basics.md +249 -0
  581. package/baseline/skill/swift-concurrency/references/async-sequences.md +670 -0
  582. package/baseline/skill/swift-concurrency/references/core-data.md +533 -0
  583. package/baseline/skill/swift-concurrency/references/glossary.md +128 -0
  584. package/baseline/skill/swift-concurrency/references/linting.md +142 -0
  585. package/baseline/skill/swift-concurrency/references/memory-management.md +542 -0
  586. package/baseline/skill/swift-concurrency/references/migration.md +1076 -0
  587. package/baseline/skill/swift-concurrency/references/performance.md +574 -0
  588. package/baseline/skill/swift-concurrency/references/sendable.md +578 -0
  589. package/baseline/skill/swift-concurrency/references/tasks.md +604 -0
  590. package/baseline/skill/swift-concurrency/references/testing.md +565 -0
  591. package/baseline/skill/swift-concurrency/references/threading.md +452 -0
  592. package/baseline/skill/swiftui-expert-skill/SKILL.md +329 -0
  593. package/baseline/skill/swiftui-expert-skill/references/animation-advanced.md +351 -0
  594. package/baseline/skill/swiftui-expert-skill/references/animation-basics.md +284 -0
  595. package/baseline/skill/swiftui-expert-skill/references/animation-transitions.md +326 -0
  596. package/baseline/skill/swiftui-expert-skill/references/image-optimization.md +286 -0
  597. package/baseline/skill/swiftui-expert-skill/references/layout-best-practices.md +312 -0
  598. package/baseline/skill/swiftui-expert-skill/references/liquid-glass.md +377 -0
  599. package/baseline/skill/swiftui-expert-skill/references/list-patterns.md +153 -0
  600. package/baseline/skill/swiftui-expert-skill/references/modern-apis.md +400 -0
  601. package/baseline/skill/swiftui-expert-skill/references/performance-patterns.md +377 -0
  602. package/baseline/skill/swiftui-expert-skill/references/scroll-patterns.md +305 -0
  603. package/baseline/skill/swiftui-expert-skill/references/sheet-navigation-patterns.md +292 -0
  604. package/baseline/skill/swiftui-expert-skill/references/state-management.md +447 -0
  605. package/baseline/skill/swiftui-expert-skill/references/text-formatting.md +285 -0
  606. package/baseline/skill/swiftui-expert-skill/references/view-structure.md +276 -0
  607. package/baseline/skill/systematic-debugging/SKILL.md +402 -0
  608. package/baseline/skill/test-driven-development/SKILL.md +388 -0
  609. package/baseline/skill/testing-anti-patterns/SKILL.md +333 -0
  610. package/baseline/skill/testing-skills-with-subagents/SKILL.md +405 -0
  611. package/baseline/skill/tilth-cli/SKILL.md +180 -0
  612. package/baseline/skill/tool-priority/SKILL.md +299 -0
  613. package/baseline/skill/ui-ux-research/SKILL.md +9 -0
  614. package/baseline/skill/using-git-worktrees/SKILL.md +259 -0
  615. package/baseline/skill/using-skills/SKILL.md +117 -0
  616. package/baseline/skill/v0/SKILL.md +158 -0
  617. package/baseline/skill/v1-run/SKILL.md +175 -0
  618. package/baseline/skill/v1-run/mcp.json +6 -0
  619. package/baseline/skill/vercel-deploy-claimable/SKILL.md +124 -0
  620. package/baseline/skill/vercel-deploy-claimable/scripts/deploy.sh +249 -0
  621. package/baseline/skill/verification-before-completion/SKILL.md +236 -0
  622. package/baseline/skill/verification-before-completion/references/VERIFICATION_PROTOCOL.md +171 -0
  623. package/baseline/skill/visual-analysis/SKILL.md +154 -0
  624. package/baseline/skill/web-design-guidelines/SKILL.md +46 -0
  625. package/baseline/skill/writing-plans/SKILL.md +320 -0
  626. package/baseline/skill/writing-skills/SKILL.md +287 -0
  627. package/baseline/skill/writing-skills/anthropic-best-practices.md +1173 -0
  628. package/baseline/skill/writing-skills/graphviz-conventions.dot +172 -0
  629. package/baseline/skill/writing-skills/persuasion-principles.md +220 -0
  630. package/baseline/skill/writing-skills/references/anti-patterns.md +25 -0
  631. package/baseline/skill/writing-skills/references/claude-search-optimization.md +140 -0
  632. package/baseline/skill/writing-skills/references/discovery-workflow.md +11 -0
  633. package/baseline/skill/writing-skills/references/file-organization.md +32 -0
  634. package/baseline/skill/writing-skills/references/flowcharts-and-examples.md +57 -0
  635. package/baseline/skill/writing-skills/references/rationalization-hardening.md +75 -0
  636. package/baseline/skill/writing-skills/references/testing-skill-types.md +52 -0
  637. package/baseline/tool/context7.ts +191 -0
  638. package/baseline/tool/grepsearch.ts +143 -0
  639. package/baseline/tsconfig.json +21 -0
  640. package/baseline/tui.json +15 -0
  641. package/bin/mrc-opc.mjs +25 -0
  642. package/bin/ocp.mjs +25 -0
  643. package/bin/opc.mjs +25 -0
  644. package/bin/opencode-starterkit.mjs +25 -0
  645. package/docs/reports/2026-03-18-memory-db-architecture-note.md +47 -0
  646. package/docs/reports/2026-03-18-vat-opencode-classification-matrix.md +180 -0
  647. package/package.json +25 -0
  648. package/src/cli.mjs +41 -0
  649. package/src/config-merge.mjs +61 -0
  650. package/src/constants.mjs +58 -0
  651. package/src/fs-utils.mjs +46 -0
  652. package/src/install-global.mjs +102 -0
  653. package/src/install-project.mjs +81 -0
  654. package/src/memory-bootstrap.mjs +29 -0
  655. package/src/prompt.mjs +31 -0
  656. package/src/templates.mjs +31 -0
@@ -0,0 +1,213 @@
1
+ ---
2
+ purpose: Systematic effectiveness audit of all template skills, tools, and commands
3
+ updated: 2026-03-08
4
+ framework: benchmark-framework.md (7 dimensions, 0-2 each, max 14)
5
+ ---
6
+
7
+ # Effectiveness Audit — OpenCodeKit Template
8
+
9
+ ## Methodology
10
+
11
+ Scored 25+ skills, 2 tools, 18 commands using the benchmark framework.
12
+ Dimensions: **T**rigger clarity, **R**eplaces X, **E**xamples, **A**nti-patterns, **V**erification, **Tok**en efficiency, **X**-references.
13
+ Scale: 0=missing, 1=partial, 2=strong. Max: 14.
14
+
15
+ ## Summary
16
+
17
+ | Metric | Value |
18
+ | ------------------ | -------- |
19
+ | Total skills | 73 |
20
+ | Reviewed in detail | 25 |
21
+ | Exemplary (12-14) | 5 (20%) |
22
+ | Adequate (8-11) | 10 (40%) |
23
+ | Needs Work (4-7) | 8 (32%) |
24
+ | Poor (0-3) | 2 (8%) |
25
+ | Custom tools | 2 |
26
+ | Commands | 18 |
27
+
28
+ ## Tier 1: Exemplary (12-14)
29
+
30
+ Skills ready to ship — high adoption, measurable value.
31
+
32
+ | Skill | T | R | E | A | V | Tok | X | Total | Tokens | Notes |
33
+ | ------------------------------ | --- | --- | --- | --- | --- | --- | --- | ------ | ------ | ----------------------------------------------------------------------- |
34
+ | structured-edit | 2 | 1 | 2 | 2 | 2 | 2 | 2 | **13** | ~1.3k | Gold standard. 5-step protocol, Red Flags, BAD/GOOD examples, quick ref |
35
+ | code-navigation | 2 | 2 | 2 | 2 | 0 | 2 | 2 | **12** | ~1.2k | 7 patterns, tilth comparison, cost awareness, right/wrong examples |
36
+ | verification-before-completion | 2 | 0 | 2 | 2 | 2 | 2 | 1 | **11** | ~1.6k | Iron Law, rationalization prevention, smart verification |
37
+ | tool-priority | 2 | 2 | 2 | 2 | 0 | 1 | 2 | **11** | ~3.3k | "Replaces X" on all tools, tilth section, LSP 9-op table |
38
+ | requesting-code-review | 2 | 0 | 2 | 2 | 2 | 1 | 2 | **11** | ~2.5k | 3 review depths, 5 reviewer prompts, synthesis checklist |
39
+
40
+ ### What makes these work
41
+
42
+ 1. **Right/wrong examples** — Every exemplary skill shows incorrect then correct approach
43
+ 2. **Tables over prose** — Decision tables, comparison tables, common mistakes tables
44
+ 3. **Integrated verification** — structured-edit Step 5 (CONFIRM), verification-before-completion Iron Law
45
+ 4. **Quick reference blocks** — structured-edit and tool-priority both end with copy-pasteable references
46
+ 5. **"Replaces X" framing** — code-navigation and tool-priority explicitly state what they supersede
47
+
48
+ ## Tier 2: Adequate (8-11)
49
+
50
+ Functional but missing patterns that would improve adoption.
51
+
52
+ | Skill | T | R | E | A | V | Tok | X | Total | Tokens | Gap |
53
+ | --------------------------- | --- | --- | --- | --- | --- | --- | --- | ------ | ------ | ---------------------------------------------------- |
54
+ | dispatching-parallel-agents | 2 | 0 | 2 | 2 | 2 | 2 | 0 | **10** | ~1.4k | No "Replaces X", no cross-refs |
55
+ | executing-plans | 2 | 0 | 2 | 1 | 2 | 1 | 2 | **10** | ~1.5k | No "Replaces X" |
56
+ | agent-teams | 2 | 0 | 2 | 2 | 1 | 1 | 1 | **9** | ~2.1k | No "Replaces X", could be more token-efficient |
57
+ | condition-based-waiting | 2 | 1 | 2 | 2 | 0 | 2 | 0 | **9** | ~868 | No verification step, no cross-refs |
58
+ | root-cause-tracing | 2 | 0 | 2 | 0 | 1 | 2 | 1 | **8** | ~1.2k | No anti-patterns, no "Replaces X" |
59
+ | writing-plans | 2 | 0 | 2 | 1 | 1 | 1 | 1 | **8** | ~2.0k | No "Replaces X", could trim |
60
+ | beads | 2 | 0 | 2 | 0 | 0 | 2 | 2 | **8** | ~1.2k | No anti-patterns, no verification |
61
+ | receiving-code-review | 2 | 0 | 2 | 2 | 1 | 1 | 0 | **8** | ~1.7k | No "Replaces X", no cross-refs |
62
+ | defense-in-depth | 2 | 0 | 2 | 0 | 0 | 2 | 1 | **7** | ~1.0k | No anti-patterns, no verification |
63
+ | systematic-debugging | 2 | 0 | 2 | 1 | 0 | 1 | 0 | **6** | ~1.6k | Border case — no verification, limited anti-patterns |
64
+
65
+ ### Common gaps in this tier
66
+
67
+ 1. **No "Replaces X"** — 9/10 adequate skills lack replacement framing
68
+ 2. **Missing verification** — 6/10 don't integrate verification steps
69
+ 3. **No anti-patterns** — 5/10 lack anti-pattern sections
70
+ 4. **No cross-references** — 4/10 are isolated (no links to related skills)
71
+
72
+ ## Tier 3: Needs Work (4-7)
73
+
74
+ Significant gaps — may load but produce suboptimal results.
75
+
76
+ | Skill | T | R | E | A | V | Tok | X | Total | Tokens | Issue |
77
+ | --------------------------- | --- | --- | --- | --- | --- | --- | --- | ----- | ------ | ---------------------------------------------- |
78
+ | context-management | 2 | 0 | 2 | 1 | 0 | 1 | 0 | **6** | ~1.7k | Overlaps with DCP system prompts |
79
+ | session-management | 2 | 0 | 1 | 1 | 0 | 2 | 0 | **6** | ~848 | Generic, no tool examples |
80
+ | swarm-coordination | 2 | 0 | 1 | 1 | 0 | 1 | 1 | **6** | ~1.8k | Partially complete, missing examples |
81
+ | memory-system | 2 | 0 | 2 | 0 | 0 | 1 | 0 | **5** | ~2.4k | Token-heavy, no anti-patterns, no verification |
82
+ | brainstorming | 2 | 0 | 0 | 0 | 0 | 2 | 1 | **5** | ~832 | No examples, no anti-patterns |
83
+ | mockup-to-code | 2 | 0 | 1 | 0 | 0 | 2 | 0 | **5** | ~794 | Prompt templates only |
84
+ | subagent-driven-development | 2 | 0 | 1 | 0 | 0 | 2 | 0 | **5** | ~1.2k | No anti-patterns, no verification |
85
+ | visual-analysis | 2 | 0 | 1 | 0 | 0 | 2 | 0 | **5** | ~705 | Prompt templates only |
86
+
87
+ ### Common issues
88
+
89
+ 1. **Prompt-template-only pattern** — mockup-to-code, visual-analysis give templates without tool integration
90
+ 2. **No anti-patterns** — 7/8 lack anti-pattern sections entirely
91
+ 3. **No verification** — 8/8 don't integrate verification
92
+ 4. **No examples** — brainstorming has zero code examples
93
+
94
+ ## Tier 4: Poor (0-3)
95
+
96
+ Should be rewritten or merged.
97
+
98
+ | Skill | T | R | E | A | V | Tok | X | Total | Tokens | Action |
99
+ | ------------------- | --- | --- | --- | --- | --- | --- | --- | ----- | ------ | ------------------------------------------------------------ |
100
+ | ui-ux-research | 2 | 0 | 1 | 0 | 0 | 2 | 0 | **5** | ~609 | Merge into design-system-audit or rewrite with tool examples |
101
+ | design-system-audit | 2 | 0 | 1 | 0 | 0 | 2 | 0 | **5** | ~527 | Merge with ui-ux-research or add substance |
102
+
103
+ _Note: These scored 5 (Needs Work) on the rubric but are categorized as effective tier 4 because they consist entirely of prompt templates with no actionable tool integration, anti-patterns, or verification — making them the least effective in practice._
104
+
105
+ ## Not Reviewed (Estimated by Category)
106
+
107
+ These 48 skills were not read in detail. Estimates based on YAML description, size, and category patterns.
108
+
109
+ ### Platform-Specific (likely Adequate if domain is relevant)
110
+
111
+ - swiftui-expert-skill (~4.2k tokens) — Largest skill, likely good depth
112
+ - swift-concurrency, core-data-expert — Domain-specific
113
+ - react-best-practices, supabase-postgres-best-practices — Framework-specific
114
+
115
+ ### External Integrations (varies)
116
+
117
+ - resend, cloudflare, supabase, polar, jira, figma, stitch, v0, v1-run, mqdh
118
+ - These are MCP connector skills — effectiveness depends on API coverage
119
+
120
+ ### Meta Skills
121
+
122
+ - skill-creator, writing-skills, testing-skills-with-subagents, sharing-skills, using-skills
123
+ - Self-referential — should follow their own rules
124
+
125
+ ### Browser/Automation
126
+
127
+ - playwright, playwriter, agent-browser, chrome-devtools
128
+
129
+ ### Context/Lifecycle
130
+
131
+ - compaction, context-engineering, context-initialization, gemini-large-context
132
+ - development-lifecycle, prd, prd-task
133
+ - finishing-a-development-branch, using-git-worktrees
134
+ - deep-research, source-code-research, opensrc, augment-context-engine
135
+ - beads-bridge, ralph, index-knowledge, obsidian, pdf-extract
136
+ - accessibility-audit, web-design-guidelines, frontend-design
137
+
138
+ ## Tools Audit
139
+
140
+ | Tool | T | R | E | A | V | Tok | X | Total | Tokens | Notes |
141
+ | ---------- | --- | --- | --- | --- | --- | --- | --- | ----- | ------ | ------------------------------------------------------- |
142
+ | context7 | 2 | 2 | 2 | 0 | 0 | 1 | 0 | **7** | ~1.4k | Has "Replaces X" + WHEN/SKIP. Missing anti-patterns |
143
+ | grepsearch | 1 | 2 | 2 | 0 | 0 | 2 | 0 | **7** | ~946 | Has "Replaces X". Missing full SKIP gate, anti-patterns |
144
+
145
+ ### Tool recommendations
146
+
147
+ - Add anti-patterns to both tool descriptions (common misuse patterns)
148
+ - context7: Add "SKIP: Internal code (use tilth/grep)" explicitly
149
+ - grepsearch: Add full WHEN/SKIP binary gate
150
+
151
+ ## Commands Assessment
152
+
153
+ 18 commands total. Commands evaluated on: clear trigger, actionable steps, verification integration, error guidance.
154
+
155
+ | Command | Category | Quality | Notes |
156
+ | --------------------------- | -------- | ------- | ------------------------------------------------ |
157
+ | lfg | Workflow | High | Full chain orchestration |
158
+ | ship | Workflow | High | Clear gates and verification |
159
+ | plan | Planning | High | Structured output |
160
+ | verify | Quality | High | Recently improved (incremental, parallel, cache) |
161
+ | compound | Learning | High | Extracts learnings |
162
+ | start/resume/handoff | Session | Medium | Functional but could cross-ref more |
163
+ | status | Info | Medium | |
164
+ | pr | Git | Medium | |
165
+ | review-codebase | Quality | Medium | |
166
+ | research | Research | Medium | |
167
+ | design/ui-review | Design | Low | Prompt-template style |
168
+ | init/init-user/init-context | Setup | High | Well-tested |
169
+ | create | Meta | Medium | |
170
+
171
+ ## Overlap Analysis
172
+
173
+ | Pair | Overlap | Recommendation |
174
+ | -------------------------------------------------------------- | ------------------------------------ | ----------------------------------------------------- |
175
+ | context-management ↔ compaction | Both manage context size | Merge or clearly differentiate |
176
+ | agent-teams ↔ swarm-coordination ↔ dispatching-parallel-agents | All handle parallel agents | Create decision tree in agent-teams, reference others |
177
+ | session-management ↔ context-management | Both track context thresholds | Merge session into context-management |
178
+ | ui-ux-research ↔ design-system-audit ↔ visual-analysis | All design-focused prompt templates | Consolidate into one design-audit skill |
179
+ | beads ↔ beads-bridge | Bridge extends beads for multi-agent | Clear but should be documented in beads |
180
+ | structured-edit ↔ code-navigation | Both about code manipulation | Cross-reference each other |
181
+
182
+ ## Top 10 Improvement Priorities
183
+
184
+ Ranked by impact (core skills first, high-frequency usage).
185
+
186
+ | # | Action | Target | Impact |
187
+ | --- | -------------------------------------------------------------------------- | ----------------- | --------------------------- |
188
+ | 1 | Add "Replaces X" to top 10 skills | All tier 2 skills | +adoption (tilth: +36pp) |
189
+ | 2 | Add anti-patterns to beads, defense-in-depth, root-cause-tracing | Core debugging | +failure prevention |
190
+ | 3 | Add verification steps to condition-based-waiting, defense-in-depth, beads | Core workflow | +correctness |
191
+ | 4 | Consolidate context-management + session-management | Context skills | -redundancy, -token cost |
192
+ | 5 | Consolidate ui-ux-research + design-system-audit + visual-analysis | Design skills | -3 weak skills → 1 adequate |
193
+ | 6 | Rewrite brainstorming with concrete examples | Planning | +actionability |
194
+ | 7 | Add cross-references to isolated skills (6 skills) | Various | +routing |
195
+ | 8 | Trim memory-system from 2.4k to ~1.5k tokens | Core | +token efficiency |
196
+ | 9 | Add "Replaces X" to tools (context7 SKIP gate, grepsearch WHEN gate) | Tools | +routing |
197
+ | 10 | Audit remaining 48 un-reviewed skills | All | Full coverage |
198
+
199
+ ## Template-Level Metrics
200
+
201
+ | Metric | Target | Current | Status |
202
+ | ----------------------------- | ------ | ---------------- | ---------- |
203
+ | Core skills at Exemplary tier | 100% | 50% (5/10 core) | Needs work |
204
+ | No skills at Poor tier | 0 | 2 | Needs work |
205
+ | Average token cost per skill | <1500 | ~1.5k (reviewed) | Borderline |
206
+ | Skills with WHEN/SKIP gates | 100% | 100% (reviewed) | PASS |
207
+ | Skills with anti-patterns | >75% | 44% (11/25) | Needs work |
208
+ | Overlap/redundancy pairs | 0 | 6 pairs | Needs work |
209
+
210
+ ---
211
+
212
+ _Next: Apply improvement priorities starting with #1 (add "Replaces X" to tier 2 skills)._
213
+ _Re-audit after changes to measure improvement._
@@ -0,0 +1,129 @@
1
+ # OpenCode MCP Bug Report
2
+
3
+ ## Title
4
+
5
+ MCP tool calls fail with `TypeError: undefined is not an object (evaluating 'output.output.includes')` despite successful connection
6
+
7
+ ## Environment
8
+
9
+ - **OpenCode version**: 1.1.36
10
+ - **OS**: macOS (darwin)
11
+ - **Node version**: (run `node --version` to fill in)
12
+
13
+ ## MCP Servers Affected
14
+
15
+ - `context7` (https://mcp.context7.com/mcp)
16
+ - `gh_grep` (https://mcp.grep.app)
17
+
18
+ ## Description
19
+
20
+ MCP tool calls from the AI agent fail with a TypeError, even though the MCP servers connect successfully and respond with HTTP 200 OK.
21
+
22
+ ## Steps to Reproduce
23
+
24
+ 1. Configure MCP servers in `opencode.json`:
25
+
26
+ ```json
27
+ {
28
+ "mcp": {
29
+ "context7": {
30
+ "type": "remote",
31
+ "url": "https://mcp.context7.com/mcp",
32
+ "headers": {
33
+ "CONTEXT7_API_KEY": "{env:CONTEXT7_API_KEY}"
34
+ }
35
+ },
36
+ "gh_grep": {
37
+ "type": "remote",
38
+ "url": "https://mcp.grep.app"
39
+ }
40
+ }
41
+ }
42
+ ```
43
+
44
+ 2. Set the `CONTEXT7_API_KEY` environment variable
45
+
46
+ 3. Verify MCP servers are connected:
47
+
48
+ ```bash
49
+ $ opencode mcp list
50
+ ✓ context7 connected - https://mcp.context7.com/mcp
51
+ ✓ gh_grep connected - https://mcp.grep.app
52
+ ```
53
+
54
+ 4. Debug shows successful connection:
55
+
56
+ ```bash
57
+ $ opencode mcp debug context7
58
+ HTTP response: 200 OK
59
+ Server info: name=Context7, version=2.0.2
60
+
61
+ $ opencode mcp debug gh_grep
62
+ HTTP response: 200 OK
63
+ ```
64
+
65
+ 5. Use the AI agent to call a tool:
66
+
67
+ ```
68
+ context7_resolve-library-id(query="React hooks", libraryName="react")
69
+ ```
70
+
71
+ ## Expected Behavior
72
+
73
+ The tool should return library information from Context7.
74
+
75
+ ## Actual Behavior
76
+
77
+ ```
78
+ TypeError: undefined is not an object (evaluating 'output.output.includes')
79
+ ```
80
+
81
+ ## Analysis
82
+
83
+ The error `output.output.includes` suggests there's code in OpenCode that does something like:
84
+
85
+ ```javascript
86
+ if (output.output.includes(...)) { ... }
87
+ ```
88
+
89
+ When `output` is undefined or doesn't have an `output` property, this crashes.
90
+
91
+ The bug is in **OpenCode's tool response handler**, not the MCP connection layer, because:
92
+
93
+ 1. `opencode mcp list` shows both servers as "connected"
94
+ 2. `opencode mcp debug` shows HTTP 200 OK responses
95
+ 3. The error happens only when the AI agent calls the tool
96
+
97
+ ## Resolution
98
+
99
+ ✅ **FIXED** - Replaced MCP tools with native HTTP wrappers:
100
+
101
+ - `context7_resolve-library-id` - Native HTTP wrapper (works)
102
+ - `context7_query-docs` - Native HTTP wrapper (works)
103
+ - `grepsearch` - Native HTTP wrapper (works)
104
+ - `codesearch` (Exa Code API) - works
105
+ - `websearch` (Exa Web Search) - works
106
+
107
+ ## Related Issues
108
+
109
+ - #6972 - May be related to Accept header issues
110
+ - #834 - SSE transport issues
111
+
112
+ ## Additional Context
113
+
114
+ Log entries show benign errors that don't cause the crash:
115
+
116
+ ```
117
+ ERROR service=mcp clientName=context7 error=MCP error -32601: Method not found failed to get prompts
118
+ ```
119
+
120
+ This is expected (prompts method not implemented), but the TypeError happens later in the response processing pipeline.
121
+
122
+ ---
123
+
124
+ ## How to File
125
+
126
+ 1. Go to: https://github.com/anomalyco/opencode/issues/new
127
+ 2. Title: `MCP tool calls fail with TypeError: output.output.includes despite successful connection`
128
+ 3. Copy the content above
129
+ 4. Add labels: `bug`, `mcp`
@@ -0,0 +1,226 @@
1
+ # OpenSpec Research Analysis
2
+
3
+ **Date:** 2026-02-01
4
+ **Source:** https://github.com/Fission-AI/OpenSpec
5
+
6
+ ## What is OpenSpec?
7
+
8
+ OpenSpec is a **spec-driven development framework** for AI coding assistants. It provides:
9
+ - A structured workflow for planning → implementing → verifying changes
10
+ - Schema-based artifact generation (proposal → specs → design → tasks)
11
+ - Git-tracked change folders with delta specs
12
+ - Archive system that merges changes into canonical specs
13
+
14
+ ## Core Philosophy
15
+
16
+ | Principle | Description |
17
+ |-----------|-------------|
18
+ | **Fluid, not rigid** | Commands are actions, not phase gates |
19
+ | **Iterative, not waterfall** | Edit artifacts during implementation |
20
+ | **Easy, not complex** | Sensible defaults, minimal config |
21
+ | **Brownfield-first** | Existing code > greenfield patterns |
22
+
23
+ ## Key Concepts
24
+
25
+ ### Directory Structure
26
+ ```
27
+ openspec/
28
+ ├── config.yaml # Project settings, context, rules
29
+ ├── specs/ # Source of truth for current behavior
30
+ └── changes/
31
+ └── <change-name>/
32
+ ├── .openspec.yaml
33
+ ├── proposal.md
34
+ ├── specs/ # Delta specs (ADDED/MODIFIED/REMOVED)
35
+ ├── design.md
36
+ └── tasks.md
37
+ ```
38
+
39
+ ### Artifact Flow (DAG)
40
+ ```
41
+ proposal → specs → design → tasks → apply
42
+ ```
43
+
44
+ Dependencies are **enablers not gates** - can edit earlier artifacts later.
45
+
46
+ ### Commands (OPSX Syntax)
47
+ | Command | Purpose |
48
+ |---------|---------|
49
+ | `/opsx:explore` | Think through ideas before committing |
50
+ | `/opsx:new` | Create change folder |
51
+ | `/opsx:continue` | Create next artifact |
52
+ | `/opsx:ff` | Fast-forward (create all artifacts) |
53
+ | `/opsx:apply` | Implement from tasks |
54
+ | `/opsx:verify` | Validate completeness/correctness/coherence |
55
+ | `/opsx:sync` | Merge delta specs to main specs |
56
+ | `/opsx:archive` | Complete and archive change |
57
+
58
+ ---
59
+
60
+ ## Schema System
61
+
62
+ ### schema.yaml Format
63
+ ```yaml
64
+ name: spec-driven
65
+ version: 1
66
+ description: The default workflow
67
+
68
+ artifacts:
69
+ - id: proposal
70
+ generates: proposal.md
71
+ template: proposal.md
72
+ instruction: |
73
+ Create a proposal explaining WHY this change is needed.
74
+ requires: []
75
+
76
+ - id: specs
77
+ generates: specs/**/*.md
78
+ template: spec.md
79
+ instruction: |
80
+ Create spec files for each capability.
81
+ requires: [proposal]
82
+
83
+ - id: design
84
+ generates: design.md
85
+ template: design.md
86
+ requires: [specs]
87
+
88
+ - id: tasks
89
+ generates: tasks.md
90
+ template: tasks.md
91
+ requires: [design]
92
+
93
+ apply:
94
+ requires: [tasks]
95
+ tracks: tasks.md
96
+ ```
97
+
98
+ ### config.yaml Format
99
+ ```yaml
100
+ schema: spec-driven
101
+
102
+ context: |
103
+ Tech stack: TypeScript, React, Node.js
104
+ API style: RESTful
105
+ Testing: Jest
106
+
107
+ rules:
108
+ proposal:
109
+ - Include rollback plan
110
+ specs:
111
+ - Use Given/When/Then format
112
+ ```
113
+
114
+ - **context**: Injected into ALL artifacts
115
+ - **rules**: Injected only into MATCHING artifact
116
+
117
+ ---
118
+
119
+ ## What OpenCodeKit Can Learn
120
+
121
+ ### 1. **Artifact-Based Workflow** (HIGH VALUE)
122
+ OpenSpec separates planning artifacts with explicit dependencies:
123
+ - `proposal.md` → Why + scope
124
+ - `specs/**/*.md` → Behavioral specs
125
+ - `design.md` → How to implement
126
+ - `tasks.md` → Checklist
127
+
128
+ **Current gap:** Our `/plan` creates a single plan.md. Consider:
129
+ - Explicit spec files per capability
130
+ - Delta spec format for changes to existing behavior
131
+
132
+ ### 2. **Schema-Driven Configuration** (MEDIUM VALUE)
133
+ OpenSpec uses YAML schemas that define:
134
+ - Artifact types and their dependencies
135
+ - Templates for each artifact
136
+ - Instructions for AI
137
+
138
+ **Current gap:** Our commands are hardcoded. Consider:
139
+ - Making command workflows configurable via schema
140
+ - Custom workflows per project (rapid, spec-driven, research-first)
141
+
142
+ ### 3. **Context + Rules Injection** (HIGH VALUE)
143
+ OpenSpec injects project context and per-artifact rules into prompts.
144
+
145
+ **Current gap:** Our AGENTS.md is global. Consider:
146
+ - `config.yaml` with `context:` block for project-specific injection
147
+ - Per-artifact rules in command definitions
148
+
149
+ ### 4. **Verify Command** (MEDIUM VALUE)
150
+ OpenSpec has explicit `/opsx:verify` that checks:
151
+ - Completeness: All artifacts exist, tasks itemized
152
+ - Correctness: Implementation matches specs
153
+ - Coherence: Artifacts don't contradict each other
154
+
155
+ **Current gap:** Our `/ship` has verification gates but not coherence checking.
156
+
157
+ ### 5. **Archive/Sync Flow** (LOW VALUE for now)
158
+ OpenSpec maintains canonical specs and merges deltas.
159
+
160
+ **Current gap:** Not needed yet. We don't track specs long-term.
161
+
162
+ ### 6. **Fluid Actions vs Phase Gates** (HIGH VALUE)
163
+ OpenSpec allows editing artifacts during implementation - no rigid phases.
164
+
165
+ **Current status:** Our workflow is already fluid (Beads). No change needed.
166
+
167
+ ---
168
+
169
+ ## Recommended Adaptations
170
+
171
+ ### Phase 1: Config-Based Context Injection
172
+ Add to `.opencode/opencode.json`:
173
+ ```json
174
+ {
175
+ "context": "Tech stack: TypeScript, React...",
176
+ "rules": {
177
+ "plan": ["Include rollback plan"],
178
+ "ship": ["Run all verification gates"]
179
+ }
180
+ }
181
+ ```
182
+
183
+ ### Phase 2: Schema-Configurable Workflows
184
+ Create `.opencode/schema/` for custom command workflows:
185
+ ```yaml
186
+ # .opencode/schema/rapid.yaml
187
+ name: rapid
188
+ artifacts:
189
+ - id: proposal
190
+ template: proposal.md
191
+ - id: tasks
192
+ template: tasks.md
193
+ requires: [proposal]
194
+ ```
195
+
196
+ ### Phase 3: Spec Files Per Bead
197
+ Create spec structure:
198
+ ```
199
+ .beads/artifacts/<bead-id>/
200
+ ├── spec.md # Current (single file)
201
+ ├── specs/ # NEW: Per-capability specs
202
+ │ └── <capability>.md
203
+ └── plan.md
204
+ ```
205
+
206
+ ---
207
+
208
+ ## Key Differences
209
+
210
+ | Aspect | OpenSpec | OpenCodeKit |
211
+ |--------|----------|-------------|
212
+ | Task tracking | Filesystem-based | Beads (git-backed) |
213
+ | Workflow | Schema-defined | Command-defined |
214
+ | Specs | Canonical + Delta | Per-bead only |
215
+ | Config | YAML | JSON |
216
+ | Context injection | Built-in | Manual (AGENTS.md) |
217
+ | Verification | 3 dimensions | Test/lint gates |
218
+
219
+ ---
220
+
221
+ ## Next Steps
222
+
223
+ 1. **Immediate:** Add `context` block to opencode.json spec
224
+ 2. **Short-term:** Create `/verify` command with coherence checking
225
+ 3. **Medium-term:** Schema-configurable workflows
226
+ 4. **Long-term:** Canonical spec maintenance (if needed)
@@ -0,0 +1,40 @@
1
+ ---
2
+ purpose: Session continuity state that survives compaction
3
+ updated: 2025-01-08
4
+ ---
5
+
6
+ # Session Context
7
+
8
+ <!--
9
+ Agent-maintained via memory-update tool.
10
+ Update when: goal changes, key decision made, state shifts, uncertainty discovered.
11
+ After compaction: read this file, ask 1-3 targeted questions if gaps exist.
12
+ -->
13
+
14
+ ## Goal
15
+
16
+ <!-- What we're trying to achieve + success criteria -->
17
+
18
+ ## Constraints
19
+
20
+ <!-- User-specified limits, discovered guardrails. Mark UNCONFIRMED if inferred -->
21
+
22
+ ## Decisions
23
+
24
+ <!-- Key choices made this session with brief rationale -->
25
+
26
+ ## State
27
+
28
+ - **Done**:
29
+ - **Now**:
30
+ - **Next**:
31
+
32
+ ## Open Questions
33
+
34
+ <!-- Uncertainties - mark UNCONFIRMED if not verified -->
35
+
36
+ ## Working Set
37
+
38
+ - **Files**:
39
+ - **Bead**:
40
+ - **Branch**: