opencastle 1.4.3 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/adapters/claude-code.d.ts.map +1 -1
- package/dist/cli/adapters/claude-code.js +1 -0
- package/dist/cli/adapters/claude-code.js.map +1 -1
- package/dist/cli/adapters/single-file-base.d.ts +8 -0
- package/dist/cli/adapters/single-file-base.d.ts.map +1 -1
- package/dist/cli/adapters/single-file-base.js +48 -22
- package/dist/cli/adapters/single-file-base.js.map +1 -1
- package/dist/cli/bootstrap-on-init.test.js +16 -5
- package/dist/cli/bootstrap-on-init.test.js.map +1 -1
- package/dist/cli/bootstrap.d.ts +17 -0
- package/dist/cli/bootstrap.d.ts.map +1 -1
- package/dist/cli/bootstrap.js +284 -312
- package/dist/cli/bootstrap.js.map +1 -1
- package/dist/cli/bootstrap.test.js +22 -16
- package/dist/cli/bootstrap.test.js.map +1 -1
- package/dist/cli/command-namespace.test.js +17 -0
- package/dist/cli/command-namespace.test.js.map +1 -1
- package/dist/cli/convoy/engine.d.ts +12 -0
- package/dist/cli/convoy/engine.d.ts.map +1 -1
- package/dist/cli/convoy/engine.git.test.js +55 -0
- package/dist/cli/convoy/engine.git.test.js.map +1 -1
- package/dist/cli/convoy/engine.js +47 -3
- package/dist/cli/convoy/engine.js.map +1 -1
- package/dist/cli/convoy/findings.d.ts +35 -0
- package/dist/cli/convoy/findings.d.ts.map +1 -0
- package/dist/cli/convoy/findings.js +100 -0
- package/dist/cli/convoy/findings.js.map +1 -0
- package/dist/cli/convoy/findings.test.d.ts +2 -0
- package/dist/cli/convoy/findings.test.d.ts.map +1 -0
- package/dist/cli/convoy/findings.test.js +75 -0
- package/dist/cli/convoy/findings.test.js.map +1 -0
- package/dist/cli/convoy/isolation.d.ts.map +1 -1
- package/dist/cli/convoy/isolation.js +2 -1
- package/dist/cli/convoy/isolation.js.map +1 -1
- package/dist/cli/convoy/worktree.d.ts +5 -0
- package/dist/cli/convoy/worktree.d.ts.map +1 -1
- package/dist/cli/convoy/worktree.js +12 -0
- package/dist/cli/convoy/worktree.js.map +1 -1
- package/dist/cli/detect.d.ts +4 -0
- package/dist/cli/detect.d.ts.map +1 -1
- package/dist/cli/detect.js +1 -1
- package/dist/cli/detect.js.map +1 -1
- package/dist/cli/docs-accuracy.test.js +34 -0
- package/dist/cli/docs-accuracy.test.js.map +1 -1
- package/dist/cli/doctor.d.ts +11 -0
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +74 -10
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/doctor.test.js +82 -1
- package/dist/cli/doctor.test.js.map +1 -1
- package/dist/cli/init.d.ts.map +1 -1
- package/dist/cli/init.js +58 -53
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/init.test.js +32 -28
- package/dist/cli/init.test.js.map +1 -1
- package/dist/cli/layers.d.ts +20 -0
- package/dist/cli/layers.d.ts.map +1 -1
- package/dist/cli/layers.js +53 -1
- package/dist/cli/layers.js.map +1 -1
- package/dist/cli/layers.test.js +67 -1
- package/dist/cli/layers.test.js.map +1 -1
- package/dist/cli/lessons.d.ts +10 -0
- package/dist/cli/lessons.d.ts.map +1 -1
- package/dist/cli/lessons.js +26 -1
- package/dist/cli/lessons.js.map +1 -1
- package/dist/cli/lessons.test.js +38 -1
- package/dist/cli/lessons.test.js.map +1 -1
- package/dist/cli/log.d.ts +2 -2
- package/dist/cli/log.d.ts.map +1 -1
- package/dist/cli/log.js +1 -1
- package/dist/cli/log.js.map +1 -1
- package/dist/cli/log.test.js +1 -1
- package/dist/cli/log.test.js.map +1 -1
- package/dist/cli/managed-paths.d.ts +1 -1
- package/dist/cli/managed-paths.d.ts.map +1 -1
- package/dist/cli/managed-paths.js +0 -1
- package/dist/cli/managed-paths.js.map +1 -1
- package/dist/cli/plan.test.js +10 -8
- package/dist/cli/plan.test.js.map +1 -1
- package/dist/cli/project-facts.d.ts +103 -0
- package/dist/cli/project-facts.d.ts.map +1 -0
- package/dist/cli/project-facts.js +577 -0
- package/dist/cli/project-facts.js.map +1 -0
- package/dist/cli/project-facts.test.d.ts +2 -0
- package/dist/cli/project-facts.test.d.ts.map +1 -0
- package/dist/cli/project-facts.test.js +209 -0
- package/dist/cli/project-facts.test.js.map +1 -0
- package/dist/cli/stack-config.js +1 -1
- package/dist/cli/stack-config.js.map +1 -1
- package/dist/cli/sync-check.test.js +14 -2
- package/dist/cli/sync-check.test.js.map +1 -1
- package/dist/orchestrator/plugins/notion/config.d.ts.map +1 -1
- package/dist/orchestrator/plugins/notion/config.js +21 -17
- package/dist/orchestrator/plugins/notion/config.js.map +1 -1
- package/package.json +1 -1
- package/src/cli/adapters/claude-code.ts +1 -0
- package/src/cli/adapters/single-file-base.ts +63 -31
- package/src/cli/bootstrap-on-init.test.ts +17 -5
- package/src/cli/bootstrap.test.ts +22 -16
- package/src/cli/bootstrap.ts +361 -373
- package/src/cli/command-namespace.test.ts +17 -0
- package/src/cli/convoy/engine.git.test.ts +59 -0
- package/src/cli/convoy/engine.ts +53 -2
- package/src/cli/convoy/findings.test.ts +86 -0
- package/src/cli/convoy/findings.ts +129 -0
- package/src/cli/convoy/isolation.ts +2 -1
- package/src/cli/convoy/worktree.ts +12 -0
- package/src/cli/detect.ts +1 -1
- package/src/cli/docs-accuracy.test.ts +42 -0
- package/src/cli/doctor.test.ts +101 -1
- package/src/cli/doctor.ts +77 -11
- package/src/cli/init.test.ts +31 -27
- package/src/cli/init.ts +62 -57
- package/src/cli/layers.test.ts +72 -1
- package/src/cli/layers.ts +52 -1
- package/src/cli/lessons.test.ts +48 -0
- package/src/cli/lessons.ts +27 -1
- package/src/cli/log.test.ts +1 -1
- package/src/cli/log.ts +2 -2
- package/src/cli/managed-paths.ts +0 -1
- package/src/cli/plan.test.ts +10 -8
- package/src/cli/project-facts.test.ts +228 -0
- package/src/cli/project-facts.ts +647 -0
- package/src/cli/stack-config.ts +1 -1
- package/src/cli/sync-check.test.ts +16 -2
- package/src/orchestrator/agent-workflows/data-pipeline.md +2 -2
- package/src/orchestrator/agent-workflows/feature-implementation.md +2 -2
- package/src/orchestrator/agent-workflows/schema-changes.md +1 -1
- package/src/orchestrator/agents/team-lead.agent.md +6 -6
- package/src/orchestrator/agents/testing-expert.agent.md +2 -2
- package/src/orchestrator/customizations/LESSONS-LEARNED.md +1 -1
- package/src/orchestrator/customizations/README.md +27 -84
- package/src/orchestrator/instructions/ai-optimization.instructions.md +6 -23
- package/src/orchestrator/instructions/general.instructions.md +22 -95
- package/src/orchestrator/plugins/astro/skills/astro-framework/SKILL.md +1 -3
- package/src/orchestrator/plugins/chrome-devtools/skills/browser-testing/SKILL.md +3 -5
- package/src/orchestrator/plugins/cloudflare/skills/cloudflare-platform/SKILL.md +2 -2
- package/src/orchestrator/plugins/contentful/skills/contentful-cms/SKILL.md +1 -1
- package/src/orchestrator/plugins/convex/skills/convex-database/SKILL.md +1 -3
- package/src/orchestrator/plugins/coolify/skills/coolify-deployment/SKILL.md +1 -1
- package/src/orchestrator/plugins/cypress/skills/cypress-testing/SKILL.md +1 -1
- package/src/orchestrator/plugins/drizzle/skills/drizzle-orm/SKILL.md +1 -1
- package/src/orchestrator/plugins/expo/skills/expo-development/SKILL.md +2 -2
- package/src/orchestrator/plugins/figma/skills/figma-design/SKILL.md +1 -3
- package/src/orchestrator/plugins/hetzner/skills/hetzner-cloud/SKILL.md +1 -1
- package/src/orchestrator/plugins/jira/skills/jira-management/SKILL.md +1 -3
- package/src/orchestrator/plugins/linear/skills/linear-task-management/SKILL.md +1 -3
- package/src/orchestrator/plugins/netlify/skills/netlify-deployment/SKILL.md +2 -2
- package/src/orchestrator/plugins/nextjs/skills/nextjs-framework/SKILL.md +13 -6
- package/src/orchestrator/plugins/notion/config.ts +21 -17
- package/src/orchestrator/plugins/notion/skills/notion-knowledge-management/SKILL.md +8 -16
- package/src/orchestrator/plugins/nx/skills/nx-workspace/SKILL.md +2 -4
- package/src/orchestrator/plugins/playwright/skills/playwright-testing/SKILL.md +1 -3
- package/src/orchestrator/plugins/prisma/skills/prisma-database/SKILL.md +1 -3
- package/src/orchestrator/plugins/resend/skills/resend-email/SKILL.md +2 -2
- package/src/orchestrator/plugins/sanity/skills/sanity-cms/SKILL.md +1 -3
- package/src/orchestrator/plugins/sentry/skills/sentry-monitoring/SKILL.md +1 -1
- package/src/orchestrator/plugins/slack/skills/slack-notifications/SKILL.md +1 -3
- package/src/orchestrator/plugins/strapi/skills/strapi-cms/SKILL.md +1 -3
- package/src/orchestrator/plugins/stripe/skills/stripe-payments/SKILL.md +4 -4
- package/src/orchestrator/plugins/supabase/skills/supabase-database/SKILL.md +3 -5
- package/src/orchestrator/plugins/teams/skills/teams-notifications/SKILL.md +1 -3
- package/src/orchestrator/plugins/trello/skills/trello-task-management/SKILL.md +1 -1
- package/src/orchestrator/plugins/turborepo/skills/turborepo-monorepo/SKILL.md +15 -88
- package/src/orchestrator/plugins/vercel/skills/vercel-deployment/SKILL.md +2 -2
- package/src/orchestrator/plugins/vitest/skills/vitest-testing/SKILL.md +17 -150
- package/src/orchestrator/prompts/assess-complexity.prompt.md +1 -0
- package/src/orchestrator/prompts/bootstrap-customizations.prompt.md +38 -238
- package/src/orchestrator/prompts/brainstorm.prompt.md +1 -1
- package/src/orchestrator/prompts/create-skill.prompt.md +13 -67
- package/src/orchestrator/prompts/fix-convoy.prompt.md +1 -0
- package/src/orchestrator/prompts/fix-prd.prompt.md +1 -0
- package/src/orchestrator/prompts/generate-prd.prompt.md +1 -0
- package/src/orchestrator/prompts/implement-feature.prompt.md +6 -6
- package/src/orchestrator/prompts/resolve-pr-comments.prompt.md +2 -2
- package/src/orchestrator/prompts/validate-convoy.prompt.md +1 -0
- package/src/orchestrator/prompts/validate-prd.prompt.md +1 -0
- package/src/orchestrator/skills/accessibility-standards/REFERENCE.md +17 -12
- package/src/orchestrator/skills/accessibility-standards/SKILL.md +1 -1
- package/src/orchestrator/skills/agent-hooks/HOOKS-REFERENCE.md +3 -5
- package/src/orchestrator/skills/agent-hooks/SKILL.md +8 -6
- package/src/orchestrator/skills/agent-memory/KNOWLEDGE-GRAPH.md +1 -1
- package/src/orchestrator/skills/agent-memory/SKILL.md +7 -16
- package/src/orchestrator/skills/api-patterns/SKILL.md +1 -1
- package/src/orchestrator/skills/code-commenting/SKILL.md +1 -1
- package/src/orchestrator/skills/context-map/REFERENCE.md +0 -2
- package/src/orchestrator/skills/context-map/SKILL.md +2 -2
- package/src/orchestrator/skills/data-engineering/REFERENCE.md +3 -9
- package/src/orchestrator/skills/data-engineering/SKILL.md +9 -16
- package/src/orchestrator/skills/decomposition/SKILL.md +1 -1
- package/src/orchestrator/skills/deployment-infrastructure/SKILL.md +4 -4
- package/src/orchestrator/skills/documentation-standards/SKILL.md +5 -3
- package/src/orchestrator/skills/fast-review/REFERENCE.md +0 -2
- package/src/orchestrator/skills/fast-review/SKILL.md +5 -5
- package/src/orchestrator/skills/frontend-design/REFERENCE.md +6 -28
- package/src/orchestrator/skills/frontend-design/SKILL.md +19 -9
- package/src/orchestrator/skills/git-workflow/SKILL.md +1 -1
- package/src/orchestrator/skills/memory-merger/SKILL.md +13 -15
- package/src/orchestrator/skills/observability-logging/SKILL.md +2 -2
- package/src/orchestrator/skills/orchestration-protocols/REFERENCE.md +5 -9
- package/src/orchestrator/skills/orchestration-protocols/SKILL.md +6 -6
- package/src/orchestrator/skills/panel-majority-vote/REFERENCE.md +1 -5
- package/src/orchestrator/skills/panel-majority-vote/SKILL.md +1 -1
- package/src/orchestrator/skills/panel-majority-vote/panel-report.template.md +0 -2
- package/src/orchestrator/skills/performance-optimization/SKILL.md +2 -2
- package/src/orchestrator/skills/project-consistency/SKILL.md +2 -2
- package/src/orchestrator/skills/project-consistency/TEMPLATES.md +0 -4
- package/src/orchestrator/skills/react-development/SKILL.md +3 -3
- package/src/orchestrator/skills/security-hardening/SKILL.md +5 -5
- package/src/orchestrator/skills/self-improvement/LESSON-CATEGORIES.md +0 -2
- package/src/orchestrator/skills/self-improvement/SKILL.md +1 -1
- package/src/orchestrator/skills/seo-patterns/SKILL.md +1 -1
- package/src/orchestrator/skills/session-checkpoints/CHECKPOINT-TEMPLATE.md +0 -2
- package/src/orchestrator/skills/session-checkpoints/SKILL.md +1 -1
- package/src/orchestrator/skills/team-lead-reference/SKILL.md +3 -3
- package/src/orchestrator/skills/technical-writing/SKILL.md +8 -13
- package/src/orchestrator/skills/testing-workflow/SKILL.md +6 -6
- package/src/orchestrator/skills/typescript-best-practices/SKILL.md +1 -1
- package/src/orchestrator/skills/unslop/SKILL.md +1 -1
- package/src/orchestrator/skills/validation-gates/REFERENCE.md +6 -31
- package/src/orchestrator/skills/validation-gates/SKILL.md +12 -26
- package/src/orchestrator/skills/writing-for-agents/SKILL.md +2 -2
- package/src/orchestrator/customizations/AGENT-EXPERTISE.md +0 -325
- package/src/orchestrator/customizations/AGENT-FAILURES.md +0 -69
- package/src/orchestrator/customizations/AGENT-PERFORMANCE.md +0 -55
- package/src/orchestrator/customizations/DISPUTES.md +0 -162
- package/src/orchestrator/customizations/KNOWLEDGE-GRAPH.md +0 -10
- package/src/orchestrator/customizations/agents/skill-matrix.md +0 -111
- package/src/orchestrator/customizations/logs/events.ndjson +0 -0
- package/src/orchestrator/customizations/project/decisions.md +0 -31
- package/src/orchestrator/customizations/project/docs-structure.md +0 -34
- package/src/orchestrator/customizations/project/roadmap.md +0 -24
- package/src/orchestrator/skills/documentation-standards/WRITING-GUIDE.md +0 -39
- package/src/orchestrator/skills/frontend-design/COMPONENTS.md +0 -113
- /package/src/orchestrator/{customizations/logs/README.md → skills/observability-logging/LOG-SCHEMA.md} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: git-workflow
|
|
3
|
-
description: "
|
|
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: "
|
|
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
|
-
|
|
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 |
|
|
14
|
-
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
-
|
|
|
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
|
|
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 —
|
|
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: "
|
|
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
|
|
@@ -11,7 +11,7 @@ description: "Logs sessions, tracks activity, records delegation decisions, and
|
|
|
11
11
|
|------|------------|-----|------|
|
|
12
12
|
| `events.ndjson` | `session`, `delegation`, `review`, `panel`, `dispute` | All agents / Team Lead / Panel runner | After each applicable event |
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Full schema: [LOG-SCHEMA.md](./LOG-SCHEMA.md), beside this file; `opencastle log --help` lists the fields too.
|
|
15
15
|
|
|
16
16
|
Use `opencastle log` CLI. One record per task; never batch-log retrospectively.
|
|
17
17
|
|
|
@@ -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 |
|
|
5
|
+
| Signal | Observable | Recovery |
|
|
8
6
|
|--------|-----------|----------|
|
|
9
|
-
| **Stuck** — no
|
|
10
|
-
| **Looping** — same error repeated | 3
|
|
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 —
|
|
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
|
-
|
|
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: "
|
|
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,
|
|
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
|
|
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:**
|
|
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 |
|
|
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
|
|
@@ -17,7 +15,7 @@ Base weight: 1. Add bonuses:
|
|
|
17
15
|
|--------|-------|
|
|
18
16
|
| Domain expertise (relevant to review) | +2 |
|
|
19
17
|
| Confidence high / med / low | +1 / 0 / -1 |
|
|
20
|
-
| Prior success rate >80% (
|
|
18
|
+
| Prior success rate >80% (`opencastle convoy dashboard`, or `review` records in `.opencastle/logs/events.ndjson`) | +1 |
|
|
21
19
|
|
|
22
20
|
Example: Security Expert + high = 4; Architect + med = 2.
|
|
23
21
|
|
|
@@ -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: "
|
|
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,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: performance-optimization
|
|
3
|
-
description: "Profiles
|
|
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
|
|
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: "
|
|
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:
|
|
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: "
|
|
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
|
|
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
|
|
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
|
|
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
|
|
13
|
-
-
|
|
14
|
-
-
|
|
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
|
-
|
|
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,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: self-improvement
|
|
3
|
-
description: "Records
|
|
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: "
|
|
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,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: session-checkpoints
|
|
3
|
-
description: "Saves
|
|
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: "
|
|
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
|
|
@@ -103,7 +103,7 @@ Prefix each agent's output summary `### [Agent Name] TAS-XX Description`. Never
|
|
|
103
103
|
|
|
104
104
|
## Dead Letter Queue Format
|
|
105
105
|
|
|
106
|
-
Log to `.opencastle/AGENT-FAILURES.md` when agent fails 2+ attempts, background output fails all gates, or unrecoverable error occurs. Panel 3x BLOCK → create dispute instead.
|
|
106
|
+
Log to `.opencastle/AGENT-FAILURES.md` — create it on the first entry — when agent fails 2+ attempts, background output fails all gates, or unrecoverable error occurs. Panel 3x BLOCK → create dispute instead.
|
|
107
107
|
|
|
108
108
|
Entry (`DLQ-XXX: Short description`): **Date**, **Agent**, **Tracker Issue**, **Failure Type** (`verification-fail` / `tool-error` / `panel-block` / `timeout` / `scope-creep`), **Attempts**, **Task**, **Failure Details**, **Resolution**. Scan DLQ for pending retries at session start.
|
|
109
109
|
|
|
@@ -115,7 +115,7 @@ For common failure modes, recovery procedures, load **orchestration-protocols**
|
|
|
115
115
|
|
|
116
116
|
Triggers: Panel 3× BLOCK, agent-reviewer disagreement, criteria contradictions, no convergence, needs human input.
|
|
117
117
|
|
|
118
|
-
Create in `.opencastle/DISPUTES.md
|
|
118
|
+
Create in `.opencastle/DISPUTES.md` (create the file on the first dispute). Entry (`DSP-XXX: Short description`): **Date**, **Priority** (`critical`/`high`/`medium`/`low`), **Tracker Issue**, **Trigger** (`panel-3x-block` / `approach-conflict` / `criteria-conflict` / `architectural-ambiguity` / `external-dependency`), **Implementing Agent**, **Reviewing Agent(s)**, **Attempts**, **Status** (`pending`/`resolved`/`deferred`); then Context, Agent's Position, Reviewer's Position, Attempt History (# · type · verdict · key feedback), 2–3 Resolution Options with rationale and risk, Recommended Action, Artifacts.
|
|
119
119
|
1. Number (`DSP-XXX`), set priority, document both perspectives with file references
|
|
120
120
|
2. Build attempt history; present ≥2 options with rationale/risk
|
|
121
121
|
3. Link panel reports, DLQ entries, changed files
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: technical-writing
|
|
3
|
-
description: "
|
|
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
|
-
|
|
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
|
|
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").
|
|
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.
|
|
86
|
-
5.
|
|
87
|
-
6.
|
|
88
|
-
7.
|
|
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: "
|
|
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
|
|
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
|
-
|
|
|
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
|
|
22
|
+
## Coverage
|
|
23
23
|
|
|
24
24
|
| Layer | Minimum |
|
|
25
25
|
|-------|---------|
|
|
26
|
-
| Unit (functions, components, hooks) |
|
|
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
|
|
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
|
|
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,
|
|
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=
|
|
12
|
-
| Bundle size | `npx source-map-explorer
|
|
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 | `
|
|
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:
|
|
15
|
+
## Gate 7: Viewport Presets
|
|
20
16
|
|
|
21
|
-
|
|
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
|
-
|
|
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.
|