opencastle 1.1.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (307) hide show
  1. package/README.md +26 -9
  2. package/bin/cli.mjs +6 -0
  3. package/dist/cli/adapters/antigravity.d.ts +0 -1
  4. package/dist/cli/adapters/antigravity.d.ts.map +1 -1
  5. package/dist/cli/adapters/antigravity.js +2 -1
  6. package/dist/cli/adapters/antigravity.js.map +1 -1
  7. package/dist/cli/adapters/claude-code.d.ts +0 -1
  8. package/dist/cli/adapters/claude-code.d.ts.map +1 -1
  9. package/dist/cli/adapters/claude-code.js +0 -1
  10. package/dist/cli/adapters/claude-code.js.map +1 -1
  11. package/dist/cli/adapters/cursor.d.ts.map +1 -1
  12. package/dist/cli/adapters/cursor.js +8 -1
  13. package/dist/cli/adapters/cursor.js.map +1 -1
  14. package/dist/cli/adapters/opencode.d.ts +12 -5
  15. package/dist/cli/adapters/opencode.d.ts.map +1 -1
  16. package/dist/cli/adapters/opencode.js +17 -5
  17. package/dist/cli/adapters/opencode.js.map +1 -1
  18. package/dist/cli/adapters/rules-dir-base.d.ts +12 -1
  19. package/dist/cli/adapters/rules-dir-base.d.ts.map +1 -1
  20. package/dist/cli/adapters/rules-dir-base.js +43 -57
  21. package/dist/cli/adapters/rules-dir-base.js.map +1 -1
  22. package/dist/cli/adapters/rules-dir-base.test.js +27 -18
  23. package/dist/cli/adapters/rules-dir-base.test.js.map +1 -1
  24. package/dist/cli/adapters/single-file-base.d.ts +11 -0
  25. package/dist/cli/adapters/single-file-base.d.ts.map +1 -1
  26. package/dist/cli/adapters/single-file-base.js +44 -14
  27. package/dist/cli/adapters/single-file-base.js.map +1 -1
  28. package/dist/cli/adapters/vscode.d.ts +2 -1
  29. package/dist/cli/adapters/vscode.d.ts.map +1 -1
  30. package/dist/cli/adapters/vscode.js +2 -1
  31. package/dist/cli/adapters/vscode.js.map +1 -1
  32. package/dist/cli/adapters/windsurf.d.ts.map +1 -1
  33. package/dist/cli/adapters/windsurf.js +11 -1
  34. package/dist/cli/adapters/windsurf.js.map +1 -1
  35. package/dist/cli/agent-plugin.d.ts +119 -0
  36. package/dist/cli/agent-plugin.d.ts.map +1 -0
  37. package/dist/cli/agent-plugin.js +449 -0
  38. package/dist/cli/agent-plugin.js.map +1 -0
  39. package/dist/cli/agent-plugin.test.d.ts +2 -0
  40. package/dist/cli/agent-plugin.test.d.ts.map +1 -0
  41. package/dist/cli/agent-plugin.test.js +227 -0
  42. package/dist/cli/agent-plugin.test.js.map +1 -0
  43. package/dist/cli/baseline.d.ts.map +1 -1
  44. package/dist/cli/baseline.js +114 -34
  45. package/dist/cli/baseline.js.map +1 -1
  46. package/dist/cli/ci.d.ts.map +1 -1
  47. package/dist/cli/ci.js +18 -4
  48. package/dist/cli/ci.js.map +1 -1
  49. package/dist/cli/codex-target.test.js +14 -1
  50. package/dist/cli/codex-target.test.js.map +1 -1
  51. package/dist/cli/convoy/gates.d.ts +2 -20
  52. package/dist/cli/convoy/gates.d.ts.map +1 -1
  53. package/dist/cli/convoy/gates.js +3 -111
  54. package/dist/cli/convoy/gates.js.map +1 -1
  55. package/dist/cli/copy.d.ts +0 -8
  56. package/dist/cli/copy.d.ts.map +1 -1
  57. package/dist/cli/copy.js +0 -21
  58. package/dist/cli/copy.js.map +1 -1
  59. package/dist/cli/dispatcher.test.js +2 -2
  60. package/dist/cli/dispatcher.test.js.map +1 -1
  61. package/dist/cli/docs-accuracy.test.js +2 -0
  62. package/dist/cli/docs-accuracy.test.js.map +1 -1
  63. package/dist/cli/doctor.d.ts.map +1 -1
  64. package/dist/cli/doctor.js +2 -0
  65. package/dist/cli/doctor.js.map +1 -1
  66. package/dist/cli/doctor.test.js +2 -2
  67. package/dist/cli/doctor.test.js.map +1 -1
  68. package/dist/cli/explain.d.ts +5 -0
  69. package/dist/cli/explain.d.ts.map +1 -1
  70. package/dist/cli/explain.js +38 -2
  71. package/dist/cli/explain.js.map +1 -1
  72. package/dist/cli/init.test.js +78 -42
  73. package/dist/cli/init.test.js.map +1 -1
  74. package/dist/cli/layers.d.ts +8 -0
  75. package/dist/cli/layers.d.ts.map +1 -1
  76. package/dist/cli/layers.js +130 -13
  77. package/dist/cli/layers.js.map +1 -1
  78. package/dist/cli/layers.test.js +2 -2
  79. package/dist/cli/layers.test.js.map +1 -1
  80. package/dist/cli/legacy-install.test.js +8 -1
  81. package/dist/cli/legacy-install.test.js.map +1 -1
  82. package/dist/cli/lesson-command.test.d.ts +2 -0
  83. package/dist/cli/lesson-command.test.d.ts.map +1 -0
  84. package/dist/cli/lesson-command.test.js +100 -0
  85. package/dist/cli/lesson-command.test.js.map +1 -0
  86. package/dist/cli/lesson.d.ts +0 -9
  87. package/dist/cli/lesson.d.ts.map +1 -1
  88. package/dist/cli/lesson.js +212 -276
  89. package/dist/cli/lesson.js.map +1 -1
  90. package/dist/cli/lessons.d.ts +134 -0
  91. package/dist/cli/lessons.d.ts.map +1 -0
  92. package/dist/cli/lessons.js +493 -0
  93. package/dist/cli/lessons.js.map +1 -0
  94. package/dist/cli/lessons.test.d.ts +2 -0
  95. package/dist/cli/lessons.test.d.ts.map +1 -0
  96. package/dist/cli/lessons.test.js +214 -0
  97. package/dist/cli/lessons.test.js.map +1 -0
  98. package/dist/cli/managed-paths.d.ts.map +1 -1
  99. package/dist/cli/managed-paths.js +3 -1
  100. package/dist/cli/managed-paths.js.map +1 -1
  101. package/dist/cli/mcp-audit.d.ts.map +1 -1
  102. package/dist/cli/mcp-audit.js +2 -0
  103. package/dist/cli/mcp-audit.js.map +1 -1
  104. package/dist/cli/mcp-upgrade.test.js +24 -1
  105. package/dist/cli/mcp-upgrade.test.js.map +1 -1
  106. package/dist/cli/mcp.d.ts.map +1 -1
  107. package/dist/cli/mcp.js +22 -3
  108. package/dist/cli/mcp.js.map +1 -1
  109. package/dist/cli/pack-plugins.d.ts +8 -0
  110. package/dist/cli/pack-plugins.d.ts.map +1 -0
  111. package/dist/cli/pack-plugins.js +70 -0
  112. package/dist/cli/pack-plugins.js.map +1 -0
  113. package/dist/cli/plugin-command.test.d.ts +2 -0
  114. package/dist/cli/plugin-command.test.d.ts.map +1 -0
  115. package/dist/cli/plugin-command.test.js +114 -0
  116. package/dist/cli/plugin-command.test.js.map +1 -0
  117. package/dist/cli/plugin.d.ts +30 -0
  118. package/dist/cli/plugin.d.ts.map +1 -0
  119. package/dist/cli/plugin.js +291 -0
  120. package/dist/cli/plugin.js.map +1 -0
  121. package/dist/cli/promote-command.test.d.ts +2 -0
  122. package/dist/cli/promote-command.test.d.ts.map +1 -0
  123. package/dist/cli/promote-command.test.js +151 -0
  124. package/dist/cli/promote-command.test.js.map +1 -0
  125. package/dist/cli/promote.d.ts +12 -0
  126. package/dist/cli/promote.d.ts.map +1 -0
  127. package/dist/cli/promote.js +364 -0
  128. package/dist/cli/promote.js.map +1 -0
  129. package/dist/cli/secret-scan.d.ts +21 -0
  130. package/dist/cli/secret-scan.d.ts.map +1 -0
  131. package/dist/cli/secret-scan.js +114 -0
  132. package/dist/cli/secret-scan.js.map +1 -0
  133. package/dist/cli/sync-check.d.ts.map +1 -1
  134. package/dist/cli/sync-check.js +9 -0
  135. package/dist/cli/sync-check.js.map +1 -1
  136. package/dist/cli/sync-check.test.js +5 -4
  137. package/dist/cli/sync-check.test.js.map +1 -1
  138. package/dist/cli/team-commands.test.js +14 -2
  139. package/dist/cli/team-commands.test.js.map +1 -1
  140. package/dist/cli/team-sources.test.js +10 -0
  141. package/dist/cli/team-sources.test.js.map +1 -1
  142. package/dist/cli/types.d.ts +1 -1
  143. package/dist/cli/types.d.ts.map +1 -1
  144. package/dist/cli/update.d.ts.map +1 -1
  145. package/dist/cli/update.js +18 -0
  146. package/dist/cli/update.js.map +1 -1
  147. package/dist/cli/windsurf-target.test.d.ts +2 -0
  148. package/dist/cli/windsurf-target.test.d.ts.map +1 -0
  149. package/dist/cli/windsurf-target.test.js +62 -0
  150. package/dist/cli/windsurf-target.test.js.map +1 -0
  151. package/dist/orchestrator/plugins/agent-plugins.test.d.ts +2 -0
  152. package/dist/orchestrator/plugins/agent-plugins.test.d.ts.map +1 -0
  153. package/dist/orchestrator/plugins/agent-plugins.test.js +32 -0
  154. package/dist/orchestrator/plugins/agent-plugins.test.js.map +1 -0
  155. package/dist/orchestrator/plugins/registry.test.d.ts +2 -0
  156. package/dist/orchestrator/plugins/registry.test.d.ts.map +1 -0
  157. package/dist/orchestrator/plugins/registry.test.js +37 -0
  158. package/dist/orchestrator/plugins/registry.test.js.map +1 -0
  159. package/package.json +2 -1
  160. package/src/cli/adapters/antigravity.ts +2 -1
  161. package/src/cli/adapters/claude-code.ts +0 -1
  162. package/src/cli/adapters/cursor.ts +8 -1
  163. package/src/cli/adapters/opencode.ts +18 -6
  164. package/src/cli/adapters/rules-dir-base.test.ts +28 -18
  165. package/src/cli/adapters/rules-dir-base.ts +51 -90
  166. package/src/cli/adapters/single-file-base.ts +53 -14
  167. package/src/cli/adapters/vscode.ts +2 -1
  168. package/src/cli/adapters/windsurf.ts +11 -1
  169. package/src/cli/agent-plugin.test.ts +267 -0
  170. package/src/cli/agent-plugin.ts +469 -0
  171. package/src/cli/baseline.ts +115 -32
  172. package/src/cli/ci.ts +19 -4
  173. package/src/cli/codex-target.test.ts +15 -1
  174. package/src/cli/convoy/gates.ts +9 -142
  175. package/src/cli/copy.ts +0 -25
  176. package/src/cli/dispatcher.test.ts +2 -2
  177. package/src/cli/docs-accuracy.test.ts +2 -0
  178. package/src/cli/doctor.test.ts +2 -2
  179. package/src/cli/doctor.ts +2 -0
  180. package/src/cli/explain.ts +36 -2
  181. package/src/cli/fixtures/lessons-template-1.0.md +70 -0
  182. package/src/cli/init.test.ts +82 -42
  183. package/src/cli/layers.test.ts +2 -2
  184. package/src/cli/layers.ts +144 -14
  185. package/src/cli/legacy-install.test.ts +11 -1
  186. package/src/cli/lesson-command.test.ts +117 -0
  187. package/src/cli/lesson.ts +215 -266
  188. package/src/cli/lessons.test.ts +254 -0
  189. package/src/cli/lessons.ts +540 -0
  190. package/src/cli/managed-paths.ts +3 -1
  191. package/src/cli/mcp-audit.ts +2 -0
  192. package/src/cli/mcp-upgrade.test.ts +26 -1
  193. package/src/cli/mcp.ts +22 -3
  194. package/src/cli/pack-plugins.ts +70 -0
  195. package/src/cli/plugin-command.test.ts +125 -0
  196. package/src/cli/plugin.ts +309 -0
  197. package/src/cli/promote-command.test.ts +170 -0
  198. package/src/cli/promote.ts +371 -0
  199. package/src/cli/secret-scan.ts +154 -0
  200. package/src/cli/sync-check.test.ts +5 -4
  201. package/src/cli/sync-check.ts +9 -0
  202. package/src/cli/team-commands.test.ts +18 -2
  203. package/src/cli/team-sources.test.ts +11 -0
  204. package/src/cli/types.ts +1 -1
  205. package/src/cli/update.ts +20 -0
  206. package/src/cli/windsurf-target.test.ts +70 -0
  207. package/src/dashboard/node_modules/.vite/deps/_metadata.json +6 -6
  208. package/src/orchestrator/agents/researcher.agent.md +1 -1
  209. package/src/orchestrator/customizations/LESSONS-LEARNED.md +10 -66
  210. package/src/orchestrator/customizations/README.md +2 -1
  211. package/src/orchestrator/customizations/logs/README.md +1 -1
  212. package/src/orchestrator/plugins/agent-plugins.test.ts +34 -0
  213. package/src/orchestrator/plugins/astro/mcp.json +9 -0
  214. package/src/orchestrator/plugins/astro/plugin.json +21 -0
  215. package/src/orchestrator/plugins/chrome-devtools/mcp.json +13 -0
  216. package/src/orchestrator/plugins/chrome-devtools/plugin.json +21 -0
  217. package/src/orchestrator/plugins/cloudflare/mcp.json +9 -0
  218. package/src/orchestrator/plugins/cloudflare/plugin.json +21 -0
  219. package/src/orchestrator/plugins/contentful/mcp.json +13 -0
  220. package/src/orchestrator/plugins/contentful/plugin.json +21 -0
  221. package/src/orchestrator/plugins/convex/mcp.json +15 -0
  222. package/src/orchestrator/plugins/convex/plugin.json +21 -0
  223. package/src/orchestrator/plugins/coolify/mcp.json +13 -0
  224. package/src/orchestrator/plugins/coolify/plugin.json +25 -0
  225. package/src/orchestrator/plugins/cypress/plugin.json +21 -0
  226. package/src/orchestrator/plugins/drizzle/plugin.json +21 -0
  227. package/src/orchestrator/plugins/expo/mcp.json +9 -0
  228. package/src/orchestrator/plugins/expo/plugin.json +21 -0
  229. package/src/orchestrator/plugins/figma/mcp.json +9 -0
  230. package/src/orchestrator/plugins/figma/plugin.json +21 -0
  231. package/src/orchestrator/plugins/hetzner/plugin.json +24 -0
  232. package/src/orchestrator/plugins/jira/mcp.json +9 -0
  233. package/src/orchestrator/plugins/jira/plugin.json +21 -0
  234. package/src/orchestrator/plugins/linear/mcp.json +9 -0
  235. package/src/orchestrator/plugins/linear/plugin.json +21 -0
  236. package/src/orchestrator/plugins/netlify/mcp.json +13 -0
  237. package/src/orchestrator/plugins/netlify/plugin.json +21 -0
  238. package/src/orchestrator/plugins/nextjs/mcp.json +13 -0
  239. package/src/orchestrator/plugins/nextjs/plugin.json +21 -0
  240. package/src/orchestrator/plugins/notion/mcp.json +9 -0
  241. package/src/orchestrator/plugins/notion/plugin.json +21 -0
  242. package/src/orchestrator/plugins/nx/mcp.json +14 -0
  243. package/src/orchestrator/plugins/nx/plugin.json +21 -0
  244. package/src/orchestrator/plugins/playwright/mcp.json +13 -0
  245. package/src/orchestrator/plugins/playwright/plugin.json +21 -0
  246. package/src/orchestrator/plugins/prisma/mcp.json +14 -0
  247. package/src/orchestrator/plugins/prisma/plugin.json +21 -0
  248. package/src/orchestrator/plugins/registry.test.ts +42 -0
  249. package/src/orchestrator/plugins/resend/mcp.json +13 -0
  250. package/src/orchestrator/plugins/resend/plugin.json +24 -0
  251. package/src/orchestrator/plugins/sanity/mcp.json +9 -0
  252. package/src/orchestrator/plugins/sanity/plugin.json +21 -0
  253. package/src/orchestrator/plugins/sentry/mcp.json +12 -0
  254. package/src/orchestrator/plugins/sentry/plugin.json +24 -0
  255. package/src/orchestrator/plugins/slack/mcp.json +13 -0
  256. package/src/orchestrator/plugins/slack/plugin.json +24 -0
  257. package/src/orchestrator/plugins/strapi/mcp.json +13 -0
  258. package/src/orchestrator/plugins/strapi/plugin.json +21 -0
  259. package/src/orchestrator/plugins/stripe/mcp.json +9 -0
  260. package/src/orchestrator/plugins/stripe/plugin.json +21 -0
  261. package/src/orchestrator/plugins/supabase/mcp.json +9 -0
  262. package/src/orchestrator/plugins/supabase/plugin.json +21 -0
  263. package/src/orchestrator/plugins/teams/plugin.json +24 -0
  264. package/src/orchestrator/plugins/trello/mcp.json +13 -0
  265. package/src/orchestrator/plugins/trello/plugin.json +25 -0
  266. package/src/orchestrator/plugins/turborepo/plugin.json +21 -0
  267. package/src/orchestrator/plugins/vercel/mcp.json +9 -0
  268. package/src/orchestrator/plugins/vercel/plugin.json +21 -0
  269. package/src/orchestrator/plugins/vitest/plugin.json +21 -0
  270. package/src/orchestrator/skill-config-links.test.ts +2 -1
  271. package/src/orchestrator/skills/agent-hooks/HOOKS-REFERENCE.md +1 -1
  272. package/src/orchestrator/skills/agent-hooks/SKILL.md +1 -1
  273. package/src/orchestrator/skills/decomposition/SKILL.md +1 -1
  274. package/src/orchestrator/skills/memory-merger/SKILL.md +17 -21
  275. package/src/orchestrator/skills/self-improvement/LESSON-CATEGORIES.md +44 -23
  276. package/src/orchestrator/skills/self-improvement/SKILL.md +30 -15
  277. /package/src/orchestrator/plugins/astro/{SKILL.md → skills/astro-framework/SKILL.md} +0 -0
  278. /package/src/orchestrator/plugins/chrome-devtools/{SKILL.md → skills/browser-testing/SKILL.md} +0 -0
  279. /package/src/orchestrator/plugins/cloudflare/{SKILL.md → skills/cloudflare-platform/SKILL.md} +0 -0
  280. /package/src/orchestrator/plugins/contentful/{SKILL.md → skills/contentful-cms/SKILL.md} +0 -0
  281. /package/src/orchestrator/plugins/convex/{SKILL.md → skills/convex-database/SKILL.md} +0 -0
  282. /package/src/orchestrator/plugins/coolify/{SKILL.md → skills/coolify-deployment/SKILL.md} +0 -0
  283. /package/src/orchestrator/plugins/cypress/{SKILL.md → skills/cypress-testing/SKILL.md} +0 -0
  284. /package/src/orchestrator/plugins/drizzle/{SKILL.md → skills/drizzle-orm/SKILL.md} +0 -0
  285. /package/src/orchestrator/plugins/expo/{SKILL.md → skills/expo-development/SKILL.md} +0 -0
  286. /package/src/orchestrator/plugins/figma/{SKILL.md → skills/figma-design/SKILL.md} +0 -0
  287. /package/src/orchestrator/plugins/hetzner/{SKILL.md → skills/hetzner-cloud/SKILL.md} +0 -0
  288. /package/src/orchestrator/plugins/jira/{SKILL.md → skills/jira-management/SKILL.md} +0 -0
  289. /package/src/orchestrator/plugins/linear/{SKILL.md → skills/linear-task-management/SKILL.md} +0 -0
  290. /package/src/orchestrator/plugins/netlify/{SKILL.md → skills/netlify-deployment/SKILL.md} +0 -0
  291. /package/src/orchestrator/plugins/nextjs/{SKILL.md → skills/nextjs-framework/SKILL.md} +0 -0
  292. /package/src/orchestrator/plugins/notion/{SKILL.md → skills/notion-knowledge-management/SKILL.md} +0 -0
  293. /package/src/orchestrator/plugins/nx/{SKILL.md → skills/nx-workspace/SKILL.md} +0 -0
  294. /package/src/orchestrator/plugins/playwright/{SKILL.md → skills/playwright-testing/SKILL.md} +0 -0
  295. /package/src/orchestrator/plugins/prisma/{SKILL.md → skills/prisma-database/SKILL.md} +0 -0
  296. /package/src/orchestrator/plugins/resend/{SKILL.md → skills/resend-email/SKILL.md} +0 -0
  297. /package/src/orchestrator/plugins/sanity/{SKILL.md → skills/sanity-cms/SKILL.md} +0 -0
  298. /package/src/orchestrator/plugins/sentry/{SKILL.md → skills/sentry-monitoring/SKILL.md} +0 -0
  299. /package/src/orchestrator/plugins/slack/{SKILL.md → skills/slack-notifications/SKILL.md} +0 -0
  300. /package/src/orchestrator/plugins/strapi/{SKILL.md → skills/strapi-cms/SKILL.md} +0 -0
  301. /package/src/orchestrator/plugins/stripe/{SKILL.md → skills/stripe-payments/SKILL.md} +0 -0
  302. /package/src/orchestrator/plugins/supabase/{SKILL.md → skills/supabase-database/SKILL.md} +0 -0
  303. /package/src/orchestrator/plugins/teams/{SKILL.md → skills/teams-notifications/SKILL.md} +0 -0
  304. /package/src/orchestrator/plugins/trello/{SKILL.md → skills/trello-task-management/SKILL.md} +0 -0
  305. /package/src/orchestrator/plugins/turborepo/{SKILL.md → skills/turborepo-monorepo/SKILL.md} +0 -0
  306. /package/src/orchestrator/plugins/vercel/{SKILL.md → skills/vercel-deployment/SKILL.md} +0 -0
  307. /package/src/orchestrator/plugins/vitest/{SKILL.md → skills/vitest-testing/SKILL.md} +0 -0
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
3
+ "mcpServers": {
4
+ "Sanity": {
5
+ "type": "streamable-http",
6
+ "url": "https://mcp.sanity.io"
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
+ "name": "sanity",
4
+ "description": "Sanity skill and MCP server for AI coding assistants: GROQ queries, real-time collaboration.",
5
+ "homepage": "https://www.opencastle.dev/docs/plugins#sanity",
6
+ "repository": "https://github.com/monkilabs/opencastle",
7
+ "license": "MIT",
8
+ "keywords": [
9
+ "tech",
10
+ "cms"
11
+ ],
12
+ "extensions": {
13
+ "dev.opencastle": {
14
+ "label": "Sanity",
15
+ "category": "tech",
16
+ "subCategory": "cms",
17
+ "authType": "oauth",
18
+ "officialDocs": "https://www.sanity.io/docs"
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
3
+ "mcpServers": {
4
+ "Sentry": {
5
+ "type": "stdio",
6
+ "command": "npx",
7
+ "args": [
8
+ "@sentry/mcp-server@0.42.0"
9
+ ]
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
+ "name": "sentry",
4
+ "description": "Sentry skill and MCP server for AI coding assistants: Error monitoring, performance tracing, and observability.",
5
+ "homepage": "https://www.opencastle.dev/docs/plugins",
6
+ "repository": "https://github.com/monkilabs/opencastle",
7
+ "license": "MIT",
8
+ "keywords": [
9
+ "tech",
10
+ "observability"
11
+ ],
12
+ "extensions": {
13
+ "dev.opencastle": {
14
+ "label": "Sentry",
15
+ "category": "tech",
16
+ "subCategory": "observability",
17
+ "authType": "env-token",
18
+ "env": [
19
+ "SENTRY_ACCESS_TOKEN"
20
+ ],
21
+ "officialDocs": "https://docs.sentry.io/"
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
3
+ "mcpServers": {
4
+ "Slack": {
5
+ "type": "stdio",
6
+ "command": "npx",
7
+ "args": [
8
+ "-y",
9
+ "@kazuph/mcp-slack@1.3.2"
10
+ ]
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
+ "name": "slack",
4
+ "description": "Slack skill and MCP server for AI coding assistants: Agent notifications and communication.",
5
+ "homepage": "https://www.opencastle.dev/docs/plugins#slack",
6
+ "repository": "https://github.com/monkilabs/opencastle",
7
+ "license": "MIT",
8
+ "keywords": [
9
+ "team",
10
+ "notifications"
11
+ ],
12
+ "extensions": {
13
+ "dev.opencastle": {
14
+ "label": "Slack",
15
+ "category": "team",
16
+ "subCategory": "notifications",
17
+ "authType": "env-token",
18
+ "env": [
19
+ "SLACK_MCP_XOXB_TOKEN"
20
+ ],
21
+ "officialDocs": "https://api.slack.com/docs"
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
3
+ "mcpServers": {
4
+ "Strapi": {
5
+ "type": "stdio",
6
+ "command": "npx",
7
+ "args": [
8
+ "-y",
9
+ "strapi-mcp@0.2.3"
10
+ ]
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
+ "name": "strapi",
4
+ "description": "Strapi skill and MCP server for AI coding assistants: Open-source headless CMS.",
5
+ "homepage": "https://www.opencastle.dev/docs/plugins#strapi",
6
+ "repository": "https://github.com/monkilabs/opencastle",
7
+ "license": "MIT",
8
+ "keywords": [
9
+ "tech",
10
+ "cms"
11
+ ],
12
+ "extensions": {
13
+ "dev.opencastle": {
14
+ "label": "Strapi",
15
+ "category": "tech",
16
+ "subCategory": "cms",
17
+ "authType": "none",
18
+ "officialDocs": "https://docs.strapi.io/"
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
3
+ "mcpServers": {
4
+ "Stripe": {
5
+ "type": "streamable-http",
6
+ "url": "https://mcp.stripe.com"
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
+ "name": "stripe",
4
+ "description": "Stripe skill and MCP server for AI coding assistants: Payments, billing, and financial infrastructure.",
5
+ "homepage": "https://www.opencastle.dev/docs/plugins#stripe",
6
+ "repository": "https://github.com/monkilabs/opencastle",
7
+ "license": "MIT",
8
+ "keywords": [
9
+ "tech",
10
+ "payments"
11
+ ],
12
+ "extensions": {
13
+ "dev.opencastle": {
14
+ "label": "Stripe",
15
+ "category": "tech",
16
+ "subCategory": "payments",
17
+ "authType": "oauth",
18
+ "officialDocs": "https://docs.stripe.com/"
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
3
+ "mcpServers": {
4
+ "Supabase": {
5
+ "type": "streamable-http",
6
+ "url": "https://mcp.supabase.com/mcp"
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
+ "name": "supabase",
4
+ "description": "Supabase skill and MCP server for AI coding assistants: Postgres + Auth + RLS + Edge Functions.",
5
+ "homepage": "https://www.opencastle.dev/docs/plugins#supabase",
6
+ "repository": "https://github.com/monkilabs/opencastle",
7
+ "license": "MIT",
8
+ "keywords": [
9
+ "tech",
10
+ "database"
11
+ ],
12
+ "extensions": {
13
+ "dev.opencastle": {
14
+ "label": "Supabase",
15
+ "category": "tech",
16
+ "subCategory": "database",
17
+ "authType": "oauth",
18
+ "officialDocs": "https://supabase.com/docs"
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
+ "name": "teams",
4
+ "description": "Microsoft Teams skill (its MCP server needs per-user setup) for AI coding assistants: Agent notifications via Teams channels.",
5
+ "homepage": "https://www.opencastle.dev/docs/plugins#teams",
6
+ "repository": "https://github.com/monkilabs/opencastle",
7
+ "license": "MIT",
8
+ "keywords": [
9
+ "team",
10
+ "notifications"
11
+ ],
12
+ "extensions": {
13
+ "dev.opencastle": {
14
+ "label": "Microsoft Teams",
15
+ "category": "team",
16
+ "subCategory": "notifications",
17
+ "authType": "oauth",
18
+ "inputs": [
19
+ "tenant_id"
20
+ ],
21
+ "officialDocs": "https://learn.microsoft.com/en-us/microsoftteams/"
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
3
+ "mcpServers": {
4
+ "Trello": {
5
+ "type": "stdio",
6
+ "command": "npx",
7
+ "args": [
8
+ "-y",
9
+ "@delorenj/mcp-server-trello@1.8.1"
10
+ ]
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
+ "name": "trello",
4
+ "description": "Trello skill and MCP server for AI coding assistants: Visual board task management via MCP.",
5
+ "homepage": "https://www.opencastle.dev/docs/plugins#trello",
6
+ "repository": "https://github.com/monkilabs/opencastle",
7
+ "license": "MIT",
8
+ "keywords": [
9
+ "team",
10
+ "task-management"
11
+ ],
12
+ "extensions": {
13
+ "dev.opencastle": {
14
+ "label": "Trello",
15
+ "category": "team",
16
+ "subCategory": "task-management",
17
+ "authType": "env-token",
18
+ "env": [
19
+ "TRELLO_API_KEY",
20
+ "TRELLO_TOKEN"
21
+ ],
22
+ "officialDocs": "https://developer.atlassian.com/cloud/trello/"
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
+ "name": "turborepo",
4
+ "description": "Turborepo skill for AI coding assistants: Monorepo build system with remote caching.",
5
+ "homepage": "https://www.opencastle.dev/docs/plugins#turborepo",
6
+ "repository": "https://github.com/monkilabs/opencastle",
7
+ "license": "MIT",
8
+ "keywords": [
9
+ "tech",
10
+ "codebase-tool"
11
+ ],
12
+ "extensions": {
13
+ "dev.opencastle": {
14
+ "label": "Turborepo",
15
+ "category": "tech",
16
+ "subCategory": "codebase-tool",
17
+ "authType": "none",
18
+ "officialDocs": "https://turbo.build/repo/docs"
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
3
+ "mcpServers": {
4
+ "Vercel": {
5
+ "type": "streamable-http",
6
+ "url": "https://mcp.vercel.com"
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
+ "name": "vercel",
4
+ "description": "Vercel skill and MCP server for AI coding assistants: Deployment and hosting platform.",
5
+ "homepage": "https://www.opencastle.dev/docs/plugins#vercel",
6
+ "repository": "https://github.com/monkilabs/opencastle",
7
+ "license": "MIT",
8
+ "keywords": [
9
+ "tech",
10
+ "deployment"
11
+ ],
12
+ "extensions": {
13
+ "dev.opencastle": {
14
+ "label": "Vercel",
15
+ "category": "tech",
16
+ "subCategory": "deployment",
17
+ "authType": "oauth",
18
+ "officialDocs": "https://vercel.com/docs"
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
+ "name": "vitest",
4
+ "description": "Vitest skill for AI coding assistants: Vite-native unit and integration testing.",
5
+ "homepage": "https://www.opencastle.dev/docs/plugins#vitest",
6
+ "repository": "https://github.com/monkilabs/opencastle",
7
+ "license": "MIT",
8
+ "keywords": [
9
+ "tech",
10
+ "testing"
11
+ ],
12
+ "extensions": {
13
+ "dev.opencastle": {
14
+ "label": "Vitest",
15
+ "category": "tech",
16
+ "subCategory": "testing",
17
+ "authType": "none",
18
+ "officialDocs": "https://vitest.dev"
19
+ }
20
+ }
21
+ }
@@ -2,6 +2,7 @@ import { describe, it, expect } from 'vitest'
2
2
  import { readFileSync, readdirSync } from 'node:fs'
3
3
  import { join, relative, resolve } from 'node:path'
4
4
  import { TRACKER_TOOLS } from '../cli/bootstrap.js'
5
+ import { PLUGINS } from './plugins/index.js'
5
6
 
6
7
  const ORCHESTRATOR = resolve(import.meta.dirname)
7
8
 
@@ -23,7 +24,7 @@ describe('skill references to project config', () => {
23
24
  // bootstrap renames project/tracker-config.md to <tracker>-config.md, so a
24
25
  // skill that names the template's filename points at a file no project has.
25
26
  it.each([...TRACKER_TOOLS])('%s skill names the config file bootstrap writes', tracker => {
26
- const skill = readFileSync(join(ORCHESTRATOR, 'plugins', tracker, 'SKILL.md'), 'utf8')
27
+ const skill = readFileSync(join(ORCHESTRATOR, 'plugins', tracker, 'skills', PLUGINS[tracker].skillName!, 'SKILL.md'), 'utf8')
27
28
  expect(skill).toContain(`.opencastle/project/${tracker}-config.md`)
28
29
  expect(skill).not.toContain('tracker-config.md')
29
30
  })
@@ -43,4 +43,4 @@ Log delegation: `opencastle log --type=delegation --issue=TAS-123 --status=start
43
43
  | 1 | `opencastle doctor` | Team Lead |
44
44
  | 2 | `opencastle log --type session ...` | All |
45
45
  | 3 | Write `.opencastle/SESSION-CHECKPOINT.md` if incomplete | Team Lead |
46
- | 4 | `rg -c "^Lesson:" .opencastle/LESSONS-LEARNED.md` — flag merge if ≥5 | All |
46
+ | 4 | `ls .opencastle/lessons/ \| wc -l` — flag a memory-merger pass if more than 50 | All |
@@ -20,7 +20,7 @@ on-session-start → [work loop] → on-session-end
20
20
 
21
21
  | # | Action |
22
22
  |---|--------|
23
- | 1 | `rg -n "keyword" .opencastle/LESSONS-LEARNED.md` |
23
+ | 1 | Read `.opencastle/LESSONS-LEARNED.md`, then `rg -n "keyword" .opencastle/lessons/` |
24
24
  | 2 | `cat .opencastle/SESSION-CHECKPOINT.md` (resume if exists) |
25
25
  | 3 | `rg -n "ERROR\|FAIL" .opencastle/AGENT-FAILURES.md \|\| true` |
26
26
  | 4 | `cat .opencastle/agents/skill-matrix.json \| jq '.bindings'` — load domain skills |
@@ -38,7 +38,7 @@ For score 1-3, objective + files + criteria is sufficient. Full template:
38
38
  - Key files: [list]
39
39
  - Related patterns: [file:line references]
40
40
  - Prior phase output: [compacted summary if applicable]
41
- - Relevant lessons: [LES-XXX from LESSONS-LEARNED.md]
41
+ - Relevant lessons: [ids from LESSONS-LEARNED.md]
42
42
 
43
43
  ### Constraints
44
44
  - File partition: Only modify files under [paths]
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: memory-merger
3
- description: "Reviews mature LESSONS-LEARNED.md entries, rewrites them as permanent rules in skill/instruction files, archives graduated lessons. Use when graduating lessons into skills, promoting validated lessons, updating skills from past learnings, archiving mature lessons, codifying repeated patterns, or cleaning up a crowded LESSONS-LEARNED.md."
3
+ description: "Reviews mature lessons in .opencastle/lessons/, rewrites them as permanent rules in skill/instruction files, archives graduated lessons with opencastle lesson archive. Use when graduating lessons into skills, promoting validated lessons, updating skills from past learnings, archiving mature lessons, codifying repeated patterns, or cleaning up a crowded lessons index."
4
4
  ---
5
5
 
6
6
  # Memory Merger
@@ -12,8 +12,8 @@ Combined signals to identify merge candidates.
12
12
 
13
13
  | Criterion | Signal / Threshold |
14
14
  |-----------|--------------------|
15
- | File size | LESSONS-LEARNED.md > 50 entries |
16
- | Citation count | Cited 3+ times across sessions |
15
+ | Volume | More than 50 lessons in `.opencastle/lessons/` |
16
+ | Reference count | Referenced 3+ times across sessions |
17
17
  | Age | >60 days and still relevant |
18
18
  | Category cluster | 5+ lessons in same category |
19
19
  | Severity | Marked `high` or blocking |
@@ -21,19 +21,19 @@ Combined signals to identify merge candidates.
21
21
 
22
22
  ## Workflow (numbered)
23
23
 
24
- 1. Scan LESSONS-LEARNED.md for candidate entries (frequency, severity, age).
24
+ 1. Scan `.opencastle/lessons/` for candidate lessons (frequency, severity, age — `added:` in each file).
25
25
  2. Map each candidate to target file, section.
26
26
  3. Draft exact edit (concise rule or example).
27
27
  4. Apply edit with attribution comment.
28
- 5. Archive migrated lesson in LESSONS-LEARNED.md with merge note.
29
- 6. Update index; run validation checks.
28
+ 5. Archive the lesson with `opencastle lesson archive`.
29
+ 6. Run validation checks.
30
30
 
31
31
  ## Merge Protocol
32
32
 
33
33
  ### 3 — Draft Edit
34
34
 
35
35
  ```
36
- Lesson: LES-XXX — [title]
36
+ Lesson: <id> — [title]
37
37
  Target: [file path]
38
38
  Section: [section name]
39
39
  Edit: [exact text]
@@ -42,30 +42,26 @@ Strategies: add rule, add anti-pattern, add code example, expand existing rule,
42
42
 
43
43
  ### 4 — Apply & Attribute
44
44
 
45
- Edit target file; add `<!-- Merged from LES-XXX -->` attribution inline.
45
+ Edit target file; add `<!-- Merged from <id> -->` attribution inline.
46
46
 
47
47
  ### 5 — Archive
48
48
 
49
- Move merged lessons to `## Archived (Merged)` at the bottom of `LESSONS-LEARNED.md`:
50
-
51
- ```markdown
52
- ### LES-XXX: [title] → Merged to `[target]` on YYYY-MM-DD
49
+ ```sh
50
+ opencastle lesson archive <id> --into <target file>
53
51
  ```
54
52
 
55
- **Never delete lessons** — archive for traceability.
53
+ The lesson keeps its file, is marked archived with where it went, and moves to the index's **Archived** section — out of the list agents read before work. Never edit `LESSONS-LEARNED.md` by hand: it is rewritten from the lesson files.
56
54
 
57
- ### 6 — Update Index
58
-
59
- Update `## Index by Category` in `LESSONS-LEARNED.md` to mark archived lessons.
55
+ **Never delete lessons** — archive for traceability.
60
56
 
61
57
  ### Automating the scan
62
58
 
63
59
  ```sh
64
- # Find lessons cited 3+ times across sessions
65
- rg -c "LES-[0-9]+" .opencastle/logs/events.ndjson | awk -F: '$2 >= 3 {print $1}'
60
+ # Lessons referenced 3+ times across sessions (ids are LES-NNN or YYYY-MM-DD-title)
61
+ rg -o '"lessons_added":\[[^]]*\]' .opencastle/logs/events.ndjson | rg -o '"[A-Za-z0-9-]+"' | sort | uniq -c | awk '$1 >= 3'
66
62
 
67
- # Find lessons referenced in recent retries
68
- rg "retry.*LES-[0-9]+" .opencastle/logs/events.ndjson | rg -o "LES-[0-9]+" | sort | uniq -c | sort -rn | head -20
63
+ # Oldest lessons first — candidates once past 60 days
64
+ rg -H '^added:' .opencastle/lessons/ | sort -t'"' -k2 | head -20
69
65
  ```
70
66
 
71
67
  ## Quality Gates (validation checkpoints)
@@ -77,7 +73,7 @@ rg "retry.*LES-[0-9]+" .opencastle/logs/events.ndjson | rg -o "LES-[0-9]+" | sor
77
73
 
78
74
  ## Anti-Patterns
79
75
 
80
- - Merge too eagerly — must meet 3+ citations or 60+ day threshold
76
+ - Merge too eagerly — must meet 3+ references or 60+ day threshold
81
77
  - Copy verbatim — rewrite as rules/guidelines, not incident reports
82
78
  - Merge conflicting lessons — resolve conflict first
83
79
  - Create new files for merged content — merge INTO existing files only
@@ -2,35 +2,56 @@
2
2
 
3
3
  # Lesson Categories & Severity
4
4
 
5
- Use these tables when tagging lessons in `LESSONS-LEARNED.md`.
5
+ The values `opencastle lesson` accepts. Anything else is refused.
6
6
 
7
7
  ## Categories
8
8
 
9
- | Category | When to use |
10
- |----------|------------|
11
- | `bug` | Runtime errors, incorrect behavior, regressions |
12
- | `pattern` | Reusable code or workflow pattern discovered |
13
- | `architecture` | Structural decisions, module boundaries, data flow |
14
- | `tooling` | Build tools, CLI, IDE, MCP, CI/CD issues |
15
- | `testing` | Test strategy, flaky tests, coverage gaps |
16
- | `security` | Auth, RLS, headers, secrets, input validation |
17
- | `performance` | Rendering, bundle size, query optimization |
18
- | `deployment` | Hosting, env vars, caching, rollback |
19
- | `process` | Workflow, delegation, review, orchestration |
20
- | `documentation` | Docs structure, templates, stale content |
9
+ | `--category` | When to use |
10
+ |--------------|-------------|
11
+ | `task-management` | Issue trackers, task status, boards |
12
+ | `jira` | Jira specifically: fields, transitions, JQL |
13
+ | `mcp-tools` | An MCP server's tools, parameters or quirks |
14
+ | `codebase-tool` | Search, refactoring and code-intelligence tools |
15
+ | `terminal` | Shell, quoting, CLI flags, environment |
16
+ | `framework` | The app framework and its build |
17
+ | `cms` | Content models, queries, publishing |
18
+ | `database` | Migrations, policies, queries |
19
+ | `git` | Branches, history, merges, hooks |
20
+ | `deployment` | Hosting, environment variables, caching, rollback |
21
+ | `browser-testing` | Browser automation, screenshots, breakpoints |
22
+ | `general` | Workflow, delegation, review — anything above does not cover |
21
23
 
22
24
  ## Severity
23
25
 
24
- | Severity | Criteria |
25
- |----------|---------|
26
- | `critical` | Blocks all work or causes data loss |
27
- | `high` | Blocks a task or causes significant rework |
28
- | `medium` | Causes friction or minor rework |
29
- | `low` | Nice-to-know; minor efficiency improvement |
26
+ | `--severity` | Criteria |
27
+ |--------------|----------|
28
+ | `high` | Blocks a task, loses data, or causes significant rework |
29
+ | `medium` | Wastes five minutes or more |
30
+ | `low` | Nice to know; minor efficiency improvement |
30
31
 
31
- ## Tagging Format
32
+ ## What a lesson file looks like
32
33
 
34
+ `opencastle lesson` writes `.opencastle/lessons/<id>.md`:
35
+
36
+ ```markdown
37
+ ---
38
+ id: "2026-10-02-always-quote-shell-variables"
39
+ title: "Always quote shell variables"
40
+ category: "terminal"
41
+ severity: "medium"
42
+ added: "2026-10-02"
43
+ citations:
44
+ - "scripts/clean.sh:12"
45
+ verified: "2026-10-02"
46
+ fingerprints:
47
+ scripts/clean.sh: "3f2a9c1b7d4e"
48
+ ---
49
+
50
+ **Problem:** Unquoted variables break on paths with spaces.
51
+
52
+ **Wrong approach:** `rm -rf $DIR/old`
53
+
54
+ **Correct approach:** `rm -rf "$DIR/old"`
33
55
  ```
34
- ### LES-XXX: <title>
35
- **Category:** <category> | **Severity:** <severity> | **Date:** YYYY-MM-DD
36
- ```
56
+
57
+ Lessons recorded before this format keep their `LES-NNN` ids.