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
|
@@ -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. -->
|
|
@@ -7,7 +7,7 @@ agent: 'Team Lead (OpenCastle)'
|
|
|
7
7
|
|
|
8
8
|
# Implement Roadmap Task
|
|
9
9
|
|
|
10
|
-
You are the Team Lead. Implement the
|
|
10
|
+
You are the Team Lead. Implement the task described below following this strict workflow. It may be an item of `.opencastle/project/roadmap.md`, when the project keeps one.
|
|
11
11
|
|
|
12
12
|
## Task
|
|
13
13
|
|
|
@@ -21,9 +21,9 @@ You are the Team Lead. Implement the roadmap task described below following this
|
|
|
21
21
|
|
|
22
22
|
### 1. Research & Context Gathering
|
|
23
23
|
|
|
24
|
-
1. **Read the roadmap** — Confirm scope, status, and acceptance criteria in `.opencastle/project/roadmap.md
|
|
24
|
+
1. **Read the roadmap** — Confirm scope, status, and acceptance criteria in `.opencastle/project/roadmap.md`, if there is one; otherwise from the task as given
|
|
25
25
|
2. **Check blockers** — Read `.opencastle/KNOWN-ISSUES.md` and `.opencastle/LESSONS-LEARNED.md` for pitfalls and workarounds
|
|
26
|
-
3. **Read architecture docs** — Check `.opencastle/project.instructions.md` and `.opencastle/project/decisions.md` for constraints
|
|
26
|
+
3. **Read architecture docs** — Check `.opencastle/project.instructions.md` and, when it exists, `.opencastle/project/decisions.md` for constraints
|
|
27
27
|
4. **Search existing code** — Find related files, components, queries, and tests; check for reusable implementations before creating anything new
|
|
28
28
|
|
|
29
29
|
### 2. Task Board Setup (BLOCKING — must complete before Step 3)
|
|
@@ -88,9 +88,9 @@ Follow the **Delivery Checklist** in the **git-workflow** skill — commit, push
|
|
|
88
88
|
|
|
89
89
|
### 6. Documentation & Traceability
|
|
90
90
|
|
|
91
|
-
1. **Update roadmap** — Mark completed items with ✅ and date; include tracker issue IDs next to each scope item (e.g., `[PREFIX-6](<url>) — Description ✅ Done`)
|
|
91
|
+
1. **Update roadmap** (when the project keeps one) — Mark completed items with ✅ and date; include tracker issue IDs next to each scope item (e.g., `[PREFIX-6](<url>) — Description ✅ Done`)
|
|
92
92
|
2. **Update known issues** — Add new limitations to `.opencastle/KNOWN-ISSUES.md`
|
|
93
|
-
3. **Update architecture docs** — Add ADRs for architectural decisions to `.opencastle/project/decisions.md
|
|
93
|
+
3. **Update architecture docs** — Add ADRs for architectural decisions to `.opencastle/project/decisions.md`, creating it with the first one
|
|
94
94
|
4. **Link tracker issues** — Reference roadmap section, partition files, and related issues in each description
|
|
95
95
|
5. **Close issues properly** — Move to Done only after independent verification passes all gates
|
|
96
96
|
|
|
@@ -105,6 +105,6 @@ Roadmap task is complete when:
|
|
|
105
105
|
- [ ] Visual consistency maintained across all affected pages, apps
|
|
106
106
|
- [ ] Documentation updated (roadmap, known issues, decisions)
|
|
107
107
|
- [ ] Panel review passed for any high-stakes changes
|
|
108
|
-
- [ ] Roadmap item marked complete in `.opencastle/project/roadmap.md
|
|
108
|
+
- [ ] Roadmap item marked complete in `.opencastle/project/roadmap.md`, if the task came from it
|
|
109
109
|
- [ ] Delivery Checklist completed (see the **git-workflow** skill) — branch pushed, PR opened (not merged), tracker linked
|
|
110
110
|
- [ ] Lessons learned captured if any retries occurred
|
|
@@ -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
|
|
68
|
-
5. **Gate
|
|
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
|
-
|
|
7
|
+
Focus moves onto the items themselves.
|
|
8
8
|
|
|
9
|
-
1.
|
|
10
|
-
2.
|
|
11
|
-
3.
|
|
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
|
-
|
|
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="
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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: "
|
|
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 |
|
|
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
|
|
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
|
|
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 |
|
|
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
|
|
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
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Knowledge Graph Reference
|
|
4
4
|
|
|
5
|
-
File dependency graph and cross-agent relationships stored in `.opencastle/KNOWLEDGE-GRAPH.md
|
|
5
|
+
File dependency graph and cross-agent relationships stored in `.opencastle/KNOWLEDGE-GRAPH.md`, which the first entry creates: a `# Knowledge Graph` heading and a `| Source | Relationship | Target | Added | Context |` table.
|
|
6
6
|
|
|
7
7
|
## Entity Types
|
|
8
8
|
|
|
@@ -7,9 +7,9 @@ description: "Creates, queries agent expertise profiles in AGENT-EXPERTISE.md; i
|
|
|
7
7
|
|
|
8
8
|
## Expertise File
|
|
9
9
|
|
|
10
|
-
**Location:** `.opencastle/AGENT-EXPERTISE.md
|
|
10
|
+
**Location:** `.opencastle/AGENT-EXPERTISE.md`, created on the first update. One `## <Agent>` section per agent that has worked here, each with `### Strong Areas`, `### Weak Areas` and `### File Familiarity`; add the file, then the section, when they are missing.
|
|
11
11
|
|
|
12
|
-
Entry format:
|
|
12
|
+
Entry format: `| Area | Evidence | Last Updated |` — e.g. `| Server Components | Built TAS-42 | 2026-03-15 |`. File familiarity: `- src/lib/search/ — 3 tasks`.
|
|
13
13
|
|
|
14
14
|
## Update Triggers
|
|
15
15
|
|
|
@@ -23,32 +23,23 @@ Entry format: `Area | Evidence | Last Updated` — e.g. `Server Components | Bui
|
|
|
23
23
|
|
|
24
24
|
## Retrieval & Delegation
|
|
25
25
|
|
|
26
|
-
Query before delegating
|
|
26
|
+
Query before delegating — there is nothing to read until the file exists — and include a concise context block in the prompt:
|
|
27
27
|
|
|
28
28
|
```sh
|
|
29
|
-
grep -
|
|
29
|
+
grep -A12 "^## Developer" .opencastle/AGENT-EXPERTISE.md 2>/dev/null
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
Example prompt block: `Agent Context: Strong — Server Components (3 tasks); Weak — Component styling (2 retries); Familiar — src/lib/search/ (2 tasks)`
|
|
33
33
|
|
|
34
|
-
**
|
|
34
|
+
**After task completion,** edit the agent's section with your file-editing tool: add the row under the right table, or raise the task count on the familiarity line. Appending with `>>` puts the row at the end of the file, under whichever agent's section happens to be last.
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
# Append a Strong Area entry
|
|
38
|
-
printf '| %s | %s | %s |\n' "Server Components" "Built TAS-42" "$(date +%Y-%m-%d)" >> .opencastle/AGENT-EXPERTISE.md
|
|
39
|
-
|
|
40
|
-
# Increment file familiarity
|
|
41
|
-
awk '/src\/lib\/search\// { if (match($0, /[0-9]+/)) { n = substr($0, RSTART, RLENGTH) + 1; sub(/[0-9]+[[:space:]]*tasks?/, n " tasks") } found=1 } {print} END { if(!found) print "- `src/lib/search/` — 1 task" }' \
|
|
42
|
-
.opencastle/AGENT-EXPERTISE.md > tmp && mv tmp .opencastle/AGENT-EXPERTISE.md
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
After each task also append file relationships to `.opencastle/KNOWLEDGE-GRAPH.md`. On DLQ failure, the Weak Area entry must carry the failure ID and a link to its logs.
|
|
36
|
+
After each task also add file relationships to `.opencastle/KNOWLEDGE-GRAPH.md`, created the same way. On DLQ failure, the Weak Area entry must carry the failure ID and a link to its logs.
|
|
46
37
|
|
|
47
38
|
## Validation Checkpoints
|
|
48
39
|
|
|
49
40
|
- Before delegating: chosen agent has a Strong area matching the task and no conflicting Weak entry.
|
|
50
41
|
- After completion: expertise file has the new entry, timestamped today.
|
|
51
|
-
- After pruning:
|
|
42
|
+
- After pruning: every path on a familiarity line still exists.
|
|
52
43
|
|
|
53
44
|
## Pruning
|
|
54
45
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: api-patterns
|
|
3
|
-
description: "
|
|
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: "
|
|
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,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: context-map
|
|
3
|
-
description: "Maps
|
|
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
|
|
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
|
-
|
|
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: "
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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: "
|
|
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: "
|
|
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,
|
|
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
|
|
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
|
|
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,21 +1,23 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: documentation-standards
|
|
3
|
-
description: "
|
|
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
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
The project's own documents: Key Documentation in `.opencastle/project.instructions.md`. Writing guidelines, formatting rules, anti-patterns: `WRITING-GUIDE.md`, beside this file.
|
|
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]
|
|
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,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fast-review
|
|
3
|
-
description: "Mandatory
|
|
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 |
|
|
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,
|
|
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
|
-
|
|
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
|
|
12
|
-
| Typography | Characterful display+body pair
|
|
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
|
|
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
|
|
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
|
-
|
|
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.
|
|
@@ -1,23 +1,33 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: frontend-design
|
|
3
|
-
description: "
|
|
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
|
-
|
|
6
|
+
# Frontend Design
|
|
7
7
|
|
|
8
8
|
## Design Workflow
|
|
9
9
|
|
|
10
|
-
1.
|
|
11
|
-
2.
|
|
12
|
-
3.
|
|
13
|
-
4.
|
|
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
|
-
|
|
17
|
+
## Avoid the generic look
|
|
16
18
|
|
|
17
|
-
|
|
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.
|