opencastle 0.20.0 → 0.21.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 (146) hide show
  1. package/dist/cli/adapters/cursor.d.ts.map +1 -1
  2. package/dist/cli/adapters/cursor.js +3 -12
  3. package/dist/cli/adapters/cursor.js.map +1 -1
  4. package/dist/cli/adapters/single-file-base.d.ts.map +1 -1
  5. package/dist/cli/adapters/single-file-base.js +3 -12
  6. package/dist/cli/adapters/single-file-base.js.map +1 -1
  7. package/dist/cli/adapters/vscode.d.ts +1 -1
  8. package/dist/cli/adapters/vscode.d.ts.map +1 -1
  9. package/dist/cli/adapters/vscode.js +4 -16
  10. package/dist/cli/adapters/vscode.js.map +1 -1
  11. package/dist/cli/dashboard.js +1 -1
  12. package/dist/cli/dashboard.js.map +1 -1
  13. package/dist/cli/doctor.js +7 -7
  14. package/dist/cli/doctor.js.map +1 -1
  15. package/dist/cli/eject.js +2 -2
  16. package/dist/cli/eject.js.map +1 -1
  17. package/dist/cli/init.d.ts.map +1 -1
  18. package/dist/cli/init.js +13 -4
  19. package/dist/cli/init.js.map +1 -1
  20. package/dist/cli/init.test.js +27 -15
  21. package/dist/cli/init.test.js.map +1 -1
  22. package/dist/cli/lesson.js +5 -5
  23. package/dist/cli/lesson.js.map +1 -1
  24. package/dist/cli/log.d.ts +1 -1
  25. package/dist/cli/log.d.ts.map +1 -1
  26. package/dist/cli/log.js +5 -5
  27. package/dist/cli/log.js.map +1 -1
  28. package/dist/cli/manifest.d.ts +4 -1
  29. package/dist/cli/manifest.d.ts.map +1 -1
  30. package/dist/cli/manifest.js +16 -5
  31. package/dist/cli/manifest.js.map +1 -1
  32. package/dist/cli/stack-config.d.ts.map +1 -1
  33. package/dist/cli/stack-config.js +2 -14
  34. package/dist/cli/stack-config.js.map +1 -1
  35. package/dist/cli/update.d.ts.map +1 -1
  36. package/dist/cli/update.js +87 -34
  37. package/dist/cli/update.js.map +1 -1
  38. package/package.json +1 -1
  39. package/src/cli/adapters/cursor.ts +2 -12
  40. package/src/cli/adapters/single-file-base.ts +2 -12
  41. package/src/cli/adapters/vscode.ts +4 -16
  42. package/src/cli/dashboard.ts +1 -1
  43. package/src/cli/doctor.ts +7 -7
  44. package/src/cli/eject.ts +2 -2
  45. package/src/cli/init.test.ts +28 -15
  46. package/src/cli/init.ts +14 -4
  47. package/src/cli/lesson.ts +5 -5
  48. package/src/cli/log.ts +5 -5
  49. package/src/cli/manifest.ts +18 -5
  50. package/src/cli/stack-config.ts +2 -14
  51. package/src/cli/update.ts +95 -36
  52. package/src/dashboard/node_modules/.vite/deps/_metadata.json +6 -6
  53. package/src/orchestrator/agent-workflows/README.md +1 -1
  54. package/src/orchestrator/agent-workflows/bug-fix.md +4 -4
  55. package/src/orchestrator/agent-workflows/data-pipeline.md +1 -1
  56. package/src/orchestrator/agent-workflows/database-migration.md +4 -4
  57. package/src/orchestrator/agent-workflows/feature-implementation.md +3 -3
  58. package/src/orchestrator/agent-workflows/performance-optimization.md +1 -1
  59. package/src/orchestrator/agent-workflows/refactoring.md +1 -1
  60. package/src/orchestrator/agent-workflows/schema-changes.md +2 -2
  61. package/src/orchestrator/agent-workflows/security-audit.md +4 -4
  62. package/src/orchestrator/agent-workflows/shared-delivery-phase.md +1 -1
  63. package/src/orchestrator/agents/api-designer.agent.md +2 -2
  64. package/src/orchestrator/agents/architect.agent.md +2 -2
  65. package/src/orchestrator/agents/content-engineer.agent.md +2 -2
  66. package/src/orchestrator/agents/copywriter.agent.md +2 -2
  67. package/src/orchestrator/agents/data-expert.agent.md +2 -2
  68. package/src/orchestrator/agents/database-engineer.agent.md +2 -2
  69. package/src/orchestrator/agents/developer.agent.md +2 -2
  70. package/src/orchestrator/agents/devops-expert.agent.md +2 -2
  71. package/src/orchestrator/agents/documentation-writer.agent.md +2 -2
  72. package/src/orchestrator/agents/performance-expert.agent.md +2 -2
  73. package/src/orchestrator/agents/release-manager.agent.md +2 -2
  74. package/src/orchestrator/agents/researcher.agent.md +4 -4
  75. package/src/orchestrator/agents/reviewer.agent.md +1 -1
  76. package/src/orchestrator/agents/security-expert.agent.md +2 -2
  77. package/src/orchestrator/agents/seo-specialist.agent.md +2 -2
  78. package/src/orchestrator/agents/session-guard.agent.md +10 -10
  79. package/src/orchestrator/agents/team-lead.agent.md +3 -3
  80. package/src/orchestrator/agents/testing-expert.agent.md +2 -2
  81. package/src/orchestrator/agents/ui-ux-expert.agent.md +2 -2
  82. package/src/orchestrator/copilot-instructions.md +1 -1
  83. package/src/orchestrator/customizations/AGENT-PERFORMANCE.md +11 -11
  84. package/src/orchestrator/customizations/DISPUTES.md +2 -2
  85. package/src/orchestrator/customizations/README.md +1 -1
  86. package/src/orchestrator/customizations/logs/README.md +1 -1
  87. package/src/orchestrator/customizations/project/docs-structure.md +6 -6
  88. package/src/orchestrator/instructions/ai-optimization.instructions.md +1 -1
  89. package/src/orchestrator/instructions/general.instructions.md +6 -6
  90. package/src/orchestrator/plugins/astro/SKILL.md +1 -1
  91. package/src/orchestrator/plugins/chrome-devtools/SKILL.md +4 -4
  92. package/src/orchestrator/plugins/contentful/SKILL.md +2 -2
  93. package/src/orchestrator/plugins/convex/SKILL.md +2 -2
  94. package/src/orchestrator/plugins/cypress/SKILL.md +2 -2
  95. package/src/orchestrator/plugins/figma/SKILL.md +1 -1
  96. package/src/orchestrator/plugins/jira/SKILL.md +3 -3
  97. package/src/orchestrator/plugins/linear/SKILL.md +2 -2
  98. package/src/orchestrator/plugins/netlify/SKILL.md +2 -2
  99. package/src/orchestrator/plugins/nextjs/SKILL.md +1 -1
  100. package/src/orchestrator/plugins/nx/SKILL.md +1 -1
  101. package/src/orchestrator/plugins/playwright/SKILL.md +2 -2
  102. package/src/orchestrator/plugins/prisma/SKILL.md +2 -2
  103. package/src/orchestrator/plugins/resend/SKILL.md +1 -1
  104. package/src/orchestrator/plugins/sanity/SKILL.md +2 -2
  105. package/src/orchestrator/plugins/slack/SKILL.md +2 -2
  106. package/src/orchestrator/plugins/strapi/SKILL.md +2 -2
  107. package/src/orchestrator/plugins/supabase/SKILL.md +2 -2
  108. package/src/orchestrator/plugins/teams/SKILL.md +1 -1
  109. package/src/orchestrator/plugins/turborepo/SKILL.md +1 -1
  110. package/src/orchestrator/plugins/vercel/SKILL.md +2 -2
  111. package/src/orchestrator/plugins/vitest/SKILL.md +2 -2
  112. package/src/orchestrator/prompts/bootstrap-customizations.prompt.md +8 -8
  113. package/src/orchestrator/prompts/brainstorm.prompt.md +3 -3
  114. package/src/orchestrator/prompts/bug-fix.prompt.md +4 -4
  115. package/src/orchestrator/prompts/create-skill.prompt.md +3 -3
  116. package/src/orchestrator/prompts/generate-convoy.prompt.md +1 -1
  117. package/src/orchestrator/prompts/implement-feature.prompt.md +10 -10
  118. package/src/orchestrator/prompts/quick-refinement.prompt.md +3 -3
  119. package/src/orchestrator/prompts/resolve-pr-comments.prompt.md +1 -1
  120. package/src/orchestrator/skills/accessibility-standards/SKILL.md +1 -1
  121. package/src/orchestrator/skills/agent-hooks/SKILL.md +9 -9
  122. package/src/orchestrator/skills/agent-memory/SKILL.md +4 -4
  123. package/src/orchestrator/skills/api-patterns/SKILL.md +2 -2
  124. package/src/orchestrator/skills/code-commenting/SKILL.md +1 -1
  125. package/src/orchestrator/skills/context-map/SKILL.md +1 -1
  126. package/src/orchestrator/skills/data-engineering/SKILL.md +2 -2
  127. package/src/orchestrator/skills/decomposition/SKILL.md +1 -1
  128. package/src/orchestrator/skills/deployment-infrastructure/SKILL.md +2 -2
  129. package/src/orchestrator/skills/documentation-standards/SKILL.md +2 -2
  130. package/src/orchestrator/skills/fast-review/SKILL.md +2 -2
  131. package/src/orchestrator/skills/frontend-design/SKILL.md +1 -1
  132. package/src/orchestrator/skills/git-workflow/SKILL.md +2 -2
  133. package/src/orchestrator/skills/memory-merger/SKILL.md +3 -3
  134. package/src/orchestrator/skills/observability-logging/SKILL.md +10 -10
  135. package/src/orchestrator/skills/orchestration-protocols/SKILL.md +1 -1
  136. package/src/orchestrator/skills/panel-majority-vote/SKILL.md +2 -2
  137. package/src/orchestrator/skills/panel-majority-vote/panel-report.template.md +1 -1
  138. package/src/orchestrator/skills/performance-optimization/SKILL.md +1 -1
  139. package/src/orchestrator/skills/react-development/SKILL.md +1 -1
  140. package/src/orchestrator/skills/security-hardening/SKILL.md +1 -1
  141. package/src/orchestrator/skills/self-improvement/SKILL.md +2 -2
  142. package/src/orchestrator/skills/seo-patterns/SKILL.md +1 -1
  143. package/src/orchestrator/skills/session-checkpoints/SKILL.md +5 -5
  144. package/src/orchestrator/skills/team-lead-reference/SKILL.md +6 -6
  145. package/src/orchestrator/skills/testing-workflow/SKILL.md +3 -3
  146. package/src/orchestrator/skills/validation-gates/SKILL.md +1 -1
@@ -1,10 +1,10 @@
1
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
1
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
2
2
 
3
3
  # Workflow: Schema / CMS Changes
4
4
 
5
5
  Structured workflow for CMS schema modifications, query updates, and content model changes.
6
6
 
7
- > **Project config:** For CMS-specific paths, schema locations, and query library details, see the relevant CMS customization file in `customizations/stack/`.
7
+ > **Project config:** For CMS-specific paths, schema locations, and query library details, see the relevant CMS customization file in `.opencastle/stack/`.
8
8
 
9
9
  ## Phases
10
10
 
@@ -1,4 +1,4 @@
1
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
1
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
2
2
 
3
3
  # Workflow: Security Audit
4
4
 
@@ -31,8 +31,8 @@ Follow the **Delivery Outcome** in `general.instructions.md` and the **Branch Ow
31
31
  ### Steps
32
32
 
33
33
  1. Define audit scope (full audit vs. targeted area)
34
- 2. Read `.github/customizations/project.instructions.md` security sections
35
- 3. Read `.github/customizations/KNOWN-ISSUES.md` for existing security items
34
+ 2. Read `.opencastle/project.instructions.md` security sections
35
+ 3. Read `.opencastle/KNOWN-ISSUES.md` for existing security items
36
36
  4. Check current CSP configuration in `next.config.js`
37
37
  5. Review auth flow (see database/auth customization for library paths)
38
38
  6. Map all API routes and Server Actions
@@ -130,7 +130,7 @@ Follow the **Delivery Outcome** in `general.instructions.md` and the **Branch Ow
130
130
  2. Create separate tracker issues for Medium/Low findings if not fixing now
131
131
  3. Run verification after each fix
132
132
  4. Re-run panel review if initial panel BLOCKed
133
- 5. Update `.github/customizations/KNOWN-ISSUES.md` for any accepted risks
133
+ 5. Update `.opencastle/KNOWN-ISSUES.md` for any accepted risks
134
134
 
135
135
  ### Exit Criteria
136
136
 
@@ -1,4 +1,4 @@
1
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
1
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
2
2
 
3
3
  # Shared Delivery Phase
4
4
 
@@ -6,7 +6,7 @@ tools: ['search/changes', 'search/codebase', 'edit/editFiles', 'web/fetch', 'rea
6
6
  user-invocable: false
7
7
  ---
8
8
 
9
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
9
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
10
10
 
11
11
  # API Designer
12
12
 
@@ -21,7 +21,7 @@ You are an API designer specializing in route architecture, endpoint conventions
21
21
 
22
22
  ## Skills
23
23
 
24
- Resolve all skills (slots and direct) via [skill-matrix.json](.github/customizations/agents/skill-matrix.json).
24
+ Resolve all skills (slots and direct) via [skill-matrix.json](.opencastle/agents/skill-matrix.json).
25
25
 
26
26
  ## Guidelines
27
27
 
@@ -6,7 +6,7 @@ tools: ['search/codebase', 'edit/editFiles', 'web/fetch', 'read/problems', 'sear
6
6
  user-invocable: false
7
7
  ---
8
8
 
9
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
9
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
10
10
 
11
11
  # Software Architect
12
12
 
@@ -33,7 +33,7 @@ When reviewing plans or proposals, **challenge assumptions before implementing**
33
33
 
34
34
  ## Skills
35
35
 
36
- Resolve all skills (slots and direct) via [skill-matrix.json](.github/customizations/agents/skill-matrix.json).
36
+ Resolve all skills (slots and direct) via [skill-matrix.json](.opencastle/agents/skill-matrix.json).
37
37
 
38
38
  ## Architecture Decision Records (ADRs)
39
39
 
@@ -6,7 +6,7 @@ tools: ['search/changes', 'search/codebase', 'edit/editFiles', 'web/fetch', 'rea
6
6
  user-invocable: false
7
7
  ---
8
8
 
9
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
9
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
10
10
 
11
11
  # Content Engineer
12
12
 
@@ -20,7 +20,7 @@ You are a content engineer specializing in CMS schema design, content queries, c
20
20
 
21
21
  ## Skills
22
22
 
23
- Resolve all skills (slots and direct) via [skill-matrix.json](.github/customizations/agents/skill-matrix.json).
23
+ Resolve all skills (slots and direct) via [skill-matrix.json](.opencastle/agents/skill-matrix.json).
24
24
 
25
25
  ## Guidelines
26
26
 
@@ -6,7 +6,7 @@ tools: ['search/codebase', 'edit/editFiles', 'web/fetch', 'search', 'read/proble
6
6
  user-invocable: false
7
7
  ---
8
8
 
9
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
9
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
10
10
 
11
11
  # Copywriter
12
12
 
@@ -21,7 +21,7 @@ You are a copywriter specializing in user-facing text for web applications — U
21
21
 
22
22
  ## Skills
23
23
 
24
- Resolve all skills (slots and direct) via [skill-matrix.json](.github/customizations/agents/skill-matrix.json).
24
+ Resolve all skills (slots and direct) via [skill-matrix.json](.opencastle/agents/skill-matrix.json).
25
25
 
26
26
  ## Text Categories
27
27
 
@@ -6,7 +6,7 @@ tools: ['search/changes', 'search/codebase', 'edit/editFiles', 'web/fetch', 'rea
6
6
  user-invocable: false
7
7
  ---
8
8
 
9
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
9
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
10
10
 
11
11
  # Data Expert
12
12
 
@@ -14,7 +14,7 @@ You are an expert in building ETL pipelines, web scrapers, data processors, and
14
14
 
15
15
  ## Skills
16
16
 
17
- Resolve all skills (slots and direct) via [skill-matrix.json](.github/customizations/agents/skill-matrix.json).
17
+ Resolve all skills (slots and direct) via [skill-matrix.json](.opencastle/agents/skill-matrix.json).
18
18
 
19
19
  ## Critical Rules
20
20
 
@@ -6,7 +6,7 @@ tools: ['search/changes', 'search/codebase', 'edit/editFiles', 'web/fetch', 'rea
6
6
  user-invocable: false
7
7
  ---
8
8
 
9
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
9
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
10
10
 
11
11
  # Database Engineer
12
12
 
@@ -21,7 +21,7 @@ You are a database engineer specializing in schema design, migrations, row-level
21
21
 
22
22
  ## Skills
23
23
 
24
- Resolve all skills (slots and direct) via [skill-matrix.json](.github/customizations/agents/skill-matrix.json).
24
+ Resolve all skills (slots and direct) via [skill-matrix.json](.opencastle/agents/skill-matrix.json).
25
25
 
26
26
  ## Guidelines
27
27
 
@@ -6,7 +6,7 @@ tools: ['search/changes', 'search/codebase', 'edit/editFiles', 'web/fetch', 'vsc
6
6
  user-invocable: false
7
7
  ---
8
8
 
9
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
9
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
10
10
 
11
11
  # Developer
12
12
 
@@ -14,7 +14,7 @@ You are a full-stack developer specializing in building pages, components, routi
14
14
 
15
15
  ## Skills
16
16
 
17
- Resolve all skills (slots and direct) via [skill-matrix.json](.github/customizations/agents/skill-matrix.json).
17
+ Resolve all skills (slots and direct) via [skill-matrix.json](.opencastle/agents/skill-matrix.json).
18
18
 
19
19
  ## Mandatory Verification
20
20
 
@@ -6,7 +6,7 @@ tools: ["search/changes", "search/codebase", "edit/editFiles", "web/fetch", "vsc
6
6
  user-invocable: false
7
7
  ---
8
8
 
9
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
9
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
10
10
 
11
11
  # DevOps Expert
12
12
 
@@ -20,7 +20,7 @@ You are a DevOps expert specializing in deployments, CI/CD pipelines, cron jobs,
20
20
 
21
21
  ## Skills
22
22
 
23
- Resolve all skills (slots and direct) via [skill-matrix.json](.github/customizations/agents/skill-matrix.json).
23
+ Resolve all skills (slots and direct) via [skill-matrix.json](.opencastle/agents/skill-matrix.json).
24
24
 
25
25
  ## Guidelines
26
26
 
@@ -6,7 +6,7 @@ tools: ['search/codebase', 'edit/editFiles', 'web/fetch', 'search', 'read/proble
6
6
  user-invocable: false
7
7
  ---
8
8
 
9
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
9
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
10
10
 
11
11
  # Documentation Writer
12
12
 
@@ -14,7 +14,7 @@ You are a technical documentation specialist. You maintain project documentation
14
14
 
15
15
  ## Skills
16
16
 
17
- Resolve all skills (slots and direct) via [skill-matrix.json](.github/customizations/agents/skill-matrix.json).
17
+ Resolve all skills (slots and direct) via [skill-matrix.json](.opencastle/agents/skill-matrix.json).
18
18
 
19
19
  ## Critical Rules
20
20
 
@@ -6,7 +6,7 @@ tools: ['search/changes', 'search/codebase', 'edit/editFiles', 'web/fetch', 'rea
6
6
  user-invocable: false
7
7
  ---
8
8
 
9
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
9
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
10
10
 
11
11
  # Performance Expert
12
12
 
@@ -20,7 +20,7 @@ You are an expert in frontend and backend performance optimization.
20
20
 
21
21
  ## Skills
22
22
 
23
- Resolve all skills (slots and direct) via [skill-matrix.json](.github/customizations/agents/skill-matrix.json).
23
+ Resolve all skills (slots and direct) via [skill-matrix.json](.opencastle/agents/skill-matrix.json).
24
24
 
25
25
  ## Guidelines
26
26
 
@@ -6,7 +6,7 @@ tools: ['search/changes', 'search/codebase', 'edit/editFiles', 'web/fetch', 'rea
6
6
  user-invocable: false
7
7
  ---
8
8
 
9
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
9
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
10
10
 
11
11
  # Release Manager
12
12
 
@@ -21,7 +21,7 @@ You are a release manager responsible for pre-release verification, changelog ge
21
21
 
22
22
  ## Skills
23
23
 
24
- Resolve all skills (slots and direct) via [skill-matrix.json](.github/customizations/agents/skill-matrix.json).
24
+ Resolve all skills (slots and direct) via [skill-matrix.json](.opencastle/agents/skill-matrix.json).
25
25
 
26
26
  ## Release Process
27
27
 
@@ -6,7 +6,7 @@ tools: ['search/codebase', 'search/textSearch', 'search/fileSearch', 'search/usa
6
6
  user-invocable: false
7
7
  ---
8
8
 
9
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
9
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
10
10
 
11
11
  # Researcher
12
12
 
@@ -14,7 +14,7 @@ You are a codebase exploration specialist. Your job is to **find information, ma
14
14
 
15
15
  ## Skills
16
16
 
17
- Resolve all skills (slots and direct) via [skill-matrix.json](.github/customizations/agents/skill-matrix.json).
17
+ Resolve all skills (slots and direct) via [skill-matrix.json](.opencastle/agents/skill-matrix.json).
18
18
 
19
19
  ## Critical Rules
20
20
 
@@ -69,8 +69,8 @@ Given a feature request, answer:
69
69
  Given a bug report, answer:
70
70
  - Where does the relevant code live? (entry points → data flow)
71
71
  - What does the git history show? (recent changes that might have caused it)
72
- - Are there related known issues in `.github/customizations/KNOWN-ISSUES.md`?
73
- - Are there related lessons in `.github/customizations/LESSONS-LEARNED.md`?
72
+ - Are there related known issues in `.opencastle/KNOWN-ISSUES.md`?
73
+ - Are there related lessons in `.opencastle/LESSONS-LEARNED.md`?
74
74
  - What test coverage exists for the affected area?
75
75
 
76
76
  ### 3. Pattern Audit
@@ -6,7 +6,7 @@ user-invocable: false
6
6
  tools: [read/readFile, search/codebase, search/fileSearch, search/textSearch, search/listDirectory, read/problems]
7
7
  ---
8
8
 
9
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
9
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
10
10
 
11
11
  # Reviewer
12
12
 
@@ -6,7 +6,7 @@ tools: ["search/changes", "search/codebase", "edit/editFiles", "web/fetch", "vsc
6
6
  user-invocable: false
7
7
  ---
8
8
 
9
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
9
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
10
10
 
11
11
  # Security Expert
12
12
 
@@ -24,7 +24,7 @@ You are a security expert specializing in authentication, authorization, securit
24
24
 
25
25
  ## Skills
26
26
 
27
- Resolve all skills (slots and direct) via [skill-matrix.json](.github/customizations/agents/skill-matrix.json).
27
+ Resolve all skills (slots and direct) via [skill-matrix.json](.opencastle/agents/skill-matrix.json).
28
28
 
29
29
  ## Guidelines
30
30
 
@@ -6,7 +6,7 @@ tools: ['search/changes', 'search/codebase', 'edit/editFiles', 'web/fetch', 'rea
6
6
  user-invocable: false
7
7
  ---
8
8
 
9
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
9
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
10
10
 
11
11
  # SEO Specialist
12
12
 
@@ -21,7 +21,7 @@ You are an SEO specialist focused on technical SEO implementation — meta tags,
21
21
 
22
22
  ## Skills
23
23
 
24
- Resolve all skills (slots and direct) via [skill-matrix.json](.github/customizations/agents/skill-matrix.json).
24
+ Resolve all skills (slots and direct) via [skill-matrix.json](.opencastle/agents/skill-matrix.json).
25
25
 
26
26
  ## Guidelines
27
27
 
@@ -30,9 +30,9 @@ Run ALL checks. Report each as ✅ or ❌.
30
30
 
31
31
  ### 1. Delegation Records
32
32
 
33
- For each delegation in the session summary, verify a matching record exists in `.github/customizations/logs/events.ndjson` (type=delegation).
33
+ For each delegation in the session summary, verify a matching record exists in `.opencastle/logs/events.ndjson` (type=delegation).
34
34
 
35
- **How:** `grep '"type":"delegation"' .github/customizations/logs/events.ndjson | tail -20` and match agent + task against the summary.
35
+ **How:** `grep '"type":"delegation"' .opencastle/logs/events.ndjson | tail -20` and match agent + task against the summary.
36
36
 
37
37
  **Fix:** Load the **observability-logging** skill and run the delegation record command (includes a verify step).
38
38
 
@@ -40,29 +40,29 @@ Also verify each delegation record includes `session_id` (branch name). Records
40
40
 
41
41
  ### 2. Session Record
42
42
 
43
- Verify a session record exists in `.github/customizations/logs/events.ndjson` (type=session) for the current task.
43
+ Verify a session record exists in `.opencastle/logs/events.ndjson` (type=session) for the current task.
44
44
 
45
- **How:** `grep '"type":"session"' .github/customizations/logs/events.ndjson | tail -5` and match task description.
45
+ **How:** `grep '"type":"session"' .opencastle/logs/events.ndjson | tail -5` and match task description.
46
46
 
47
47
  **Fix:** Load the **observability-logging** skill and run the session record command (includes a verify step).
48
48
 
49
49
  ### 3. Lessons Captured
50
50
 
51
- If the session summary indicates retries occurred, verify new entries exist in `.github/customizations/LESSONS-LEARNED.md`.
51
+ If the session summary indicates retries occurred, verify new entries exist in `.opencastle/LESSONS-LEARNED.md`.
52
52
 
53
- **How:** `grep -c "^### LES-" .github/customizations/LESSONS-LEARNED.md` — compare count with expected.
53
+ **How:** `grep -c "^### LES-" .opencastle/LESSONS-LEARNED.md` — compare count with expected.
54
54
 
55
55
  ### 4. Discovered Issues Tracked
56
56
 
57
57
  If the session summary lists discovered issues, verify they appear in:
58
- - `.github/customizations/KNOWN-ISSUES.md`, OR
58
+ - `.opencastle/KNOWN-ISSUES.md`, OR
59
59
  - A task tracker ticket referenced in the summary
60
60
 
61
61
  ### 5. Review & Panel Records
62
62
 
63
- If the session summary mentions fast reviews or panel reviews, verify matching records exist in `.github/customizations/logs/events.ndjson` (type=review and/or type=panel).
63
+ If the session summary mentions fast reviews or panel reviews, verify matching records exist in `.opencastle/logs/events.ndjson` (type=review and/or type=panel).
64
64
 
65
- **How:** `grep '"type":"review"' .github/customizations/logs/events.ndjson | tail -10` and/or `grep '"type":"panel"' .github/customizations/logs/events.ndjson | tail -5`.
65
+ **How:** `grep '"type":"review"' .opencastle/logs/events.ndjson | tail -10` and/or `grep '"type":"panel"' .opencastle/logs/events.ndjson | tail -5`.
66
66
 
67
67
  **Fix:** Load the **observability-logging** skill and run the review/panel record command as applicable (includes a verify step).
68
68
 
@@ -82,7 +82,7 @@ If the session involved running a convoy (check for `.opencastle/convoy.db` or r
82
82
 
83
83
  **Verify convoy tasks logged:**
84
84
  - Each completed convoy task should have a corresponding event in the NDJSON log
85
- - Check: `grep '"type":"session"' .github/customizations/logs/events.ndjson | tail -10`
85
+ - Check: `grep '"type":"session"' .opencastle/logs/events.ndjson | tail -10`
86
86
 
87
87
  **Fix:** If convoy export is missing, the engine should have auto-exported. Manual export: run `opencastle run --status` to verify the convoy completed.
88
88
 
@@ -28,7 +28,7 @@ handoffs:
28
28
  prompt: 'Use the resolve-pr-comments prompt to resolve the GitHub PR review comments on this PR:'
29
29
  ---
30
30
 
31
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
31
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
32
32
 
33
33
  # Team Lead (OpenCastle)
34
34
 
@@ -109,7 +109,7 @@ When calling `runSubagent`, always specify which custom agent to use by name: *"
109
109
 
110
110
  **After each sub-agent returns**, log the delegation record before doing anything else (before review, before verification). This is a **⛔ hard gate** — do NOT proceed to review or any other action until the delegation is logged. Use the **observability-logging** skill's delegation record command (`--mechanism sub-agent`).
111
111
 
112
- > **`model` and `tier` must come from the agent registry** — not the Team Lead's own model. Look up the agent in [agent-registry.md](../customizations/agents/agent-registry.md) and use their assigned model and tier. For example, delegating to Developer → `"model":"claude-sonnet-4-6","tier":"quality"`, not the Team Lead's `claude-opus-4-6`.
112
+ > **`model` and `tier` must come from the agent registry** — not the Team Lead's own model. Look up the agent in [agent-registry.md](../.opencastle/agents/agent-registry.md) and use their assigned model and tier. For example, delegating to Developer → `"model":"claude-sonnet-4-6","tier":"quality"`, not the Team Lead's `claude-opus-4-6`.
113
113
 
114
114
  ### Background Agents — Delegate Session
115
115
 
@@ -264,7 +264,7 @@ See [shared-delivery-phase.md](../agent-workflows/shared-delivery-phase.md) for
264
264
 
265
265
  1. Verify all issues Done or Cancelled
266
266
  2. Final build/lint/test across affected projects
267
- 3. Update roadmap (`.github/customizations/project/roadmap.md`)
267
+ 3. Update roadmap (`.opencastle/project/roadmap.md`)
268
268
  4. Commit to feature branch with issue IDs — Team Lead creates the branch, sub-agents work on it directly, background agents use isolated worktrees
269
269
  5. Push and open PR (`GH_PAGER=cat gh pr create ...`). **Do NOT merge.**
270
270
  6. Link PR in tracker issue
@@ -6,7 +6,7 @@ tools: ['search/changes', 'search/codebase', 'edit/editFiles', 'web/fetch', 'rea
6
6
  user-invocable: false
7
7
  ---
8
8
 
9
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
9
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
10
10
 
11
11
  # Testing Expert
12
12
 
@@ -14,7 +14,7 @@ You are an expert tester who validates UI changes using browser automation and w
14
14
 
15
15
  ## Skills
16
16
 
17
- Resolve all skills (slots and direct) via [skill-matrix.json](.github/customizations/agents/skill-matrix.json).
17
+ Resolve all skills (slots and direct) via [skill-matrix.json](.opencastle/agents/skill-matrix.json).
18
18
 
19
19
  ## Context Management
20
20
 
@@ -6,7 +6,7 @@ tools: ['search/changes', 'search/codebase', 'edit/editFiles', 'web/fetch', 'vsc
6
6
  user-invocable: false
7
7
  ---
8
8
 
9
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
9
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
10
10
 
11
11
  # UI/UX Expert
12
12
 
@@ -20,7 +20,7 @@ You are an expert UI/UX developer specializing in building accessible, visually
20
20
 
21
21
  ## Skills
22
22
 
23
- Resolve all skills (slots and direct) via [skill-matrix.json](.github/customizations/agents/skill-matrix.json).
23
+ Resolve all skills (slots and direct) via [skill-matrix.json](.opencastle/agents/skill-matrix.json).
24
24
 
25
25
  ## Guidelines
26
26
 
@@ -1,4 +1,4 @@
1
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
1
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
2
2
 
3
3
  # Copilot Instructions
4
4
 
@@ -6,44 +6,44 @@ Tracks agent success rates across panel reviews and delegated tasks to inform mo
6
6
  ## Data Sources
7
7
 
8
8
  Performance data is collected automatically via NDJSON session logs:
9
- - **All events:** `.github/customizations/logs/events.ndjson` — unified log for all event types (sessions, delegations, reviews, panels, disputes), appended via `opencastle log`
9
+ - **All events:** `.opencastle/logs/events.ndjson` — unified log for all event types (sessions, delegations, reviews, panels, disputes), appended via `opencastle log`
10
10
  - **Dashboard:** Run `npx opencastle dashboard` to visualize agent performance
11
11
 
12
12
  ## Quick Queries
13
13
 
14
14
  ```bash
15
15
  # Sessions per agent
16
- jq -r 'select(.type == "session") | .agent' .github/customizations/logs/events.ndjson | sort | uniq -c | sort -rn
16
+ jq -r 'select(.type == "session") | .agent' .opencastle/logs/events.ndjson | sort | uniq -c | sort -rn
17
17
 
18
18
  # Success rate by agent
19
- jq -r 'select(.type == "session") | [.agent, .outcome] | @tsv' .github/customizations/logs/events.ndjson | sort | uniq -c
19
+ jq -r 'select(.type == "session") | [.agent, .outcome] | @tsv' .opencastle/logs/events.ndjson | sort | uniq -c
20
20
 
21
21
  # Delegation tier distribution
22
- jq -r 'select(.type == "delegation") | .tier' .github/customizations/logs/events.ndjson | sort | uniq -c
22
+ jq -r 'select(.type == "delegation") | .tier' .opencastle/logs/events.ndjson | sort | uniq -c
23
23
 
24
24
  # Failed delegations
25
- jq 'select(.type == "delegation" and .outcome == "failed")' .github/customizations/logs/events.ndjson
25
+ jq 'select(.type == "delegation" and .outcome == "failed")' .opencastle/logs/events.ndjson
26
26
  ```
27
27
 
28
28
  ## Panel Review Performance
29
29
 
30
- Panel review data is collected automatically in `.github/customizations/logs/events.ndjson` with `type: "panel"` (appended by the panel runner after each review — see step 7 in the panel majority vote skill).
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
31
 
32
32
  ```bash
33
33
  # Total panel reviews
34
- jq 'select(.type == "panel")' .github/customizations/logs/events.ndjson | wc -l
34
+ jq 'select(.type == "panel")' .opencastle/logs/events.ndjson | wc -l
35
35
 
36
36
  # Pass vs block rate
37
- jq -r 'select(.type == "panel") | .verdict' .github/customizations/logs/events.ndjson | sort | uniq -c
37
+ jq -r 'select(.type == "panel") | .verdict' .opencastle/logs/events.ndjson | sort | uniq -c
38
38
 
39
39
  # Reviews by panel key
40
- jq -r 'select(.type == "panel") | .panel_key' .github/customizations/logs/events.ndjson | sort | uniq -c | sort -rn
40
+ jq -r 'select(.type == "panel") | .panel_key' .opencastle/logs/events.ndjson | sort | uniq -c | sort -rn
41
41
 
42
42
  # Reviews that required retries (attempt > 1)
43
- jq 'select(.type == "panel" and .attempt > 1)' .github/customizations/logs/events.ndjson
43
+ jq 'select(.type == "panel" and .attempt > 1)' .opencastle/logs/events.ndjson
44
44
 
45
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' .github/customizations/logs/events.ndjson
46
+ jq -s '[.[] | select(.type == "panel")] | if length > 0 then (map(.should_fix) | add) / length else 0 end' .opencastle/logs/events.ndjson
47
47
  ```
48
48
 
49
49
  ## Usage
@@ -85,8 +85,8 @@ Which option the Team Lead recommends and why. Include specific next steps:
85
85
  #### Artifacts
86
86
 
87
87
  Links to evidence for human review:
88
- - Panel report: `.github/customizations/logs/panel/[panel-key].md`
89
- - Review log entries: `.github/customizations/logs/events.ndjson` (filter by `type: "review"` and issue)
88
+ - Panel report: `.opencastle/logs/panel/[panel-key].md`
89
+ - Review log entries: `.opencastle/logs/events.ndjson` (filter by `type: "review"` and issue)
90
90
  - Changed files: [list of files in the last attempt]
91
91
  - DLQ entry (if any): `DLQ-XXX`
92
92
  ```
@@ -6,7 +6,7 @@ Project-specific configuration for the AI agent framework. Everything in this fo
6
6
 
7
7
  Skills and instructions contain generic methodology (how to write migrations, how to test in a browser, how to run a panel review). This folder holds the concrete values those skills operate on — project IDs, table schemas, team UUIDs, endpoint inventories, and similar configuration that changes per project.
8
8
 
9
- Skills reference these files with relative links like `../../customizations/stack/api-config.md`, so agents automatically load project context when they load a skill.
9
+ Skills reference these files with relative links like `../../.opencastle/stack/api-config.md`, so agents automatically load project context when they load a skill.
10
10
 
11
11
  ## Contents
12
12
 
@@ -175,7 +175,7 @@ Run `opencastle log --help` for full options.
175
175
  "attempt": 1,
176
176
  "tracker_issue": "PRJ-57",
177
177
  "artifacts_count": 14,
178
- "report_path": ".github/customizations/logs/panel/instruction-refactoring.md"
178
+ "report_path": ".opencastle/logs/panel/instruction-refactoring.md"
179
179
  }
180
180
  ```
181
181
 
@@ -4,19 +4,19 @@
4
4
 
5
5
  Project-specific documentation layout referenced by the `documentation-standards` skill.
6
6
 
7
- Documentation files live in the `.github/customizations/` directory alongside other project-specific configuration. Key documentation files:
7
+ Documentation files live in the `.opencastle/` directory alongside other project-specific configuration. Key documentation files:
8
8
 
9
- - `.github/customizations/KNOWN-ISSUES.md` — Tracked issues, limitations, and accepted risks
10
- - `.github/customizations/project/roadmap.md` — Project roadmap and feature status
11
- - `.github/customizations/project/decisions.md` — Architecture Decision Records
12
- - `.github/customizations/LESSONS-LEARNED.md` — Agent knowledge base of retries and workarounds
9
+ - `.opencastle/KNOWN-ISSUES.md` — Tracked issues, limitations, and accepted risks
10
+ - `.opencastle/project/roadmap.md` — Project roadmap and feature status
11
+ - `.opencastle/project/decisions.md` — Architecture Decision Records
12
+ - `.opencastle/LESSONS-LEARNED.md` — Agent knowledge base of retries and workarounds
13
13
 
14
14
  ## Directory Tree
15
15
 
16
16
  <!-- Map your project's documentation directory here if one exists -->
17
17
 
18
18
  ```
19
- .github/customizations/
19
+ .opencastle/
20
20
  ├── KNOWN-ISSUES.md — Tracked issues and limitations
21
21
  ├── LESSONS-LEARNED.md — Agent knowledge base
22
22
  └── project/
@@ -3,7 +3,7 @@ description: 'AI assistant optimization patterns for efficient context usage and
3
3
  applyTo: '**'
4
4
  ---
5
5
 
6
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .github/customizations/ directory instead. -->
6
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
7
7
 
8
8
  # AI Optimization
9
9