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,162 +0,0 @@
1
- ````markdown
2
- # Dispute Records
3
-
4
- Structured escalation records created when agents exhaust all automated resolution paths. Unlike the Dead Letter Queue (simple failure log), disputes are **formal action items for humans** — they package conflicting perspectives, prior attempts, and resolution options so a human can make an informed decision.
5
-
6
- > **Review this file at the start of each session.** Pending disputes may block downstream work and need human input before proceeding.
7
-
8
- ---
9
-
10
- ## When to Create a Dispute
11
-
12
- Create a dispute record when **any** of these occur:
13
-
14
- | Trigger | Typical Path |
15
- |---------|-------------|
16
- | Panel review BLOCKs 3 times | Fast review 3x FAIL → Panel → Panel 3x BLOCK → **Dispute** |
17
- | Agent and reviewer fundamentally disagree on approach | Agent retries with reviewer feedback but keeps failing because the feedback conflicts with other constraints → **Dispute** |
18
- | Conflicting acceptance criteria | Reviewer flags an issue, but fixing it would violate another acceptance criterion → **Dispute** |
19
- | Architectural ambiguity | Multiple valid approaches exist, automated agents can't converge → **Dispute** |
20
- | External dependency blocks resolution | Fix requires upstream library change, API access, or infrastructure action → **Dispute** |
21
-
22
- **Do NOT create a dispute for:**
23
- - Simple tool errors (MCP server down, build timeout) → use the DLQ
24
- - Scope creep → use the DLQ with a redirect
25
- - First or second failure → retry automatically
26
-
27
- ## Dispute Record Format
28
-
29
- ```markdown
30
- ### DSP-XXX: Short description of the disagreement
31
-
32
- | Field | Value |
33
- |-------|-------|
34
- | **Date** | YYYY-MM-DD |
35
- | **Priority** | `critical` / `high` / `medium` / `low` |
36
- | **Tracker Issue** | PRJ-XX |
37
- | **Trigger** | `panel-3x-block` / `approach-conflict` / `criteria-conflict` / `architectural-ambiguity` / `external-dependency` |
38
- | **Implementing Agent** | Agent name |
39
- | **Reviewing Agent(s)** | Agent name(s) |
40
- | **Attempts** | Total attempts (fast review + panel) |
41
- | **Est. Tokens Spent** | ~XXK across all attempts |
42
- | **Status** | `pending` / `resolved` / `deferred` |
43
-
44
- #### Context
45
-
46
- Brief description of the task and what was being implemented.
47
-
48
- #### Agent's Position
49
-
50
- What the implementing agent produced and why it believes the approach is correct.
51
- Include specific file paths and code references.
52
-
53
- #### Reviewer's Position
54
-
55
- What the reviewer(s) flagged and why they believe changes are needed.
56
- Include the specific MUST-FIX items from the last review attempt.
57
-
58
- #### Attempt History
59
-
60
- | # | Type | Verdict | Key Feedback |
61
- |---|------|---------|-------------|
62
- | 1 | Fast review | FAIL | [one-line summary] |
63
- | 2 | Fast review | FAIL | [one-line summary] |
64
- | 3 | Fast review | FAIL → escalate | [one-line summary] |
65
- | 4 | Panel (attempt 1) | BLOCK (1/3 PASS) | [one-line summary] |
66
- | 5 | Panel (attempt 2) | BLOCK (0/3 PASS) | [one-line summary] |
67
- | 6 | Panel (attempt 3) | BLOCK (1/3 PASS) | [one-line summary] |
68
-
69
- #### Resolution Options
70
-
71
- Present 2-3 concrete options for the human decision-maker:
72
-
73
- 1. **Option A: [Accept agent's approach]** — Rationale: ... Risk: ...
74
- 2. **Option B: [Accept reviewer's feedback]** — Rationale: ... Risk: ...
75
- 3. **Option C: [Alternative approach]** — Rationale: ... Risk: ...
76
-
77
- #### Recommended Action
78
-
79
- Which option the Team Lead recommends and why. Include specific next steps:
80
- - [ ] Human decides on option A/B/C
81
- - [ ] If A: merge as-is, create follow-up ticket for reviewer concerns
82
- - [ ] If B: re-delegate with explicit instruction to [specific change]
83
- - [ ] If C: [describe the alternative path]
84
-
85
- #### Artifacts
86
-
87
- Links to evidence for human review:
88
- - Panel report: `.opencastle/logs/panel/[panel-key].md`
89
- - Review log entries: `.opencastle/logs/events.ndjson` (filter by `type: "review"` and issue)
90
- - Changed files: [list of files in the last attempt]
91
- - DLQ entry (if any): `DLQ-XXX`
92
- ```
93
-
94
- ## Priority Guidelines
95
-
96
- | Priority | Criteria | Expected Human Response Time |
97
- |----------|----------|------------------------------|
98
- | `critical` | Blocks other in-progress work; overnight run stopped | Same day |
99
- | `high` | Blocks the current feature; no workaround | Within 2 days |
100
- | `medium` | Feature can proceed without this subtask | Within 1 week |
101
- | `low` | Nice-to-have; deferrable | Next planning session |
102
-
103
- ## Lifecycle
104
-
105
- ```
106
- ┌──────────────────────────────────────┐
107
- │ Automated resolution exhausted │
108
- │ (3x panel BLOCK or approach conflict)│
109
- └──────────────┬───────────────────────┘
110
- │
111
- ▼
112
- ┌──────────────────────────────────────┐
113
- │ Team Lead creates dispute record │
114
- │ Status: pending │
115
- │ Logs to events.ndjson │
116
- │ Links to tracker issue │
117
- └──────────────┬───────────────────────┘
118
- │
119
- ▼
120
- ┌──────────────────────────────────────┐
121
- │ Human reviews dispute │
122
- │ Picks resolution option │
123
- │ Updates Status → resolved/deferred │
124
- └──────────────┬───────────────────────┘
125
- │
126
- ┌─────────┴──────────┐
127
- ▼ ▼
128
- resolved deferred
129
- (re-delegate (create follow-up
130
- with human's ticket, continue
131
- decision) with other work)
132
- ```
133
-
134
- ## Integration with DLQ
135
-
136
- Disputes and DLQ entries serve different purposes:
137
-
138
- | | Dead Letter Queue | Dispute Record |
139
- |--|-------------------|----------------|
140
- | **Purpose** | Diagnostic failure log | Actionable human decision |
141
- | **When** | Tool errors, timeouts, simple failures | Unresolvable agent/reviewer conflicts |
142
- | **Action** | Retry or investigate root cause | Human picks a resolution option |
143
- | **Urgency** | Can wait for pattern analysis | Needs human input to unblock |
144
- | **File** | `AGENT-FAILURES.md` | `DISPUTES.md` (this file) |
145
-
146
- A dispute MAY reference a DLQ entry if the dispute escalated from a logged failure. Use the `DLQ-XXX` ID in the Artifacts section.
147
-
148
- ---
149
-
150
- ## Disputes
151
-
152
- <!-- Disputes are appended here by the Team Lead during sessions.
153
- Start numbering from DSP-001. -->
154
-
155
- ---
156
-
157
- ## Index
158
-
159
- | ID | Date | Priority | Trigger | Tracker Issue | Status |
160
- |----|------|----------|---------|-------------|--------|
161
-
162
- ````
@@ -1,10 +0,0 @@
1
- # Knowledge Graph
2
-
3
- <!-- Append-only relationship log capturing structured connections between files, agents, patterns, decisions, bugs, and lessons.
4
- Used by the Team Lead to discover file dependencies, match agents to tasks, and surface relevant context during delegation.
5
- See the agent-memory skill for the full protocol, entity types, and relationship types. -->
6
-
7
- ## Relationships
8
-
9
- | Source | Relationship | Target | Added | Context |
10
- |--------|-------------|--------|-------|---------|
@@ -1,111 +0,0 @@
1
- # Skill Matrix
2
-
3
- Maps abstract technology capabilities to concrete skill implementations. The matrix distinguishes two types of skills:
4
-
5
- - **Binding slots** — Plugin-driven, technology-specific skills resolved at runtime (e.g., `database` → `supabase-database`). These change when the tech stack changes.
6
- - **Core skills** — Hardcoded, stack-agnostic skills referenced directly in agent files (e.g., `validation-gates`, `security-hardening`, `performance-optimization`). These are always available regardless of plugins.
7
-
8
- ## Data File
9
-
10
- The machine-readable bindings are in [`skill-matrix.json`](skill-matrix.json). The CLI (`opencastle init` and `opencastle sync`) reads and writes this file directly. Agents should read the JSON to resolve capability slots.
11
-
12
- ## How It Works
13
-
14
- ```
15
- Agent file skill-matrix.json Skill file
16
- ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
17
- │ Developer │ │ "framework": │ │ nextjs- │
18
- │ needs: │──lookup──▶│ entries: [ │──load────▶│ framework │
19
- │ framework │ │ {name, │ │ │
20
- │ │ │ skill} │ │ │
21
- │ │ │ ] │ │ │
22
- └──────────────┘ └──────────────┘ └──────────────┘
23
- ```
24
-
25
- 1. **Agents** declare which capability slots they need (e.g., `framework`, `database`)
26
- 2. **`skill-matrix.json`** maps each slot to one or more technologies and their skill files
27
- 3. **When delegating**, resolve slots through the JSON to load the correct skill(s)
28
- 4. **To switch tech**, update only the binding entries — no agent files change
29
-
30
- ## Multiple Technologies Per Slot
31
-
32
- A slot can have multiple entries. For example, a project using both Supabase and Prisma:
33
-
34
- ```json
35
- "database": {
36
- "entries": [
37
- { "name": "Supabase", "skill": "supabase-database" },
38
- { "name": "Prisma", "skill": "prisma-database" }
39
- ],
40
- "description": "Schema, migrations, auth flow, roles"
41
- }
42
- ```
43
-
44
- When resolving, load **all** skills listed in the slot's entries.
45
-
46
- ## Switching Technologies
47
-
48
- ### Example: Migrate to a new plugin (Supabase → Azure)
49
-
50
- 1. Create (or install) the Azure plugin: `plugins/azure/SKILL.md` + `plugins/azure/config.ts`
51
- 2. Update `skill-matrix.json`: replace the database entries
52
- 3. Update `project.instructions.md` to reflect the new tech stack
53
- 4. **No agent files change** — Data Engineer, Security Expert still reference the `database` slot
54
-
55
- ### Example: Migrate to an existing plugin (Linear → Jira)
56
-
57
- 1. Plugin already exists: `plugins/jira/SKILL.md`
58
- 2. Update `skill-matrix.json`: replace the `task-management` entries
59
- 3. **No agent files change** — Team Lead still references the `task-management` slot
60
-
61
- ### Example: Switch knowledge-management tool (Notion → Confluence)
62
-
63
- 1. Create (or install) the Confluence plugin: `plugins/confluence/SKILL.md` + `plugins/confluence/config.ts`
64
- 2. Update `skill-matrix.json`: replace the `knowledge-management` entries
65
- 3. **No agent files change** — Team Lead, Researcher, Writer, and Architect still reference the `knowledge-management` slot
66
-
67
- ## Capability Slots Reference
68
-
69
- | Slot | Description | Agents That Use It |
70
- |------|-------------|-------------------|
71
- | `framework` | SSR/SSG, routing, layouts | Developer, Writer |
72
- | `database` | Schema, migrations, auth flow | Data Engineer, Security Expert |
73
- | `cms` | Document types, queries | Content Engineer, Writer |
74
- | `deployment` | Hosting, cron, env vars | DevOps & Release |
75
- | `codebase-tool` | Task running, linting, testing | Architect, DevOps & Release |
76
- | `testing` | Unit testing frameworks | Testing Expert |
77
- | `e2e-testing` | Browser automation | UI/UX Expert, Testing Expert |
78
- | `task-management` | Issue tracking, workflow states | Team Lead |
79
- | `knowledge-management` | Knowledge base, research, ADRs, specs | Team Lead, Researcher, Writer, Architect |
80
- | `design` | Design tokens, component inspection, asset export | UI/UX Expert |
81
- | `email` | Transactional email, templates, delivery | Developer |
82
- | `payments` | Payment processing, subscriptions, webhooks | Developer |
83
- | `observability` | Error tracking, performance monitoring, tracing | DevOps & Release, Performance Expert |
84
- | `notifications` | Team messaging, alerts, bot integrations | Developer |
85
-
86
- ### Example: Add a second plugin
87
-
88
- 1. Update `skill-matrix.json`: add another entry to the `framework` slot
89
- 2. Both framework skills will be loaded when agents resolve the `framework` slot
90
-
91
- ## Missing Plugin or Empty Slot
92
-
93
- When resolving a capability slot, two failure cases can occur:
94
-
95
- 1. **Empty slot** — The slot's `entries` array is empty (no plugin installed for that technology). Example: an agent needs `database` but no database plugin was selected during `opencastle init`.
96
- 2. **Missing plugin** — The slot references a skill name (e.g., `"skill": "convex-database"`) but no matching plugin `SKILL.md` file exists on disk.
97
-
98
- In both cases, **tell the user** that the capability is unavailable and why:
99
-
100
- - *"The `database` slot has no entries in `skill-matrix.json`. Install a database plugin (e.g., `supabase`, `prisma`) via `opencastle add <plugin>`, or add entries manually."*
101
- - *"The `database` slot references skill `convex-database`, but no matching plugin was found. Install the Convex plugin or run `opencastle sync` to fix the binding."*
102
-
103
- **Do NOT silently skip the slot or proceed without the skill.** The agent should surface the gap clearly so the user can resolve it.
104
-
105
- ## Design Principles
106
-
107
- 1. **Single source of truth** — All skill assignments (slots and direct) live in `skill-matrix.json`, not in agent files
108
- 2. **Agents are stack-agnostic** — They describe *what* they need, not *which* tool they use
109
- 3. **Swap without rewriting** — Changing entries updates every agent that uses that slot
110
- 4. **Process skills are stable** — Methodology doesn't change with technology; direct skill references in the matrix are fine
111
- 5. **Capability slots are composable** — Agents can combine slots and direct skills freely (e.g., Security Expert uses the `database` slot + `security-hardening` direct skill)
@@ -1,31 +0,0 @@
1
- <!-- Populated by agents. Add ADRs here when architectural decisions are made. -->
2
-
3
- # Architecture Decision Records
4
-
5
- Log of architectural decisions made during the project. Each ADR captures the context, decision, and consequences so future sessions understand why things are the way they are.
6
-
7
- ## How to Use
8
-
9
- - **Before making an architectural decision:** Check existing ADRs for prior decisions in the same area
10
- - **After making a decision:** Add a new ADR with the next available ID
11
- - **When revisiting a decision:** Update the status to `Superseded` and reference the new ADR
12
-
13
- ## Decisions
14
-
15
- ### ADR-001: _Template — Short Decision Title_
16
-
17
- | Field | Value |
18
- |-------|-------|
19
- | **ID** | ADR-001 |
20
- | **Date** | YYYY-MM-DD |
21
- | **Status** | Proposed / Accepted / Deprecated / Superseded |
22
-
23
- **Context:** _What is the issue that we're seeing that motivates this decision?_
24
-
25
- **Decision:** _What is the change that we're proposing and/or doing?_
26
-
27
- **Consequences:** _What becomes easier or more difficult to do because of this change?_
28
-
29
- ---
30
-
31
- _Add new ADRs above this line, incrementing the ID._
@@ -1,34 +0,0 @@
1
- # Documentation Structure
2
-
3
- <!-- Populated by `opencastle init` based on project structure. -->
4
-
5
- Project-specific documentation layout referenced by the `documentation-standards` skill.
6
-
7
- Documentation files live in the `.opencastle/` directory alongside other project-specific configuration. Key documentation files:
8
-
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
-
14
- ## Directory Tree
15
-
16
- <!-- Map your project's documentation directory here if one exists -->
17
-
18
- ```
19
- .opencastle/
20
- ├── KNOWN-ISSUES.md — Tracked issues and limitations
21
- ├── LESSONS-LEARNED.md — Agent knowledge base
22
- └── project/
23
- ├── roadmap.md — Feature roadmap
24
- ├── decisions.md — Architecture Decision Records
25
- └── docs-structure.md — This file
26
- ```
27
-
28
- ## Practices
29
-
30
- - **Check Known Issues** before starting any task
31
- - **Review Architecture** decisions for context
32
- - **Update roadmap** after completing features
33
- - **Add new issues** with: Issue ID, Status, Severity, Evidence, Root Cause, Solution Options
34
- - **Archive** outdated docs rather than deleting
@@ -1,24 +0,0 @@
1
- <!-- Populated by `opencastle init` or manually. -->
2
-
3
- # Project Roadmap
4
-
5
- High-level roadmap of planned features and improvements. Updated by agents as tasks are completed.
6
-
7
- ## How to Use
8
-
9
- - **Before implementing a feature:** Check the roadmap for scope, status, and acceptance criteria
10
- - **After completing a feature:** Mark the item with ✅, add the completion date and tracker issue IDs
11
- - **When planning:** Add new items with priority and description
12
-
13
- ## Roadmap Items
14
-
15
- | Status | Priority | Description | Tracker Issues |
16
- |--------|----------|-------------|----------------|
17
- | Planned | High | _Example: Short description of the feature_ | — |
18
-
19
- ### Status Values
20
-
21
- - **Planned** — Scoped but not yet started
22
- - **In Progress** — Actively being worked on
23
- - **Done** — Completed and verified
24
- - **Cancelled** — Removed from scope with documented reason
@@ -1,39 +0,0 @@
1
- > Parent: [SKILL.md](./SKILL.md)
2
-
3
- # Writing & Formatting Guide
4
-
5
- ## Voice & Tone
6
-
7
- - **Imperative mood** for instructions: "Add the header" not "You should add the header"
8
- - **Active voice**: "The function returns X" not "X is returned by the function"
9
- - **Concise**: one idea per sentence; trim filler words (just, simply, basically, very)
10
-
11
- ## Formatting Rules
12
-
13
- | Element | Convention |
14
- |---------|-----------|
15
- | Headings | Sentence case (`## Core principles`, not `## Core Principles`). Exception: proper nouns and acronyms. |
16
- | Lists | Parallel structure — all items start with same part of speech |
17
- | Code | Inline backticks for symbols/commands; fenced blocks for multi-line |
18
- | Links | Descriptive text: `[migration guide](./migrate.md)` not `[click here](./migrate.md)` |
19
- | Tables | Use for structured comparisons; keep columns ≤5 |
20
- | Line length | Wrap prose at ~120 characters for diff readability |
21
-
22
- ## Markdown Standards
23
-
24
- - One blank line before, after headings, code blocks, tables
25
- - No trailing whitespace
26
- - Files end with a single newline
27
- - Use `---` for horizontal rules (sparingly)
28
- - Prefer `-` for unordered lists
29
-
30
- ## Anti-Patterns
31
-
32
- | Anti-pattern | Fix |
33
- |-------------|-----|
34
- | Walls of prose without structure | Break into headings, bullets, or tables |
35
- | Duplicate content across docs | Link to canonical source |
36
- | Stale "Last Updated" dates | Remove or automate; manual dates drift |
37
- | TODO/FIXME placeholders in published docs | Resolve before merging |
38
- | Screenshots without alt text | Add descriptive alt text for accessibility |
39
- | Overly nested headings (h4+) | Flatten; if you need h4, consider splitting the doc |
@@ -1,113 +0,0 @@
1
- > Parent: [SKILL.md](./SKILL.md)
2
-
3
- # Frontend Design Components
4
-
5
- Extended component patterns, card variants, hero animations for **frontend-design** skill.
6
-
7
- ## Design Tokens (starter)
8
-
9
- ```css
10
- :root {
11
- --color-bg: #0f1724;
12
- --color-ink: #e6eef8;
13
- --color-accent: #ff7a59;
14
- --space-1: 4px;
15
- --space-2: 8px;
16
- --space-3: 16px;
17
- --radius-1: 6px;
18
- }
19
- ```
20
-
21
- ## Entrance Animation (starter)
22
-
23
- ```css
24
- @keyframes fadeUp {
25
- from { opacity: 0; transform: translateY(8px); }
26
- to { opacity: 1; transform: translateY(0); }
27
- }
28
-
29
- @media (prefers-reduced-motion: no-preference) {
30
- .fade-in-up { animation: fadeUp 420ms cubic-bezier(.2,.9,.2,1) both; }
31
- }
32
- ```
33
-
34
- ## Card Patterns
35
-
36
- ### Glass Card
37
-
38
- ```css
39
- .card-glass {
40
- background: rgba(255, 255, 255, 0.05);
41
- backdrop-filter: blur(12px);
42
- border: 1px solid rgba(255, 255, 255, 0.1);
43
- border-radius: var(--radius-1);
44
- padding: var(--space-3);
45
- }
46
- ```
47
-
48
- ### Elevated Card
49
-
50
- ```css
51
- .card-elevated {
52
- background: var(--color-bg);
53
- border-radius: var(--radius-1);
54
- padding: var(--space-3);
55
- box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
56
- transition: transform 200ms ease, box-shadow 200ms ease;
57
- }
58
- .card-elevated:hover {
59
- transform: translateY(-2px);
60
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
61
- }
62
- ```
63
-
64
- ## Hero Animations
65
-
66
- ### Staggered Fade-In
67
-
68
- ```css
69
- .hero-stagger > * {
70
- opacity: 0;
71
- transform: translateY(12px);
72
- animation: fadeUp 500ms cubic-bezier(.2,.9,.2,1) forwards;
73
- }
74
- .hero-stagger > *:nth-child(1) { animation-delay: 0ms; }
75
- .hero-stagger > *:nth-child(2) { animation-delay: 80ms; }
76
- .hero-stagger > *:nth-child(3) { animation-delay: 160ms; }
77
- ```
78
-
79
- ### Gradient Shift
80
-
81
- ```css
82
- .hero-gradient {
83
- background: linear-gradient(135deg, var(--color-accent), var(--color-bg));
84
- background-size: 200% 200%;
85
- animation: gradientShift 6s ease infinite;
86
- }
87
- @keyframes gradientShift {
88
- 0%, 100% { background-position: 0% 50%; }
89
- 50% { background-position: 100% 50%; }
90
- }
91
- ```
92
-
93
- ## Button Variants
94
-
95
- ```css
96
- .btn-primary {
97
- background: var(--color-accent);
98
- color: #fff;
99
- padding: var(--space-2) var(--space-3);
100
- border-radius: var(--radius-1);
101
- font-weight: 600;
102
- transition: opacity 150ms ease;
103
- }
104
- .btn-primary:hover { opacity: 0.9; }
105
-
106
- .btn-ghost {
107
- background: transparent;
108
- color: var(--color-ink);
109
- border: 1px solid currentColor;
110
- padding: var(--space-2) var(--space-3);
111
- border-radius: var(--radius-1);
112
- }
113
- ```