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
@@ -1,23 +1,33 @@
1
1
  ---
2
2
  name: frontend-design
3
- description: "Defines named visual aesthetic, selects typography pairings, builds CSS token systems, adds entrance animations for high-design-quality pages. Use when user asks to design landing page, style marketing site, create distinctive UI theme, pick fonts, or add CSS animations — specifically when visual polish, brand identity matter rather than generic component scaffolding."
3
+ description: "Visual direction for distinctive pages: a named aesthetic, type pairing, color and spacing tokens, and motion. Use when designing a landing page, marketing site or UI theme where the look itself matters, not when scaffolding components."
4
4
  ---
5
5
 
6
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
6
+ # Frontend Design
7
7
 
8
8
  ## Design Workflow
9
9
 
10
- 1. Name the aesthetic in 2–3 words in a comment at the top of the main CSS file; commit to it.
11
- 2. Define every color, space, and radius as a `:root` custom property; build components from those tokens only — no ad-hoc values.
12
- 3. Wrap entrance animations in `@media (prefers-reduced-motion: no-preference)`; keep key animations under 500ms.
13
- 4. Verify before marking done: contrast ≥4.5:1 body text and ≥3:1 large text, no overflow at mobile sizes.
10
+ 1. **Ground it in the subject.** Read the brief and the product: who it is for, what it sells, what it should feel like.
11
+ 2. **Write a short plan** in a comment at the top of the main CSS file: the aesthetic named in 2–3 words, 4–6 named colors, the type pairing and the role of each face, one sentence per layout, and the one unforgettable detail.
12
+ 3. **Critique the plan against the brief** before writing code. Every choice that would fit any other product, or matches a tell below, gets replaced.
13
+ 4. Define every color, space, and radius as a `:root` custom property; build components from those tokens only — no ad-hoc values.
14
+ 5. Wrap motion in `@media (prefers-reduced-motion: no-preference)`; keep key animations under 500ms.
15
+ 6. Verify before marking done: contrast ≥4.5:1 body text and ≥3:1 large text, no overflow at mobile sizes.
14
16
 
15
- **Every design must have one unforgettable detail. No two designs should look alike.**
17
+ ## Avoid the generic look
16
18
 
17
- Card patterns, hero animations, extended token sets: [COMPONENTS.md](./COMPONENTS.md). Design principles, typography catalogue, example constraints: [REFERENCE.md](./REFERENCE.md).
19
+ These read as AI-generated on sight:
20
+
21
+ - A fade-and-slide-up (`fadeUp`) entrance on every section, or a staggered hero reveal. Use one orchestrated page-load moment, or none.
22
+ - Glass cards, and identical rounded cards with a soft grey shadow (`rgba(0,0,0,.12)`) that lift on hover.
23
+ - A near-black background with a single bright orange, acid-green or vermilion accent; a cream background with a serif display and terracotta.
24
+ - Inter, Roboto, Arial or the system stack as the display face; purple gradients on white.
25
+ - Template chrome: tracked all-caps labels, middle-dot metadata, one accented word in the headline.
26
+
27
+ Design principles and the reasoning behind them: [REFERENCE.md](./REFERENCE.md).
18
28
 
19
29
  ## Typography
20
30
 
21
- Always ship a metric-preserving fallback chain (e.g. `'Fraunces', 'Georgia', serif`).
31
+ Choose a pairing that fits the subject. Always ship a metric-preserving fallback chain (e.g. `'Fraunces', 'Georgia', serif`).
22
32
 
23
33
  > Load **project-consistency** skill for the full Foundation Phase pattern and prompt templates.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: git-workflow
3
- description: "Defines branch naming conventions, PR template requirements, commit message format, discovered-issues escalation policy, task tracking conventions. Load when committing, pushing, or opening PRs."
3
+ description: "Branch naming, commit messages, PR creation and the discovered-issues policy. Use when branching, committing, pushing or opening a PR."
4
4
  ---
5
5
 
6
6
  # Git Workflow & Delivery
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: memory-merger
3
- description: "Reviews mature lessons in .opencastle/lessons/, rewrites them as permanent rules in skill/instruction files, archives graduated lessons with opencastle lesson archive. Use when graduating lessons into skills, promoting validated lessons, updating skills from past learnings, archiving mature lessons, codifying repeated patterns, or cleaning up a crowded lessons index."
3
+ description: "Graduates mature lessons from .opencastle/lessons/ into permanent rules in skill or instruction files, then archives them. Use when the lessons index grows past 50, or a lesson has proven itself and belongs in a skill."
4
4
  ---
5
5
 
6
6
  # Memory Merger
@@ -8,20 +8,18 @@ description: "Reviews mature lessons in .opencastle/lessons/, rewrites them as p
8
8
 
9
9
  ## Run Criteria
10
10
 
11
- Combined signals to identify merge candidates.
11
+ Run a pass when `.opencastle/lessons/` holds more than 50 lessons. A lesson is a merge candidate when it meets one or more of these, each checkable from its file:
12
12
 
13
- | Criterion | Signal / Threshold |
14
- |-----------|--------------------|
15
- | Volume | More than 50 lessons in `.opencastle/lessons/` |
16
- | Reference count | Referenced 3+ times across sessions |
17
- | Age | >60 days and still relevant |
18
- | Category cluster | 5+ lessons in same category |
19
- | Severity | Marked `high` or blocking |
20
- | Discretionary | Curator / maintainer judgement (stale file) |
13
+ | Criterion | Check |
14
+ |-----------|-------|
15
+ | Age | `added:` more than 60 days ago, and the lesson still holds |
16
+ | Valid citation | Its cited files still exist and `opencastle doctor` reports no changed citation (or `verified:` is recent) |
17
+ | Recurrence | Two or more lessons describe the same problem, or 5+ share a category |
18
+ | Severity | `severity: high`, or the lesson blocked work |
21
19
 
22
20
  ## Workflow (numbered)
23
21
 
24
- 1. Scan `.opencastle/lessons/` for candidate lessons (frequency, severity, age — `added:` in each file).
22
+ 1. Scan `.opencastle/lessons/` for candidate lessons by the criteria above.
25
23
  2. Map each candidate to target file, section.
26
24
  3. Draft exact edit (concise rule or example).
27
25
  4. Apply edit with attribution comment.
@@ -57,11 +55,11 @@ The lesson keeps its file, is marked archived with where it went, and moves to t
57
55
  ### Automating the scan
58
56
 
59
57
  ```sh
60
- # Lessons referenced 3+ times across sessions (ids are LES-NNN or YYYY-MM-DD-title)
61
- rg -o '"lessons_added":\[[^]]*\]' .opencastle/logs/events.ndjson | rg -o '"[A-Za-z0-9-]+"' | sort | uniq -c | awk '$1 >= 3'
62
-
63
58
  # Oldest lessons first — candidates once past 60 days
64
59
  rg -H '^added:' .opencastle/lessons/ | sort -t'"' -k2 | head -20
60
+
61
+ # Categories with 5+ lessons
62
+ rg -o --no-filename '^category: *.*' .opencastle/lessons/ | sort | uniq -c | awk '$1 >= 5'
65
63
  ```
66
64
 
67
65
  ## Quality Gates (validation checkpoints)
@@ -73,7 +71,7 @@ rg -H '^added:' .opencastle/lessons/ | sort -t'"' -k2 | head -20
73
71
 
74
72
  ## Anti-Patterns
75
73
 
76
- - Merge too eagerly — must meet 3+ references or 60+ day threshold
74
+ - Merge too eagerly — a lesson younger than 60 days needs recurrence or high severity to qualify
77
75
  - Copy verbatim — rewrite as rules/guidelines, not incident reports
78
76
  - Merge conflicting lessons — resolve conflict first
79
77
  - Create new files for merged content — merge INTO existing files only
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: observability-logging
3
- description: "Logs sessions, tracks activity, records delegation decisions, and stores review/dispute outcomes as NDJSON audit trails. Use when logging session activity, tracking work, recording decisions, building audit trails, capturing delegation history, or running pre-response verification checklists. Trigger terms: log, track activity, audit trail, session record, delegation log, NDJSON"
3
+ description: "Records sessions, delegations, reviews, panels and disputes as NDJSON with opencastle log, plus the pre-response quality gate. Use at the end of every session and after every delegation, review, panel or dispute."
4
4
  ---
5
5
 
6
6
  # Observability Logging
@@ -1,24 +1,20 @@
1
- > Parent: [SKILL.md](./SKILL.md)
2
-
3
1
  ## Agent Health Monitoring
4
2
 
5
3
  ### Health Signals
6
4
 
7
- | Signal | Threshold | Recovery |
5
+ | Signal | Observable | Recovery |
8
6
  |--------|-----------|----------|
9
- | **Stuck** — no output/changes | Sub: 5 min / BG: 15 min | Nudge; if frozen, abort + re-delegate with simpler scope |
10
- | **Looping** — same error repeated | 3 consecutive failures | Abort; add context; re-delegate with explicit fix path |
7
+ | **Stuck** — no progress | No new tool call, file change or output between two checks | Nudge; if frozen, abort + re-delegate with simpler scope |
8
+ | **Looping** — same error repeated | The same failing command or error 3 times in a row | Abort; add context; re-delegate with explicit fix path |
11
9
  | **Scope creep** — files outside partition | Any | Redirect: "Only modify files in [partition]. Revert [file]." |
12
10
  | **Context exhaustion** — confused/repetitive | Visible instruction amnesia | Checkpoint, end session, resume in fresh context |
13
11
  | **Permission loop** — waiting for input | 2+ prompts without progress | Auto-approve if safe; abort + re-delegate |
14
12
 
15
- **Cadence:** Sub-agents — continuous (real-time). Background agents — check at 10 min, then every 10 min. Always review full diff before accepting.
13
+ **Cadence:** Sub-agents — every tool result. Background agents — whenever the assistant reports progress or completion, and `opencastle convoy` for convoy runs. Always review full diff before accepting.
16
14
 
17
15
  ### Escalation Path
18
16
 
19
- 1. **Failure 1:** Re-delegate with more specific prompt + error context
20
- 2. **Failure 2:** Downscope (split into smaller pieces), re-delegate
21
- 3. **Failure 3:** Log to `.opencastle/AGENT-FAILURES.md`; if 3× panel BLOCK or conflict, create dispute in `.opencastle/DISPUTES.md` (see **team-lead-reference** § Dispute Protocol)
17
+ Review failures (fast-review FAIL, panel BLOCK) follow the **fast-review** Handle Verdict table. Tool or runtime failures (crash, timeout, MCP down, empty output): retry once with more context, downscoped if needed; after the 2nd failed attempt log to `.opencastle/AGENT-FAILURES.md`.
22
18
 
23
19
  ## Error Recovery Playbook
24
20
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: orchestration-protocols
3
- description: "Coordinate multiple agents: parallel spawning, health monitoring, circuit breakers, escalation. Use for parallel agents, agent timeouts, fan-out tasks, multi-agent delegation."
3
+ description: "Runtime patterns for running agents in parallel: steering, background agents, parallel research, health signals, circuit breakers and convoy runs. Use when agents run in parallel, stall, loop or fail repeatedly."
4
4
  ---
5
5
 
6
6
  # Orchestration Protocols
@@ -23,14 +23,14 @@ When redirecting, state *why* + *how*:
23
23
 
24
24
  > "Don't modify `libs/data/src/lib/product.ts` — shared across features. Add the new query in `libs/data/src/lib/reviews.ts`."
25
25
 
26
- **Sub-agents:** steer live, within the first 5 min. **Background agents:** no live steering — front-load prompt specificity, partition constraints, acceptance criteria checklists.
26
+ **Sub-agents:** steer live, at the first off-course tool call or file edit. **Background agents:** no live steering — front-load prompt specificity, partition constraints, acceptance criteria checklists.
27
27
 
28
28
  ## Background Agents
29
29
 
30
- Run autonomously in isolated Git worktrees. Reserve for well-scoped tasks >5 min with clear acceptance criteria.
30
+ Run autonomously in isolated Git worktrees. Reserve for well-scoped tasks with clear acceptance criteria that need no decisions from you mid-run.
31
31
 
32
- - **Spawn:** Delegate Session → Background → Select agent → Enter prompt
33
- - **Interrupted:** `opencastle convoy resume` picks up where the run stopped
32
+ - **Spawn:** start a background agent with whatever the assistant offers (a background or cloud agent, a worktree session)
33
+ - **Interrupted convoy:** `opencastle convoy resume` picks up where the run stopped
34
34
 
35
35
  ## Parallel Research Protocol
36
36
 
@@ -115,6 +115,6 @@ tail -n 50 .opencastle/logs/events.ndjson | jq -c 'select(.outcome != "success")
115
115
  | During-run | Watch for failures | `opencastle convoy dashboard` |
116
116
  | Pre-merge | No task left failed or gate-failed | `opencastle convoy --json \| jq -e '.failed == 0'` |
117
117
  | Unfinished | Nothing failed, skipped or left running | `opencastle convoy --json \| jq -e '.done == .total'` |
118
- | Post-merge | Lint + smoke tests pass | `npm run lint && npm test -- -t "smoke"` |
118
+ | Post-merge | Lint + smoke tests pass | The project's lint and smoke-test commands (Key Commands in `.opencastle/project.instructions.md`) |
119
119
  | Blocker | Any failure | Block merge; reopen to original researcher(s) |
120
120
 
@@ -1,5 +1,3 @@
1
- > Parent: [SKILL.md](./SKILL.md)
2
-
3
1
  ## Panel — Weighted Consensus Variant (Reference)
4
2
 
5
3
  ### When to Use
@@ -49,5 +47,3 @@ Example: Security Expert + high = 4; Architect + med = 2.
49
47
  - BLOCK: X (reviewers: ...)
50
48
  - **Overall: PASS/BLOCK** (weighted)
51
49
  ```
52
-
53
- Last Updated: 2026-03-31
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: panel-majority-vote
3
- description: "Runs 3 isolated reviewer sub-agents; consolidates PASS/BLOCK verdict by majority. Use when user requests independent review of code changes, pull requests, design documents, or release notes."
3
+ description: "Three isolated reviewers vote PASS or BLOCK; the majority decides. Use on the 3rd fast-review FAIL, for security-sensitive changes or database migrations, or when someone asks for an independent multi-reviewer panel."
4
4
  ---
5
5
 
6
6
  # Skill: Panel majority vote
@@ -1,5 +1,3 @@
1
- <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
2
-
3
1
  # Panel Report
4
2
 
5
3
  ## Context
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: performance-optimization
3
- description: "Profiles, reduces frontend/backend costs: split bundles, optimize assets, apply caching, fix Core Web Vitals regressions. Use when profiling Lighthouse/CI regressions, reducing bundle size, or fixing high CLS/LCP/TTI metrics."
3
+ description: "Profiles and fixes frontend and backend performance: bundle size, assets, caching and Core Web Vitals. Use when a Lighthouse or CI perf check regresses, a bundle grows, or LCP, INP, CLS or TBT is too high."
4
4
  ---
5
5
 
6
6
  # Performance Optimization
@@ -16,7 +16,7 @@ Measure before changing anything. Add `React.memo`/`useMemo`/`useCallback` only
16
16
 
17
17
  ## Profiling Workflow
18
18
 
19
- 1. Lighthouse (or the CI perf job) for a baseline; name the failing metric (LCP/CLS/INP/TTI). Lighthouse emulates mobile by default; pass `--preset=desktop` when the regression is desktop-only.
19
+ 1. Lighthouse (or the CI perf job) for a baseline; name the failing metric (LCP, CLS, TBT; INP needs field data or a Lighthouse timespan run with real interactions). Lighthouse emulates mobile by default; pass `--preset=desktop` when the regression is desktop-only.
20
20
  2. Profile to locate the hotspot call stacks / long tasks.
21
21
  3. Apply the minimal fix (code-split, memoize, shrink payloads, defer non-critical work); confirm in the profiler that the measured hotspot actually shrank.
22
22
  4. Re-run Lighthouse / the CI perf job. Ship only at ≥10% improvement or once inside budget.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: project-consistency
3
- description: "Generates shared CSS variables, validates component naming conventions, creates layout pattern templates. Use when coordinating design system, theme, consistent styling, CSS variables, or component library across parallel agents."
3
+ description: "Foundation-first pattern that keeps parallel UI work consistent: shared tokens, layout and UI components built before any page. Use when several agents build UI at once, or a design system or theme is being set up."
4
4
  ---
5
5
 
6
6
  # Project Consistency
@@ -50,7 +50,7 @@ Prompt templates: see [TEMPLATES.md](./TEMPLATES.md).
50
50
  --color-primary-600: #0284c7;
51
51
 
52
52
  /* Typography */
53
- --font-base: Inter, system-ui, -apple-system, sans-serif;
53
+ --font-base: 'Source Sans 3', system-ui, sans-serif; /* the pairing chosen in frontend-design */
54
54
  --text-sm: 0.875rem;
55
55
  --text-base: 1rem;
56
56
 
@@ -1,5 +1,3 @@
1
- > Parent: [SKILL.md](./SKILL.md)
2
-
3
1
  ## Prompt Templates — Foundation & Page Tasks
4
2
 
5
3
  ### Foundation Setup — Prompt (copy-paste)
@@ -35,5 +33,3 @@ Create `[path]/ui/`: Button, Card, Heading, Text, Link, Section, Container, Grid
35
33
  - Copy the appropriate template into the foundation or page task tracker issue.
36
34
  - Replace bracketed placeholders (`[path]`, `[Aesthetic]`) with exact values from the foundation task outputs.
37
35
  - Attach paths to tokens, Layout, and UI component library explicitly in the prompt.
38
-
39
- Last Updated: 2026-03-31
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  name: react-development
3
- description: "Enforces React-specific patterns: functional components with hooks, TypeScript prop interfaces, CSS Modules co-location, React Testing Library behavioral tests. Use when creating React components, writing custom hooks, structuring component folders, applying RTL test patterns, or wiring TypeScript prop types. Trigger terms: React, .tsx, component, hook, RTL, jsx, useState, useEffect, prop interface"
3
+ description: "React conventions for components, hooks, prop types, styling and React Testing Library tests. Use when creating or changing React components or hooks, or writing their tests."
4
4
  ---
5
5
 
6
6
  # React Development Standards
7
7
 
8
8
  ## Conventions
9
9
 
10
- - One component per file: `ComponentName.tsx` inside its feature folder, co-located with `ComponentName.module.scss` and `ComponentName.test.tsx`.
10
+ - One component per file: `ComponentName.tsx` inside its feature folder, co-located with its styles and `ComponentName.test.tsx`.
11
11
  - Export the props type as `ComponentNameProps`; PascalCase component names.
12
- - Styling: CSS Modules (`.module.scss`), Sass variables/mixins pulled from the shared libraries, CSS custom properties for theming.
12
+ - Styling: follow the project's approach (CSS Modules, Tailwind, …), its shared tokens, and CSS custom properties for theming.
13
13
  - `strict` stays enabled in `tsconfig.json`; no `as` casts.
14
14
  - Tests: React Testing Library on the runner bound to the **testing** capability slot, mocking external deps and API calls.
15
15
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: security-hardening
3
- description: "Security architecture: authentication, authorization, RLS policies, CSP, input validation, API security. Use when implementing auth flows, writing RLS policies, configuring CSP/headers, validating inputs, or auditing security. Trigger terms: RLS, CSP, Server Actions, Zod, auth flow"
3
+ description: "Security rules for authentication, authorization, RLS policies, CSP and headers, input validation and API routes. Use when building an auth flow, writing RLS policies, setting CSP or security headers, validating input, or auditing security."
4
4
  ---
5
5
 
6
6
  # Security Hardening
@@ -9,9 +9,9 @@ description: "Security architecture: authentication, authorization, RLS policies
9
9
 
10
10
  Resolve the auth library via the **database** capability slot in the skill matrix.
11
11
 
12
- - Every sign in/up/out goes through a Server Action (POST-only → automatic CSRF protection).
13
- - Session refresh in middleware `updateSession()` with HTTP-only cookies; protected routes checked in middleware.
14
- - User roles live in `profiles.roles TEXT[]`.
12
+ - Every sign in/up/out goes through a server-side POST handler with CSRF protection. Server Actions have it built in (POST-only, Origin checked).
13
+ - Refresh the session in request middleware (`proxy.ts` on Next 16) with HTTP-only cookies, and check protected routes there too.
14
+ - Store roles server-side, where the client cannot write them (for example a `profiles.roles` column behind RLS).
15
15
 
16
16
  ## CSP
17
17
 
@@ -30,6 +30,6 @@ Least privilege; whitelist only required external domains per directive (project
30
30
 
31
31
  Cron routes: require `authorization: Bearer ${process.env.CRON_SECRET}`, else return 401. Generate with `openssl rand -hex 32`; rotate quarterly.
32
32
 
33
- Zod schema validation on every Server Action and route handler before any DB operation; React Hook Form client-side.
33
+ Validate every Server Action and route handler input with a schema (e.g. Zod) before any DB operation. Client-side validation (e.g. React Hook Form) is for feedback only.
34
34
 
35
35
  Cross-reference: the **api-patterns** skill for Server Action patterns; the **session-checkpoints** skill for checkpointing security-sensitive work.
@@ -1,5 +1,3 @@
1
- > Parent: [SKILL.md](./SKILL.md)
2
-
3
1
  # Lesson Categories & Severity
4
2
 
5
3
  The values `opencastle lesson` accepts. Anything else is refused.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: self-improvement
3
- description: "Records lessons with the opencastle lesson CLI, one file each in .opencastle/lessons/; searches past lessons for matching errors; re-verifies lessons whose cited code changed; proposes skill updates when retry patterns exceed thresholds. Use when consulting or updating lessons, after task failures, when capturing retrospective insights, when a retry succeeds, or when doctor reports a lesson's citation changed."
3
+ description: "Records, searches and re-verifies lessons in .opencastle/lessons/ with the opencastle lesson CLI. Use when a retry succeeds or a task fails, before work past lessons may cover, or when doctor reports a lesson's cited code changed."
4
4
  ---
5
5
 
6
6
  # Self-Improvement Protocol
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: seo-patterns
3
- description: "Implements technical SEO: meta tags, JSON-LD structured data, sitemaps, crawlability fixes. Use when adding schema markup, JSON-LD, robots.txt updates, canonical URLs, Open Graph tags, or improving crawlability."
3
+ description: "Technical SEO: meta tags, Open Graph, canonical URLs, JSON-LD structured data, sitemaps and robots.txt. Use when adding or fixing any of these, or when pages are not being crawled or indexed."
4
4
  ---
5
5
 
6
6
  # SEO Patterns
@@ -1,5 +1,3 @@
1
- > Parent: [SKILL.md](./SKILL.md)
2
-
3
1
  # Session Checkpoint Template
4
2
 
5
3
  **Last Updated:** YYYY-MM-DD HH:MM
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: session-checkpoints
3
- description: "Saves, restores session state including task progress, file changes, delegation history. Use when saving progress, resuming interrupted work, picking up where you left off, or checkpointing current work."
3
+ description: "Saves and restores session state: task progress, file changes and delegation history. Use when saving progress before risky work or at session end, or resuming interrupted work."
4
4
  ---
5
5
 
6
6
  # Skill: Session Checkpoints
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: team-lead-reference
3
- description: "Provides model routing rules, validates delegation prerequisites, supplies cost tracking templates, defines dead-letter queue formats for Team Lead orchestration. Load when assigning tasks to agents, choosing model tiers, starting delegation session, running multi-agent workflow, delegating work, choosing which model to use, or assigning tasks."
3
+ description: "Team Lead delegation reference: complexity scoring, model tier routing, pre-delegation checks, the delegation envelope, dead-letter queue and disputes. Use when planning delegations, choosing a model tier, or handling a failed delegation."
4
4
  ---
5
5
 
6
6
  # Team Lead Reference
@@ -1,17 +1,13 @@
1
1
  ---
2
2
  name: technical-writing
3
- description: "Four-layer standard for technical prose: Diataxis document modes, Google developer style sentences, Simplified Technical English instruction rules, Global English disambiguation. Use when writing or reviewing docs, RFCs, README files, PR descriptions, or commit messages."
3
+ description: "Standard for technical prose in four layers: Diataxis document modes, Google developer style, Simplified Technical English and Global English. Use when writing or reviewing docs, RFCs, README files, PR descriptions or commit messages."
4
4
  ---
5
5
 
6
6
  # Technical Writing
7
7
 
8
8
  The goal is writing a tired engineer understands on the first read. Four layers get you there, one question each: what kind of document is this, how do sentences address the reader, how much does each sentence carry, and can any sentence be read two ways. Apply all four, then run the **unslop** skill over the result.
9
9
 
10
- Three rules sit above the layers:
11
-
12
- - **Cut every word that does no work.** "In order to" is "to". "It is important to note that" is nothing.
13
- - **Use the short, everyday word.** "Use", not "utilize". A long word has to buy its length with precision.
14
- - **When a rule makes a sentence worse, fix it another way or leave it alone.** A sentence that follows every rule and sounds machine written has failed.
10
+ Word-level cuts (filler, fancy synonyms, passive voice, hedging, AI vocabulary) are **unslop**'s job. One rule sits above the layers: **when a rule makes a sentence worse, fix it another way or leave it alone.** A sentence that follows every rule and sounds machine written has failed.
15
11
 
16
12
  The codebase is the word list. Write the real symbol, file, flag, or command name, never a synonym or a description of it. Do not invent jargon; use the words a developer says out loud.
17
13
 
@@ -38,10 +34,10 @@ Do not mix modes. No reference tables inside a tutorial, no hand-holding inside
38
34
  - Write instructions as commands: "Click Submit." Never "should be done".
39
35
  - Put the condition before the instruction: "To delete the document, click Delete." The reader skips what does not apply.
40
36
  - Put the common case first, exceptions after.
41
- - Sound like a knowledgeable friend. No buzzwords, no figurative language, no "please", and never "simply", "easy", or "quickly" in a procedure.
37
+ - Sound like a knowledgeable friend. No "please", and never "simply", "easy", or "quickly" in a procedure.
42
38
  - Do not pre-announce features, and do not start consecutive sentences with the same phrase.
43
39
  - Link with words that say where the link goes. Never "click here".
44
- - Headings carry the point, not just the topic ("Pick the mode first", not "Modes"). Sentence case, one h1 per page, no skipped levels. Task headings are bare verb phrases, concept headings are noun phrases.
40
+ - Headings carry the point, not just the topic ("Pick the mode first", not "Modes"). One h1 per page, no skipped levels. Task headings are bare verb phrases, concept headings are noun phrases.
45
41
  - Numbered lists for sequences, bullets for everything else. Introduce a list with a complete sentence and keep items parallel.
46
42
  - Code in code font, UI elements in bold, serial commas. Drop "etc." and say up front that a list is partial.
47
43
 
@@ -82,10 +78,9 @@ By layer: "configuration is performed" becomes "`budget.mjs` reads", so someone
82
78
  1. Is each file one mode, with links where modes meet?
83
79
  2. Is every instruction a command, with its condition in front?
84
80
  3. Does any sentence carry two instructions or two thoughts? Split it.
85
- 4. Can any word be cut without losing meaning? Cut it.
86
- 5. Is "only" beside the word it changes? Does every "it" point at one thing? Does every clause keep its verb?
87
- 6. Does each thing have exactly one name across the docs?
88
- 7. Would a developer say these words out loud?
89
- 8. Are all symbols, paths, and counts real at this commit, with the commands that regenerate the counts?
81
+ 4. Is "only" beside the word it changes? Does every "it" point at one thing? Does every clause keep its verb?
82
+ 5. Does each thing have exactly one name across the docs?
83
+ 6. Would a developer say these words out loud?
84
+ 7. Are all symbols, paths, and counts real at this commit, with the commands that regenerate the counts?
90
85
 
91
86
  Sources: diataxis.fr, developers.google.com/style, asd-ste100.org (Issue 9, 2025). Adapted from the `technical-writing` skill in [cursor/plugins](https://github.com/cursor/plugins/tree/main/pstack), MIT, copyright 2026 Lauren Tan.
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: testing-workflow
3
- description: "Generates test plans, writes unit/integration/E2E test files, identifies coverage gaps, flags common testing anti-patterns. Use when writing tests, creating test suites, planning test strategies, mocking dependencies, measuring code coverage, or test planning."
3
+ description: "Plans tests, writes unit, integration and E2E tests, finds coverage gaps and flags testing anti-patterns. Use when writing or planning tests, mocking dependencies, or checking coverage."
4
4
  ---
5
5
 
6
6
  # Testing Workflow
7
7
 
8
- **Mandatory:** test in a real browser via the **e2e-testing** capability slot before marking any feature complete, including every project-defined responsive breakpoint (**validation-gates** Gate 3, **browser-testing** skill).
8
+ **Mandatory:** test in a real browser via the **e2e-testing** capability slot before marking any feature complete, including every project-defined responsive breakpoint (**validation-gates** Gate 7, **browser-testing** skill).
9
9
 
10
10
  ## E2E Context Limits
11
11
 
@@ -15,19 +15,19 @@ description: "Generates test plans, writes unit/integration/E2E test files, iden
15
15
  | Max 3 screenshots | per session |
16
16
  | `evaluate_script()` over `take_snapshot()` | returns less data |
17
17
  | Reload between flows | clears state |
18
- | Log results | append to `.opencastle/logs/e2e-results.md` |
18
+ | Report results | in the session output: suite, pass/fail counts, failures with their evidence |
19
19
 
20
20
  Suite files and project test config: `.opencastle/project.instructions.md`.
21
21
 
22
- ## Coverage Minimums
22
+ ## Coverage
23
23
 
24
24
  | Layer | Minimum |
25
25
  |-------|---------|
26
- | Unit (functions, components, hooks) | 95% |
26
+ | Unit (functions, components, hooks) | the threshold in the project's test config |
27
27
  | Integration (boundaries, URL sync) | all boundaries |
28
28
  | E2E (journeys, interactions, errors) | all critical paths |
29
29
 
30
- Verify with `npx vitest run --coverage`; E2E via `npx playwright test`.
30
+ Verify with the project's own test and coverage commands (Key Commands in `.opencastle/project.instructions.md`).
31
31
 
32
32
  ## Anti-Patterns
33
33
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: typescript-best-practices
3
- description: "Type-level discipline for TypeScript: discriminated unions, branded types, constructive modeling, narrowing hierarchy, exhaustiveness checks, boundary validation. Use when reading or editing any .ts or .tsx file, modelling domain types, or refactoring an `as` cast out of existing code."
3
+ description: "Type design in TypeScript: discriminated unions, branded types, narrowing, exhaustiveness and boundary validation. Use when modelling domain types, tightening strictness or generics, removing `as` casts, or migrating code to stricter types."
4
4
  ---
5
5
 
6
6
  # TypeScript Best Practices
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: unslop
3
- description: "Removes AI tells from prose: puffery, AI vocabulary, em dashes, inline-header lists, hedging, filler, and abstract metaphor nouns. Use when writing or editing any prose a human reads, including README files, docs, PR descriptions, commit messages, changelogs, release notes, and marketing copy."
3
+ description: "Removes AI tells from prose: puffery, AI vocabulary, em dashes, hedging, filler and abstract metaphor nouns. Use when writing or editing prose a person reads: docs, README files, PR descriptions, commit messages, changelogs, release notes."
4
4
  ---
5
5
 
6
6
  # Unslop
@@ -1,24 +1,20 @@
1
- > Parent: [SKILL.md](./SKILL.md)
2
-
3
1
  # Validation Gates Reference
4
2
 
5
- Extended checklists and options for validation gates.
6
-
7
3
  ## Gate 4: Full Dependency Audit Checklist
8
4
 
9
5
  | Check | Tool / Command | Pass Criteria | On Failure |
10
6
  |-------|---------------|---------------|------------|
11
- | Vulnerability | `npm audit --audit-level=moderate` | No new high/critical | BLOCK — use patched version or alternative |
12
- | Bundle size | `npx source-map-explorer dist/*.js` | Frontend pkgs ≤50KB gzipped | SHOULD-FIX; blocking if >200KB |
7
+ | Vulnerability | `npm audit --audit-level=high` | No new high/critical | BLOCK — use patched version or alternative |
8
+ | Bundle size | `npx source-map-explorer <build output>/*.js` | Frontend pkgs ≤50KB gzipped | SHOULD-FIX; blocking if >200KB |
13
9
  | License | `npx license-checker --onlyAllow 'MIT;ISC;BSD-2-Clause;BSD-3-Clause;Apache-2.0'` | No copyleft in prod deps | BLOCK — remove or replace |
14
- | Duplicates | `npx npm-dedupe --check` or inspect lockfile | No duplicate major versions of same pkg | SHOULD-FIX |
10
+ | Duplicates | `npm find-dupes` or inspect lockfile | No duplicate major versions of same pkg | SHOULD-FIX |
15
11
  | Maintenance | Check npm page / GitHub | Last publish <18 months; >100 weekly downloads | Evaluate alternatives |
16
12
  | Peer deps | `npm ls --depth=0` | No unmet peer dependencies | Fix before merge |
17
13
  | Type coverage | `npx @arethetypeswrong/cli <pkg>` | No `false` CJS/ESM resolution | SHOULD-FIX for new deps |
18
14
 
19
- ## Gate 7: Browser Testing Options
15
+ ## Gate 7: Viewport Presets
20
16
 
21
- ### Viewport Presets
17
+ When the project names no breakpoints of its own (`.opencastle/stack/testing-config.md`):
22
18
 
23
19
  | Preset | Width × Height |
24
20
  |--------|---------------|
@@ -26,25 +22,4 @@ Extended checklists and options for validation gates.
26
22
  | `tablet` | 768 × 1024 |
27
23
  | `desktop` | 1440 × 900 |
28
24
 
29
- ### MCP Payload Options
30
-
31
- ```json
32
- {
33
- "tool": "browser-testing/take_screenshot",
34
- "url": "http://localhost:3000/page",
35
- "viewports": ["mobile", "tablet", "desktop"],
36
- "wait_selector": ".content-loaded",
37
- "auth": { "cookie": "session=abc123" },
38
- "full_page": true
39
- }
40
- ```
41
-
42
- ### Console Error Check
43
-
44
- ```json
45
- {
46
- "tool": "browser-testing/evaluate_script",
47
- "url": "http://localhost:3000",
48
- "script": "window.__console_errors || []"
49
- }
50
- ```
25
+ Resize with `resize_page`, check console errors with `list_console_messages`; the rest is in the **browser-testing** skill.