@mohammadhprp/system-prompt 0.10.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 (347) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +35 -0
  3. package/bin/system-prompt.js +8 -0
  4. package/framework/README.md +163 -0
  5. package/framework/agents/README.md +49 -0
  6. package/framework/agents/backend-architect.md +146 -0
  7. package/framework/agents/researcher.md +79 -0
  8. package/framework/agents/reviewer.md +183 -0
  9. package/framework/agents/security-auditor.md +131 -0
  10. package/framework/commands/README.md +43 -0
  11. package/framework/commands/changelog.md +44 -0
  12. package/framework/commands/commit.md +31 -0
  13. package/framework/commands/learn.md +24 -0
  14. package/framework/commands/mr.md +46 -0
  15. package/framework/commands/pr.md +39 -0
  16. package/framework/commands/release.md +34 -0
  17. package/framework/commands/review.md +24 -0
  18. package/framework/commands/summarize-changes.md +49 -0
  19. package/framework/mcps/README.md +78 -0
  20. package/framework/mcps/excalidraw/README.md +37 -0
  21. package/framework/mcps/excalidraw/capabilities.md +54 -0
  22. package/framework/mcps/excalidraw/configs/opencode.json +8 -0
  23. package/framework/mcps/excalidraw/install.md +92 -0
  24. package/framework/mcps/excalidraw/troubleshooting.md +67 -0
  25. package/framework/mcps/figma-mcp-go/README.md +51 -0
  26. package/framework/mcps/figma-mcp-go/capabilities.md +190 -0
  27. package/framework/mcps/figma-mcp-go/configs/opencode.json +9 -0
  28. package/framework/mcps/figma-mcp-go/install.md +74 -0
  29. package/framework/mcps/figma-mcp-go/troubleshooting.md +99 -0
  30. package/framework/mcps/github-mcp/README.md +51 -0
  31. package/framework/mcps/github-mcp/capabilities.md +83 -0
  32. package/framework/mcps/github-mcp/configs/.env.example +1 -0
  33. package/framework/mcps/github-mcp/configs/opencode.json +13 -0
  34. package/framework/mcps/github-mcp/install.md +60 -0
  35. package/framework/mcps/github-mcp/troubleshooting.md +79 -0
  36. package/framework/mcps/gitlab-mcp/README.md +54 -0
  37. package/framework/mcps/gitlab-mcp/capabilities.md +216 -0
  38. package/framework/mcps/gitlab-mcp/configs/.env.example +2 -0
  39. package/framework/mcps/gitlab-mcp/configs/opencode.json +13 -0
  40. package/framework/mcps/gitlab-mcp/install.md +99 -0
  41. package/framework/mcps/gitlab-mcp/troubleshooting.md +116 -0
  42. package/framework/mcps/jira-mcp/README.md +53 -0
  43. package/framework/mcps/jira-mcp/capabilities.md +79 -0
  44. package/framework/mcps/jira-mcp/configs/.env.example +2 -0
  45. package/framework/mcps/jira-mcp/configs/opencode.json +13 -0
  46. package/framework/mcps/jira-mcp/install.md +94 -0
  47. package/framework/mcps/jira-mcp/troubleshooting.md +113 -0
  48. package/framework/mcps/laravel-boost/README.md +53 -0
  49. package/framework/mcps/laravel-boost/capabilities.md +92 -0
  50. package/framework/mcps/laravel-boost/configs/opencode.json +9 -0
  51. package/framework/mcps/laravel-boost/install.md +106 -0
  52. package/framework/mcps/laravel-boost/troubleshooting.md +119 -0
  53. package/framework/mcps/notion-mcp/README.md +58 -0
  54. package/framework/mcps/notion-mcp/capabilities.md +118 -0
  55. package/framework/mcps/notion-mcp/configs/opencode.json +9 -0
  56. package/framework/mcps/notion-mcp/install.md +70 -0
  57. package/framework/mcps/notion-mcp/troubleshooting.md +95 -0
  58. package/framework/mcps/playwright-mcp/README.md +50 -0
  59. package/framework/mcps/playwright-mcp/capabilities.md +149 -0
  60. package/framework/mcps/playwright-mcp/configs/opencode.json +9 -0
  61. package/framework/mcps/playwright-mcp/install.md +136 -0
  62. package/framework/mcps/playwright-mcp/troubleshooting.md +154 -0
  63. package/framework/mcps/supabase-mcp/README.md +66 -0
  64. package/framework/mcps/supabase-mcp/capabilities.md +127 -0
  65. package/framework/mcps/supabase-mcp/configs/opencode.json +9 -0
  66. package/framework/mcps/supabase-mcp/install.md +85 -0
  67. package/framework/mcps/supabase-mcp/troubleshooting.md +113 -0
  68. package/framework/memory/README.md +17 -0
  69. package/framework/memory/codebase-insights.md +6 -0
  70. package/framework/memory/user-preferences.md +5 -0
  71. package/framework/modes/README.md +52 -0
  72. package/framework/modes/audit.md +88 -0
  73. package/framework/plugins/README.md +65 -0
  74. package/framework/plugins/opencode-goal-plugin/README.md +45 -0
  75. package/framework/plugins/opencode-goal-plugin/capabilities.md +127 -0
  76. package/framework/plugins/opencode-goal-plugin/install.md +71 -0
  77. package/framework/plugins/opencode-goal-plugin/troubleshooting.md +112 -0
  78. package/framework/plugins/ponytail/README.md +44 -0
  79. package/framework/plugins/ponytail/capabilities.md +112 -0
  80. package/framework/plugins/ponytail/install.md +77 -0
  81. package/framework/plugins/ponytail/troubleshooting.md +116 -0
  82. package/framework/references/standards/api.md +44 -0
  83. package/framework/references/standards/architecture.md +43 -0
  84. package/framework/references/standards/database.md +43 -0
  85. package/framework/references/standards/debugging.md +44 -0
  86. package/framework/references/standards/documentation.md +43 -0
  87. package/framework/references/standards/logging.md +43 -0
  88. package/framework/references/standards/naming.md +43 -0
  89. package/framework/references/standards/observability.md +43 -0
  90. package/framework/references/standards/performance.md +43 -0
  91. package/framework/references/standards/pull-requests.md +43 -0
  92. package/framework/references/standards/security.md +43 -0
  93. package/framework/references/standards/testing.md +43 -0
  94. package/framework/references/templates/adr.md +28 -0
  95. package/framework/references/templates/api-spec.md +56 -0
  96. package/framework/references/templates/design-document.md +39 -0
  97. package/framework/references/templates/incident-report.md +38 -0
  98. package/framework/references/templates/postmortem.md +41 -0
  99. package/framework/references/templates/pull-request.md +34 -0
  100. package/framework/references/templates/runbook.md +48 -0
  101. package/framework/references/templates/task.md +27 -0
  102. package/framework/skills/README.md +68 -0
  103. package/framework/skills/agent-browser/SKILL.md +51 -0
  104. package/framework/skills/backend-best-practices/SKILL.md +136 -0
  105. package/framework/skills/backend-best-practices/examples.md +31 -0
  106. package/framework/skills/backend-best-practices/references/api-design.md +79 -0
  107. package/framework/skills/backend-best-practices/references/architecture-review.md +77 -0
  108. package/framework/skills/backend-best-practices/references/database-design.md +78 -0
  109. package/framework/skills/backend-best-practices/references/debugging.md +76 -0
  110. package/framework/skills/backend-best-practices/references/observability.md +78 -0
  111. package/framework/skills/backend-best-practices/references/performance.md +78 -0
  112. package/framework/skills/backend-best-practices/references/refactoring.md +77 -0
  113. package/framework/skills/backend-best-practices/references/security.md +80 -0
  114. package/framework/skills/backend-best-practices/references/testing.md +77 -0
  115. package/framework/skills/backend-engineer/SKILL.md +76 -0
  116. package/framework/skills/backend-engineer/examples.md +31 -0
  117. package/framework/skills/brainstorming/SKILL.md +159 -0
  118. package/framework/skills/brainstorming/examples.md +49 -0
  119. package/framework/skills/brainstorming/scripts/frame-template.html +213 -0
  120. package/framework/skills/brainstorming/scripts/helper.js +167 -0
  121. package/framework/skills/brainstorming/scripts/server.cjs +723 -0
  122. package/framework/skills/brainstorming/scripts/start-server.sh +209 -0
  123. package/framework/skills/brainstorming/scripts/stop-server.sh +120 -0
  124. package/framework/skills/brainstorming/visual-companion.md +291 -0
  125. package/framework/skills/brand-guidelines/LICENSE.txt +202 -0
  126. package/framework/skills/brand-guidelines/SKILL.md +73 -0
  127. package/framework/skills/code-review/SKILL.md +72 -0
  128. package/framework/skills/code-review/examples.md +31 -0
  129. package/framework/skills/design/SKILL.md +399 -0
  130. package/framework/skills/design/examples.md +34 -0
  131. package/framework/skills/diagram-design/SKILL.md +485 -0
  132. package/framework/skills/diagram-design/assets/example-architecture-dark.html +180 -0
  133. package/framework/skills/diagram-design/assets/example-architecture-full.html +192 -0
  134. package/framework/skills/diagram-design/assets/example-architecture.html +181 -0
  135. package/framework/skills/diagram-design/assets/example-bar-dark.html +127 -0
  136. package/framework/skills/diagram-design/assets/example-bar-full.html +103 -0
  137. package/framework/skills/diagram-design/assets/example-bar.html +127 -0
  138. package/framework/skills/diagram-design/assets/example-data-flow-dark.html +143 -0
  139. package/framework/skills/diagram-design/assets/example-data-flow-full.html +185 -0
  140. package/framework/skills/diagram-design/assets/example-data-flow.html +143 -0
  141. package/framework/skills/diagram-design/assets/example-datalake-dark.html +241 -0
  142. package/framework/skills/diagram-design/assets/example-datalake-full.html +246 -0
  143. package/framework/skills/diagram-design/assets/example-datalake.html +267 -0
  144. package/framework/skills/diagram-design/assets/example-dp-integration-dark.html +78 -0
  145. package/framework/skills/diagram-design/assets/example-dp-integration-full.html +88 -0
  146. package/framework/skills/diagram-design/assets/example-dp-integration.html +78 -0
  147. package/framework/skills/diagram-design/assets/example-dp-security-matrix-dark.html +31 -0
  148. package/framework/skills/diagram-design/assets/example-dp-security-matrix-full.html +32 -0
  149. package/framework/skills/diagram-design/assets/example-dp-security-matrix.html +88 -0
  150. package/framework/skills/diagram-design/assets/example-er-dark.html +200 -0
  151. package/framework/skills/diagram-design/assets/example-er-full.html +203 -0
  152. package/framework/skills/diagram-design/assets/example-er.html +200 -0
  153. package/framework/skills/diagram-design/assets/example-flowchart-dark.html +154 -0
  154. package/framework/skills/diagram-design/assets/example-flowchart-full.html +157 -0
  155. package/framework/skills/diagram-design/assets/example-flowchart.html +154 -0
  156. package/framework/skills/diagram-design/assets/example-gantt-dark.html +135 -0
  157. package/framework/skills/diagram-design/assets/example-gantt-full.html +125 -0
  158. package/framework/skills/diagram-design/assets/example-gantt.html +135 -0
  159. package/framework/skills/diagram-design/assets/example-high-level-dark.html +249 -0
  160. package/framework/skills/diagram-design/assets/example-high-level-full.html +245 -0
  161. package/framework/skills/diagram-design/assets/example-high-level-vertical-dark.html +272 -0
  162. package/framework/skills/diagram-design/assets/example-high-level-vertical-full.html +250 -0
  163. package/framework/skills/diagram-design/assets/example-high-level-vertical.html +323 -0
  164. package/framework/skills/diagram-design/assets/example-high-level.html +299 -0
  165. package/framework/skills/diagram-design/assets/example-it-state-dark.html +90 -0
  166. package/framework/skills/diagram-design/assets/example-it-state-full.html +69 -0
  167. package/framework/skills/diagram-design/assets/example-it-state.html +128 -0
  168. package/framework/skills/diagram-design/assets/example-layers-dark.html +121 -0
  169. package/framework/skills/diagram-design/assets/example-layers-full.html +124 -0
  170. package/framework/skills/diagram-design/assets/example-layers.html +121 -0
  171. package/framework/skills/diagram-design/assets/example-line-dark.html +109 -0
  172. package/framework/skills/diagram-design/assets/example-line-full.html +103 -0
  173. package/framework/skills/diagram-design/assets/example-line.html +109 -0
  174. package/framework/skills/diagram-design/assets/example-loop-dark.html +100 -0
  175. package/framework/skills/diagram-design/assets/example-loop-full.html +137 -0
  176. package/framework/skills/diagram-design/assets/example-loop-terminal.html +347 -0
  177. package/framework/skills/diagram-design/assets/example-loop.html +100 -0
  178. package/framework/skills/diagram-design/assets/example-medallion-dark.html +159 -0
  179. package/framework/skills/diagram-design/assets/example-medallion-full.html +201 -0
  180. package/framework/skills/diagram-design/assets/example-medallion.html +159 -0
  181. package/framework/skills/diagram-design/assets/example-nested-dark.html +130 -0
  182. package/framework/skills/diagram-design/assets/example-nested-full.html +133 -0
  183. package/framework/skills/diagram-design/assets/example-nested.html +134 -0
  184. package/framework/skills/diagram-design/assets/example-org-chart-dark.html +45 -0
  185. package/framework/skills/diagram-design/assets/example-org-chart-full.html +45 -0
  186. package/framework/skills/diagram-design/assets/example-org-chart.html +45 -0
  187. package/framework/skills/diagram-design/assets/example-process-dark.html +62 -0
  188. package/framework/skills/diagram-design/assets/example-process-full.html +72 -0
  189. package/framework/skills/diagram-design/assets/example-process.html +62 -0
  190. package/framework/skills/diagram-design/assets/example-pyramid-dark.html +117 -0
  191. package/framework/skills/diagram-design/assets/example-pyramid-full.html +120 -0
  192. package/framework/skills/diagram-design/assets/example-pyramid.html +117 -0
  193. package/framework/skills/diagram-design/assets/example-quadrant-consultant.html +164 -0
  194. package/framework/skills/diagram-design/assets/example-quadrant-dark.html +133 -0
  195. package/framework/skills/diagram-design/assets/example-quadrant-full.html +136 -0
  196. package/framework/skills/diagram-design/assets/example-quadrant.html +133 -0
  197. package/framework/skills/diagram-design/assets/example-radar-dark.html +137 -0
  198. package/framework/skills/diagram-design/assets/example-radar-full.html +133 -0
  199. package/framework/skills/diagram-design/assets/example-radar.html +137 -0
  200. package/framework/skills/diagram-design/assets/example-scatter-dark.html +139 -0
  201. package/framework/skills/diagram-design/assets/example-scatter-full.html +114 -0
  202. package/framework/skills/diagram-design/assets/example-scatter.html +139 -0
  203. package/framework/skills/diagram-design/assets/example-sequence-dark.html +220 -0
  204. package/framework/skills/diagram-design/assets/example-sequence-full.html +386 -0
  205. package/framework/skills/diagram-design/assets/example-sequence.html +220 -0
  206. package/framework/skills/diagram-design/assets/example-state-dark.html +145 -0
  207. package/framework/skills/diagram-design/assets/example-state-full.html +148 -0
  208. package/framework/skills/diagram-design/assets/example-state.html +145 -0
  209. package/framework/skills/diagram-design/assets/example-swimlane-dark.html +170 -0
  210. package/framework/skills/diagram-design/assets/example-swimlane-full.html +173 -0
  211. package/framework/skills/diagram-design/assets/example-swimlane.html +170 -0
  212. package/framework/skills/diagram-design/assets/example-timeline-dark.html +133 -0
  213. package/framework/skills/diagram-design/assets/example-timeline-full.html +136 -0
  214. package/framework/skills/diagram-design/assets/example-timeline.html +133 -0
  215. package/framework/skills/diagram-design/assets/example-tree-dark.html +171 -0
  216. package/framework/skills/diagram-design/assets/example-tree-full.html +174 -0
  217. package/framework/skills/diagram-design/assets/example-tree.html +171 -0
  218. package/framework/skills/diagram-design/assets/example-venn-dark.html +130 -0
  219. package/framework/skills/diagram-design/assets/example-venn-full.html +133 -0
  220. package/framework/skills/diagram-design/assets/example-venn.html +108 -0
  221. package/framework/skills/diagram-design/assets/icons.html +230 -0
  222. package/framework/skills/diagram-design/assets/index.html +333 -0
  223. package/framework/skills/diagram-design/assets/template-dark.html +82 -0
  224. package/framework/skills/diagram-design/assets/template-full.html +410 -0
  225. package/framework/skills/diagram-design/assets/template-terminal.html +170 -0
  226. package/framework/skills/diagram-design/assets/template.html +83 -0
  227. package/framework/skills/diagram-design/references/export.md +107 -0
  228. package/framework/skills/diagram-design/references/onboarding.md +268 -0
  229. package/framework/skills/diagram-design/references/primitive-annotation.md +36 -0
  230. package/framework/skills/diagram-design/references/primitive-icons.md +821 -0
  231. package/framework/skills/diagram-design/references/primitive-sketchy.md +43 -0
  232. package/framework/skills/diagram-design/references/primitive-terminal.md +76 -0
  233. package/framework/skills/diagram-design/references/style-guide.md +139 -0
  234. package/framework/skills/diagram-design/references/type-architecture.md +78 -0
  235. package/framework/skills/diagram-design/references/type-bar.md +48 -0
  236. package/framework/skills/diagram-design/references/type-data-flow.md +374 -0
  237. package/framework/skills/diagram-design/references/type-dp-integration.md +410 -0
  238. package/framework/skills/diagram-design/references/type-dp-security-matrix.md +379 -0
  239. package/framework/skills/diagram-design/references/type-er.md +23 -0
  240. package/framework/skills/diagram-design/references/type-flowchart.md +23 -0
  241. package/framework/skills/diagram-design/references/type-gantt.md +45 -0
  242. package/framework/skills/diagram-design/references/type-high-level.md +458 -0
  243. package/framework/skills/diagram-design/references/type-it-state.md +470 -0
  244. package/framework/skills/diagram-design/references/type-layers.md +26 -0
  245. package/framework/skills/diagram-design/references/type-line.md +44 -0
  246. package/framework/skills/diagram-design/references/type-loop.md +223 -0
  247. package/framework/skills/diagram-design/references/type-medallion.md +356 -0
  248. package/framework/skills/diagram-design/references/type-nested.md +22 -0
  249. package/framework/skills/diagram-design/references/type-org-chart.md +44 -0
  250. package/framework/skills/diagram-design/references/type-process.md +495 -0
  251. package/framework/skills/diagram-design/references/type-pyramid.md +33 -0
  252. package/framework/skills/diagram-design/references/type-quadrant.md +81 -0
  253. package/framework/skills/diagram-design/references/type-radar.md +80 -0
  254. package/framework/skills/diagram-design/references/type-scatter.md +39 -0
  255. package/framework/skills/diagram-design/references/type-sequence.md +35 -0
  256. package/framework/skills/diagram-design/references/type-state.md +21 -0
  257. package/framework/skills/diagram-design/references/type-swimlane.md +20 -0
  258. package/framework/skills/diagram-design/references/type-timeline.md +20 -0
  259. package/framework/skills/diagram-design/references/type-tree.md +24 -0
  260. package/framework/skills/diagram-design/references/type-venn.md +26 -0
  261. package/framework/skills/documentation/SKILL.md +74 -0
  262. package/framework/skills/documentation/examples.md +31 -0
  263. package/framework/skills/find-skills/SKILL.md +141 -0
  264. package/framework/skills/find-skills/examples.md +35 -0
  265. package/framework/skills/gitlab-mcp/SKILL.md +83 -0
  266. package/framework/skills/gitlab-mcp/examples.md +31 -0
  267. package/framework/skills/gitlab-mcp/references/code-review.md +110 -0
  268. package/framework/skills/gitlab-mcp/references/issues.md +141 -0
  269. package/framework/skills/gitlab-mcp/references/merge-requests.md +120 -0
  270. package/framework/skills/gitlab-mcp/references/pipelines.md +67 -0
  271. package/framework/skills/gitlab-mcp/references/search.md +17 -0
  272. package/framework/skills/gitlab-mcp/references/webhooks.md +32 -0
  273. package/framework/skills/gitlab-mcp/references/work-items.md +50 -0
  274. package/framework/skills/jira-mcp/SKILL.md +57 -0
  275. package/framework/skills/jira-mcp/examples.md +31 -0
  276. package/framework/skills/jira-mcp/references/comments.md +27 -0
  277. package/framework/skills/jira-mcp/references/issues.md +97 -0
  278. package/framework/skills/jira-mcp/references/projects.md +39 -0
  279. package/framework/skills/laravel-best-practices/SKILL.md +229 -0
  280. package/framework/skills/laravel-best-practices/examples.md +31 -0
  281. package/framework/skills/laravel-best-practices/references/advanced-queries.md +106 -0
  282. package/framework/skills/laravel-best-practices/references/architecture.md +202 -0
  283. package/framework/skills/laravel-best-practices/references/blade-views.md +36 -0
  284. package/framework/skills/laravel-best-practices/references/caching.md +70 -0
  285. package/framework/skills/laravel-best-practices/references/collections.md +44 -0
  286. package/framework/skills/laravel-best-practices/references/config.md +73 -0
  287. package/framework/skills/laravel-best-practices/references/db-performance.md +192 -0
  288. package/framework/skills/laravel-best-practices/references/eloquent.md +148 -0
  289. package/framework/skills/laravel-best-practices/references/error-handling.md +72 -0
  290. package/framework/skills/laravel-best-practices/references/events-notifications.md +52 -0
  291. package/framework/skills/laravel-best-practices/references/http-client.md +160 -0
  292. package/framework/skills/laravel-best-practices/references/mail.md +27 -0
  293. package/framework/skills/laravel-best-practices/references/migrations.md +121 -0
  294. package/framework/skills/laravel-best-practices/references/passport.md +197 -0
  295. package/framework/skills/laravel-best-practices/references/pennant.md +61 -0
  296. package/framework/skills/laravel-best-practices/references/pest-testing.md +166 -0
  297. package/framework/skills/laravel-best-practices/references/pulse.md +196 -0
  298. package/framework/skills/laravel-best-practices/references/queue-jobs.md +144 -0
  299. package/framework/skills/laravel-best-practices/references/routing.md +99 -0
  300. package/framework/skills/laravel-best-practices/references/scheduling.md +39 -0
  301. package/framework/skills/laravel-best-practices/references/scout.md +176 -0
  302. package/framework/skills/laravel-best-practices/references/security.md +198 -0
  303. package/framework/skills/laravel-best-practices/references/spatie-laravel-backup.md +222 -0
  304. package/framework/skills/laravel-best-practices/references/spatie-laravel-permission.md +272 -0
  305. package/framework/skills/laravel-best-practices/references/spatie-medialibrary.md +672 -0
  306. package/framework/skills/laravel-best-practices/references/style.md +125 -0
  307. package/framework/skills/laravel-best-practices/references/tailwindcss.md +112 -0
  308. package/framework/skills/laravel-best-practices/references/testing.md +43 -0
  309. package/framework/skills/laravel-best-practices/references/validation.md +75 -0
  310. package/framework/skills/lavish/SKILL.md +67 -0
  311. package/framework/skills/lavish/examples.md +31 -0
  312. package/framework/skills/notion-mcp/SKILL.md +57 -0
  313. package/framework/skills/notion-mcp/examples.md +31 -0
  314. package/framework/skills/notion-mcp/references/comments.md +112 -0
  315. package/framework/skills/notion-mcp/references/databases.md +193 -0
  316. package/framework/skills/notion-mcp/references/pages.md +235 -0
  317. package/framework/skills/skill-creator/LICENSE.txt +202 -0
  318. package/framework/skills/skill-creator/SKILL.md +485 -0
  319. package/framework/skills/skill-creator/agents/analyzer.md +274 -0
  320. package/framework/skills/skill-creator/agents/comparator.md +202 -0
  321. package/framework/skills/skill-creator/agents/grader.md +223 -0
  322. package/framework/skills/skill-creator/assets/eval_review.html +146 -0
  323. package/framework/skills/skill-creator/eval-viewer/generate_review.py +471 -0
  324. package/framework/skills/skill-creator/eval-viewer/viewer.html +1325 -0
  325. package/framework/skills/skill-creator/examples.md +31 -0
  326. package/framework/skills/skill-creator/references/schemas.md +430 -0
  327. package/framework/skills/skill-creator/scripts/__init__.py +0 -0
  328. package/framework/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
  329. package/framework/skills/skill-creator/scripts/generate_report.py +326 -0
  330. package/framework/skills/skill-creator/scripts/improve_description.py +247 -0
  331. package/framework/skills/skill-creator/scripts/package_skill.py +136 -0
  332. package/framework/skills/skill-creator/scripts/quick_validate.py +103 -0
  333. package/framework/skills/skill-creator/scripts/run_eval.py +310 -0
  334. package/framework/skills/skill-creator/scripts/run_loop.py +328 -0
  335. package/framework/skills/skill-creator/scripts/utils.py +47 -0
  336. package/framework/styles/README.md +35 -0
  337. package/framework/styles/linear/DESIGN.md +478 -0
  338. package/framework/styles/linear/README.md +36 -0
  339. package/framework/styles/linear/assets/preview.jpg +0 -0
  340. package/framework/styles/raycast/DESIGN.md +495 -0
  341. package/framework/styles/raycast/README.md +35 -0
  342. package/framework/styles/raycast/assets/preview.jpg +0 -0
  343. package/package.json +33 -0
  344. package/src/agent-configs.js +96 -0
  345. package/src/catalog.js +145 -0
  346. package/src/cli.js +254 -0
  347. package/src/installer.js +303 -0
@@ -0,0 +1,85 @@
1
+ # Supabase MCP Installation
2
+
3
+ ## Requirements
4
+
5
+ - A Supabase account with a project.
6
+ - An MCP-compatible AI client that supports remote HTTP MCP servers (Streamable HTTP).
7
+ - No local infrastructure — the server is hosted by Supabase at `https://mcp.supabase.com/mcp`.
8
+
9
+ ## Configuration
10
+
11
+ Supabase MCP is a remote Streamable HTTP server — no local command or install needed. Authentication uses OAuth, completed interactively on first use.
12
+
13
+ | Field | Value |
14
+ | --- | --- |
15
+ | Server name | `supabase` |
16
+ | Transport type | Streamable HTTP |
17
+ | URL | `https://mcp.supabase.com/mcp` |
18
+
19
+ ### Config file examples
20
+
21
+ Use the examples in [`configs/`](./configs/) as client-specific starting points:
22
+
23
+ | Client | Example | Typical location |
24
+ | --- | --- | --- |
25
+ | OpenCode | [`configs/opencode.json`](./configs/opencode.json) | OpenCode MCP configuration. |
26
+
27
+ ### OpenCode
28
+
29
+ Copy [`configs/opencode.json`](./configs/opencode.json) into your OpenCode project root or user config directory. Then authenticate:
30
+
31
+ ```bash
32
+ opencode mcp auth supabase
33
+ ```
34
+
35
+ This opens your browser to complete the OAuth flow.
36
+
37
+ ### For clients that only support local stdio servers
38
+
39
+ Some MCP clients only support local stdio servers. Use the [mcp-remote](https://www.npmjs.com/package/mcp-remote) bridge to connect:
40
+
41
+ ```json
42
+ {
43
+ "mcpServers": {
44
+ "supabase": {
45
+ "command": "npx",
46
+ "args": ["-y", "mcp-remote", "https://mcp.supabase.com/mcp"]
47
+ }
48
+ }
49
+ }
50
+ ```
51
+
52
+ ## Configuration options
53
+
54
+ Append URL query parameters to restrict server scope:
55
+
56
+ | Parameter | Description | Example |
57
+ | --- | --- | --- |
58
+ | `read_only=true` | Execute all queries as a read-only Postgres user | `?read_only=true` |
59
+ | `project_ref=<id>` | Scope to a specific project (disables account tools) | `?project_ref=abc123` |
60
+ | `features=<groups>` | Enable only specific tool groups (comma-separated) | `?features=database,docs` |
61
+
62
+ Parameters can be combined: `https://mcp.supabase.com/mcp?project_ref=abc123&read_only=true`
63
+
64
+ ## Verification
65
+
66
+ After configuring and authenticating, ask your AI agent:
67
+
68
+ ```
69
+ List all tables in the database using MCP tools.
70
+ ```
71
+
72
+ ## Updating
73
+
74
+ Supabase MCP is hosted by Supabase — no update steps needed. The latest version is always available at `https://mcp.supabase.com/mcp`.
75
+
76
+ ## Uninstalling
77
+
78
+ Remove the `supabase` MCP entry from AI client configuration files. Optionally, revoke the OAuth connection in your Supabase organization settings.
79
+
80
+ ## Common Issues
81
+
82
+ - **Authentication fails**: make sure you complete the OAuth flow when prompted. Run the auth command again to trigger a fresh flow.
83
+ - **Client does not support remote servers**: use the `mcp-remote` bridge as a stdio wrapper.
84
+ - **Permission errors**: check that your Supabase user has the correct permissions for the project or organization.
85
+ - **Tool not found**: verify which feature groups are enabled — some tools are disabled by default (Storage, Branching).
@@ -0,0 +1,113 @@
1
+ # Supabase MCP Troubleshooting
2
+
3
+ ## Connection fails
4
+
5
+ **Problem**
6
+
7
+ The AI client reports that `supabase` cannot connect.
8
+
9
+ **Cause**
10
+
11
+ The client does not support remote HTTP MCP servers, or the URL is misconfigured.
12
+
13
+ **Solution**
14
+
15
+ - Verify the URL is `https://mcp.supabase.com/mcp`.
16
+ - If your client only supports local stdio servers, use the `mcp-remote` bridge: `npx -y mcp-remote https://mcp.supabase.com/mcp`.
17
+ - Check the client's documentation for how to add a remote MCP server.
18
+
19
+ ## Authentication fails
20
+
21
+ **Problem**
22
+
23
+ The connection succeeds but tools return authentication errors.
24
+
25
+ **Cause**
26
+
27
+ The OAuth flow was not completed or the token has expired.
28
+
29
+ **Solution**
30
+
31
+ - Run the auth command again: `opencode mcp auth supabase`.
32
+ - Make sure you select the correct Supabase organization during OAuth.
33
+ - Try disconnecting and reconnecting. Look for a "Clear authentication" or "Disconnect" option in the client's MCP settings.
34
+
35
+ ## Permission errors
36
+
37
+ **Problem**
38
+
39
+ Tools return 403 or project not found errors.
40
+
41
+ **Cause**
42
+
43
+ The authenticated user does not have access to the requested project or organization, or the project ref is incorrect.
44
+
45
+ **Solution**
46
+
47
+ - Verify your Supabase user has the correct permissions for the project.
48
+ - Check that the `project_ref` parameter matches an actual project ID.
49
+ - Use account-level tools (no `project_ref`) to list available projects and organizations first.
50
+
51
+ ## Read-only mode blocks writes
52
+
53
+ **Problem**
54
+
55
+ INSERT, UPDATE, DELETE queries fail silently or return errors.
56
+
57
+ **Cause**
58
+
59
+ The server is configured with `read_only=true`, which executes all queries as a read-only Postgres user.
60
+
61
+ **Solution**
62
+
63
+ - Remove `read_only=true` from the URL if you need write access.
64
+ - Use branching to make changes in an isolated environment.
65
+
66
+ ## Tool not available
67
+
68
+ **Problem**
69
+
70
+ A specific tool is missing when the AI agent lists available tools.
71
+
72
+ **Cause**
73
+
74
+ The tool belongs to a feature group that is not enabled.
75
+
76
+ **Solution**
77
+
78
+ - Verify which feature groups are enabled via the `features` URL parameter.
79
+ - Storage tools are disabled by default — add `features=storage` or include `storage` in the comma-separated list.
80
+ - Branching tools are disabled by default and require a paid plan.
81
+ - Account tools are disabled when `project_ref` is set.
82
+
83
+ ## Rate limited
84
+
85
+ **Problem**
86
+
87
+ Tools return rate limit errors.
88
+
89
+ **Cause**
90
+
91
+ Supabase API rate limits have been exceeded.
92
+
93
+ **Solution**
94
+
95
+ - Reduce the number of parallel tool calls.
96
+ - Space out requests between agent steps.
97
+ - Wait before retrying.
98
+
99
+ ## CI/CD authentication
100
+
101
+ **Problem**
102
+
103
+ Cannot complete the OAuth flow in a CI environment.
104
+
105
+ **Cause**
106
+
107
+ Browser-based OAuth is not available in CI.
108
+
109
+ **Solution**
110
+
111
+ - Create a personal access token (PAT) in your Supabase dashboard.
112
+ - Pass it as an `Authorization: Bearer <token>` header in the MCP server configuration.
113
+ - Always scope the server to a project and use read-only mode in CI.
@@ -0,0 +1,17 @@
1
+ # Memory
2
+
3
+ Persistent agent memory files that maintain context across sessions.
4
+
5
+ Memory files are installed to `.opencode/memory/` and auto-included in the
6
+ agent's `instructions` via the glob pattern `.opencode/memory/*.md`.
7
+
8
+ ## Files
9
+
10
+ - `codebase-insights.md` — Non-obvious facts, gotchas, past decisions, and architecture quirks.
11
+ - `user-preferences.md` — Coding style, naming conventions, and architectural preferences.
12
+
13
+ ## Behavior
14
+
15
+ Memory files are **only written on first install**. Re-running the installer
16
+ will not overwrite them — preserving any edits made by the user or agent
17
+ across sessions.
@@ -0,0 +1,6 @@
1
+ # Codebase Insights
2
+
3
+ _This file is maintained by the agent across sessions. It captures
4
+ non-obvious facts, gotchas, past decisions, and architecture quirks that
5
+ would be hard to rediscover from reading the code alone._
6
+
@@ -0,0 +1,5 @@
1
+ # User Preferences
2
+
3
+ _This file is maintained by the agent across sessions. It captures the user's
4
+ coding style, naming conventions, architectural preferences, and other
5
+ recurring patterns._
@@ -0,0 +1,52 @@
1
+ # Mode Catalog
2
+
3
+ A catalog of behavior, tool, and prompt presets for AI coding agents.
4
+
5
+ Modes customize how the agent behaves for a given use case. Each mode defines a temperature, restricts or grants tools, and sets the response style, workflow, and output format. Switch modes to adopt a different operating posture — for example, a read-only high-scrutiny review mode versus a default building mode.
6
+
7
+ ## Available Modes
8
+
9
+ | Mode | Purpose | Tools |
10
+ | --- | --- | --- |
11
+ | [Audit](./audit.md) | Read-only high-scrutiny review of artifacts — correctness, architecture, security, maintainability. | `write`, `edit`, `bash` disabled |
12
+
13
+ ## Mode Entry Structure
14
+
15
+ ```text
16
+ modes/<mode-name>.md
17
+ ```
18
+
19
+ Each mode file uses YAML frontmatter defining runtime constraints, followed by markdown instructions defining the mode's behavior, response style, workflow, and output format.
20
+
21
+ ```yaml
22
+ ---
23
+ temperature: 0.1
24
+ tools:
25
+ write: false
26
+ edit: false
27
+ bash: false
28
+ ---
29
+ ```
30
+
31
+ | Field | Purpose |
32
+ | --- | --- |
33
+ | `temperature` | Sampling temperature for the mode (lower = more deterministic). |
34
+ | `tools` | Per-tool allow/deny flags that override the base agent's tool access. |
35
+
36
+ ## How to Contribute a New Mode
37
+
38
+ 1. Create `modes/<mode-name>.md` following the existing format.
39
+ 2. Set `temperature` appropriate to the mode's posture.
40
+ 3. Declare `tools` restrictions (typically deny `write`/`edit`/`bash` for review modes).
41
+ 4. Write markdown instructions: purpose, response style, workflow, output format, and constraints.
42
+ 5. Add the mode to the table in this README.
43
+
44
+ ## Related Repository Areas
45
+
46
+ - [`skills/`](../skills/) contains task-specific skill definitions.
47
+ - [`agents/`](../agents/) contains specialized subagent definitions.
48
+ - [`commands/`](../commands/) contains slash commands for repeatable workflows.
49
+ - [`mcps/`](../mcps/) contains the MCP server catalog.
50
+ - [`plugins/`](../plugins/) contains the OpenCode plugin catalog.
51
+ - [`references/standards/`](../references/standards/) contains canonical engineering rules.
52
+ - [`references/templates/`](../references/templates/) contains reusable engineering deliverables.
@@ -0,0 +1,88 @@
1
+ ---
2
+ temperature: 0.1
3
+ tools:
4
+ write: false
5
+ edit: false
6
+ bash: false
7
+ ---
8
+
9
+ # Purpose
10
+
11
+ Evaluate artifacts for correctness, completeness, architectural quality, security, maintainability, and hidden failure modes.
12
+
13
+ # Response Style
14
+ - Use direct, declarative language.
15
+ - Maximize information density.
16
+ - Eliminate filler, encouragement, praise, apologies, and conversational padding.
17
+ - Eliminate emojis.
18
+ - Eliminate motivational language.
19
+ - Do not mirror user tone.
20
+ - Prefer bullets over prose.
21
+ - Prefer concrete observations over general advice.
22
+ - End immediately after the requested output.
23
+
24
+ # Default Review Framework
25
+
26
+ Evaluate in this order:
27
+ 1. Correctness
28
+ 2. Missing requirements
29
+ 3. Incorrect assumptions
30
+ 4. Architecture
31
+ 5. Scalability
32
+ 6. Reliability
33
+ 7. Security
34
+ 8. Performance
35
+ 9. Maintainability
36
+ 10. Simplicity
37
+
38
+ # Review Rules
39
+ - Identify incorrect reasoning before suggesting improvements.
40
+ - Explicitly distinguish facts from assumptions.
41
+ - Identify edge cases.
42
+ - Highlight hidden complexity.
43
+ - Highlight trade-offs.
44
+ - Recommend the simplest solution that satisfies the requirements.
45
+ - Reject unnecessary abstraction.
46
+ - Prefer production-ready patterns over theoretical ones.
47
+
48
+ # Output Format
49
+
50
+ ## Findings
51
+
52
+ Severity:
53
+ - Critical
54
+ - High
55
+ - Medium
56
+ - Low
57
+
58
+ For each finding:
59
+ - Problem
60
+ - Impact
61
+ - Recommendation
62
+
63
+ ## Missing Items
64
+
65
+ List omitted requirements or scenarios.
66
+
67
+ ## Risks
68
+
69
+ List implementation or operational risks.
70
+
71
+ ## Final Assessment
72
+
73
+ One sentence summarizing overall quality.
74
+
75
+ # Constraints
76
+
77
+ Never:
78
+
79
+ - Ask questions unless required to complete the task.
80
+ - Suggest unrelated improvements.
81
+ - Add motivational statements.
82
+ - Add conversational transitions.
83
+ - Restate the user's request.
84
+ - Explain obvious concepts.
85
+
86
+ # Persistence
87
+
88
+ Remain active until another mode replaces this one.
@@ -0,0 +1,65 @@
1
+ # Plugin Catalog
2
+
3
+ A curated catalog of OpenCode plugins for AI coding agents.
4
+
5
+ This catalog is framework-agnostic: each entry documents what the plugin does, when to use it, how to install it, how to configure it, and how to troubleshoot it.
6
+
7
+ ## Available Plugins
8
+
9
+ | Plugin | Purpose | Best fit |
10
+ | --- | --- | --- |
11
+ | [OpenCode Goal Plugin](./opencode-goal-plugin/README.md) | Adds Codex-style long-running goal mode with `/goal` slash commands, persistent goal state, completion evidence, and auto-continuation. | Any OpenCode session that needs focused, goal-driven long-running tasks. |
12
+ | [Ponytail](./ponytail/README.md) | Lazy senior dev mode — YAGNI-first, reuse-first ladder that cuts code bloat, token usage, and cost without cutting safety. | Any coding session where agents tend to over-engineer or add unnecessary abstractions. |
13
+
14
+ ## Why Plugins Are Useful
15
+
16
+ OpenCode plugins extend the core agent with custom commands, tools, TUI elements, and lifecycle hooks. For coding agents, plugins can improve:
17
+
18
+ - **Focus**: goal-driven workflows keep the agent on task across many turns.
19
+ - **Persistence**: state survives session compaction and restarts.
20
+ - **User experience**: custom TUI indicators and slash commands make agent behavior visible.
21
+ - **Safety**: explicit completion evidence and blocker requirements prevent premature closure.
22
+
23
+ ## How to Choose a Plugin
24
+
25
+ Use a plugin when it adds a concrete workflow or user interface that the base OpenCode agent does not provide.
26
+
27
+ Before installing one, check:
28
+
29
+ - **Compatibility**: does it match your OpenCode version? Check the `engines.opencode` field.
30
+ - **Capabilities**: does it add commands, tools, or UI that improve your workflow?
31
+ - **Permissions**: does it read or write files outside the project directory?
32
+ - **Maintenance**: is the plugin actively maintained and documented?
33
+
34
+ ## Catalog Entry Structure
35
+
36
+ Every plugin entry must use this structure:
37
+
38
+ ```text
39
+ plugins/<plugin-slug>/
40
+ ├── README.md
41
+ ├── install.md
42
+ ├── capabilities.md
43
+ └── troubleshooting.md
44
+ ```
45
+
46
+ ## Naming Conventions
47
+
48
+ - Use lowercase kebab-case directory names, for example `opencode-goal-plugin`.
49
+ - Use the upstream plugin name in page titles, for example `# OpenCode Goal Plugin`.
50
+ - Keep file names exactly as shown in the catalog structure.
51
+
52
+ ## How to Contribute a New Plugin
53
+
54
+ 1. Create `plugins/<plugin-slug>/` using the standard structure.
55
+ 2. Prefer official documentation for install commands, requirements, capabilities, and configuration.
56
+ 3. Document options and their defaults in `capabilities.md`.
57
+ 4. Add common startup, permission, and version issues in `troubleshooting.md`.
58
+ 5. Add the plugin to the table in this README.
59
+
60
+ ## Related Repository Areas
61
+
62
+ - [`mcps/`](../mcps/) contains the MCP (Model Context Protocol) server catalog.
63
+ - [`skills/`](../skills/) contains task-specific procedures for AI coding agents.
64
+ - [`references/standards/`](../references/standards/) contains canonical engineering rules.
65
+ - [`references/templates/`](../references/templates/) contains reusable engineering deliverables.
@@ -0,0 +1,45 @@
1
+ # OpenCode Goal Plugin
2
+
3
+ ## Overview
4
+
5
+ OpenCode Goal Plugin adds Codex-style long-running goal mode to OpenCode. It gives AI coding agents a `/goal` slash command, persistent goal state, completion evidence, idle continuation, and a terminal UI goal indicator so an OpenCode session can keep working toward one explicit objective until it is complete, blocked, or cleared.
6
+
7
+ Official source:
8
+
9
+ - [GitHub: prevalentWare/opencode-goal-plugin](https://github.com/prevalentWare/opencode-goal-plugin)
10
+ - [npm: @prevalentware/opencode-goal-plugin](https://www.npmjs.com/package/@prevalentware/opencode-goal-plugin)
11
+
12
+ ## Features
13
+
14
+ - `/goal <objective>` as an OpenCode command for TUI, desktop, and web.
15
+ - Sidebar goal indicator with status, elapsed time, and objective.
16
+ - Agent tools: `get_goal`, `get_goal_history`, `create_goal`, `set_goal`, `update_goal_objective`, `update_goal`, and `clear_goal`.
17
+ - Goal close evidence: `complete` requires verified evidence, `unmet` requires a concrete blocker.
18
+ - Persistent per-session goal state with history, checkpoints, budgets, and owner-only file permissions.
19
+ - Optional automatic continuation on idle, with no-progress pause and budget wrap-up safeguards.
20
+ - Plan-mode safety: goals created from the `plan` agent stay paused; auto-continue never escapes Plan mode.
21
+ - Compaction context so active goals are preserved when OpenCode summarizes a long session.
22
+
23
+ ## When to Use
24
+
25
+ Use this plugin when you want OpenCode to behave more like a goal-driven coding agent instead of a one-prompt assistant.
26
+
27
+ Good fits:
28
+
29
+ - Long refactors, migrations, or test-fixing sessions.
30
+ - Tracking one explicit objective across TUI, desktop, and web OpenCode surfaces.
31
+ - Requiring completion evidence before a goal is marked done.
32
+ - Preserving the current goal when OpenCode compacts a long conversation.
33
+
34
+ Avoid using it for simple one-shot prompts that do not need goal tracking.
35
+
36
+ ## Requirements
37
+
38
+ - OpenCode >= 1.17.1.
39
+
40
+ ## Related Skills
41
+
42
+ Relevant skills in this repository:
43
+
44
+ - [`backend-engineer`](../../skills/backend-engineer/SKILL.md): long-running feature work with goal tracking.
45
+ - [`backend-best-practices`](../../skills/backend-best-practices/SKILL.md): backend best practices for refactoring, debugging, and testing.
@@ -0,0 +1,127 @@
1
+ # OpenCode Goal Plugin Capabilities
2
+
3
+ ## What It Can Do
4
+
5
+ ### Slash Commands
6
+
7
+ | Command | Description |
8
+ | --- | --- |
9
+ | `/goal <objective>` | Create a new goal with the given objective |
10
+ | `/goal` | Report the current goal state |
11
+ | `/goal history` | Show lifecycle history and recent checkpoints |
12
+ | `/goal edit <objective>` | Update the current objective |
13
+ | `/goal pause` | Pause the goal without clearing it |
14
+ | `/goal resume` | Resume a paused goal |
15
+ | `/goal clear` | Clear the goal (aliases: `stop`, `off`, `reset`, `none`, `cancel`) |
16
+
17
+ ### Agent Tools
18
+
19
+ | Tool | Description |
20
+ | --- | --- |
21
+ | `get_goal` | Get the current goal state |
22
+ | `get_goal_history` | Get lifecycle history and checkpoints |
23
+ | `create_goal` | Create a new goal with an objective |
24
+ | `set_goal` | Set or replace the current goal |
25
+ | `update_goal_objective` | Update the objective of the current goal |
26
+ | `update_goal` | Update goal status, evidence, or blocker |
27
+ | `clear_goal` | Clear the current goal |
28
+
29
+ ### TUI
30
+
31
+ - Sidebar goal indicator showing status, elapsed time, token usage, auto-continue count, latest checkpoint, status message, stop reason, and objective.
32
+ - Command-palette entry for viewing, refreshing, pausing, resuming, showing history, or clearing goal state.
33
+
34
+ ### Goal Lifecycle
35
+
36
+ | Status | Description |
37
+ | --- | --- |
38
+ | `active` | Goal is set and being worked on |
39
+ | `paused` | Goal is paused but not cleared |
40
+ | `complete` | Goal is achieved with evidence |
41
+ | `unmet` | Goal cannot be achieved, with a blocker specified |
42
+ | `budgetLimited` | Token budget exhausted |
43
+ | `usageLimited` | Auto-turn or elapsed-time budget exhausted |
44
+
45
+ ## Configuration Options
46
+
47
+ Configure in `opencode.json`:
48
+
49
+ ```json
50
+ {
51
+ "plugin": [
52
+ [
53
+ "@prevalentware/opencode-goal-plugin",
54
+ {
55
+ "auto_continue": true,
56
+ "defer_while_tasks_active": true,
57
+ "max_auto_turns": 25,
58
+ "min_continue_interval_seconds": 3,
59
+ "max_prompt_failures": 3,
60
+ "default_token_budget": 200000,
61
+ "max_goal_duration_seconds": 1800,
62
+ "no_progress_token_threshold": 50,
63
+ "max_no_progress_turns": 2,
64
+ "restricted_agents": ["plan"],
65
+ "allow_goal_execution_from_plan": false
66
+ }
67
+ ]
68
+ ]
69
+ }
70
+ ```
71
+
72
+ | Option | Default | Description |
73
+ | --- | --- | --- |
74
+ | `auto_continue` | `true` | Automatically continue goal on session idle |
75
+ | `defer_while_tasks_active` | `true` | Wait for active Task child sessions before continuing |
76
+ | `max_auto_turns` | `25` | Maximum auto-continuation turns per goal |
77
+ | `min_continue_interval_seconds` | `3` | Minimum seconds between auto-continuation prompts |
78
+ | `max_prompt_failures` | `3` | Max prompt failures before pausing |
79
+ | `default_token_budget` | unset | Token budget inherited by new goals |
80
+ | `max_goal_duration_seconds` | unset | Elapsed-time safety limit for goals |
81
+ | `no_progress_token_threshold` | `50` | Output-token floor for progress detection |
82
+ | `max_no_progress_turns` | `2` | Consecutive low-progress turns before pausing |
83
+ | `restricted_agents` | `["plan"]` | Agents treated as planning-only |
84
+ | `allow_goal_execution_from_plan` | `false` | Opt out of Plan-mode restrictions |
85
+
86
+ ## What It Cannot Do
87
+
88
+ - It cannot create goals without an explicit user or agent request.
89
+ - It cannot escape Plan-mode safety boundaries (by default).
90
+ - It cannot persist goals across different machines without shared state storage.
91
+ - It cannot enforce goal completion — evidence must be verified by the agent.
92
+
93
+ ## Best Practices
94
+
95
+ - Include scope, non-goals, and verification path in the objective.
96
+ - Ask the agent to audit real files, command output, tests, or PR state before closing a goal.
97
+ - Use `/goal pause` and `/goal resume` to suspend and continue work across sessions.
98
+ - Use `complete` with concrete evidence and `unmet` with a specific blocker.
99
+ - Review goal state with `/goal` and `/goal history` regularly.
100
+ - Set `default_token_budget` and `max_goal_duration_seconds` to prevent runaway goals.
101
+
102
+ ## Common Workflows
103
+
104
+ ### Start a long-running refactor
105
+
106
+ 1. Start a fresh OpenCode session.
107
+ 2. Run `/goal refactor the payment module to use the new gateway interface`.
108
+ 3. The agent works toward the goal across multiple turns.
109
+ 4. The goal auto-continues on idle until complete or blocked.
110
+
111
+ ### Review goal progress
112
+
113
+ 1. Run `/goal` to see current status, elapsed time, and objective.
114
+ 2. Run `/goal history` to see lifecycle events and checkpoints.
115
+ 3. If blocked, run `/goal pause` and address the blocker.
116
+
117
+ ### Close a goal with evidence
118
+
119
+ 1. Ask the agent to verify all requirements are met.
120
+ 2. The agent calls `update_goal` with `status: "complete"` and evidence.
121
+ 3. The goal is marked complete and the agent stops auto-continuing.
122
+
123
+ ### Close a blocked goal
124
+
125
+ 1. Run `/goal edit <updated objective>` if requirements changed.
126
+ 2. If truly blocked, ask the agent to call `update_goal` with `status: "unmet"` and a blocker description.
127
+ 3. The goal is marked unmet and the agent stops.
@@ -0,0 +1,71 @@
1
+ # OpenCode Goal Plugin Installation
2
+
3
+ ## Requirements
4
+
5
+ - OpenCode >= 1.17.1 installed.
6
+
7
+ ## Installation
8
+
9
+ Install locally for the current OpenCode project:
10
+
11
+ ```bash
12
+ opencode plugin @prevalentware/opencode-goal-plugin
13
+ ```
14
+
15
+ Install globally:
16
+
17
+ ```bash
18
+ opencode plugin -g @prevalentware/opencode-goal-plugin
19
+ ```
20
+
21
+ OpenCode detects both package entrypoints and writes the plugin into the server and TUI config targets.
22
+
23
+ ## Manual Config
24
+
25
+ If you configure it manually, add the package to both config files.
26
+
27
+ `opencode.json`:
28
+
29
+ ```json
30
+ {
31
+ "plugin": ["@prevalentware/opencode-goal-plugin"]
32
+ }
33
+ ```
34
+
35
+ `tui.json`:
36
+
37
+ ```json
38
+ {
39
+ "plugin": ["@prevalentware/opencode-goal-plugin"]
40
+ }
41
+ ```
42
+
43
+ ## Verification
44
+
45
+ After installing, start or restart OpenCode and run:
46
+
47
+ ```
48
+ /goal
49
+ ```
50
+
51
+ You should see the current goal state (or a message that no goal is set). The TUI should also show a goal indicator in the sidebar.
52
+
53
+ ## Updating
54
+
55
+ ```bash
56
+ opencode plugin update @prevalentware/opencode-goal-plugin
57
+ ```
58
+
59
+ ## Uninstalling
60
+
61
+ ```bash
62
+ opencode plugin remove @prevalentware/opencode-goal-plugin
63
+ ```
64
+
65
+ Then remove the plugin entries from `opencode.json` and `tui.json` if they were added manually.
66
+
67
+ ## Common Issues
68
+
69
+ - **Plugin not found**: ensure the package name is `@prevalentware/opencode-goal-plugin` (not `opencode-goal-plugin`).
70
+ - **OpenCode version too old**: the plugin requires OpenCode >= 1.17.1. Run `opencode --version` to check.
71
+ - **Manual config required**: if the CLI install does not work, add the plugin to both `opencode.json` and `tui.json` manually.