opencastle 1.5.0 → 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 (177) 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 +11 -0
  9. package/dist/cli/bootstrap-on-init.test.js.map +1 -1
  10. package/dist/cli/command-namespace.test.js +17 -0
  11. package/dist/cli/command-namespace.test.js.map +1 -1
  12. package/dist/cli/convoy/engine.d.ts +12 -0
  13. package/dist/cli/convoy/engine.d.ts.map +1 -1
  14. package/dist/cli/convoy/engine.git.test.js +55 -0
  15. package/dist/cli/convoy/engine.git.test.js.map +1 -1
  16. package/dist/cli/convoy/engine.js +39 -1
  17. package/dist/cli/convoy/engine.js.map +1 -1
  18. package/dist/cli/convoy/findings.d.ts +35 -0
  19. package/dist/cli/convoy/findings.d.ts.map +1 -0
  20. package/dist/cli/convoy/findings.js +100 -0
  21. package/dist/cli/convoy/findings.js.map +1 -0
  22. package/dist/cli/convoy/findings.test.d.ts +2 -0
  23. package/dist/cli/convoy/findings.test.d.ts.map +1 -0
  24. package/dist/cli/convoy/findings.test.js +75 -0
  25. package/dist/cli/convoy/findings.test.js.map +1 -0
  26. package/dist/cli/convoy/isolation.d.ts.map +1 -1
  27. package/dist/cli/convoy/isolation.js +2 -1
  28. package/dist/cli/convoy/isolation.js.map +1 -1
  29. package/dist/cli/convoy/worktree.d.ts +5 -0
  30. package/dist/cli/convoy/worktree.d.ts.map +1 -1
  31. package/dist/cli/convoy/worktree.js +12 -0
  32. package/dist/cli/convoy/worktree.js.map +1 -1
  33. package/dist/cli/docs-accuracy.test.js +34 -0
  34. package/dist/cli/docs-accuracy.test.js.map +1 -1
  35. package/dist/cli/doctor.d.ts +11 -0
  36. package/dist/cli/doctor.d.ts.map +1 -1
  37. package/dist/cli/doctor.js +70 -6
  38. package/dist/cli/doctor.js.map +1 -1
  39. package/dist/cli/doctor.test.js +82 -1
  40. package/dist/cli/doctor.test.js.map +1 -1
  41. package/dist/cli/init.d.ts.map +1 -1
  42. package/dist/cli/init.js +58 -53
  43. package/dist/cli/init.js.map +1 -1
  44. package/dist/cli/init.test.js +28 -23
  45. package/dist/cli/init.test.js.map +1 -1
  46. package/dist/cli/layers.d.ts +20 -0
  47. package/dist/cli/layers.d.ts.map +1 -1
  48. package/dist/cli/layers.js +53 -1
  49. package/dist/cli/layers.js.map +1 -1
  50. package/dist/cli/layers.test.js +67 -1
  51. package/dist/cli/layers.test.js.map +1 -1
  52. package/dist/cli/lessons.d.ts +10 -0
  53. package/dist/cli/lessons.d.ts.map +1 -1
  54. package/dist/cli/lessons.js +26 -1
  55. package/dist/cli/lessons.js.map +1 -1
  56. package/dist/cli/lessons.test.js +38 -1
  57. package/dist/cli/lessons.test.js.map +1 -1
  58. package/dist/cli/plan.test.js +10 -8
  59. package/dist/cli/plan.test.js.map +1 -1
  60. package/dist/cli/sync-check.test.js +14 -2
  61. package/dist/cli/sync-check.test.js.map +1 -1
  62. package/dist/orchestrator/plugins/notion/config.d.ts.map +1 -1
  63. package/dist/orchestrator/plugins/notion/config.js +21 -17
  64. package/dist/orchestrator/plugins/notion/config.js.map +1 -1
  65. package/package.json +1 -1
  66. package/src/cli/adapters/claude-code.ts +1 -0
  67. package/src/cli/adapters/single-file-base.ts +63 -31
  68. package/src/cli/bootstrap-on-init.test.ts +12 -0
  69. package/src/cli/command-namespace.test.ts +17 -0
  70. package/src/cli/convoy/engine.git.test.ts +59 -0
  71. package/src/cli/convoy/engine.ts +44 -0
  72. package/src/cli/convoy/findings.test.ts +86 -0
  73. package/src/cli/convoy/findings.ts +129 -0
  74. package/src/cli/convoy/isolation.ts +2 -1
  75. package/src/cli/convoy/worktree.ts +12 -0
  76. package/src/cli/docs-accuracy.test.ts +42 -0
  77. package/src/cli/doctor.test.ts +101 -1
  78. package/src/cli/doctor.ts +73 -7
  79. package/src/cli/init.test.ts +27 -22
  80. package/src/cli/init.ts +62 -57
  81. package/src/cli/layers.test.ts +72 -1
  82. package/src/cli/layers.ts +52 -1
  83. package/src/cli/lessons.test.ts +48 -0
  84. package/src/cli/lessons.ts +27 -1
  85. package/src/cli/plan.test.ts +10 -8
  86. package/src/cli/sync-check.test.ts +16 -2
  87. package/src/orchestrator/agent-workflows/feature-implementation.md +1 -1
  88. package/src/orchestrator/agents/team-lead.agent.md +5 -5
  89. package/src/orchestrator/agents/testing-expert.agent.md +2 -2
  90. package/src/orchestrator/customizations/LESSONS-LEARNED.md +1 -1
  91. package/src/orchestrator/instructions/ai-optimization.instructions.md +6 -23
  92. package/src/orchestrator/instructions/general.instructions.md +22 -95
  93. package/src/orchestrator/plugins/astro/skills/astro-framework/SKILL.md +1 -3
  94. package/src/orchestrator/plugins/chrome-devtools/skills/browser-testing/SKILL.md +3 -5
  95. package/src/orchestrator/plugins/cloudflare/skills/cloudflare-platform/SKILL.md +2 -2
  96. package/src/orchestrator/plugins/contentful/skills/contentful-cms/SKILL.md +1 -1
  97. package/src/orchestrator/plugins/convex/skills/convex-database/SKILL.md +1 -3
  98. package/src/orchestrator/plugins/coolify/skills/coolify-deployment/SKILL.md +1 -1
  99. package/src/orchestrator/plugins/cypress/skills/cypress-testing/SKILL.md +1 -1
  100. package/src/orchestrator/plugins/drizzle/skills/drizzle-orm/SKILL.md +1 -1
  101. package/src/orchestrator/plugins/expo/skills/expo-development/SKILL.md +2 -2
  102. package/src/orchestrator/plugins/figma/skills/figma-design/SKILL.md +1 -3
  103. package/src/orchestrator/plugins/hetzner/skills/hetzner-cloud/SKILL.md +1 -1
  104. package/src/orchestrator/plugins/jira/skills/jira-management/SKILL.md +1 -3
  105. package/src/orchestrator/plugins/linear/skills/linear-task-management/SKILL.md +1 -3
  106. package/src/orchestrator/plugins/netlify/skills/netlify-deployment/SKILL.md +2 -2
  107. package/src/orchestrator/plugins/nextjs/skills/nextjs-framework/SKILL.md +13 -6
  108. package/src/orchestrator/plugins/notion/config.ts +21 -17
  109. package/src/orchestrator/plugins/notion/skills/notion-knowledge-management/SKILL.md +8 -16
  110. package/src/orchestrator/plugins/nx/skills/nx-workspace/SKILL.md +2 -4
  111. package/src/orchestrator/plugins/playwright/skills/playwright-testing/SKILL.md +1 -3
  112. package/src/orchestrator/plugins/prisma/skills/prisma-database/SKILL.md +1 -3
  113. package/src/orchestrator/plugins/resend/skills/resend-email/SKILL.md +2 -2
  114. package/src/orchestrator/plugins/sanity/skills/sanity-cms/SKILL.md +1 -3
  115. package/src/orchestrator/plugins/sentry/skills/sentry-monitoring/SKILL.md +1 -1
  116. package/src/orchestrator/plugins/slack/skills/slack-notifications/SKILL.md +1 -3
  117. package/src/orchestrator/plugins/strapi/skills/strapi-cms/SKILL.md +1 -3
  118. package/src/orchestrator/plugins/stripe/skills/stripe-payments/SKILL.md +4 -4
  119. package/src/orchestrator/plugins/supabase/skills/supabase-database/SKILL.md +3 -5
  120. package/src/orchestrator/plugins/teams/skills/teams-notifications/SKILL.md +1 -3
  121. package/src/orchestrator/plugins/trello/skills/trello-task-management/SKILL.md +1 -1
  122. package/src/orchestrator/plugins/turborepo/skills/turborepo-monorepo/SKILL.md +15 -88
  123. package/src/orchestrator/plugins/vercel/skills/vercel-deployment/SKILL.md +2 -2
  124. package/src/orchestrator/plugins/vitest/skills/vitest-testing/SKILL.md +17 -150
  125. package/src/orchestrator/prompts/assess-complexity.prompt.md +1 -0
  126. package/src/orchestrator/prompts/create-skill.prompt.md +13 -67
  127. package/src/orchestrator/prompts/fix-convoy.prompt.md +1 -0
  128. package/src/orchestrator/prompts/fix-prd.prompt.md +1 -0
  129. package/src/orchestrator/prompts/generate-prd.prompt.md +1 -0
  130. package/src/orchestrator/prompts/resolve-pr-comments.prompt.md +2 -2
  131. package/src/orchestrator/prompts/validate-convoy.prompt.md +1 -0
  132. package/src/orchestrator/prompts/validate-prd.prompt.md +1 -0
  133. package/src/orchestrator/skills/accessibility-standards/REFERENCE.md +17 -12
  134. package/src/orchestrator/skills/accessibility-standards/SKILL.md +1 -1
  135. package/src/orchestrator/skills/agent-hooks/HOOKS-REFERENCE.md +3 -5
  136. package/src/orchestrator/skills/agent-hooks/SKILL.md +8 -6
  137. package/src/orchestrator/skills/api-patterns/SKILL.md +1 -1
  138. package/src/orchestrator/skills/code-commenting/SKILL.md +1 -1
  139. package/src/orchestrator/skills/context-map/REFERENCE.md +0 -2
  140. package/src/orchestrator/skills/context-map/SKILL.md +2 -2
  141. package/src/orchestrator/skills/data-engineering/REFERENCE.md +3 -9
  142. package/src/orchestrator/skills/data-engineering/SKILL.md +9 -16
  143. package/src/orchestrator/skills/decomposition/SKILL.md +1 -1
  144. package/src/orchestrator/skills/deployment-infrastructure/SKILL.md +4 -4
  145. package/src/orchestrator/skills/documentation-standards/SKILL.md +4 -2
  146. package/src/orchestrator/skills/fast-review/REFERENCE.md +0 -2
  147. package/src/orchestrator/skills/fast-review/SKILL.md +5 -5
  148. package/src/orchestrator/skills/frontend-design/REFERENCE.md +6 -28
  149. package/src/orchestrator/skills/frontend-design/SKILL.md +19 -9
  150. package/src/orchestrator/skills/git-workflow/SKILL.md +1 -1
  151. package/src/orchestrator/skills/memory-merger/SKILL.md +13 -15
  152. package/src/orchestrator/skills/observability-logging/SKILL.md +1 -1
  153. package/src/orchestrator/skills/orchestration-protocols/REFERENCE.md +5 -9
  154. package/src/orchestrator/skills/orchestration-protocols/SKILL.md +6 -6
  155. package/src/orchestrator/skills/panel-majority-vote/REFERENCE.md +0 -4
  156. package/src/orchestrator/skills/panel-majority-vote/SKILL.md +1 -1
  157. package/src/orchestrator/skills/panel-majority-vote/panel-report.template.md +0 -2
  158. package/src/orchestrator/skills/performance-optimization/SKILL.md +2 -2
  159. package/src/orchestrator/skills/project-consistency/SKILL.md +2 -2
  160. package/src/orchestrator/skills/project-consistency/TEMPLATES.md +0 -4
  161. package/src/orchestrator/skills/react-development/SKILL.md +3 -3
  162. package/src/orchestrator/skills/security-hardening/SKILL.md +5 -5
  163. package/src/orchestrator/skills/self-improvement/LESSON-CATEGORIES.md +0 -2
  164. package/src/orchestrator/skills/self-improvement/SKILL.md +1 -1
  165. package/src/orchestrator/skills/seo-patterns/SKILL.md +1 -1
  166. package/src/orchestrator/skills/session-checkpoints/CHECKPOINT-TEMPLATE.md +0 -2
  167. package/src/orchestrator/skills/session-checkpoints/SKILL.md +1 -1
  168. package/src/orchestrator/skills/team-lead-reference/SKILL.md +1 -1
  169. package/src/orchestrator/skills/technical-writing/SKILL.md +8 -13
  170. package/src/orchestrator/skills/testing-workflow/SKILL.md +6 -6
  171. package/src/orchestrator/skills/typescript-best-practices/SKILL.md +1 -1
  172. package/src/orchestrator/skills/unslop/SKILL.md +1 -1
  173. package/src/orchestrator/skills/validation-gates/REFERENCE.md +6 -31
  174. package/src/orchestrator/skills/validation-gates/SKILL.md +12 -26
  175. package/src/orchestrator/skills/writing-for-agents/SKILL.md +2 -2
  176. package/src/orchestrator/skills/documentation-standards/WRITING-GUIDE.md +0 -39
  177. package/src/orchestrator/skills/frontend-design/COMPONENTS.md +0 -113
@@ -50,53 +50,28 @@ Agents load a skill when a task matches its `description`, so the description is
50
50
 
51
51
  ### Step 3: Create the Skill File
52
52
 
53
- Create `.opencastle/skills/<skill-name>/SKILL.md`.
54
-
55
- Use this template:
53
+ Create `.opencastle/skills/<skill-name>/SKILL.md`. Load the **writing-for-agents** skill first; it holds the levers this step applies.
56
54
 
57
55
  ```markdown
58
56
  ---
59
57
  name: <skill-name>
60
- description: "<Verb1> X, <verb2> Y, and <verb3> Z. Use when <scenario1>, <scenario2>, or <scenario3>."
58
+ description: "<What the skill is for, in third person>. Use when <situation>, <situation> or <situation>."
61
59
  ---
62
60
 
63
61
  # <Display Name>
64
62
 
65
- ## Workflow
66
-
67
- 1. **<Step>** — <Action>
68
- - Checkpoint: <what to verify before proceeding>
69
- - Recovery: <what to do on failure>
70
- 2. **<Step>** — <Action>
71
- - Checkpoint: <validation>
72
- 3. **<Step>** — <Action>
73
- - Fail → fix → re-run from step N.
74
-
75
- ## <Domain Section>
76
-
77
- <Content organized by topic. Use tables, code blocks, and checklists.>
78
-
79
- ## <Executable Example>
80
-
81
- ```<lang>
82
- // Concrete, copy-paste-ready code (5-15 lines)
63
+ <What an agent gets wrong without this skill: rules, gotchas, exact commands. Numbered steps where order matters, each ending on a check it can verify.>
83
64
  ```
84
65
 
85
- ## Anti-Patterns
66
+ **Description** — the pointer that decides when the skill loads:
86
67
 
87
- | Anti-pattern | Fix |
88
- |-------------|-----|
89
- | <Bad pattern> | <What to do instead> |
68
+ - What the skill is for, then when to use it, in third person ("Checks…", "Use when…").
69
+ - One trigger per branch: each situation that should load it, named once, not a list of synonyms.
70
+ - No workflow summary: an agent that reads the steps in the description may follow them instead of the body.
71
+ - No "Trigger terms:" tail; fold the real triggers into the "Use when" sentence.
72
+ - One line, aim for 250 characters or fewer.
90
73
 
91
- ## References
92
-
93
- | Resource | Purpose |
94
- |----------|--------|
95
- | [REFERENCE.md](./REFERENCE.md) | <Extended examples, schemas, large tables> |
96
- | **<related-skill>** skill | <What it contributes> |
97
- ```
98
-
99
- If skill has large code examples (>30 lines), schema tables, or verbose reference material, create companion `REFERENCE.md` in same directory; link to it from SKILL.md. Keep SKILL.md as lean operational overview. Companion files must start with backlink: `> Parent: [SKILL.md](./SKILL.md)`.
74
+ **Body** — as short as the knowledge allows, and under 500 lines. Material only some tasks need goes in a companion file beside `SKILL.md` (e.g. `REFERENCE.md`), linked from `SKILL.md` with the condition for reading it.
100
75
 
101
76
  ### Step 4: Compile the Skill
102
77
 
@@ -109,46 +84,17 @@ If skill has large code examples (>30 lines), schema tables, or verbose referenc
109
84
  - [ ] File created at `.opencastle/skills/<skill-name>/SKILL.md`
110
85
  - [ ] Frontmatter has `name` and `description` fields; `name` equals the directory name
111
86
  - [ ] Description is single line (no line breaks)
112
- - [ ] Content follows template structure
113
87
  - [ ] No overlap with existing skills
114
88
  - [ ] `npx opencastle sync --check` passes — the compiled copies match the source
115
89
  - [ ] `npx opencastle doctor` passes — it checks that every script and path a team skill names exists
116
- - [ ] Run `npx tessl skill review <path>` — target 100 score (see Scoring Criteria below)
117
-
118
- ## Scoring Criteria
119
-
120
- Skills evaluated by `npx tessl skill review` across 8 criteria (3 pts each = 24 total). Target 100.
121
-
122
- ### Description (frontmatter `description` field)
123
-
124
- | Criterion | 3/3 Pattern | Common Pitfall |
125
- |-----------|------------|----------------|
126
- | **Specificity** | List 3+ concrete actions as verbs: "Creates X, validates Y, and manages Z" | Vague "covers" or "handles" without listing what |
127
- | **Trigger terms** | Natural phrases a user would say — broad synonyms and variations | Too specialized; missing common phrasings |
128
- | **Completeness** | Explicit `Use when...` clause with 3+ trigger scenarios | Missing when-to-use guidance |
129
- | **Distinctiveness** | Unique niche; terms unlikely to collide with other skills | Generic terms that overlap with adjacent skills |
130
-
131
- **Formula:** `"<Verb1> X, <verb2> Y, and <verb3> Z. Use when <scenario1>, <scenario2>, or <scenario3>."`
132
-
133
- ### Content (SKILL.md body)
134
-
135
- | Criterion | 3/3 Pattern | Common Pitfall |
136
- |-----------|------------|----------------|
137
- | **Conciseness** | Every line earns its place. No info Claude already knows. Tables over prose. | Explaining obvious concepts, redundant sections, verbose anti-patterns with "Why" columns |
138
- | **Actionability** | ≥1 executable code example (copy-paste ready), concrete CLI commands, specific thresholds | Deferring to other skills without fallback, abstract guidance without examples |
139
- | **Workflow clarity** | Numbered steps with validation checkpoints, explicit error recovery, feedback loops (fail → fix → re-run) | Implied sequence without numbers, no checkpoints between steps, missing recovery path |
140
- | **Progressive disclosure** | SKILL.md = lean overview. Bulky content (>30-line examples, large tables, schemas) in REFERENCE.md. External refs organized in a References section. | Everything inline making the file too heavy, or too much deferred leaving SKILL.md hollow |
90
+ - [ ] Description follows the rules in Step 3
141
91
 
142
92
  ## Quality Guidelines
143
93
 
144
94
  - **Be prescriptive** — "Use `fetchPlaces()` from `libs/queries`" beats "use the query library"
145
- - **Include executable examples** — At least one copy-paste-ready code block (5-15 lines). CLI commands with real flags, not placeholders
95
+ - **Exact commands** — CLI commands with real flags, not placeholders
146
96
  - **Keep it scannable** — Tables over prose. Headings, bullets, code blocks. Agents parse structure, not paragraphs
147
- - **Number your workflows** — Every multi-step process needs numbered steps, checkpoints ("Gate: X passes"), and recovery ("Fail → fix → re-run step N")
97
+ - **Number your workflows** — Where order matters: numbered steps, each ending on a check, with the recovery on failure
148
98
  - **Don't explain what Claude knows** — Skip "what is X" explanations, obvious anti-pattern justifications, concept definitions. Jump straight to the rules
149
99
  - **Avoid duplication** — If rule exists in another skill or instruction file, reference it: "Load **security-hardening** skill for CSP configuration"
150
- - **Use REFERENCE.md for bulk** — Large code examples, schema tables, worked examples, template libraries go in companion `REFERENCE.md`. Link once from SKILL.md
151
100
  - **Stay stack-agnostic in process skills** — Use capability slot references ("the **database** skill" not "Supabase")
152
- - **Size target** — 80-200 lines in SKILL.md. Under 80 too thin; over 200 split content to REFERENCE.md. Over 300 split into multiple skills
153
- - **No standalone trigger-term sections** — Weave trigger terms naturally into description's `Use when...` clause
154
- - **Third-person voice in descriptions** — "Creates X" not "Create X" or "This skill creates X"
@@ -2,6 +2,7 @@
2
2
  description: 'Fix the problems found in a convoy task plan with targeted JSON patches. Goal is the plan as JSON, context is the list of problems.'
3
3
  agent: 'Team Lead (OpenCastle)'
4
4
  output: json
5
+ pipeline: true
5
6
  ---
6
7
 
7
8
  <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
@@ -2,6 +2,7 @@
2
2
  description: 'Fix the issues a PRD review found. Goal is the PRD, context is the list of issues; answers with the whole corrected PRD.'
3
3
  agent: 'Team Lead (OpenCastle)'
4
4
  output: prd
5
+ pipeline: true
5
6
  ---
6
7
 
7
8
  <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
@@ -2,6 +2,7 @@
2
2
  description: 'Write a Product Requirements Document (PRD) from a feature request. The convoy planner breaks the PRD into agent tasks.'
3
3
  agent: 'Team Lead (OpenCastle)'
4
4
  output: prd
5
+ pipeline: true
5
6
  ---
6
7
 
7
8
  <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
@@ -64,8 +64,8 @@ All fixes must pass applicable gates before pushing:
64
64
  1. **Gate 1: Secret Scanning** — scan diff for API keys, tokens, passwords, connection strings — block immediately if found
65
65
  2. **Gate 2: Deterministic Checks** — run lint, test, and build for all affected projects (see the **codebase-tool** skill for commands) — all zero errors
66
66
  3. **Gate 3: Blast Radius Check** — verify changes are scoped to commented files only; flag any files modified outside the comment scope
67
- 4. **Gate 4: Fast Review** (MANDATORY) — single reviewer sub-agent validates the combined PR comment fixes
68
- 5. **Gate 5: Regression Testing** — run tests for all projects consuming modified files
67
+ 4. **Gate 5: Fast Review** (MANDATORY) — single reviewer sub-agent validates the combined PR comment fixes
68
+ 5. **Gate 8: Regression Testing** — run tests for all projects consuming modified files
69
69
 
70
70
  After all gates pass:
71
71
 
@@ -2,6 +2,7 @@
2
2
  description: 'Review a convoy spec for what code cannot check: missing dependencies, missing or redundant tasks. Answers with a JSON verdict.'
3
3
  agent: 'Reviewer'
4
4
  output: validation
5
+ pipeline: true
5
6
  ---
6
7
 
7
8
  <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
@@ -2,6 +2,7 @@
2
2
  description: 'Check a PRD for the structure the convoy planner needs. Answers with a JSON verdict: valid, or the issues to fix.'
3
3
  agent: 'Reviewer'
4
4
  output: validation
5
+ pipeline: true
5
6
  ---
6
7
 
7
8
  <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
@@ -1,16 +1,25 @@
1
- > Parent: [SKILL.md](./SKILL.md)
2
-
3
1
  ## Composite Widgets & Form Error Handling (Reference)
4
2
 
3
+ Composite widgets (menu, listbox, tabs, grid) take one Tab stop and manage focus inside with the arrow keys. Use one of two patterns.
4
+
5
5
  ### Roving tabindex pattern
6
6
 
7
- Use when a composite widget (menu, listbox, tabs) manages focus internally.
7
+ Focus moves onto the items themselves.
8
8
 
9
- 1. Container receives `tabindex="0"` and keyboard handlers.
10
- 2. Children are `tabindex="-1"` except one `tabindex="0"` representing active item.
11
- 3. Arrow keys update `tabindex` values and call `.focus()` on the new active child.
9
+ 1. The focused item has `tabindex="0"`; every other item has `tabindex="-1"`. The container gets no `tabindex`.
10
+ 2. Arrow keys move `tabindex="0"` to the next item and call `.focus()` on it.
11
+ 3. Tabbing out and back returns to the item that last had focus.
12
12
 
13
- Example:
13
+ ```html
14
+ <div role="tablist" aria-label="Settings">
15
+ <button role="tab" id="tab-1" aria-selected="true" tabindex="0">Profile</button>
16
+ <button role="tab" id="tab-2" aria-selected="false" tabindex="-1">Billing</button>
17
+ </div>
18
+ ```
19
+
20
+ ### `aria-activedescendant` pattern
21
+
22
+ Focus stays on the container (`tabindex="0"`); `aria-activedescendant` names the `id` of the visually active child. Update the attribute on arrow navigation.
14
23
 
15
24
  ```html
16
25
  <div role="listbox" tabindex="0" aria-activedescendant="item-1">
@@ -19,13 +28,9 @@ Example:
19
28
  </div>
20
29
  ```
21
30
 
22
- ### `aria-activedescendant` pattern
23
-
24
- When focus remains on a container but a child is visually active, use `aria-activedescendant` referencing the active child's `id`. Update the attribute on arrow navigation.
25
-
26
31
  ### Form error handling
27
32
 
28
- - On validation error, add `aria-invalid="true"` and `aria-describedby="#error-id"` to the input.
33
+ - On validation error, add `aria-invalid="true"` and `aria-describedby="error-id"` to the input (an ID reference, no `#`).
29
34
  - Ensure the error element has role `alert` or is announced by screen readers when it appears.
30
35
  - Move focus to the first invalid control and programmatically announce error summary.
31
36
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: accessibility-standards
3
- description: "WCAG 2.2 Level AA accessibility patterns for React/HTML/CSS. Use when creating or modifying UI components, forms, navigation, tables, images, or any user-facing elements. Covers keyboard navigation, screen reader semantics, low vision contrast, voice access, inclusive language."
3
+ description: "WCAG 2.2 AA rules for HTML, CSS and React: contrast, keyboard, screen-reader semantics, voice access, forms and tables. Use when building or changing UI components, forms, navigation or any user-facing element."
4
4
  ---
5
5
 
6
6
  # Accessibility Standards
@@ -1,5 +1,3 @@
1
- > Parent: [SKILL.md](./SKILL.md)
2
-
3
1
  # Agent Hooks — Detailed Reference
4
2
 
5
3
  ## on-session-start (extended checks)
@@ -15,7 +13,7 @@ In addition to the four checks in SKILL.md:
15
13
 
16
14
  | # | Check | Example Command |
17
15
  |---|-------|-----------------|
18
- | 1 | Tracker issue | `gh issue view TAS-123 || gh issue create --title "TAS-123" --body "AC: ..."` |
16
+ | 1 | Tracker issue | Look it up in the tracker (its skill), or `gh issue view <number>` for GitHub Issues; create it if missing |
19
17
  | 2 | File partition | `rg -n "path:" prompts/* | cut -d: -f2 | sort | uniq -d` |
20
18
  | 3 | Upstream deps | Verify upstream tasks are marked Done in tracker |
21
19
  | 4 | Paths + AC | Include exact file paths (not globs) and acceptance criteria in prompt |
@@ -32,9 +30,9 @@ The delegation is logged once, when it finishes (on-post-delegate) — a delegat
32
30
  | 2 | Fast review | `opencastle log --type review …` — the review record in the **observability-logging** skill |
33
31
  | 3 | CI checks | Lint, typecheck, and test (commands via the **codebase-tool** slot) |
34
32
  | 4 | Verify ACs | Check each acceptance criterion against tracker issue |
35
- | 5 | Track issues | `rg -n "Discovered issue" KNOWN-ISSUES.md || gh issue create` |
33
+ | 5 | Track issues | `rg -n "Discovered issue" .opencastle/KNOWN-ISSUES.md`, else open a tracker issue |
36
34
  | 6 | Lesson check | If agent retried, verify lesson added via **self-improvement** |
37
- | 7 | Close/retry | `gh issue edit TAS-XX --state done` or re-delegate; 3rd failure → `.opencastle/AGENT-FAILURES.md` |
35
+ | 7 | Close/retry | Move the issue to Done in the project's tracker (its skill: linear/jira/trello), or `gh issue close <number>` for GitHub Issues; on FAIL follow **fast-review**'s Handle Verdict table |
38
36
 
39
37
  ## on-session-end (detailed)
40
38
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: agent-hooks
3
- description: "Four lifecycle hooks every agent runs: on-session-start scans LESSONS-LEARNED.md, resumes checkpoints; on-pre-delegate verifies tracker issues, file partitions; on-post-delegate runs fast-review, CI checks; on-session-end runs the health checks, writes logs. Use when starting a new session, running pre-flight checks before delegation, coordinating between agents, reviewing a completed handoff, or wrapping up a session. Trigger terms: multi-agent setup, delegate tasks, agent coordination, session management, run pre-flight checks, start a new session, coordinate between agents, wrap up session"
3
+ description: "Checklists every agent runs at session start and session end, plus the Team Lead's pre- and post-delegation checks. Use when starting, resuming or wrapping up a session."
4
4
  ---
5
5
 
6
6
  # Agent Lifecycle Hooks
@@ -13,6 +13,8 @@ on-session-start → [work loop] → on-session-end
13
13
  on-pre-delegate → on-post-delegate
14
14
  ```
15
15
 
16
+ The tracker is the project's own: its skill (Linear, Jira, Trello) or `gh issue` for GitHub Issues.
17
+
16
18
  ---
17
19
 
18
20
 
@@ -40,7 +42,7 @@ See [HOOKS-REFERENCE.md](HOOKS-REFERENCE.md) for extended startup checks (approv
40
42
  | 1 | `opencastle doctor` |
41
43
  | 2 | `opencastle log --type session ...` |
42
44
  | 3 | Write `.opencastle/SESSION-CHECKPOINT.md` if work is incomplete |
43
- | 4 | Flag for memory merge if 5+ new lessons |
45
+ | 4 | More than 50 lessons in `.opencastle/lessons/` → flag a **memory-merger** pass |
44
46
 
45
47
  ---
46
48
 
@@ -48,9 +50,9 @@ See [HOOKS-REFERENCE.md](HOOKS-REFERENCE.md) for extended startup checks (approv
48
50
 
49
51
  | # | Check |
50
52
  |---|-------|
51
- | 1 | Tracker issue exists (`gh issue view TAS-XX`) |
53
+ | 1 | Tracker issue exists for the task |
52
54
  | 2 | File partition clean (`comm -12 <(sort agent1-files) <(sort agent2-files)` = empty) |
53
- | 3 | Upstream deps Done (`gh issue view TAS-XX --json state -q '.state'` = CLOSED) |
55
+ | 3 | Upstream issues are Done in the tracker |
54
56
  | 4 | Prompt has exact file paths + acceptance criteria |
55
57
  | 5 | Prompt includes "Read LESSONS-LEARNED.md first" |
56
58
  | 6 | 5+ files → load **context-map** skill |
@@ -64,9 +66,9 @@ All 6 must pass before the sub-agent is dispatched. See [HOOKS-REFERENCE.md](HOO
64
66
  | 1 | **⛔** `opencastle log --type delegation …` (the record in **observability-logging**) |
65
67
  | 2 | Run **fast-review** skill |
66
68
  | 3 | Lint, typecheck, and test (commands via the **codebase-tool** slot) |
67
- | 4 | `gh issue view TAS-XX --json body -q '.body'` — verify each AC met |
69
+ | 4 | Verify each acceptance criterion on the tracker issue is met |
68
70
  | 5 | If agent retried → verify lesson added via **self-improvement** |
69
- | 6 | Move to Done or re-delegate; 3rd failure → `.opencastle/AGENT-FAILURES.md` |
71
+ | 6 | Move the issue to Done in the tracker, or follow **fast-review**'s Handle Verdict table |
70
72
 
71
73
  See [HOOKS-REFERENCE.md](HOOKS-REFERENCE.md) for detailed verification commands.
72
74
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: api-patterns
3
- description: "Creates API route handlers, implements Server Actions with Zod schema validation, integrates external REST APIs with error handling. Use when adding endpoints, building request handlers, or wiring external services (endpoint, REST API, request handling, fetch, .ts route files)."
3
+ description: "Patterns for Server Actions, route handlers with schema validation, and calls to external REST APIs. Use when adding an endpoint or Server Action, or wiring an external API."
4
4
  ---
5
5
 
6
6
  # API Patterns
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: code-commenting
3
- description: "Guidelines for writing self-explanatory code with minimal comments. Covers when to comment (WHY not WHAT), anti-patterns to avoid, annotation tags, public API documentation. Use when writing or reviewing code comments, docstrings, TODO/FIXME tags, code readability, or inline comments."
3
+ description: "When and how to comment code: the why over the what, annotation tags, public API docs and anti-patterns. Use when writing or reviewing comments, docstrings or TODO/FIXME tags."
4
4
  ---
5
5
 
6
6
  # Code Commenting
@@ -1,5 +1,3 @@
1
- > Parent: [SKILL.md](./SKILL.md)
2
-
3
1
  Full context-map template, partition derivation, and Team Lead integration.
4
2
 
5
3
  ## Context Map Template
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: context-map
3
- description: "Maps file dependencies, flags shared imports, groups files for safe parallel editing before code changes. Use when planning a refactoring, analyzing change impact, or understanding which files a modification will affect."
3
+ description: "Maps which files a change touches, their importers and shared dependencies, and groups them for safe parallel editing. Use when planning a refactor or a change across 5+ files, or partitioning files between agents."
4
4
  ---
5
5
 
6
6
  # Skill: Context Map
@@ -25,7 +25,7 @@ Identify files that MUST change from task description.
25
25
  Find consumers of entry-point exports:
26
26
  ```bash
27
27
  rg -n "import .*from .*libs/auth" # find importers
28
- rg -n "\bAuthCard\b" --type ts --type tsx # find component consumers
28
+ rg -n "\bAuthCard\b" --type ts # find component consumers (ts covers .tsx)
29
29
  rg -n "auth.*route|/auth" # find route references
30
30
  ```
31
31
  If the assistant exposes a code-usage lookup (find-references), prefer it for
@@ -1,8 +1,6 @@
1
- > Parent: [SKILL.md](./SKILL.md)
2
-
3
1
  ## Data Engineering Reference
4
2
 
5
- This file contains detailed code examples and schemas migrated from the skill doc.
3
+ Starters to adapt when `.opencastle/stack/data-pipeline-config.md` names no script of its own. Replace the URL, selectors and schema with the project's.
6
4
 
7
5
  ### Minimal Scraper: `scrape-to-ndjson.js` (Playwright)
8
6
 
@@ -26,6 +24,8 @@ const out = process.argv[2] || 'data.ndjson';
26
24
  })();
27
25
  ```
28
26
 
27
+ Usage: `node scrape-to-ndjson.js data.ndjson`.
28
+
29
29
  ### NDJSON Validator: `validate-ndjson.js` (Node)
30
30
 
31
31
  ```js
@@ -47,9 +47,3 @@ let line = 0; let errors = 0;
47
47
  console.log('OK');
48
48
  })();
49
49
  ```
50
-
51
- ### NDJSON Schema
52
-
53
- For project-specific schemas, add JSON Schema files here.
54
-
55
- Last Updated: 2026-03-31
@@ -1,31 +1,24 @@
1
1
  ---
2
2
  name: data-engineering
3
- description: "Transforms, validates, loads data in ETL pipelines. Use when building scrapers, validating NDJSON feeds, or importing data into CMS/DB targets."
3
+ description: "Method for scraping, transforming, validating and loading data through NDJSON. Use when building a scraper or ETL step, validating an NDJSON feed, or importing data into a CMS or database."
4
4
  ---
5
5
 
6
6
  # Data Engineering
7
7
 
8
- Project-specific sources, full schema, full scraper and extended validator: [REFERENCE.md](./REFERENCE.md).
8
+ The project's sources, record schema, scripts and commands live in `.opencastle/stack/data-pipeline-config.md`. Use those names; when a script it lists does not exist, write it rather than guessing at one. Starter scraper and validator: [REFERENCE.md](./REFERENCE.md).
9
9
 
10
10
  ## Scraper
11
11
 
12
- Headless browser cluster (Puppeteer Cluster / Playwright) with `retryLimit: 3`, `retryDelay: 5000`, `timeout: 30000`, `args: ['--no-sandbox', '--disable-setuid-sandbox']`.
12
+ Headless browser (Playwright, or Puppeteer Cluster for volume) with retries and a per-page timeout, so one slow page does not stall the run.
13
13
 
14
14
  ## NDJSON Output
15
15
 
16
- One record per line. Required: `name` (preserve original encoding), `lat`/`lng`, `address` (full text), `source` (e.g. `google-maps`), `sourceId` (source-unique), `category`. Optional: `rating`, `reviewCount`, `phone`, `website`, `openingHours`, `photos`, `priceLevel`.
16
+ One record per line, valid JSON, fields as the project's schema names them. Every record carries a source-unique ID (e.g. `source` + `sourceId`) to deduplicate and import on; keep text in its original encoding.
17
17
 
18
18
  ## Pipeline
19
19
 
20
- ```bash
21
- node ./scripts/scrape-to-ndjson.js --out=data.ndjson --pages=100
22
- node ./scripts/validate-ndjson.js data.ndjson
23
- node ./scripts/dry-import.js data.ndjson --target=staging
24
- node ./scripts/import.js data.ndjson --target=production
25
- ```
26
-
27
- 1. Scrape a `--dry-run` sample of 50–200 records; require expected fields and geo data. Otherwise fix extractor selectors and re-run the sample.
28
- 2. Validate NDJSON line-by-line (JSON parse + schema): require 0 parse errors, all required fields. Isolate failures with `ndjson-filter`, inspect source HTML.
29
- 3. Dry-run import to staging with `createOrReplace` disabled: counts within ±5% of expectation, no duplicates. Otherwise revert staging and adjust the dedupe key.
30
- 4. Snapshot the target (timestamped export) before writing.
31
- 5. Import with idempotent keys; revert to the snapshot on failure.
20
+ 1. **Scrape** a sample of 50–200 records first; check it has the schema's required fields. Missing fields → fix the extractor selectors and re-run the sample.
21
+ 2. **Validate** every line (JSON parse + schema): 0 parse errors, all required fields. Isolate failing lines and inspect their source HTML.
22
+ 3. **Dry-run** the import against a staging target: counts within ±5% of expectation, no duplicates. Otherwise reset staging and adjust the dedupe key.
23
+ 4. **Snapshot** the target (timestamped export) before writing.
24
+ 5. **Import** with idempotent upserts keyed on the source ID; restore the snapshot on failure.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: decomposition
3
- description: "Resolves task dependencies, generates machine-actionable delegation specs, structures phased subtask plans for multi-agent work. Use when writing delegation specs, resolving task dependencies, building phased subtask plans for multi-agent work, assigning work to sub-agents, or partitioning a feature into parallelizable phases."
3
+ description: "Breaks a feature into phased subtasks by dependency and writes the delegation spec for each. Use when planning delegations for multi-agent work, ordering dependent tasks, or splitting a feature into parallel phases."
4
4
  ---
5
5
 
6
6
  # Task Decomposition
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: deployment-infrastructure
3
- description: "Configures deployment pipelines, manages environment variables, schedules cron jobs, applies security headers, implements caching strategies. Use when working with Docker, Vercel, AWS, Dockerfile, nginx.conf, or platform deployment configs."
3
+ description: "Deployment pipelines, environment variables, cron routes, caching headers, releases and rollback. Use when changing CI/CD or platform deploy config (Docker, Vercel, AWS, nginx), env vars or cache headers, or rolling back a release."
4
4
  ---
5
5
 
6
6
  # Deployment Infrastructure
@@ -15,7 +15,7 @@ Validate the whole environment with one Zod schema at startup, not at point of u
15
15
 
16
16
  ## CI/CD Pipeline
17
17
 
18
- `main` → production, `feature/*` and `fix/*` → preview, all automatic. Stages in order: install (always `--frozen-lockfile` in CI) → lint → test → production build → deploy.
18
+ `main` → production, every other branch (`feat/*`, `fix/*`, …) → preview, all automatic. Stages in order: install (always `--frozen-lockfile` in CI) → lint → test → production build → deploy.
19
19
 
20
20
  Cron route handlers must return 401 unless the `authorization` header equals `Bearer ${process.env.CRON_SECRET}`.
21
21
 
@@ -37,6 +37,6 @@ Load **security-hardening** skill for full CSP inventory and header configuratio
37
37
 
38
38
  ## Release & Rollback
39
39
 
40
- Gate a release on lint + test + build all exiting 0 and no draft PRs, then semver-tag with a changelog categorized Features / Fixes / Breaking. Verify with `curl -sI https://example.com | grep -E 'HTTP|Strict'` — homepage 200, headers correct.
40
+ Gate a release on lint + test + build all exiting 0 and no draft PRs, then semver-tag with a changelog in the **documentation-standards** format. Verify with `curl -sI https://example.com | grep -E 'HTTP|Strict'` — homepage 200, headers correct.
41
41
 
42
- A failed release gets rolled back immediately, not patched forward. Prefer platform rollback (promote last good deploy) over `git revert -m 1 HEAD && git push`; re-run the `curl -sI` check before calling it resolved.
42
+ A failed release gets rolled back immediately, not patched forward: the platform's instant rollback (e.g. Vercel or Netlify, promote the last good deploy) first, then a revert PR (`git revert`, on a branch) so `main` matches what runs. Re-run the `curl -sI` check before calling it resolved.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: documentation-standards
3
- description: "Scaffolds issue docs, ADRs, README outlines, changelog entries, roadmap updates, Mermaid architecture diagrams using project templates. Use when drafting ADR, writing changelog, updating roadmap after a feature ships, creating README for a new library, or diagramming a system flow."
3
+ description: "Templates for issue docs, ADRs, roadmap entries, changelogs and Mermaid diagrams. Use when drafting an ADR, a changelog entry or a known-issue doc, updating the roadmap after a feature ships, or diagramming a system."
4
4
  ---
5
5
 
6
6
  # Documentation Standards
@@ -9,13 +9,15 @@ The project's own documents: Key Documentation in `.opencastle/project.instructi
9
9
 
10
10
  ## Templates
11
11
 
12
+ Write the prose in each by the **technical-writing** and **unslop** skills.
13
+
12
14
  **Issue doc** — `### ISSUE-ID: Brief Description`, then: Issue ID, Status (Known Limitation | Fixed | Workaround Available), Severity (Critical | High | Medium | Low), Impact, Problem, Root Cause, Solution Options (numbered, each with Pros/Cons), Related Files (path — what it does).
13
15
 
14
16
  **ADR** — `## ADR-NNN: Decision Title`, then: Date, Status (Accepted | Superseded | Deprecated), Context, Decision, Consequences, Alternatives Considered.
15
17
 
16
18
  **Roadmap completion** — add a `COMPLETE` row: feature, `Completed: YYYY-MM-DD | Owner: @handle`, files changed with rationale, validation command plus exit status. Then move it to the `Completed` section with a one-line release note.
17
19
 
18
- **Changelog** — under a `## [1.2.0] — YYYY-MM-DD` heading, group by Conventional Commits type (Added / Fixed / Changed), one imperative line per change with its PR or issue number, most recent version first.
20
+ **Changelog** — under a `## [1.2.0] - YYYY-MM-DD` heading, group changes as Added / Changed / Fixed / Removed, one imperative line per change with its PR or issue number, most recent version first. Breaking changes lead their group.
19
21
 
20
22
  ## Mermaid Diagrams
21
23
 
@@ -1,5 +1,3 @@
1
- > Parent: [SKILL.md](./SKILL.md)
2
-
3
1
  # Fast Review — Reviewer Prompt Template
4
2
 
5
3
  ```markdown
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: fast-review
3
- description: "Mandatory post-delegation gate: checks output completeness, verifies acceptance criteria compliance, flags regressions, produces PASS/FAIL verdict. Use when checking delegated work against acceptance criteria, running post-delegation gate, validating agent output before acceptance, verifying sub-agent completed its assignment, or running post-delegation QA check."
3
+ description: "Mandatory single-reviewer PASS/FAIL gate on delegated work, and the retry and escalation ladder every skill follows. Use after a delegation returns, before accepting its output."
4
4
  ---
5
5
 
6
6
  # Skill: Fast Review
@@ -12,8 +12,7 @@ description: "Mandatory post-delegation gate: checks output completeness, verifi
12
12
  | Trigger | After **every** delegation — no exceptions |
13
13
  | Reviewer | Single sub-agent; Economy tier (Standard for premium/security work) |
14
14
  | Verdict | PASS or FAIL with structured feedback |
15
- | Retry | ≤2 retries on FAIL; 3rd FAIL → panel review |
16
-
15
+ | Retry & escalation | The Handle Verdict table below, the one ladder every skill refers to |
17
16
 
18
17
  ## Procedure
19
18
 
@@ -58,9 +57,10 @@ CONFIDENCE: low | medium | high
58
57
  | Outcome | Action |
59
58
  |---------|--------|
60
59
  | PASS | Log review; continue |
61
- | FAIL 1–2 | Log; re-delegate same agent: "Retry N/2 — address listed issues" |
60
+ | FAIL 1–2 | Log; re-delegate same agent with the reviewer's feedback: "Retry N/2 — address listed issues" |
62
61
  | FAIL 3 | Log `escalated: true`; load **panel-majority-vote** skill |
63
62
  | Panel BLOCK ×3 | Dispute in `.opencastle/DISPUTES.md` (see **team-lead-reference** § Dispute Protocol) |
63
+ | Tool/runtime failure ×2 (crash, timeout, empty or off-topic output) | Entry in `.opencastle/AGENT-FAILURES.md` (see **team-lead-reference** § Dead Letter Queue Format) |
64
64
 
65
65
  ## Logging
66
66
 
@@ -74,7 +74,7 @@ npx opencastle log --type review --tracker_issue PRJ-42 --agent Developer \
74
74
 
75
75
  ## Integration & Overnight Mode
76
76
 
77
- `on-post-delegate` Gate 5 (after deterministic Gates 1–4), ~5–15% token overhead. Overnight: upgrade one tier, escalate after 2 FAILs, checkpoint before panel.
77
+ `on-post-delegate` Gate 5 (after deterministic Gates 1–4), ~5–15% token overhead. Overnight: upgrade one tier, checkpoint before panel.
78
78
 
79
79
  ## Anti-Patterns
80
80
 
@@ -1,36 +1,14 @@
1
- > Parent: [SKILL.md](./SKILL.md)
2
-
3
- Frontend Design REFERENCE: detailed principles, typography catalogue, tokens, and component patterns.
4
-
5
- Last Updated: 2026-03-31
1
+ Frontend Design REFERENCE: the principles behind each dimension of a design.
6
2
 
7
3
  ## Design Principles (extended)
8
4
 
9
5
  | Dimension | Rule |
10
6
  |-----------|------|
11
- | Direction | Pick an extreme aesthetic (brutally minimal, maximalist, retro-futuristic, luxury, brutalist, art deco, editorial…) and commit fully. Name it in 2–3 words. |
12
- | Typography | Characterful display+body pair. No Inter/Roboto/Arial. `clamp()` fluid scale; heading lh ~1.1–1.2, body lh ~1.5–1.7; letter-spacing on uppercase/small. |
7
+ | Direction | Pick a direction the subject suggests (brutally minimal, maximalist, retro-futuristic, luxury, brutalist, art deco, editorial…) and commit fully. Name it in 2–3 words. |
8
+ | Typography | Characterful display+body pair chosen for the subject; avoid Inter/Roboto/Arial defaults. `clamp()` fluid scale; heading lh ~1.1–1.2, body lh ~1.5–1.7 (serif body a little more); lines under ~80 characters. |
13
9
  | Color | CSS vars only; dominant + sharp accent hierarchy; WCAG AA (4.5:1 body, 3:1 large); dark/light both intentional. |
14
- | Motion | CSS-only for HTML; Motion library for React; staggered page entrance; custom easing; `prefers-reduced-motion` fallback. |
10
+ | Motion | CSS-only for HTML; Motion library for React. Motion only to draw attention: one orchestrated page-load sequence or one reveal, custom easing, `prefers-reduced-motion` fallback. |
15
11
  | Layout | Asymmetry, overlap, diagonal flow, grid-breaking. Consistent spacing tokens — no ad-hoc values. Holds at mobile/tablet/desktop. |
16
- | Atmosphere | Gradient meshes, noise textures, geometric patterns, layered transparencies, dramatic shadows. No purple-on-white defaults. |
17
-
18
- ## Typography Pairings (catalogue)
19
-
20
- | Aesthetic | Display | Body | Mood |
21
- |-----------|---------|------|------|
22
- | Editorial luxury | Playfair Display | Source Serif 4 | Authoritative, rich |
23
- | Swiss precision | Darker Grotesque | IBM Plex Sans | Sharp grotesque |
24
- | Warm humanist | Fraunces | Nunito Sans | Friendly, approachable |
25
- | Brutalist edge | Monument Extended | JetBrains Mono | Raw technical power |
26
- | Art nouveau organic | Cormorant Garamond | Lora | Flowing, calligraphic |
27
- | Retro-futuristic | Syne | Outfit | Geometric boldness |
28
-
29
- ## Tokens & Patterns
30
-
31
- See `COMPONENTS.md` for tokens and component code snippets. This reference holds the rationale and extended examples used across projects.
32
-
33
- ## Usage
12
+ | Atmosphere | Gradient meshes, noise textures, geometric patterns, layered transparencies, dramatic shadows, each only where it serves the direction. |
34
13
 
35
- - Use these tables to choose a type system and enforce token fallbacks.
36
- - Link lessons and PRs that change foundational tokens to the `project-consistency` skill guidance.
14
+ Link lessons and PRs that change foundational tokens to the **project-consistency** skill guidance.