opencastle 1.4.3 → 1.6.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 (235) hide show
  1. package/dist/cli/adapters/claude-code.d.ts.map +1 -1
  2. package/dist/cli/adapters/claude-code.js +1 -0
  3. package/dist/cli/adapters/claude-code.js.map +1 -1
  4. package/dist/cli/adapters/single-file-base.d.ts +8 -0
  5. package/dist/cli/adapters/single-file-base.d.ts.map +1 -1
  6. package/dist/cli/adapters/single-file-base.js +48 -22
  7. package/dist/cli/adapters/single-file-base.js.map +1 -1
  8. package/dist/cli/bootstrap-on-init.test.js +16 -5
  9. package/dist/cli/bootstrap-on-init.test.js.map +1 -1
  10. package/dist/cli/bootstrap.d.ts +17 -0
  11. package/dist/cli/bootstrap.d.ts.map +1 -1
  12. package/dist/cli/bootstrap.js +284 -312
  13. package/dist/cli/bootstrap.js.map +1 -1
  14. package/dist/cli/bootstrap.test.js +22 -16
  15. package/dist/cli/bootstrap.test.js.map +1 -1
  16. package/dist/cli/command-namespace.test.js +17 -0
  17. package/dist/cli/command-namespace.test.js.map +1 -1
  18. package/dist/cli/convoy/engine.d.ts +12 -0
  19. package/dist/cli/convoy/engine.d.ts.map +1 -1
  20. package/dist/cli/convoy/engine.git.test.js +55 -0
  21. package/dist/cli/convoy/engine.git.test.js.map +1 -1
  22. package/dist/cli/convoy/engine.js +47 -3
  23. package/dist/cli/convoy/engine.js.map +1 -1
  24. package/dist/cli/convoy/findings.d.ts +35 -0
  25. package/dist/cli/convoy/findings.d.ts.map +1 -0
  26. package/dist/cli/convoy/findings.js +100 -0
  27. package/dist/cli/convoy/findings.js.map +1 -0
  28. package/dist/cli/convoy/findings.test.d.ts +2 -0
  29. package/dist/cli/convoy/findings.test.d.ts.map +1 -0
  30. package/dist/cli/convoy/findings.test.js +75 -0
  31. package/dist/cli/convoy/findings.test.js.map +1 -0
  32. package/dist/cli/convoy/isolation.d.ts.map +1 -1
  33. package/dist/cli/convoy/isolation.js +2 -1
  34. package/dist/cli/convoy/isolation.js.map +1 -1
  35. package/dist/cli/convoy/worktree.d.ts +5 -0
  36. package/dist/cli/convoy/worktree.d.ts.map +1 -1
  37. package/dist/cli/convoy/worktree.js +12 -0
  38. package/dist/cli/convoy/worktree.js.map +1 -1
  39. package/dist/cli/detect.d.ts +4 -0
  40. package/dist/cli/detect.d.ts.map +1 -1
  41. package/dist/cli/detect.js +1 -1
  42. package/dist/cli/detect.js.map +1 -1
  43. package/dist/cli/docs-accuracy.test.js +34 -0
  44. package/dist/cli/docs-accuracy.test.js.map +1 -1
  45. package/dist/cli/doctor.d.ts +11 -0
  46. package/dist/cli/doctor.d.ts.map +1 -1
  47. package/dist/cli/doctor.js +74 -10
  48. package/dist/cli/doctor.js.map +1 -1
  49. package/dist/cli/doctor.test.js +82 -1
  50. package/dist/cli/doctor.test.js.map +1 -1
  51. package/dist/cli/init.d.ts.map +1 -1
  52. package/dist/cli/init.js +58 -53
  53. package/dist/cli/init.js.map +1 -1
  54. package/dist/cli/init.test.js +32 -28
  55. package/dist/cli/init.test.js.map +1 -1
  56. package/dist/cli/layers.d.ts +20 -0
  57. package/dist/cli/layers.d.ts.map +1 -1
  58. package/dist/cli/layers.js +53 -1
  59. package/dist/cli/layers.js.map +1 -1
  60. package/dist/cli/layers.test.js +67 -1
  61. package/dist/cli/layers.test.js.map +1 -1
  62. package/dist/cli/lessons.d.ts +10 -0
  63. package/dist/cli/lessons.d.ts.map +1 -1
  64. package/dist/cli/lessons.js +26 -1
  65. package/dist/cli/lessons.js.map +1 -1
  66. package/dist/cli/lessons.test.js +38 -1
  67. package/dist/cli/lessons.test.js.map +1 -1
  68. package/dist/cli/log.d.ts +2 -2
  69. package/dist/cli/log.d.ts.map +1 -1
  70. package/dist/cli/log.js +1 -1
  71. package/dist/cli/log.js.map +1 -1
  72. package/dist/cli/log.test.js +1 -1
  73. package/dist/cli/log.test.js.map +1 -1
  74. package/dist/cli/managed-paths.d.ts +1 -1
  75. package/dist/cli/managed-paths.d.ts.map +1 -1
  76. package/dist/cli/managed-paths.js +0 -1
  77. package/dist/cli/managed-paths.js.map +1 -1
  78. package/dist/cli/plan.test.js +10 -8
  79. package/dist/cli/plan.test.js.map +1 -1
  80. package/dist/cli/project-facts.d.ts +103 -0
  81. package/dist/cli/project-facts.d.ts.map +1 -0
  82. package/dist/cli/project-facts.js +577 -0
  83. package/dist/cli/project-facts.js.map +1 -0
  84. package/dist/cli/project-facts.test.d.ts +2 -0
  85. package/dist/cli/project-facts.test.d.ts.map +1 -0
  86. package/dist/cli/project-facts.test.js +209 -0
  87. package/dist/cli/project-facts.test.js.map +1 -0
  88. package/dist/cli/stack-config.js +1 -1
  89. package/dist/cli/stack-config.js.map +1 -1
  90. package/dist/cli/sync-check.test.js +14 -2
  91. package/dist/cli/sync-check.test.js.map +1 -1
  92. package/dist/orchestrator/plugins/notion/config.d.ts.map +1 -1
  93. package/dist/orchestrator/plugins/notion/config.js +21 -17
  94. package/dist/orchestrator/plugins/notion/config.js.map +1 -1
  95. package/package.json +1 -1
  96. package/src/cli/adapters/claude-code.ts +1 -0
  97. package/src/cli/adapters/single-file-base.ts +63 -31
  98. package/src/cli/bootstrap-on-init.test.ts +17 -5
  99. package/src/cli/bootstrap.test.ts +22 -16
  100. package/src/cli/bootstrap.ts +361 -373
  101. package/src/cli/command-namespace.test.ts +17 -0
  102. package/src/cli/convoy/engine.git.test.ts +59 -0
  103. package/src/cli/convoy/engine.ts +53 -2
  104. package/src/cli/convoy/findings.test.ts +86 -0
  105. package/src/cli/convoy/findings.ts +129 -0
  106. package/src/cli/convoy/isolation.ts +2 -1
  107. package/src/cli/convoy/worktree.ts +12 -0
  108. package/src/cli/detect.ts +1 -1
  109. package/src/cli/docs-accuracy.test.ts +42 -0
  110. package/src/cli/doctor.test.ts +101 -1
  111. package/src/cli/doctor.ts +77 -11
  112. package/src/cli/init.test.ts +31 -27
  113. package/src/cli/init.ts +62 -57
  114. package/src/cli/layers.test.ts +72 -1
  115. package/src/cli/layers.ts +52 -1
  116. package/src/cli/lessons.test.ts +48 -0
  117. package/src/cli/lessons.ts +27 -1
  118. package/src/cli/log.test.ts +1 -1
  119. package/src/cli/log.ts +2 -2
  120. package/src/cli/managed-paths.ts +0 -1
  121. package/src/cli/plan.test.ts +10 -8
  122. package/src/cli/project-facts.test.ts +228 -0
  123. package/src/cli/project-facts.ts +647 -0
  124. package/src/cli/stack-config.ts +1 -1
  125. package/src/cli/sync-check.test.ts +16 -2
  126. package/src/orchestrator/agent-workflows/data-pipeline.md +2 -2
  127. package/src/orchestrator/agent-workflows/feature-implementation.md +2 -2
  128. package/src/orchestrator/agent-workflows/schema-changes.md +1 -1
  129. package/src/orchestrator/agents/team-lead.agent.md +6 -6
  130. package/src/orchestrator/agents/testing-expert.agent.md +2 -2
  131. package/src/orchestrator/customizations/LESSONS-LEARNED.md +1 -1
  132. package/src/orchestrator/customizations/README.md +27 -84
  133. package/src/orchestrator/instructions/ai-optimization.instructions.md +6 -23
  134. package/src/orchestrator/instructions/general.instructions.md +22 -95
  135. package/src/orchestrator/plugins/astro/skills/astro-framework/SKILL.md +1 -3
  136. package/src/orchestrator/plugins/chrome-devtools/skills/browser-testing/SKILL.md +3 -5
  137. package/src/orchestrator/plugins/cloudflare/skills/cloudflare-platform/SKILL.md +2 -2
  138. package/src/orchestrator/plugins/contentful/skills/contentful-cms/SKILL.md +1 -1
  139. package/src/orchestrator/plugins/convex/skills/convex-database/SKILL.md +1 -3
  140. package/src/orchestrator/plugins/coolify/skills/coolify-deployment/SKILL.md +1 -1
  141. package/src/orchestrator/plugins/cypress/skills/cypress-testing/SKILL.md +1 -1
  142. package/src/orchestrator/plugins/drizzle/skills/drizzle-orm/SKILL.md +1 -1
  143. package/src/orchestrator/plugins/expo/skills/expo-development/SKILL.md +2 -2
  144. package/src/orchestrator/plugins/figma/skills/figma-design/SKILL.md +1 -3
  145. package/src/orchestrator/plugins/hetzner/skills/hetzner-cloud/SKILL.md +1 -1
  146. package/src/orchestrator/plugins/jira/skills/jira-management/SKILL.md +1 -3
  147. package/src/orchestrator/plugins/linear/skills/linear-task-management/SKILL.md +1 -3
  148. package/src/orchestrator/plugins/netlify/skills/netlify-deployment/SKILL.md +2 -2
  149. package/src/orchestrator/plugins/nextjs/skills/nextjs-framework/SKILL.md +13 -6
  150. package/src/orchestrator/plugins/notion/config.ts +21 -17
  151. package/src/orchestrator/plugins/notion/skills/notion-knowledge-management/SKILL.md +8 -16
  152. package/src/orchestrator/plugins/nx/skills/nx-workspace/SKILL.md +2 -4
  153. package/src/orchestrator/plugins/playwright/skills/playwright-testing/SKILL.md +1 -3
  154. package/src/orchestrator/plugins/prisma/skills/prisma-database/SKILL.md +1 -3
  155. package/src/orchestrator/plugins/resend/skills/resend-email/SKILL.md +2 -2
  156. package/src/orchestrator/plugins/sanity/skills/sanity-cms/SKILL.md +1 -3
  157. package/src/orchestrator/plugins/sentry/skills/sentry-monitoring/SKILL.md +1 -1
  158. package/src/orchestrator/plugins/slack/skills/slack-notifications/SKILL.md +1 -3
  159. package/src/orchestrator/plugins/strapi/skills/strapi-cms/SKILL.md +1 -3
  160. package/src/orchestrator/plugins/stripe/skills/stripe-payments/SKILL.md +4 -4
  161. package/src/orchestrator/plugins/supabase/skills/supabase-database/SKILL.md +3 -5
  162. package/src/orchestrator/plugins/teams/skills/teams-notifications/SKILL.md +1 -3
  163. package/src/orchestrator/plugins/trello/skills/trello-task-management/SKILL.md +1 -1
  164. package/src/orchestrator/plugins/turborepo/skills/turborepo-monorepo/SKILL.md +15 -88
  165. package/src/orchestrator/plugins/vercel/skills/vercel-deployment/SKILL.md +2 -2
  166. package/src/orchestrator/plugins/vitest/skills/vitest-testing/SKILL.md +17 -150
  167. package/src/orchestrator/prompts/assess-complexity.prompt.md +1 -0
  168. package/src/orchestrator/prompts/bootstrap-customizations.prompt.md +38 -238
  169. package/src/orchestrator/prompts/brainstorm.prompt.md +1 -1
  170. package/src/orchestrator/prompts/create-skill.prompt.md +13 -67
  171. package/src/orchestrator/prompts/fix-convoy.prompt.md +1 -0
  172. package/src/orchestrator/prompts/fix-prd.prompt.md +1 -0
  173. package/src/orchestrator/prompts/generate-prd.prompt.md +1 -0
  174. package/src/orchestrator/prompts/implement-feature.prompt.md +6 -6
  175. package/src/orchestrator/prompts/resolve-pr-comments.prompt.md +2 -2
  176. package/src/orchestrator/prompts/validate-convoy.prompt.md +1 -0
  177. package/src/orchestrator/prompts/validate-prd.prompt.md +1 -0
  178. package/src/orchestrator/skills/accessibility-standards/REFERENCE.md +17 -12
  179. package/src/orchestrator/skills/accessibility-standards/SKILL.md +1 -1
  180. package/src/orchestrator/skills/agent-hooks/HOOKS-REFERENCE.md +3 -5
  181. package/src/orchestrator/skills/agent-hooks/SKILL.md +8 -6
  182. package/src/orchestrator/skills/agent-memory/KNOWLEDGE-GRAPH.md +1 -1
  183. package/src/orchestrator/skills/agent-memory/SKILL.md +7 -16
  184. package/src/orchestrator/skills/api-patterns/SKILL.md +1 -1
  185. package/src/orchestrator/skills/code-commenting/SKILL.md +1 -1
  186. package/src/orchestrator/skills/context-map/REFERENCE.md +0 -2
  187. package/src/orchestrator/skills/context-map/SKILL.md +2 -2
  188. package/src/orchestrator/skills/data-engineering/REFERENCE.md +3 -9
  189. package/src/orchestrator/skills/data-engineering/SKILL.md +9 -16
  190. package/src/orchestrator/skills/decomposition/SKILL.md +1 -1
  191. package/src/orchestrator/skills/deployment-infrastructure/SKILL.md +4 -4
  192. package/src/orchestrator/skills/documentation-standards/SKILL.md +5 -3
  193. package/src/orchestrator/skills/fast-review/REFERENCE.md +0 -2
  194. package/src/orchestrator/skills/fast-review/SKILL.md +5 -5
  195. package/src/orchestrator/skills/frontend-design/REFERENCE.md +6 -28
  196. package/src/orchestrator/skills/frontend-design/SKILL.md +19 -9
  197. package/src/orchestrator/skills/git-workflow/SKILL.md +1 -1
  198. package/src/orchestrator/skills/memory-merger/SKILL.md +13 -15
  199. package/src/orchestrator/skills/observability-logging/SKILL.md +2 -2
  200. package/src/orchestrator/skills/orchestration-protocols/REFERENCE.md +5 -9
  201. package/src/orchestrator/skills/orchestration-protocols/SKILL.md +6 -6
  202. package/src/orchestrator/skills/panel-majority-vote/REFERENCE.md +1 -5
  203. package/src/orchestrator/skills/panel-majority-vote/SKILL.md +1 -1
  204. package/src/orchestrator/skills/panel-majority-vote/panel-report.template.md +0 -2
  205. package/src/orchestrator/skills/performance-optimization/SKILL.md +2 -2
  206. package/src/orchestrator/skills/project-consistency/SKILL.md +2 -2
  207. package/src/orchestrator/skills/project-consistency/TEMPLATES.md +0 -4
  208. package/src/orchestrator/skills/react-development/SKILL.md +3 -3
  209. package/src/orchestrator/skills/security-hardening/SKILL.md +5 -5
  210. package/src/orchestrator/skills/self-improvement/LESSON-CATEGORIES.md +0 -2
  211. package/src/orchestrator/skills/self-improvement/SKILL.md +1 -1
  212. package/src/orchestrator/skills/seo-patterns/SKILL.md +1 -1
  213. package/src/orchestrator/skills/session-checkpoints/CHECKPOINT-TEMPLATE.md +0 -2
  214. package/src/orchestrator/skills/session-checkpoints/SKILL.md +1 -1
  215. package/src/orchestrator/skills/team-lead-reference/SKILL.md +3 -3
  216. package/src/orchestrator/skills/technical-writing/SKILL.md +8 -13
  217. package/src/orchestrator/skills/testing-workflow/SKILL.md +6 -6
  218. package/src/orchestrator/skills/typescript-best-practices/SKILL.md +1 -1
  219. package/src/orchestrator/skills/unslop/SKILL.md +1 -1
  220. package/src/orchestrator/skills/validation-gates/REFERENCE.md +6 -31
  221. package/src/orchestrator/skills/validation-gates/SKILL.md +12 -26
  222. package/src/orchestrator/skills/writing-for-agents/SKILL.md +2 -2
  223. package/src/orchestrator/customizations/AGENT-EXPERTISE.md +0 -325
  224. package/src/orchestrator/customizations/AGENT-FAILURES.md +0 -69
  225. package/src/orchestrator/customizations/AGENT-PERFORMANCE.md +0 -55
  226. package/src/orchestrator/customizations/DISPUTES.md +0 -162
  227. package/src/orchestrator/customizations/KNOWLEDGE-GRAPH.md +0 -10
  228. package/src/orchestrator/customizations/agents/skill-matrix.md +0 -111
  229. package/src/orchestrator/customizations/logs/events.ndjson +0 -0
  230. package/src/orchestrator/customizations/project/decisions.md +0 -31
  231. package/src/orchestrator/customizations/project/docs-structure.md +0 -34
  232. package/src/orchestrator/customizations/project/roadmap.md +0 -24
  233. package/src/orchestrator/skills/documentation-standards/WRITING-GUIDE.md +0 -39
  234. package/src/orchestrator/skills/frontend-design/COMPONENTS.md +0 -113
  235. /package/src/orchestrator/{customizations/logs/README.md → skills/observability-logging/LOG-SCHEMA.md} +0 -0
@@ -1,10 +1,12 @@
1
1
  ---
2
2
  name: validation-gates
3
- description: "Defines 10 sequential validation gates: secret scanning, lint/test/build checks, blast radius analysis, dependency auditing, browser testing, cache management, regression checks, smoke tests. Use when running pre-deploy validation or CI checks, CI/CD pipelines, deployment pipeline validation, pre-merge checks, continuous integration, or pull request validation."
3
+ description: "Defines the ten gates delegated work passes, from secret scanning and lint/test/build to blast radius, dependency audit, browser, regression and smoke tests. Use when deciding which checks a change needs, or whether work is ready to merge or deploy."
4
4
  ---
5
5
 
6
6
  # Validation Gates
7
7
 
8
+ The project's commands live under Key Commands in `.opencastle/project.instructions.md`; with a task runner (Nx, Turborepo), its skill has them. Every gate below runs those, never a guessed `npm run …`.
9
+
8
10
  | Gate | Name | Runs When |
9
11
  |------|------|-----------|
10
12
  | 1 | Secret Scanning | Every delegation |
@@ -12,7 +14,7 @@ description: "Defines 10 sequential validation gates: secret scanning, lint/test
12
14
  | 3 | Blast Radius Check | Every delegation |
13
15
  | 4 | Dependency Audit | When `package.json` or lockfiles change |
14
16
  | 5 | Fast Review | Every delegation (with auto-PASS exceptions) |
15
- | 6 | Cache Clearing | Before browser testing |
17
+ | 6 | Cache Clearing | Only when a stale cache is suspected |
16
18
  | 7 | Browser Testing | UI changes |
17
19
  | 8 | Regression Testing | Every delegation |
18
20
  | 9 | Panel Review | High-stakes changes only |
@@ -35,15 +37,11 @@ Not a hit: obviously fake test fixtures (`sk-test-1234567890`), documentation
35
37
  placeholders (`YOUR_API_KEY_HERE`), and pattern matches inside explanatory
36
38
  comments.
37
39
 
38
- Scan every diff **before** any other gate: `gitleaks detect --source . --verbosity warn` (or CI equivalent) — fail on any findings.
40
+ Scan every diff **before** any other gate: `gitleaks git --redact --log-opts="main..HEAD"` for the branch's commits, `gitleaks dir <path>` for uncommitted files (or the CI equivalent). Fail on any finding.
39
41
 
40
42
  ## Gate 2: Deterministic Checks
41
43
 
42
- Run for every affected project (resolve exact commands via **codebase-tool** skill): lint (with auto-fix), test, build. All must pass with zero errors.
43
-
44
- ```bash
45
- npm run lint && npm test --silent && npm run build
46
- ```
44
+ Run the project's own lint (with auto-fix), test and build commands for every affected project. All must pass with zero errors.
47
45
 
48
46
  ## Gate 3: Blast Radius Check
49
47
 
@@ -70,40 +68,28 @@ Full checklist (license, duplicates, maintenance, peer deps, type coverage) with
70
68
 
71
69
  ## Gate 5: Fast Review
72
70
 
73
- Spawn reviewer sub-agent (load **fast-review** skill). PASS → proceed; FAIL → re-delegate (max 2); 3× FAIL → Gate 9. Auto-PASS rules: see **fast-review** skill.
71
+ Spawn a reviewer sub-agent (load **fast-review**). Auto-PASS rules, retries and escalation: the **fast-review** Handle Verdict table.
74
72
 
75
73
  ## Gate 6: Cache Clearing
76
74
 
77
- ```bash
78
- rm -rf node_modules/.cache .next/cache .astro/ dist/
79
- ```
75
+ Skip unless a stale cache is the suspect: the browser shows old output, or a build reports files that no longer exist. Then clear the framework cache (e.g. `.next/cache`, `node_modules/.cache`) and the project's own build output directory, named in its build config, and rebuild.
80
76
 
81
77
  ## Gate 7: Browser Testing
82
78
 
83
- UI changes are verified in Chrome. Start dev server → verify ACs → responsive breakpoints → screenshots as evidence, at most 3 per session. Load **browser-testing** skill.
84
-
85
- ```json
86
- { "tool": "browser-testing/take_screenshot", "url": "http://localhost:3000", "viewports": ["mobile", "desktop"] }
87
- ```
88
-
89
- Additional options: see [REFERENCE.md](REFERENCE.md).
79
+ UI changes are verified in Chrome with the **browser-testing** skill (Chrome DevTools MCP: `navigate_page`, `take_snapshot`, `evaluate_script` with a `function`). Start the dev server → verify ACs → every project breakpoint → at most 3 screenshots, as evidence.
90
80
 
91
81
  ## Gate 8: Regression Testing
92
82
 
93
- 1. Full test suite for all affected projects (resolve the command via the **codebase-tool** slot)
83
+ 1. Full test suite for all affected projects.
94
84
  2. Browser-test adjacent pages (navigation, routing, back-button) — find them via `rg "href=\"/changed-path|import .*from '@/components/changed'"`.
95
85
  3. Find consuming apps/packages via `rg "from '@/components/PriceRange'|@my-org/ui-package"`; run their tests or smoke builds.
96
86
 
97
87
  ## Gate 9: Panel Review
98
88
 
99
- Load **panel-majority-vote** skill — spawns 3 isolated reviewers, majority (2/3) wins. Use for: security-sensitive changes, DB migrations, architecture decisions.
89
+ Load **panel-majority-vote** — 3 isolated reviewers, majority (2/3) wins. Use for: the 3rd fast-review FAIL, security-sensitive changes, DB migrations.
100
90
 
101
91
  ## Gate 10: Final Smoke Test
102
92
 
103
93
  > Runs once after ALL tasks are Done.
104
94
 
105
- ```bash
106
- npm run build && npm test && npx playwright test
107
- ```
108
-
109
- Full build + test from clean state → E2E browser walkthrough → cross-task integration check → responsive sweep (if UI). On failure: re-delegate specific failing integration only.
95
+ The project's full build and test commands, its E2E suite included, from a clean state → E2E browser walkthrough → cross-task integration check → responsive sweep (if UI). On failure: re-delegate specific failing integration only.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: writing-for-agents
3
- description: "Levers for writing documents an agent consumes: context pointers, the two loads, information hierarchy, progressive disclosure, completion criteria, leading words, and pruning. Use when creating or editing a skill, an agent definition, an instruction file, AGENTS.md, or CLAUDE.md."
3
+ description: "Levers for writing documents an agent reads: context pointers, progressive disclosure, completion criteria, leading words and pruning. Use when creating or editing a skill, an agent, an instruction file, AGENTS.md or CLAUDE.md."
4
4
  ---
5
5
 
6
6
  # Writing for Agents
@@ -79,6 +79,6 @@ When skills multiply past what a human can remember, that piled-up cognitive loa
79
79
 
80
80
  ## How this project compiles a skill
81
81
 
82
- A skill is one directory holding `SKILL.md` with `name` and `description` frontmatter. The `description` is the skill's top-level context pointer and the only part guaranteed to reach every assistant, so it carries the trigger branches. Claude Code and the single-file targets also receive sibling files, but Cursor and Windsurf compile `SKILL.md` alone. Anything the agent must have therefore belongs in `SKILL.md`.
82
+ A skill is one directory holding `SKILL.md` with `name` and `description` frontmatter. The `description` is the skill's top-level context pointer, always loaded, so it carries the trigger branches. Every target copies the whole directory, so companion files ship beside `SKILL.md` and are reached through the pointers `SKILL.md` gives them: what every branch needs stays in `SKILL.md`, what only some branches need can live in a companion file.
83
83
 
84
84
  Adapted from the `writing-for-agents` skill in [mattpocock/skills](https://github.com/mattpocock/skills), MIT, copyright 2026 Matt Pocock.
@@ -1,325 +0,0 @@
1
- # Agent Expertise Registry
2
-
3
- Structured tracking of agent performance across sessions. Updated by the Team Lead after task completion.
4
-
5
- > **Protocol:** See the **agent-memory** skill for update triggers, retrieval protocol, and pruning rules.
6
-
7
- ---
8
-
9
- ## Developer
10
-
11
- ### Strong Areas
12
-
13
- | Area | Evidence | Last Updated |
14
- |------|----------|-------------|
15
- | _(no entries yet)_ | | |
16
-
17
- ### Weak Areas
18
-
19
- | Area | Evidence | Last Updated |
20
- |------|----------|-------------|
21
- | _(no entries yet)_ | | |
22
-
23
- ### File Familiarity
24
-
25
- _(no entries yet)_
26
-
27
- ---
28
-
29
- ## Testing Expert
30
-
31
- ### Strong Areas
32
-
33
- | Area | Evidence | Last Updated |
34
- |------|----------|-------------|
35
- | _(no entries yet)_ | | |
36
-
37
- ### Weak Areas
38
-
39
- | Area | Evidence | Last Updated |
40
- |------|----------|-------------|
41
- | _(no entries yet)_ | | |
42
-
43
- ### File Familiarity
44
-
45
- _(no entries yet)_
46
-
47
- ---
48
-
49
- ## Content Engineer
50
-
51
- ### Strong Areas
52
-
53
- | Area | Evidence | Last Updated |
54
- |------|----------|-------------|
55
- | _(no entries yet)_ | | |
56
-
57
- ### Weak Areas
58
-
59
- | Area | Evidence | Last Updated |
60
- |------|----------|-------------|
61
- | _(no entries yet)_ | | |
62
-
63
- ### File Familiarity
64
-
65
- _(no entries yet)_
66
-
67
- ---
68
-
69
- ## Data Engineer
70
-
71
- ### Strong Areas
72
-
73
- | Area | Evidence | Last Updated |
74
- |------|----------|-------------|
75
- | _(no entries yet)_ | | |
76
-
77
- ### Weak Areas
78
-
79
- | Area | Evidence | Last Updated |
80
- |------|----------|-------------|
81
- | _(no entries yet)_ | | |
82
-
83
- ### File Familiarity
84
-
85
- _(no entries yet)_
86
-
87
- ---
88
-
89
- ## UI/UX Expert
90
-
91
- ### Strong Areas
92
-
93
- | Area | Evidence | Last Updated |
94
- |------|----------|-------------|
95
- | _(no entries yet)_ | | |
96
-
97
- ### Weak Areas
98
-
99
- | Area | Evidence | Last Updated |
100
- |------|----------|-------------|
101
- | _(no entries yet)_ | | |
102
-
103
- ### File Familiarity
104
-
105
- _(no entries yet)_
106
-
107
- ---
108
-
109
- ## Performance Expert
110
-
111
- ### Strong Areas
112
-
113
- | Area | Evidence | Last Updated |
114
- |------|----------|-------------|
115
- | _(no entries yet)_ | | |
116
-
117
- ### Weak Areas
118
-
119
- | Area | Evidence | Last Updated |
120
- |------|----------|-------------|
121
- | _(no entries yet)_ | | |
122
-
123
- ### File Familiarity
124
-
125
- _(no entries yet)_
126
-
127
- ---
128
-
129
- ## Security Expert
130
-
131
- ### Strong Areas
132
-
133
- | Area | Evidence | Last Updated |
134
- |------|----------|-------------|
135
- | _(no entries yet)_ | | |
136
-
137
- ### Weak Areas
138
-
139
- | Area | Evidence | Last Updated |
140
- |------|----------|-------------|
141
- | _(no entries yet)_ | | |
142
-
143
- ### File Familiarity
144
-
145
- _(no entries yet)_
146
-
147
- ---
148
-
149
- ## Data Engineer
150
-
151
- ### Strong Areas
152
-
153
- | Area | Evidence | Last Updated |
154
- |------|----------|-------------|
155
- | _(no entries yet)_ | | |
156
-
157
- ### Weak Areas
158
-
159
- | Area | Evidence | Last Updated |
160
- |------|----------|-------------|
161
- | _(no entries yet)_ | | |
162
-
163
- ### File Familiarity
164
-
165
- _(no entries yet)_
166
-
167
- ---
168
-
169
- ## DevOps Expert
170
-
171
- ### Strong Areas
172
-
173
- | Area | Evidence | Last Updated |
174
- |------|----------|-------------|
175
- | _(no entries yet)_ | | |
176
-
177
- ### Weak Areas
178
-
179
- | Area | Evidence | Last Updated |
180
- |------|----------|-------------|
181
- | _(no entries yet)_ | | |
182
-
183
- ### File Familiarity
184
-
185
- _(no entries yet)_
186
-
187
- ---
188
-
189
- ## Architect
190
-
191
- ### Strong Areas
192
-
193
- | Area | Evidence | Last Updated |
194
- |------|----------|-------------|
195
- | _(no entries yet)_ | | |
196
-
197
- ### Weak Areas
198
-
199
- | Area | Evidence | Last Updated |
200
- |------|----------|-------------|
201
- | _(no entries yet)_ | | |
202
-
203
- ### File Familiarity
204
-
205
- _(no entries yet)_
206
-
207
- ---
208
-
209
- ## Writer
210
-
211
- ### Strong Areas
212
-
213
- | Area | Evidence | Last Updated |
214
- |------|----------|-------------|
215
- | _(no entries yet)_ | | |
216
-
217
- ### Weak Areas
218
-
219
- | Area | Evidence | Last Updated |
220
- |------|----------|-------------|
221
- | _(no entries yet)_ | | |
222
-
223
- ### File Familiarity
224
-
225
- _(no entries yet)_
226
-
227
- ---
228
-
229
- ## Researcher
230
-
231
- ### Strong Areas
232
-
233
- | Area | Evidence | Last Updated |
234
- |------|----------|-------------|
235
- | _(no entries yet)_ | | |
236
-
237
- ### Weak Areas
238
-
239
- | Area | Evidence | Last Updated |
240
- |------|----------|-------------|
241
- | _(no entries yet)_ | | |
242
-
243
- ### File Familiarity
244
-
245
- _(no entries yet)_
246
-
247
- ---
248
-
249
- ## Writer
250
-
251
- ### Strong Areas
252
-
253
- | Area | Evidence | Last Updated |
254
- |------|----------|-------------|
255
- | _(no entries yet)_ | | |
256
-
257
- ### Weak Areas
258
-
259
- | Area | Evidence | Last Updated |
260
- |------|----------|-------------|
261
- | _(no entries yet)_ | | |
262
-
263
- ### File Familiarity
264
-
265
- _(no entries yet)_
266
-
267
- ---
268
-
269
- ## Writer
270
-
271
- ### Strong Areas
272
-
273
- | Area | Evidence | Last Updated |
274
- |------|----------|-------------|
275
- | _(no entries yet)_ | | |
276
-
277
- ### Weak Areas
278
-
279
- | Area | Evidence | Last Updated |
280
- |------|----------|-------------|
281
- | _(no entries yet)_ | | |
282
-
283
- ### File Familiarity
284
-
285
- _(no entries yet)_
286
-
287
- ---
288
-
289
- ## Developer
290
-
291
- ### Strong Areas
292
-
293
- | Area | Evidence | Last Updated |
294
- |------|----------|-------------|
295
- | _(no entries yet)_ | | |
296
-
297
- ### Weak Areas
298
-
299
- | Area | Evidence | Last Updated |
300
- |------|----------|-------------|
301
- | _(no entries yet)_ | | |
302
-
303
- ### File Familiarity
304
-
305
- _(no entries yet)_
306
-
307
- ---
308
-
309
- ## DevOps & Release
310
-
311
- ### Strong Areas
312
-
313
- | Area | Evidence | Last Updated |
314
- |------|----------|-------------|
315
- | _(no entries yet)_ | | |
316
-
317
- ### Weak Areas
318
-
319
- | Area | Evidence | Last Updated |
320
- |------|----------|-------------|
321
- | _(no entries yet)_ | | |
322
-
323
- ### File Familiarity
324
-
325
- _(no entries yet)_
@@ -1,69 +0,0 @@
1
- ````markdown
2
- # Agent Failure Log (Dead Letter Queue)
3
-
4
- Structured log of failed agent delegations for diagnosis and retry. Prevents failed work from silently disappearing.
5
-
6
- > **Review this file at the start of each session.** Check for pending failures that need retry and patterns that indicate systemic issues.
7
-
8
- ---
9
-
10
- ## How to Use This File
11
-
12
- ### When to add an entry
13
-
14
- Add an entry when **any** of these occur:
15
-
16
- - A delegated agent fails to complete its task after 2+ attempts
17
- - A background agent produces output that fails all verification gates
18
- - A panel review BLOCKs 3 times and requires escalation → **create a dispute record** in `DISPUTES.md` instead (see below)
19
- - An agent encounters an unrecoverable error (e.g., MCP server down, tool unavailable)
20
-
21
- > **Disputes vs. DLQ:** When a panel BLOCKs 3 times or agents fundamentally disagree on an approach, create a **dispute record** in `DISPUTES.md` — not a DLQ entry. Disputes package both perspectives and resolution options for human decision-making. DLQ entries are for simple failures (tool errors, timeouts, scope creep).
22
-
23
- ### Entry format
24
-
25
- ```markdown
26
- ### DLQ-XXX: Short description
27
-
28
- | Field | Value |
29
- |-------|-------|
30
- | **Date** | YYYY-MM-DD |
31
- | **Agent** | Agent name |
32
- | **Tracker Issue** | PREFIX-XX (if applicable) |
33
- | **Failure Type** | `verification-fail` / `tool-error` / `panel-block` / `timeout` / `scope-creep` |
34
- | **Attempts** | Number of attempts before logging |
35
-
36
- **Task:** What was the agent supposed to do?
37
-
38
- **Failure Details:** What went wrong? Include error messages, failed checks, or panel BLOCK reasons.
39
-
40
- **Root Cause:** Why did it fail? (if known)
41
-
42
- **Resolution:** How was it eventually resolved? (or "pending" if unresolved)
43
- ```
44
-
45
- ### Failure types
46
-
47
- | Type | Description |
48
- |------|-------------|
49
- | `verification-fail` | Agent completed but output fails lint/test/build/browser checks |
50
- | `tool-error` | MCP server down, tool unavailable, API error |
51
- | `panel-block` | Panel review blocked 3+ times |
52
- | `timeout` | Agent ran out of context or took too long |
53
- | `scope-creep` | Agent modified files outside its partition or went off-task |
54
-
55
- ---
56
-
57
- ## Failures
58
-
59
- <!-- Failures are appended here by the Team Lead during sessions.
60
- Start numbering from DLQ-001. -->
61
-
62
- ---
63
-
64
- ## Index
65
-
66
- | ID | Date | Agent | Type | Status |
67
- |----|------|-------|------|--------|
68
-
69
- ````
@@ -1,55 +0,0 @@
1
- ````markdown
2
- # Agent Performance Tracking
3
-
4
- Tracks agent success rates across panel reviews and delegated tasks to inform model routing and panel reviewer selection.
5
-
6
- ## Data Sources
7
-
8
- Performance data is collected automatically via NDJSON session logs:
9
- - **All events:** `.opencastle/logs/events.ndjson` — unified log for all event types (sessions, delegations, reviews, panels, disputes), appended via `opencastle log`
10
- - **Dashboard:** Run `npx opencastle convoy dashboard` to visualize agent performance
11
-
12
- ## Quick Queries
13
-
14
- ```bash
15
- # Sessions per agent
16
- jq -r 'select(.type == "session") | .agent' .opencastle/logs/events.ndjson | sort | uniq -c | sort -rn
17
-
18
- # Success rate by agent
19
- jq -r 'select(.type == "session") | [.agent, .outcome] | @tsv' .opencastle/logs/events.ndjson | sort | uniq -c
20
-
21
- # Delegation tier distribution
22
- jq -r 'select(.type == "delegation") | .tier' .opencastle/logs/events.ndjson | sort | uniq -c
23
-
24
- # Failed delegations
25
- jq 'select(.type == "delegation" and .outcome == "failed")' .opencastle/logs/events.ndjson
26
- ```
27
-
28
- ## Panel Review Performance
29
-
30
- Panel review data is collected automatically in `.opencastle/logs/events.ndjson` with `type: "panel"` (appended by the panel runner after each review — see step 7 in the panel majority vote skill).
31
-
32
- ```bash
33
- # Total panel reviews
34
- jq 'select(.type == "panel")' .opencastle/logs/events.ndjson | wc -l
35
-
36
- # Pass vs block rate
37
- jq -r 'select(.type == "panel") | .verdict' .opencastle/logs/events.ndjson | sort | uniq -c
38
-
39
- # Reviews by panel key
40
- jq -r 'select(.type == "panel") | .panel_key' .opencastle/logs/events.ndjson | sort | uniq -c | sort -rn
41
-
42
- # Reviews that required retries (attempt > 1)
43
- jq 'select(.type == "panel" and .attempt > 1)' .opencastle/logs/events.ndjson
44
-
45
- # Average SHOULD-FIX items per review
46
- jq -s '[.[] | select(.type == "panel")] | if length > 0 then (map(.should_fix) | add) / length else 0 end' .opencastle/logs/events.ndjson
47
- ```
48
-
49
- ## Usage
50
-
51
- Referenced by the **panel-majority-vote** skill for weight assignment:
52
- - Agents with >80% success rate for similar reviews get a +1 weight bonus
53
- - This file is the source of truth for that metric
54
-
55
- ````