opencastle 1.5.0 → 1.6.1
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/README.md +1 -1
- package/dist/cli/adapters/antigravity.d.ts +1 -1
- package/dist/cli/adapters/antigravity.d.ts.map +1 -1
- package/dist/cli/adapters/claude-code.d.ts +1 -1
- 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/codex.d.ts +1 -1
- package/dist/cli/adapters/codex.d.ts.map +1 -1
- package/dist/cli/adapters/cursor.d.ts +1 -1
- package/dist/cli/adapters/cursor.d.ts.map +1 -1
- package/dist/cli/adapters/cursor.js +6 -0
- package/dist/cli/adapters/cursor.js.map +1 -1
- package/dist/cli/adapters/opencode.d.ts +1 -1
- package/dist/cli/adapters/opencode.d.ts.map +1 -1
- package/dist/cli/adapters/rules-dir-base.d.ts +13 -1
- package/dist/cli/adapters/rules-dir-base.d.ts.map +1 -1
- package/dist/cli/adapters/rules-dir-base.js +37 -18
- package/dist/cli/adapters/rules-dir-base.js.map +1 -1
- package/dist/cli/adapters/rules-dir-base.test.js +34 -0
- package/dist/cli/adapters/rules-dir-base.test.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/adapters/windsurf.d.ts +1 -1
- package/dist/cli/adapters/windsurf.d.ts.map +1 -1
- package/dist/cli/bootstrap-on-init.test.js +11 -0
- package/dist/cli/bootstrap-on-init.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 +39 -1
- 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/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 +72 -8
- 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 +28 -23
- 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/plan.test.js +10 -8
- package/dist/cli/plan.test.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/cli/types.d.ts +2 -1
- package/dist/cli/types.d.ts.map +1 -1
- package/dist/cli/types.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/cursor.ts +6 -0
- package/src/cli/adapters/rules-dir-base.test.ts +41 -0
- package/src/cli/adapters/rules-dir-base.ts +47 -19
- package/src/cli/adapters/single-file-base.ts +63 -31
- package/src/cli/bootstrap-on-init.test.ts +12 -0
- 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 +44 -0
- 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/docs-accuracy.test.ts +42 -0
- package/src/cli/doctor.test.ts +101 -1
- package/src/cli/doctor.ts +75 -9
- package/src/cli/init.test.ts +27 -22
- 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/plan.test.ts +10 -8
- package/src/cli/sync-check.test.ts +16 -2
- package/src/cli/types.ts +2 -1
- package/src/orchestrator/agent-workflows/feature-implementation.md +1 -1
- package/src/orchestrator/agents/team-lead.agent.md +5 -5
- package/src/orchestrator/agents/testing-expert.agent.md +2 -2
- package/src/orchestrator/customizations/LESSONS-LEARNED.md +1 -1
- 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/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/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/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 +4 -2
- 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 +1 -1
- 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 +0 -4
- 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 +1 -1
- 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/skills/documentation-standards/WRITING-GUIDE.md +0 -39
- package/src/orchestrator/skills/frontend-design/COMPONENTS.md +0 -113
|
@@ -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
|
|
|
@@ -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,6 +1,6 @@
|
|
|
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
|
|
@@ -9,13 +9,15 @@ The project's own documents: Key Documentation in `.opencastle/project.instructi
|
|
|
9
9
|
|
|
10
10
|
## Templates
|
|
11
11
|
|
|
12
|
+
Write the prose in each by the **technical-writing** and **unslop** skills.
|
|
13
|
+
|
|
12
14
|
**Issue doc** — `### ISSUE-ID: Brief Description`, then: Issue ID, Status (Known Limitation | Fixed | Workaround Available), Severity (Critical | High | Medium | Low), Impact, Problem, Root Cause, Solution Options (numbered, each with Pros/Cons), Related Files (path — what it does).
|
|
13
15
|
|
|
14
16
|
**ADR** — `## ADR-NNN: Decision Title`, then: Date, Status (Accepted | Superseded | Deprecated), Context, Decision, Consequences, Alternatives Considered.
|
|
15
17
|
|
|
16
18
|
**Roadmap completion** — add a `COMPLETE` row: feature, `Completed: YYYY-MM-DD | Owner: @handle`, files changed with rationale, validation command plus exit status. Then move it to the `Completed` section with a one-line release note.
|
|
17
19
|
|
|
18
|
-
**Changelog** — under a `## [1.2.0]
|
|
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.
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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.
|