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.
- package/README.md +26 -9
- package/bin/cli.mjs +6 -0
- package/dist/cli/adapters/antigravity.d.ts +0 -1
- package/dist/cli/adapters/antigravity.d.ts.map +1 -1
- package/dist/cli/adapters/antigravity.js +2 -1
- package/dist/cli/adapters/antigravity.js.map +1 -1
- package/dist/cli/adapters/claude-code.d.ts +0 -1
- package/dist/cli/adapters/claude-code.d.ts.map +1 -1
- package/dist/cli/adapters/claude-code.js +0 -1
- package/dist/cli/adapters/claude-code.js.map +1 -1
- package/dist/cli/adapters/cursor.d.ts.map +1 -1
- package/dist/cli/adapters/cursor.js +8 -1
- package/dist/cli/adapters/cursor.js.map +1 -1
- package/dist/cli/adapters/opencode.d.ts +12 -5
- package/dist/cli/adapters/opencode.d.ts.map +1 -1
- package/dist/cli/adapters/opencode.js +17 -5
- package/dist/cli/adapters/opencode.js.map +1 -1
- package/dist/cli/adapters/rules-dir-base.d.ts +12 -1
- package/dist/cli/adapters/rules-dir-base.d.ts.map +1 -1
- package/dist/cli/adapters/rules-dir-base.js +43 -57
- package/dist/cli/adapters/rules-dir-base.js.map +1 -1
- package/dist/cli/adapters/rules-dir-base.test.js +27 -18
- package/dist/cli/adapters/rules-dir-base.test.js.map +1 -1
- package/dist/cli/adapters/single-file-base.d.ts +11 -0
- package/dist/cli/adapters/single-file-base.d.ts.map +1 -1
- package/dist/cli/adapters/single-file-base.js +44 -14
- package/dist/cli/adapters/single-file-base.js.map +1 -1
- package/dist/cli/adapters/vscode.d.ts +2 -1
- package/dist/cli/adapters/vscode.d.ts.map +1 -1
- package/dist/cli/adapters/vscode.js +2 -1
- package/dist/cli/adapters/vscode.js.map +1 -1
- package/dist/cli/adapters/windsurf.d.ts.map +1 -1
- package/dist/cli/adapters/windsurf.js +11 -1
- package/dist/cli/adapters/windsurf.js.map +1 -1
- package/dist/cli/agent-plugin.d.ts +119 -0
- package/dist/cli/agent-plugin.d.ts.map +1 -0
- package/dist/cli/agent-plugin.js +449 -0
- package/dist/cli/agent-plugin.js.map +1 -0
- package/dist/cli/agent-plugin.test.d.ts +2 -0
- package/dist/cli/agent-plugin.test.d.ts.map +1 -0
- package/dist/cli/agent-plugin.test.js +227 -0
- package/dist/cli/agent-plugin.test.js.map +1 -0
- package/dist/cli/baseline.d.ts.map +1 -1
- package/dist/cli/baseline.js +114 -34
- package/dist/cli/baseline.js.map +1 -1
- package/dist/cli/ci.d.ts.map +1 -1
- package/dist/cli/ci.js +18 -4
- package/dist/cli/ci.js.map +1 -1
- package/dist/cli/codex-target.test.js +14 -1
- package/dist/cli/codex-target.test.js.map +1 -1
- package/dist/cli/convoy/gates.d.ts +2 -20
- package/dist/cli/convoy/gates.d.ts.map +1 -1
- package/dist/cli/convoy/gates.js +3 -111
- package/dist/cli/convoy/gates.js.map +1 -1
- package/dist/cli/copy.d.ts +0 -8
- package/dist/cli/copy.d.ts.map +1 -1
- package/dist/cli/copy.js +0 -21
- package/dist/cli/copy.js.map +1 -1
- package/dist/cli/dispatcher.test.js +2 -2
- package/dist/cli/dispatcher.test.js.map +1 -1
- package/dist/cli/docs-accuracy.test.js +2 -0
- package/dist/cli/docs-accuracy.test.js.map +1 -1
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +2 -0
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/doctor.test.js +2 -2
- package/dist/cli/doctor.test.js.map +1 -1
- package/dist/cli/explain.d.ts +5 -0
- package/dist/cli/explain.d.ts.map +1 -1
- package/dist/cli/explain.js +38 -2
- package/dist/cli/explain.js.map +1 -1
- package/dist/cli/init.test.js +78 -42
- package/dist/cli/init.test.js.map +1 -1
- package/dist/cli/layers.d.ts +8 -0
- package/dist/cli/layers.d.ts.map +1 -1
- package/dist/cli/layers.js +130 -13
- package/dist/cli/layers.js.map +1 -1
- package/dist/cli/layers.test.js +2 -2
- package/dist/cli/layers.test.js.map +1 -1
- package/dist/cli/legacy-install.test.js +8 -1
- package/dist/cli/legacy-install.test.js.map +1 -1
- package/dist/cli/lesson-command.test.d.ts +2 -0
- package/dist/cli/lesson-command.test.d.ts.map +1 -0
- package/dist/cli/lesson-command.test.js +100 -0
- package/dist/cli/lesson-command.test.js.map +1 -0
- package/dist/cli/lesson.d.ts +0 -9
- package/dist/cli/lesson.d.ts.map +1 -1
- package/dist/cli/lesson.js +212 -276
- package/dist/cli/lesson.js.map +1 -1
- package/dist/cli/lessons.d.ts +134 -0
- package/dist/cli/lessons.d.ts.map +1 -0
- package/dist/cli/lessons.js +493 -0
- package/dist/cli/lessons.js.map +1 -0
- package/dist/cli/lessons.test.d.ts +2 -0
- package/dist/cli/lessons.test.d.ts.map +1 -0
- package/dist/cli/lessons.test.js +214 -0
- package/dist/cli/lessons.test.js.map +1 -0
- package/dist/cli/managed-paths.d.ts.map +1 -1
- package/dist/cli/managed-paths.js +3 -1
- package/dist/cli/managed-paths.js.map +1 -1
- package/dist/cli/mcp-audit.d.ts.map +1 -1
- package/dist/cli/mcp-audit.js +2 -0
- package/dist/cli/mcp-audit.js.map +1 -1
- package/dist/cli/mcp-upgrade.test.js +24 -1
- package/dist/cli/mcp-upgrade.test.js.map +1 -1
- package/dist/cli/mcp.d.ts.map +1 -1
- package/dist/cli/mcp.js +22 -3
- package/dist/cli/mcp.js.map +1 -1
- package/dist/cli/pack-plugins.d.ts +8 -0
- package/dist/cli/pack-plugins.d.ts.map +1 -0
- package/dist/cli/pack-plugins.js +70 -0
- package/dist/cli/pack-plugins.js.map +1 -0
- package/dist/cli/plugin-command.test.d.ts +2 -0
- package/dist/cli/plugin-command.test.d.ts.map +1 -0
- package/dist/cli/plugin-command.test.js +114 -0
- package/dist/cli/plugin-command.test.js.map +1 -0
- package/dist/cli/plugin.d.ts +30 -0
- package/dist/cli/plugin.d.ts.map +1 -0
- package/dist/cli/plugin.js +291 -0
- package/dist/cli/plugin.js.map +1 -0
- package/dist/cli/promote-command.test.d.ts +2 -0
- package/dist/cli/promote-command.test.d.ts.map +1 -0
- package/dist/cli/promote-command.test.js +151 -0
- package/dist/cli/promote-command.test.js.map +1 -0
- package/dist/cli/promote.d.ts +12 -0
- package/dist/cli/promote.d.ts.map +1 -0
- package/dist/cli/promote.js +364 -0
- package/dist/cli/promote.js.map +1 -0
- package/dist/cli/secret-scan.d.ts +21 -0
- package/dist/cli/secret-scan.d.ts.map +1 -0
- package/dist/cli/secret-scan.js +114 -0
- package/dist/cli/secret-scan.js.map +1 -0
- package/dist/cli/sync-check.d.ts.map +1 -1
- package/dist/cli/sync-check.js +9 -0
- package/dist/cli/sync-check.js.map +1 -1
- package/dist/cli/sync-check.test.js +5 -4
- package/dist/cli/sync-check.test.js.map +1 -1
- package/dist/cli/team-commands.test.js +14 -2
- package/dist/cli/team-commands.test.js.map +1 -1
- package/dist/cli/team-sources.test.js +10 -0
- package/dist/cli/team-sources.test.js.map +1 -1
- package/dist/cli/types.d.ts +1 -1
- package/dist/cli/types.d.ts.map +1 -1
- package/dist/cli/update.d.ts.map +1 -1
- package/dist/cli/update.js +18 -0
- package/dist/cli/update.js.map +1 -1
- package/dist/cli/windsurf-target.test.d.ts +2 -0
- package/dist/cli/windsurf-target.test.d.ts.map +1 -0
- package/dist/cli/windsurf-target.test.js +62 -0
- package/dist/cli/windsurf-target.test.js.map +1 -0
- package/dist/orchestrator/plugins/agent-plugins.test.d.ts +2 -0
- package/dist/orchestrator/plugins/agent-plugins.test.d.ts.map +1 -0
- package/dist/orchestrator/plugins/agent-plugins.test.js +32 -0
- package/dist/orchestrator/plugins/agent-plugins.test.js.map +1 -0
- package/dist/orchestrator/plugins/registry.test.d.ts +2 -0
- package/dist/orchestrator/plugins/registry.test.d.ts.map +1 -0
- package/dist/orchestrator/plugins/registry.test.js +37 -0
- package/dist/orchestrator/plugins/registry.test.js.map +1 -0
- package/package.json +2 -1
- package/src/cli/adapters/antigravity.ts +2 -1
- package/src/cli/adapters/claude-code.ts +0 -1
- package/src/cli/adapters/cursor.ts +8 -1
- package/src/cli/adapters/opencode.ts +18 -6
- package/src/cli/adapters/rules-dir-base.test.ts +28 -18
- package/src/cli/adapters/rules-dir-base.ts +51 -90
- package/src/cli/adapters/single-file-base.ts +53 -14
- package/src/cli/adapters/vscode.ts +2 -1
- package/src/cli/adapters/windsurf.ts +11 -1
- package/src/cli/agent-plugin.test.ts +267 -0
- package/src/cli/agent-plugin.ts +469 -0
- package/src/cli/baseline.ts +115 -32
- package/src/cli/ci.ts +19 -4
- package/src/cli/codex-target.test.ts +15 -1
- package/src/cli/convoy/gates.ts +9 -142
- package/src/cli/copy.ts +0 -25
- package/src/cli/dispatcher.test.ts +2 -2
- package/src/cli/docs-accuracy.test.ts +2 -0
- package/src/cli/doctor.test.ts +2 -2
- package/src/cli/doctor.ts +2 -0
- package/src/cli/explain.ts +36 -2
- package/src/cli/fixtures/lessons-template-1.0.md +70 -0
- package/src/cli/init.test.ts +82 -42
- package/src/cli/layers.test.ts +2 -2
- package/src/cli/layers.ts +144 -14
- package/src/cli/legacy-install.test.ts +11 -1
- package/src/cli/lesson-command.test.ts +117 -0
- package/src/cli/lesson.ts +215 -266
- package/src/cli/lessons.test.ts +254 -0
- package/src/cli/lessons.ts +540 -0
- package/src/cli/managed-paths.ts +3 -1
- package/src/cli/mcp-audit.ts +2 -0
- package/src/cli/mcp-upgrade.test.ts +26 -1
- package/src/cli/mcp.ts +22 -3
- package/src/cli/pack-plugins.ts +70 -0
- package/src/cli/plugin-command.test.ts +125 -0
- package/src/cli/plugin.ts +309 -0
- package/src/cli/promote-command.test.ts +170 -0
- package/src/cli/promote.ts +371 -0
- package/src/cli/secret-scan.ts +154 -0
- package/src/cli/sync-check.test.ts +5 -4
- package/src/cli/sync-check.ts +9 -0
- package/src/cli/team-commands.test.ts +18 -2
- package/src/cli/team-sources.test.ts +11 -0
- package/src/cli/types.ts +1 -1
- package/src/cli/update.ts +20 -0
- package/src/cli/windsurf-target.test.ts +70 -0
- package/src/dashboard/node_modules/.vite/deps/_metadata.json +6 -6
- package/src/orchestrator/agents/researcher.agent.md +1 -1
- package/src/orchestrator/customizations/LESSONS-LEARNED.md +10 -66
- package/src/orchestrator/customizations/README.md +2 -1
- package/src/orchestrator/customizations/logs/README.md +1 -1
- package/src/orchestrator/plugins/agent-plugins.test.ts +34 -0
- package/src/orchestrator/plugins/astro/mcp.json +9 -0
- package/src/orchestrator/plugins/astro/plugin.json +21 -0
- package/src/orchestrator/plugins/chrome-devtools/mcp.json +13 -0
- package/src/orchestrator/plugins/chrome-devtools/plugin.json +21 -0
- package/src/orchestrator/plugins/cloudflare/mcp.json +9 -0
- package/src/orchestrator/plugins/cloudflare/plugin.json +21 -0
- package/src/orchestrator/plugins/contentful/mcp.json +13 -0
- package/src/orchestrator/plugins/contentful/plugin.json +21 -0
- package/src/orchestrator/plugins/convex/mcp.json +15 -0
- package/src/orchestrator/plugins/convex/plugin.json +21 -0
- package/src/orchestrator/plugins/coolify/mcp.json +13 -0
- package/src/orchestrator/plugins/coolify/plugin.json +25 -0
- package/src/orchestrator/plugins/cypress/plugin.json +21 -0
- package/src/orchestrator/plugins/drizzle/plugin.json +21 -0
- package/src/orchestrator/plugins/expo/mcp.json +9 -0
- package/src/orchestrator/plugins/expo/plugin.json +21 -0
- package/src/orchestrator/plugins/figma/mcp.json +9 -0
- package/src/orchestrator/plugins/figma/plugin.json +21 -0
- package/src/orchestrator/plugins/hetzner/plugin.json +24 -0
- package/src/orchestrator/plugins/jira/mcp.json +9 -0
- package/src/orchestrator/plugins/jira/plugin.json +21 -0
- package/src/orchestrator/plugins/linear/mcp.json +9 -0
- package/src/orchestrator/plugins/linear/plugin.json +21 -0
- package/src/orchestrator/plugins/netlify/mcp.json +13 -0
- package/src/orchestrator/plugins/netlify/plugin.json +21 -0
- package/src/orchestrator/plugins/nextjs/mcp.json +13 -0
- package/src/orchestrator/plugins/nextjs/plugin.json +21 -0
- package/src/orchestrator/plugins/notion/mcp.json +9 -0
- package/src/orchestrator/plugins/notion/plugin.json +21 -0
- package/src/orchestrator/plugins/nx/mcp.json +14 -0
- package/src/orchestrator/plugins/nx/plugin.json +21 -0
- package/src/orchestrator/plugins/playwright/mcp.json +13 -0
- package/src/orchestrator/plugins/playwright/plugin.json +21 -0
- package/src/orchestrator/plugins/prisma/mcp.json +14 -0
- package/src/orchestrator/plugins/prisma/plugin.json +21 -0
- package/src/orchestrator/plugins/registry.test.ts +42 -0
- package/src/orchestrator/plugins/resend/mcp.json +13 -0
- package/src/orchestrator/plugins/resend/plugin.json +24 -0
- package/src/orchestrator/plugins/sanity/mcp.json +9 -0
- package/src/orchestrator/plugins/sanity/plugin.json +21 -0
- package/src/orchestrator/plugins/sentry/mcp.json +12 -0
- package/src/orchestrator/plugins/sentry/plugin.json +24 -0
- package/src/orchestrator/plugins/slack/mcp.json +13 -0
- package/src/orchestrator/plugins/slack/plugin.json +24 -0
- package/src/orchestrator/plugins/strapi/mcp.json +13 -0
- package/src/orchestrator/plugins/strapi/plugin.json +21 -0
- package/src/orchestrator/plugins/stripe/mcp.json +9 -0
- package/src/orchestrator/plugins/stripe/plugin.json +21 -0
- package/src/orchestrator/plugins/supabase/mcp.json +9 -0
- package/src/orchestrator/plugins/supabase/plugin.json +21 -0
- package/src/orchestrator/plugins/teams/plugin.json +24 -0
- package/src/orchestrator/plugins/trello/mcp.json +13 -0
- package/src/orchestrator/plugins/trello/plugin.json +25 -0
- package/src/orchestrator/plugins/turborepo/plugin.json +21 -0
- package/src/orchestrator/plugins/vercel/mcp.json +9 -0
- package/src/orchestrator/plugins/vercel/plugin.json +21 -0
- package/src/orchestrator/plugins/vitest/plugin.json +21 -0
- package/src/orchestrator/skill-config-links.test.ts +2 -1
- package/src/orchestrator/skills/agent-hooks/HOOKS-REFERENCE.md +1 -1
- package/src/orchestrator/skills/agent-hooks/SKILL.md +1 -1
- package/src/orchestrator/skills/decomposition/SKILL.md +1 -1
- package/src/orchestrator/skills/memory-merger/SKILL.md +17 -21
- package/src/orchestrator/skills/self-improvement/LESSON-CATEGORIES.md +44 -23
- package/src/orchestrator/skills/self-improvement/SKILL.md +30 -15
- /package/src/orchestrator/plugins/astro/{SKILL.md → skills/astro-framework/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/chrome-devtools/{SKILL.md → skills/browser-testing/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/cloudflare/{SKILL.md → skills/cloudflare-platform/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/contentful/{SKILL.md → skills/contentful-cms/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/convex/{SKILL.md → skills/convex-database/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/coolify/{SKILL.md → skills/coolify-deployment/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/cypress/{SKILL.md → skills/cypress-testing/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/drizzle/{SKILL.md → skills/drizzle-orm/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/expo/{SKILL.md → skills/expo-development/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/figma/{SKILL.md → skills/figma-design/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/hetzner/{SKILL.md → skills/hetzner-cloud/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/jira/{SKILL.md → skills/jira-management/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/linear/{SKILL.md → skills/linear-task-management/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/netlify/{SKILL.md → skills/netlify-deployment/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/nextjs/{SKILL.md → skills/nextjs-framework/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/notion/{SKILL.md → skills/notion-knowledge-management/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/nx/{SKILL.md → skills/nx-workspace/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/playwright/{SKILL.md → skills/playwright-testing/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/prisma/{SKILL.md → skills/prisma-database/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/resend/{SKILL.md → skills/resend-email/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/sanity/{SKILL.md → skills/sanity-cms/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/sentry/{SKILL.md → skills/sentry-monitoring/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/slack/{SKILL.md → skills/slack-notifications/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/strapi/{SKILL.md → skills/strapi-cms/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/stripe/{SKILL.md → skills/stripe-payments/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/supabase/{SKILL.md → skills/supabase-database/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/teams/{SKILL.md → skills/teams-notifications/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/trello/{SKILL.md → skills/trello-task-management/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/turborepo/{SKILL.md → skills/turborepo-monorepo/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/vercel/{SKILL.md → skills/vercel-deployment/SKILL.md} +0 -0
- /package/src/orchestrator/plugins/vitest/{SKILL.md → skills/vitest-testing/SKILL.md} +0 -0
|
@@ -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,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,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,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,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,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,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,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 | `
|
|
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/
|
|
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: [
|
|
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
|
|
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
|
-
|
|
|
16
|
-
|
|
|
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
|
|
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
|
|
29
|
-
6.
|
|
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:
|
|
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
|
|
45
|
+
Edit target file; add `<!-- Merged from <id> -->` attribution inline.
|
|
46
46
|
|
|
47
47
|
### 5 — Archive
|
|
48
48
|
|
|
49
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
#
|
|
65
|
-
rg -
|
|
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
|
-
#
|
|
68
|
-
rg
|
|
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+
|
|
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
|
-
|
|
5
|
+
The values `opencastle lesson` accepts. Anything else is refused.
|
|
6
6
|
|
|
7
7
|
## Categories
|
|
8
8
|
|
|
9
|
-
|
|
|
10
|
-
|
|
11
|
-
| `
|
|
12
|
-
| `
|
|
13
|
-
| `
|
|
14
|
-
| `
|
|
15
|
-
| `
|
|
16
|
-
| `
|
|
17
|
-
| `
|
|
18
|
-
| `
|
|
19
|
-
| `
|
|
20
|
-
| `
|
|
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
|
-
|
|
|
25
|
-
|
|
26
|
-
| `
|
|
27
|
-
| `
|
|
28
|
-
| `
|
|
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
|
-
##
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
```
|
|
56
|
+
|
|
57
|
+
Lessons recorded before this format keep their `LES-NNN` ids.
|