opencastle 0.35.1 → 0.35.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/README.md +1 -1
  2. package/dist/cli/adapters/antigravity.d.ts +13 -7
  3. package/dist/cli/adapters/antigravity.d.ts.map +1 -1
  4. package/dist/cli/adapters/antigravity.js +15 -9
  5. package/dist/cli/adapters/antigravity.js.map +1 -1
  6. package/dist/cli/adapters/claude-code.d.ts +1 -1
  7. package/dist/cli/adapters/claude-code.js +1 -1
  8. package/dist/cli/adapters/codex.d.ts +1 -1
  9. package/dist/cli/adapters/codex.js +1 -1
  10. package/dist/cli/adapters/opencode.d.ts +1 -1
  11. package/dist/cli/adapters/opencode.js +1 -1
  12. package/dist/cli/adapters/single-file-base.d.ts.map +1 -1
  13. package/dist/cli/adapters/single-file-base.js +17 -18
  14. package/dist/cli/adapters/single-file-base.js.map +1 -1
  15. package/dist/cli/init.js +1 -1
  16. package/dist/cli/init.test.js +21 -18
  17. package/dist/cli/init.test.js.map +1 -1
  18. package/dist/cli/mcp.js +1 -1
  19. package/dist/cli/mcp.js.map +1 -1
  20. package/package.json +1 -1
  21. package/src/cli/adapters/antigravity.ts +15 -9
  22. package/src/cli/adapters/claude-code.ts +1 -1
  23. package/src/cli/adapters/codex.ts +1 -1
  24. package/src/cli/adapters/opencode.ts +1 -1
  25. package/src/cli/adapters/single-file-base.ts +20 -17
  26. package/src/cli/init.test.ts +24 -18
  27. package/src/cli/init.ts +1 -1
  28. package/src/cli/mcp.ts +1 -1
  29. package/src/dashboard/dist/data/convoys/demo-api-v2.json +3 -3
  30. package/src/dashboard/dist/data/convoys/demo-auth-revamp.json +4 -4
  31. package/src/dashboard/dist/data/convoys/demo-dashboard-ui.json +6 -6
  32. package/src/dashboard/dist/data/convoys/demo-data-pipeline.json +9 -9
  33. package/src/dashboard/dist/data/convoys/demo-deploy-ci.json +1 -1
  34. package/src/dashboard/dist/data/convoys/demo-docs-update.json +3 -3
  35. package/src/dashboard/dist/data/convoys/demo-perf-opt.json +4 -4
  36. package/src/dashboard/node_modules/.vite/deps/_metadata.json +6 -6
  37. package/src/dashboard/public/data/convoys/demo-api-v2.json +3 -3
  38. package/src/dashboard/public/data/convoys/demo-auth-revamp.json +4 -4
  39. package/src/dashboard/public/data/convoys/demo-dashboard-ui.json +6 -6
  40. package/src/dashboard/public/data/convoys/demo-data-pipeline.json +9 -9
  41. package/src/dashboard/public/data/convoys/demo-deploy-ci.json +1 -1
  42. package/src/dashboard/public/data/convoys/demo-docs-update.json +3 -3
  43. package/src/dashboard/public/data/convoys/demo-perf-opt.json +4 -4
  44. package/src/orchestrator/agents/api-designer.agent.md +10 -10
  45. package/src/orchestrator/agents/architect.agent.md +8 -8
  46. package/src/orchestrator/agents/content-engineer.agent.md +5 -5
  47. package/src/orchestrator/agents/copywriter.agent.md +8 -8
  48. package/src/orchestrator/agents/data-expert.agent.md +10 -10
  49. package/src/orchestrator/agents/database-engineer.agent.md +7 -7
  50. package/src/orchestrator/agents/developer.agent.md +13 -13
  51. package/src/orchestrator/agents/devops-expert.agent.md +11 -11
  52. package/src/orchestrator/agents/documentation-writer.agent.md +9 -9
  53. package/src/orchestrator/agents/performance-expert.agent.md +9 -9
  54. package/src/orchestrator/agents/release-manager.agent.md +9 -9
  55. package/src/orchestrator/agents/researcher.agent.md +5 -5
  56. package/src/orchestrator/agents/reviewer.agent.md +6 -6
  57. package/src/orchestrator/agents/security-expert.agent.md +10 -10
  58. package/src/orchestrator/agents/seo-specialist.agent.md +12 -12
  59. package/src/orchestrator/agents/session-guard.agent.md +3 -3
  60. package/src/orchestrator/agents/team-lead.agent.md +5 -5
  61. package/src/orchestrator/agents/testing-expert.agent.md +8 -8
  62. package/src/orchestrator/agents/ui-ux-expert.agent.md +15 -15
  63. package/src/orchestrator/customizations/agents/agent-registry.md +8 -8
  64. package/src/orchestrator/prompts/assess-complexity.prompt.md +8 -8
  65. package/src/orchestrator/prompts/bootstrap-customizations.prompt.md +17 -17
  66. package/src/orchestrator/prompts/brainstorm.prompt.md +17 -17
  67. package/src/orchestrator/prompts/bug-fix.prompt.md +11 -11
  68. package/src/orchestrator/prompts/create-skill.prompt.md +21 -21
  69. package/src/orchestrator/prompts/fix-convoy.prompt.md +8 -8
  70. package/src/orchestrator/prompts/fix-prd.prompt.md +12 -12
  71. package/src/orchestrator/prompts/generate-convoy.prompt.md +50 -50
  72. package/src/orchestrator/prompts/generate-prd.prompt.md +32 -32
  73. package/src/orchestrator/prompts/implement-feature.prompt.md +16 -16
  74. package/src/orchestrator/prompts/quick-refinement.prompt.md +18 -18
  75. package/src/orchestrator/prompts/resolve-pr-comments.prompt.md +9 -9
  76. package/src/orchestrator/prompts/validate-convoy.prompt.md +10 -10
  77. package/src/orchestrator/prompts/validate-prd.prompt.md +10 -10
  78. package/src/orchestrator/skills/accessibility-standards/SKILL.md +8 -8
  79. package/src/orchestrator/skills/agent-hooks/SKILL.md +1 -1
  80. package/src/orchestrator/skills/agent-memory/SKILL.md +11 -11
  81. package/src/orchestrator/skills/api-patterns/SKILL.md +5 -5
  82. package/src/orchestrator/skills/backbone-scaffolding/SKILL.md +24 -51
  83. package/src/orchestrator/skills/code-commenting/SKILL.md +3 -3
  84. package/src/orchestrator/skills/context-map/REFERENCE.md +2 -2
  85. package/src/orchestrator/skills/context-map/SKILL.md +5 -5
  86. package/src/orchestrator/skills/data-engineering/SKILL.md +12 -12
  87. package/src/orchestrator/skills/decomposition/SKILL.md +34 -7
  88. package/src/orchestrator/skills/deployment-infrastructure/SKILL.md +4 -4
  89. package/src/orchestrator/skills/documentation-standards/SKILL.md +7 -7
  90. package/src/orchestrator/skills/documentation-standards/WRITING-GUIDE.md +3 -3
  91. package/src/orchestrator/skills/fast-review/SKILL.md +2 -2
  92. package/src/orchestrator/skills/frontend-design/COMPONENTS.md +1 -1
  93. package/src/orchestrator/skills/frontend-design/SKILL.md +11 -11
  94. package/src/orchestrator/skills/git-workflow/SKILL.md +5 -5
  95. package/src/orchestrator/skills/memory-merger/SKILL.md +32 -8
  96. package/src/orchestrator/skills/observability-logging/SKILL.md +6 -11
  97. package/src/orchestrator/skills/orchestration-protocols/SKILL.md +15 -15
  98. package/src/orchestrator/skills/panel-majority-vote/SKILL.md +4 -4
  99. package/src/orchestrator/skills/performance-optimization/SKILL.md +5 -5
  100. package/src/orchestrator/skills/project-consistency/SKILL.md +4 -4
  101. package/src/orchestrator/skills/react-development/SKILL.md +8 -8
  102. package/src/orchestrator/skills/security-hardening/SKILL.md +12 -12
  103. package/src/orchestrator/skills/self-improvement/SKILL.md +11 -11
  104. package/src/orchestrator/skills/seo-patterns/SKILL.md +49 -23
  105. package/src/orchestrator/skills/session-checkpoints/SKILL.md +12 -12
  106. package/src/orchestrator/skills/team-lead-reference/SKILL.md +6 -6
  107. package/src/orchestrator/skills/testing-workflow/SKILL.md +3 -3
  108. package/src/orchestrator/skills/validation-gates/SKILL.md +6 -6
  109. package/src/orchestrator/skills/backbone-scaffolding/EXAMPLES.md +0 -16
  110. package/src/orchestrator/skills/decomposition/REFERENCE.md +0 -28
  111. package/src/orchestrator/skills/memory-merger/REFERENCE.md +0 -20
  112. package/src/orchestrator/skills/react-development/REFERENCE.md +0 -7
  113. package/src/orchestrator/skills/seo-patterns/REFERENCE.md +0 -54
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: context-map
3
- description: "Maps file dependencies, flags shared imports, and groups files for safe parallel editing before code changes. Use when planning a refactoring, analyzing change impact, or understanding which files a modification will affect."
3
+ description: "Maps file dependencies, flags shared imports, groups files for safe parallel editing before code changes. Use when planning a refactoring, analyzing change impact, or understanding which files a modification will affect."
4
4
  ---
5
5
 
6
6
  # Skill: Context Map
7
7
 
8
- Generate a **file impact map** before code changes to identify affected files, relationships, and cascades — improving agent file partitions for parallel work.
8
+ Generate **file impact map** before code changes to identify affected files, relationships, cascades — improves agent file partitions for parallel work.
9
9
 
10
10
  ## When to Use
11
11
 
@@ -19,7 +19,7 @@ Generate a **file impact map** before code changes to identify affected files, r
19
19
  ## Steps
20
20
 
21
21
  ### 1 — Entry Points
22
- Identify files that MUST change from the task description.
22
+ Identify files that MUST change from task description.
23
23
 
24
24
  ### 2 — Trace Outward (dependents)
25
25
  Find consumers of entry-point exports:
@@ -38,7 +38,7 @@ grep_search("from.*config", includePattern="src/places/**") # config deps
38
38
 
39
39
  ### 4 — Build the Map
40
40
 
41
- Produce a compact Context Map for the Team Lead and downstream agents. Example minimal map (inline):
41
+ Produce compact Context Map for Team Lead, downstream agents. Example minimal map (inline):
42
42
 
43
43
  ```markdown
44
44
  Context Map — Feature: Add priceRange
@@ -59,7 +59,7 @@ Context Map — Feature: Add priceRange
59
59
  - src/components/Account/**
60
60
  ```
61
61
 
62
- Validation checkpoint: run `grep_search` and `vscode_listCodeUsages` results into the map and confirm all listed files open without errors (CI: `pnpm typecheck`). For full template and Team Lead integration snippets see REFERENCE.md in this directory.
62
+ Validation checkpoint: run `grep_search`, `vscode_listCodeUsages` results into map; confirm all listed files open without errors (CI: `pnpm typecheck`). For full template, Team Lead integration snippets see REFERENCE.md in this directory.
63
63
 
64
64
  ## Anti-Patterns
65
65
 
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: data-engineering
3
- description: "Transforms, validates, and loads data in ETL pipelines. Use when building scrapers, validating NDJSON feeds, or importing data into CMS/DB targets."
3
+ description: "Transforms, validates, loads data in ETL pipelines. Use when building scrapers, validating NDJSON feeds, or importing data into CMS/DB targets."
4
4
  ---
5
5
 
6
6
  # Data Engineering
7
7
 
8
- Generic pipeline patterns. For project-specific sources and full schema references see [REFERENCE.md](./REFERENCE.md).
8
+ Generic pipeline patterns. For project-specific sources, full schema references see [REFERENCE.md](./REFERENCE.md).
9
9
 
10
10
  ## Scraper Architecture
11
11
 
@@ -26,17 +26,17 @@ One record per line. Schema:
26
26
 
27
27
  ## Recommended Workflow (numbered, with validation)
28
28
 
29
- 1. Scrape: run scraper in `--dry-run` to collect a sample (50–200 records).
30
- - Checkpoint: sample contains expected fields and geo data.
31
- - Recovery: fix extractor selectors, re-run sample.
29
+ 1. Scrape: run scraper in `--dry-run` to collect sample (50–200 records).
30
+ - Checkpoint: sample contains expected fields, geo data.
31
+ - Recovery: fix extractor selectors; re-run sample.
32
32
  2. Validate NDJSON: run line-by-line JSON parse + schema validator (see `validate-ndjson.js` example).
33
33
  - Checkpoint: 0 parse errors, required fields present.
34
- - Recovery: run `ndjson-filter` to isolate failing records and inspect source HTML.
35
- 3. Dry-run import: import into staging with `createOrReplace` disabled; check counts and duplicates.
36
- - Checkpoint: counts match expectation ±5% and no duplicates inserted.
37
- - Recovery: revert staging and adjust dedupe key.
38
- 4. Backup: snapshot current target (DB export) and store with timestamp.
39
- 5. Import: run import with idempotent keys and monitor logs; on failure revert to backup.
34
+ - Recovery: run `ndjson-filter` to isolate failing records; inspect source HTML.
35
+ 3. Dry-run import: import into staging with `createOrReplace` disabled; check counts, duplicates.
36
+ - Checkpoint: counts match expectation ±5%; no duplicates inserted.
37
+ - Recovery: revert staging; adjust dedupe key.
38
+ 4. Backup: snapshot current target (DB export); store with timestamp.
39
+ 5. Import: run import with idempotent keys; monitor logs; on failure revert to backup.
40
40
 
41
41
  ## Quick executable pipeline (copy & adapt)
42
42
 
@@ -59,5 +59,5 @@ if (errors) { console.error(`${errors} errors`); process.exit(2); }
59
59
  console.log('OK');
60
60
  ```
61
61
 
62
- Full scraper and extended validator: see [REFERENCE.md](./REFERENCE.md).
62
+ Full scraper, extended validator: see [REFERENCE.md](./REFERENCE.md).
63
63
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: decomposition
3
- description: "Resolves task dependencies, generates machine-actionable delegation specs, and structures phased subtask plans for multi-agent work. Use when writing delegation specs, resolving task dependencies, building phased subtask plans for multi-agent work, assigning work to sub-agents, or partitioning a feature into parallelizable phases."
3
+ description: "Resolves task dependencies, generates machine-actionable delegation specs, structures phased subtask plans for multi-agent work. Use when writing delegation specs, resolving task dependencies, building phased subtask plans for multi-agent work, assigning work to sub-agents, or partitioning a feature into parallelizable phases."
4
4
  ---
5
5
 
6
6
  # Task Decomposition
@@ -12,7 +12,7 @@ description: "Resolves task dependencies, generates machine-actionable delegatio
12
12
 
13
13
  **Topological sort:** No-dep tasks → Phase 1. Tasks depending only on Phase N → Phase N+1. Same-phase tasks with no mutual deps run in parallel.
14
14
 
15
- **Cycle detection:** If A → B → C → A, split one task into an independent part + a dependent part.
15
+ **Cycle detection:** If A → B → C → A, split one task into independent part + dependent part.
16
16
 
17
17
  ```
18
18
  Graph: Plan:
@@ -28,15 +28,42 @@ F → C, D Phase 3: E, F (parallel)
28
28
  | Tracker | TAS-XX — Title |
29
29
  | Complexity | [score]/13 → [tier] |
30
30
  | Agent | Agent Name |
31
- | Objective | 1-3 sentences: what to build/change and why |
31
+ | Objective | 1-3 sentences: what to build/change, why |
32
32
  | Context | Key files, related patterns, prior phase output, relevant lessons |
33
33
  | Constraints | File partition, explicit exclusions, phase dependencies |
34
34
  | Acceptance Criteria | `[ ]` checklist |
35
35
  | Expected Output | Files changed · Verification · AC status · Discovered issues |
36
36
 
37
- For score 1-3, objective + files + criteria is sufficient. See `REFERENCE.md` for the full delegation spec template.
37
+ For score 1-3, objective + files + criteria is sufficient. Full template:
38
38
 
39
- Read `.opencastle/LESSONS-LEARNED.md` before starting. Add a lesson if you retry any approach.
39
+ ```markdown
40
+ ## Delegation Spec: [Task Title]
41
+ **Tracker Issue:** TAS-XX — [Title]
42
+ **Complexity:** [score]/13 → [tier] tier
43
+ **Agent:** [Agent Name]
44
+
45
+ ### Objective
46
+ 1-3 sentences: what to build/change and why.
47
+
48
+ ### Context
49
+ - Key files: [list]
50
+ - Related patterns: [file:line references]
51
+ - Prior phase output: [compacted summary if applicable]
52
+ - Relevant lessons: [LES-XXX from LESSONS-LEARNED.md]
53
+
54
+ ### Constraints
55
+ - File partition: Only modify files under [paths]
56
+ - Do NOT modify: [explicit exclusions]
57
+ - Dependencies: Requires [TAS-XX] Done first
58
+
59
+ ### Acceptance Criteria
60
+ - [ ] Criterion 1
61
+
62
+ ### Expected Output
63
+ Files changed · Verification (lint/test/build) · AC status (✅/❌) · Discovered issues · Lessons applied
64
+ ```
65
+
66
+ Read `.opencastle/LESSONS-LEARNED.md` before starting. Add lesson if you retry any approach.
40
67
 
41
68
  ## Prompt Quality
42
69
 
@@ -90,6 +117,6 @@ Phase 2+: page tasks (parallel)
90
117
 
91
118
  **Common mistake:** Decomposing pages as independent Phase 1 tasks → each agent invents its own design.
92
119
 
93
- **Distinctive note (AI delegation):** This skill focuses on decomposition that produces machine-actionable delegation prompts: file partitions, explicit acceptance criteria, and machine-friendly constraints (exact paths, line ranges, forbidden files). The output should be ready to paste into a sub-agent prompt without additional human translation.
120
+ **Distinctive note (AI delegation):** This skill focuses on decomposition producing machine-actionable delegation prompts: file partitions, explicit acceptance criteria, machine-friendly constraints (exact paths, line ranges, forbidden files). Output should be ready to paste into sub-agent prompt without additional human translation.
94
121
 
95
- > Load the **project-consistency** skill for the full Foundation Phase pattern, prompt templates, and anti-patterns.
122
+ > Load **project-consistency** skill for full Foundation Phase pattern, prompt templates, anti-patterns.
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: deployment-infrastructure
3
- description: "Configures deployment pipelines, manages environment variables, schedules cron jobs, applies security headers, and implements caching strategies. Use when working with Docker, Vercel, AWS, Dockerfile, nginx.conf, or platform deployment configs."
3
+ description: "Configures deployment pipelines, manages environment variables, schedules cron jobs, applies security headers, implements caching strategies. Use when working with Docker, Vercel, AWS, Dockerfile, nginx.conf, or platform deployment configs."
4
4
  ---
5
5
 
6
6
  # Deployment Infrastructure
7
7
 
8
- See [deployment-config.md](../../.opencastle/stack/deployment-config.md) for full architecture, env vars, cron jobs, and caching headers.
8
+ See [deployment-config.md](../../.opencastle/stack/deployment-config.md) for full architecture, env vars, cron jobs, caching headers.
9
9
 
10
10
  ## Environment Variables
11
11
 
@@ -65,7 +65,7 @@ Apply via framework `headers()` config or CDN rules.
65
65
 
66
66
  ## Security Headers
67
67
 
68
- Load **security-hardening** skill for full CSP inventory and header configuration.
68
+ Load **security-hardening** skill for full CSP inventory, header configuration.
69
69
 
70
70
  ## Release Process
71
71
 
@@ -79,7 +79,7 @@ Load **security-hardening** skill for full CSP inventory and header configuratio
79
79
 
80
80
  ## Rollback
81
81
 
82
- Prefer platform rollback (promote last good deploy). Fallback: `git revert -m 1 HEAD && git push`.
82
+ Prefer platform rollback (promote last good deploy). Fallback: `git revert -m 1 HEAD Prefer platform rollback (promote last good deploy). Fallback: `git revert -m 1 HEAD && git push`.Prefer platform rollback (promote last good deploy). Fallback: `git revert -m 1 HEAD && git push`. git push`.
83
83
 
84
84
  1. Roll back → 2. Smoke-test (`curl -sI`) → 3. Confirm 200 + correct behavior → 4. If still broken, escalate
85
85
  5. Notify team; create post-mortem ticket
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: documentation-standards
3
- description: "Scaffolds issue docs, ADRs, README outlines, changelog entries, roadmap updates, and Mermaid architecture diagrams using project templates. Use when drafting an ADR, writing a changelog, updating the roadmap after a feature ships, creating a README for a new library, or diagramming a system flow."
3
+ description: "Scaffolds issue docs, ADRs, README outlines, changelog entries, roadmap updates, Mermaid architecture diagrams using project templates. Use when drafting ADR, writing changelog, updating roadmap after a feature ships, creating README for a new library, or diagramming a system flow."
4
4
  ---
5
5
 
6
6
  # Documentation Standards
7
7
 
8
- For project-specific directory structure and practices, see [docs-structure.md](../../.opencastle/project/docs-structure.md).
8
+ For project-specific directory structure, practices, see [docs-structure.md](../../.opencastle/project/docs-structure.md).
9
9
 
10
10
 
11
11
  ## Issue Documentation Template
@@ -34,7 +34,7 @@ For project-specific directory structure and practices, see [docs-structure.md](
34
34
 
35
35
  ## Roadmap Update Template
36
36
 
37
- When a feature is completed: add `COMPLETE` row with date and owner, list files changed with rationale, add validation command + exit status, move to `Completed` section with one-line release note.
37
+ When feature completed: add `COMPLETE` row with date, owner; list files changed with rationale; add validation command + exit status; move to `Completed` section with one-line release note.
38
38
 
39
39
  ```markdown
40
40
  - Feature: Add priceRange filter
@@ -63,7 +63,7 @@ One-sentence summary of what this does and why it exists.
63
63
  ## Quick Start
64
64
  Brief usage example or setup steps.
65
65
  ## Architecture
66
- High-level overview. Include a Mermaid diagram for non-trivial systems.
66
+ High-level overview. Include Mermaid diagram for non-trivial systems.
67
67
  ## Key Files
68
68
  | File | Purpose |
69
69
  |------|---------|
@@ -87,7 +87,7 @@ flowchart TD
87
87
 
88
88
  ## Changelog Entry Template
89
89
 
90
- Group entries by Conventional Commits type under a version heading:
90
+ Group entries by Conventional Commits type under version heading:
91
91
 
92
92
  ```markdown
93
93
  ## [1.2.0] — YYYY-MM-DD
@@ -99,7 +99,7 @@ Group entries by Conventional Commits type under a version heading:
99
99
  - refactor: Extract validation into shared module (#125)
100
100
  ```
101
101
 
102
- - One line per change; reference the PR or issue number
102
+ - One line per change; reference PR or issue number
103
103
  - Imperative mood; most recent version first
104
104
 
105
105
  ## Documentation workflow
@@ -117,4 +117,4 @@ Group entries by Conventional Commits type under a version heading:
117
117
 
118
118
  ## Writing, Formatting & Anti-Patterns
119
119
 
120
- See [WRITING-GUIDE.md](WRITING-GUIDE.md) for writing guidelines, formatting rules, and anti-patterns.
120
+ See [WRITING-GUIDE.md](WRITING-GUIDE.md) for writing guidelines, formatting rules, anti-patterns.
@@ -13,7 +13,7 @@
13
13
  | Element | Convention |
14
14
  |---------|-----------|
15
15
  | Headings | Sentence case (`## Core principles`, not `## Core Principles`). Exception: proper nouns and acronyms. |
16
- | Lists | Parallel structure — all items start with the same part of speech |
16
+ | Lists | Parallel structure — all items start with same part of speech |
17
17
  | Code | Inline backticks for symbols/commands; fenced blocks for multi-line |
18
18
  | Links | Descriptive text: `[migration guide](./migrate.md)` not `[click here](./migrate.md)` |
19
19
  | Tables | Use for structured comparisons; keep columns ≤5 |
@@ -21,7 +21,7 @@
21
21
 
22
22
  ## Markdown Standards
23
23
 
24
- - One blank line before and after headings, code blocks, and tables
24
+ - One blank line before, after headings, code blocks, tables
25
25
  - No trailing whitespace
26
26
  - Files end with a single newline
27
27
  - Use `---` for horizontal rules (sparingly)
@@ -32,7 +32,7 @@
32
32
  | Anti-pattern | Fix |
33
33
  |-------------|-----|
34
34
  | Walls of prose without structure | Break into headings, bullets, or tables |
35
- | Duplicate content across docs | Link to the canonical source |
35
+ | Duplicate content across docs | Link to canonical source |
36
36
  | Stale "Last Updated" dates | Remove or automate; manual dates drift |
37
37
  | TODO/FIXME placeholders in published docs | Resolve before merging |
38
38
  | Screenshots without alt text | Add descriptive alt text for accessibility |
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: fast-review
3
- description: "Mandatory post-delegation gate that checks output completeness, verifies acceptance criteria compliance, flags regressions, and produces a PASS/FAIL verdict. Use when checking delegated work against acceptance criteria, running the post-delegation gate, validating agent output before acceptance, verifying a sub-agent completed its assignment, or running a post-delegation QA check."
3
+ description: "Mandatory post-delegation gate: checks output completeness, verifies acceptance criteria compliance, flags regressions, produces PASS/FAIL verdict. Use when checking delegated work against acceptance criteria, running post-delegation gate, validating agent output before acceptance, verifying sub-agent completed its assignment, or running post-delegation QA check."
4
4
  ---
5
5
 
6
6
  # Skill: Fast Review
@@ -57,7 +57,7 @@ CONFIDENCE: low | medium | high
57
57
 
58
58
  ## Reviewer Prompt Template
59
59
 
60
- See [REFERENCE.md](REFERENCE.md) for the full reviewer prompt template.
60
+ See [REFERENCE.md](REFERENCE.md) for full reviewer prompt template.
61
61
 
62
62
  ## Logging
63
63
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Frontend Design Components
4
4
 
5
- Extended component patterns, card variants, and hero animations for the **frontend-design** skill.
5
+ Extended component patterns, card variants, hero animations for **frontend-design** skill.
6
6
 
7
7
  ## Design Tokens (starter)
8
8
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: frontend-design
3
- description: "Defines a named visual aesthetic, selects typography pairings, builds CSS token systems, and adds entrance animations for high-design-quality pages. Use when the user asks to design a landing page, style a marketing site, create a distinctive UI theme, pick fonts, or add CSS animations — specifically when visual polish and brand identity matter rather than generic component scaffolding."
3
+ description: "Defines named visual aesthetic, selects typography pairings, builds CSS token systems, adds entrance animations for high-design-quality pages. Use when user asks to design landing page, style marketing site, create distinctive UI theme, pick fonts, or add CSS animations — specifically when visual polish, brand identity matter rather than generic component scaffolding."
4
4
  license: Complete terms in LICENSE.txt
5
5
  ---
6
6
 
@@ -8,10 +8,10 @@ license: Complete terms in LICENSE.txt
8
8
 
9
9
  ## Design Workflow
10
10
 
11
- 1. **Name the aesthetic** — declare a 2–3 word direction in a code comment at the top of the main CSS file
12
- 2. **Set foundations** — define `:root` CSS custom properties for colors, spacing, and radii
11
+ 1. **Name the aesthetic** — declare 2–3 word direction in code comment at top of main CSS file
12
+ 2. **Set foundations** — define `:root` CSS custom properties for colors, spacing, radii
13
13
  3. **Build components** — implement layout, cards, heroes, forms using only tokens from step 2
14
- 4. **Add motion** — add `@keyframes` entrance animations wrapped in a reduced-motion guard
14
+ 4. **Add motion** — add `@keyframes` entrance animations wrapped in reduced-motion guard
15
15
  5. **Validate** — run Quality Checklist below; fix any failing item before marking done
16
16
 
17
17
  ### Quick-start example
@@ -35,23 +35,23 @@ license: Complete terms in LICENSE.txt
35
35
  }
36
36
  ```
37
37
 
38
- Card patterns, hero animations, and extended token sets are in [COMPONENTS.md](./COMPONENTS.md).
38
+ Card patterns, hero animations, extended token sets in [COMPONENTS.md](./COMPONENTS.md).
39
39
 
40
40
  ## Design Principles
41
41
 
42
- High-level design principles and the full set of example constraints live in [REFERENCE.md](./REFERENCE.md). Keep this checklist as a short reminder:
42
+ High-level design principles, full example constraints live in [REFERENCE.md](./REFERENCE.md). Keep this checklist as short reminder:
43
43
 
44
- - Pick a named aesthetic (2–3 words) and commit to it.
45
- - Use tokenized colors/spacing, respect WCAG contrast, and prefer semantic HTML.
46
- - Respect `prefers-reduced-motion` and keep critical animations under 500ms.
44
+ - Pick named aesthetic (2–3 words); commit to it.
45
+ - Use tokenized colors/spacing; respect WCAG contrast; prefer semantic HTML.
46
+ - Respect `prefers-reduced-motion`; keep critical animations under 500ms.
47
47
 
48
48
  **Every design must have one unforgettable detail.** No two designs should look alike.
49
49
 
50
50
  ## Typography Pairings
51
51
 
52
- Recommended typography pairings and an extended catalogue are in [REFERENCE.md](./REFERENCE.md). For production, always include a metric-preserving fallback chain (e.g., `'Fraunces', 'Georgia', serif`).
52
+ Recommended typography pairings, extended catalogue in [REFERENCE.md](./REFERENCE.md). For production, always include metric-preserving fallback chain (e.g., `.Fraunces., .Georgia., serif`).
53
53
 
54
- > Load the **project-consistency** skill for the full Foundation Phase pattern and prompt templates.
54
+ > Load **project-consistency** skill for full Foundation Phase pattern, prompt templates.
55
55
 
56
56
  ### Quality Checklist (quick)
57
57
 
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: git-workflow
3
- description: "Defines branch naming conventions, PR template requirements, commit message format, discovered-issues escalation policy, and task tracking conventions. Load when committing, pushing, or opening PRs."
3
+ description: "Defines branch naming conventions, PR template requirements, commit message format, discovered-issues escalation policy, task tracking conventions. Load when committing, pushing, or opening PRs."
4
4
  ---
5
5
 
6
6
  # Git Workflow & Delivery
7
7
 
8
- **NEVER push directly to `main`.** All changes go through a feature/fix branch → PR.
8
+ **NEVER push directly to `main`.** All changes go through feature/fix branch → PR.
9
9
 
10
10
  ## Branch & Commit Rules
11
11
 
@@ -22,7 +22,7 @@ description: "Defines branch naming conventions, PR template requirements, commi
22
22
  1. Branch `<type>/<ticket-id>-<slug>` from `main`
23
23
  2. Atomic commits referencing issue ID
24
24
  3. Push branch to origin
25
- 4. Open PR (do NOT merge) — write the body to a temp file first, then use `--body-file`:
25
+ 4. Open PR (do NOT merge) — write body to temp file first; use `--body-file`:
26
26
  ```sh
27
27
  # Write PR body to a temp file to avoid shell escaping issues
28
28
  cat > /tmp/pr-body.md << 'EOF'
@@ -33,7 +33,7 @@ description: "Defines branch naming conventions, PR template requirements, commi
33
33
  EOF
34
34
  GH_PAGER=cat gh pr create --base main --title "TAS-XX: Short description" --body-file /tmp/pr-body.md
35
35
  ```
36
- **Never use inline `--body` with markdown/backticks/special chars** — it breaks in zsh heredocs and quoted strings.
36
+ **Never use inline `--body` with markdown/backticks/special chars** — breaks in zsh heredocs, quoted strings.
37
37
  5. Update issue with PR URL
38
38
 
39
39
  ## Discovered Issues Policy
@@ -44,4 +44,4 @@ description: "Defines branch naming conventions, PR template requirements, commi
44
44
 
45
45
  Tracked in the **task tracker** (`tracker-config.md`). Team Lead creates/updates issues via MCP. Load **task-management** skill for conventions.
46
46
 
47
- **If MCP tools unavailable:** Document planned issues (title + AC) in output, use `"N/A"` (no tracker) or `"TAS-PENDING"` (tracker configured), proceed with work, update IDs when available.
47
+ **If MCP tools unavailable:** Document planned issues (title + AC) in output; use `"N/A"` (no tracker) or `"TAS-PENDING"` (tracker configured); proceed with work; update IDs when available.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: memory-merger
3
- description: "Reviews mature LESSONS-LEARNED.md entries, rewrites them as permanent rules in skill/instruction files, and archives graduated lessons. Use when graduating lessons into skills, promoting validated lessons, updating skills from past learnings, archiving mature lessons, codifying repeated patterns, or cleaning up a crowded LESSONS-LEARNED.md."
3
+ description: "Reviews mature LESSONS-LEARNED.md entries, rewrites them as permanent rules in skill/instruction files, archives graduated lessons. Use when graduating lessons into skills, promoting validated lessons, updating skills from past learnings, archiving mature lessons, codifying repeated patterns, or cleaning up a crowded LESSONS-LEARNED.md."
4
4
  ---
5
5
 
6
6
  # Memory Merger
@@ -22,11 +22,11 @@ Combined signals to identify merge candidates.
22
22
  ## Workflow (numbered)
23
23
 
24
24
  1. Scan LESSONS-LEARNED.md for candidate entries (frequency, severity, age).
25
- 2. Map each candidate to a target file and section.
26
- 3. Draft the exact edit (concise rule or example).
27
- 4. Apply the edit with an attribution comment.
28
- 5. Archive the migrated lesson in LESSONS-LEARNED.md with a merge note.
29
- 6. Update the index and run validation checks.
25
+ 2. Map each candidate to target file, section.
26
+ 3. Draft exact edit (concise rule or example).
27
+ 4. Apply edit with attribution comment.
28
+ 5. Archive migrated lesson in LESSONS-LEARNED.md with merge note.
29
+ 6. Update index; run validation checks.
30
30
 
31
31
  ## Merge Protocol
32
32
 
@@ -58,9 +58,33 @@ Move merged lessons to `## Archived (Merged)` at the bottom of `LESSONS-LEARNED.
58
58
 
59
59
  Update `## Index by Category` in `LESSONS-LEARNED.md` to mark archived lessons.
60
60
 
61
- ### Worked Example
61
+ ### Worked Example: LES-042 — MCP Tool Timeout
62
62
 
63
- See [REFERENCE.md](./REFERENCE.md) for a full worked merge example (LES-042: MCP tool timeout).
63
+ **Source lesson** (cited 4×, severity high, 90 days old):
64
+ > LES-042: MCP tool timeout causes silent failures — set explicit timeout, check return value
65
+
66
+ **Draft:**
67
+ ```
68
+ Lesson: LES-042 — MCP tool timeout
69
+ Target: src/orchestrator/skills/orchestration-protocols/SKILL.md
70
+ Section: Error Recovery Playbook
71
+ Edit: Add row: | **MCP timeout** | Tool returns null/undefined after delay | Set explicit timeout (30s); check return value; retry once; fall back to CLI; log to DLQ | <!-- Merged from LES-042 -->
72
+ ```
73
+
74
+ **Archive in `LESSONS-LEARNED.md`:**
75
+ ```markdown
76
+ ### LES-042: MCP tool timeout → Merged to `src/orchestrator/skills/orchestration-protocols/SKILL.md` on 2026-05-18
77
+ ```
78
+
79
+ ### Automating the scan
80
+
81
+ ```sh
82
+ # Find lessons cited 3+ times across sessions
83
+ rg -c "LES-[0-9]+" .opencastle/logs/events.ndjson | awk -F: '$2 >= 3 {print $1}'
84
+
85
+ # Find lessons referenced in recent retries
86
+ rg "retry.*LES-[0-9]+" .opencastle/logs/events.ndjson | rg -o "LES-[0-9]+" | sort | uniq -c | sort -rn | head -20
87
+ ```
64
88
 
65
89
  ## Quality Gates (validation checkpoints)
66
90
 
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: observability-logging
3
- description: "Writes session logs, records delegation decisions, and tracks review/dispute outcomes in NDJSON format. Use when logging session activity, recording audit trails, or running pre-response verification checklists."
3
+ description: "Logs sessions, tracks activity, records delegation decisions, and stores review/dispute outcomes as NDJSON audit trails. Use when logging session activity, tracking work, recording decisions, building audit trails, capturing delegation history, or running pre-response verification checklists. Trigger terms: log, track activity, audit trail, session record, delegation log, NDJSON"
4
4
  ---
5
5
 
6
6
  # Observability Logging
7
7
 
8
- > **⛔ HARD GATE.** Every agent MUST log every session to `events.ndjson` before responding. No exceptions. A session without logs is a failed session.
8
+ > **⛔ HARD GATE.** Every agent MUST log every session to `events.ndjson` before responding. No exceptions. Session without logs is a failed session.
9
9
 
10
10
  | File | Event types | Who | When |
11
11
  |------|------------|-----|------|
@@ -22,7 +22,7 @@ opencastle log --type session --agent Developer --model claude-opus-4-6 \
22
22
  --files_changed 3 --retries 0
23
23
  ```
24
24
 
25
- **Delegation** (Team Lead — immediately after each delegation, not at session end):
25
+ **Delegation** (Team Lead, after each delegation never batched):
26
26
  ```sh
27
27
  opencastle log --type delegation --session_id feat/prj-57 --agent Developer \
28
28
  --model claude-sonnet-4-6 --tier quality --mechanism sub-agent \
@@ -32,7 +32,7 @@ opencastle log --type delegation --session_id feat/prj-57 --agent Developer \
32
32
 
33
33
  > `model` and `tier` must reflect the delegated agent's assignment from the agent registry.
34
34
 
35
- **Review** (Team Lead — immediately after each fast review):
35
+ **Review** (Team Lead, after each fast review):
36
36
  ```sh
37
37
  opencastle log --type review --tracker_issue PRJ-42 --agent Developer \
38
38
  --reviewer_model gpt-5-mini --verdict pass --attempt 1 \
@@ -40,7 +40,7 @@ opencastle log --type review --tracker_issue PRJ-42 --agent Developer \
40
40
  --confidence high --escalated false --duration_sec 45
41
41
  ```
42
42
 
43
- **Panel** (Panel runner — immediately after each panel vote):
43
+ **Panel** (Panel runner, after each vote):
44
44
  ```sh
45
45
  opencastle log --type panel --panel_key auth-review --verdict pass \
46
46
  --pass_count 3 --block_count 0 --must_fix 0 --should_fix 3 \
@@ -48,7 +48,7 @@ opencastle log --type panel --panel_key auth-review --verdict pass \
48
48
  --tracker_issue PRJ-42 --artifacts_count 5
49
49
  ```
50
50
 
51
- **Dispute** (Team Lead — immediately after each dispute):
51
+ **Dispute** (Team Lead, after each dispute):
52
52
  ```sh
53
53
  opencastle log --type dispute --dispute_id DSP-001 --tracker_issue PRJ-42 \
54
54
  --priority high --trigger panel-3x-block --implementing_agent Developer \
@@ -66,11 +66,6 @@ Verify any append: `tail -1 .opencastle/logs/events.ndjson`
66
66
  - [ ] **Delegations logged** — `delegation` record per delegation (Team Lead) (if applicable)
67
67
  - [ ] **Reviews logged** — `review` record per fast review (if applicable)
68
68
 
69
- ## Universal Agent Rules
70
-
71
- 1. **Read and update lessons** — Read `.opencastle/LESSONS-LEARNED.md` before starting; add lessons after retries via **self-improvement** skill.
72
- 2. **Log every session** — See [logging-mandatory](../../snippets/logging-mandatory.md).
73
-
74
69
  ## Base Output Contract
75
70
 
76
71
  > Inherits: [base-output-contract](../../snippets/base-output-contract.md)
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  name: orchestration-protocols
3
- description: "Coordinates multiple agents with parallel task spawning, health monitoring, circuit breakers, and escalation paths. Use when managing parallel agents, handling agent timeouts, orchestrate agents, run tasks in parallel, concurrent agent execution, or fan-out tasks. Use when coordinating multi-agent task delegation."
3
+ description: "Coordinate multiple agents: parallel spawning, health monitoring, circuit breakers, escalation. Use for parallel agents, agent timeouts, fan-out tasks, multi-agent delegation."
4
4
  ---
5
5
 
6
6
  # Orchestration Protocols
7
7
 
8
- Runtime patterns for managing delegated agents.
8
+ Runtime patterns for delegated agents.
9
9
 
10
10
  ## Active Steering
11
11
 
12
- Intervene early when you spot:
12
+ Intervene early on:
13
13
 
14
14
  | Signal | Action |
15
15
  |--------|--------|
@@ -19,11 +19,11 @@ Intervene early when you spot:
19
19
  | Circular behavior | Halt; switch approach |
20
20
  | Intent misunderstanding | Clarify prompt; re-delegate |
21
21
 
22
- When redirecting, explain *why* and *how*:
22
+ When redirecting, explain *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:** Catch problems early (5 min in can save an hour). **Background agents:** Steer post-hoc — invest in prompt specificity and partition constraints upfront.
26
+ **Sub-agents:** Catch problems early (5 min in saves an hour). **Background agents:** Steer post-hoc — invest in prompt specificity, partition constraints upfront.
27
27
 
28
28
  ## Background Agents
29
29
 
@@ -31,18 +31,18 @@ Run autonomously in isolated Git worktrees. Reserve for well-scoped tasks >5 min
31
31
 
32
32
  - **Spawn:** Delegate Session → Background → Select agent → Enter prompt
33
33
  - **Auto-compaction:** At 95% token limit; use `--resume` to continue
34
- - **No real-time monitoring:** Invest in specific prompts, strict partition constraints, and acceptance criteria checklists upfront
34
+ - **No real-time monitoring:** Invest in specific prompts, strict partition constraints, acceptance criteria checklists upfront
35
35
 
36
36
  ## Parallel Research Protocol
37
37
 
38
- Spawn multiple research sub-agents in parallel when 3+ independent questions must be answered before implementation. **Spawn if:** ≥3 independent questions AND answers span multiple codebase areas — otherwise handle sequentially.
38
+ Spawn multiple research sub-agents in parallel when 3+ independent questions need answers before implementation. **Spawn if:** ≥3 independent questions AND answers span multiple codebase areas — else handle sequentially.
39
39
 
40
40
  ### Spawn Strategy
41
41
 
42
42
  | Rule | Detail |
43
43
  |------|--------|
44
44
  | Divide by topic/area | Each researcher owns a coherent domain |
45
- | Max 3–5 researchers | More creates diminishing returns and token waste |
45
+ | Max 3–5 researchers | More: diminishing returns, token waste |
46
46
  | Focused scope per agent | Explicit dirs, file patterns, or questions |
47
47
  | Economy/Standard tier | Manage cost for research sub-agents |
48
48
 
@@ -56,21 +56,21 @@ Return: key findings, relevant file paths (with line numbers), patterns, unanswe
56
56
  ### Result Merge Protocol
57
57
 
58
58
  1. Collect all results into single context
59
- 2. **Checkpoint:** verify every researcher returned a result (no timeout or error); re-run any that failed before proceeding.
59
+ 2. **Checkpoint:** verify every researcher returned a result (no timeout/error); re-run failures before proceeding.
60
60
  3. Deduplicate (same file/pattern counts once)
61
61
  4. Resolve conflicts — specific evidence beats general observations
62
62
  5. Synthesize into concise context block for implementation prompts
63
- 6. **Checkpoint:** confirm synthesized block covers every original question; mark any unanswered questions as blockers.
63
+ 6. **Checkpoint:** confirm synthesized block covers every original question; mark unanswered as blockers.
64
64
 
65
65
  ## Batch Reviews
66
66
 
67
67
  - Group by domain (UI, data); run fast reviews in parallel for independent outputs
68
- - Review sequentially when outputs share the same partition boundary
69
- - Combine related artifacts into one panel question when they share acceptance criteria
68
+ - Review sequentially when outputs share partition boundary
69
+ - Combine related artifacts into one panel question when sharing acceptance criteria
70
70
 
71
71
  ## Context Compaction
72
72
 
73
- Summarize prior phase output before passing to the next agent. **Extract:** files changed, key decisions, verification (pass/fail), blockers. **Discard:** raw tool output, reasoning traces, failed attempts.
73
+ Summarize prior phase output before passing to next agent. **Extract:** files changed, key decisions, verification (pass/fail), blockers. **Discard:** raw tool output, reasoning traces, failed attempts.
74
74
 
75
75
  **Template:**
76
76
  ```
@@ -94,12 +94,12 @@ Summarize prior phase output before passing to the next agent. **Extract:** file
94
94
 
95
95
  ## Health & Recovery Reference
96
96
 
97
- Detailed Agent Health Monitoring, Error Recovery Playbook, and Agent Circuit Breaker tables have been moved to REFERENCE.md to keep this skill concise. See REFERENCE.md in this directory for thresholds, recovery steps, and escalation flows.
97
+ Agent Health Monitoring, Error Recovery Playbook, Circuit Breaker tables moved to REFERENCE.md. See REFERENCE.md for thresholds, recovery steps, escalation flows.
98
98
 
99
99
 
100
100
  ### CLI examples (spawn & monitor)
101
101
 
102
- These use the OpenCastle CLI (`npx opencastle` or `bin/cli.mjs`):
102
+ Use OpenCastle CLI (`npx opencastle` or `bin/cli.mjs`):
103
103
 
104
104
  ```bash
105
105
  opencastle run --file convoy.yml --dry-run
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: panel-majority-vote
3
- description: "Runs 3 isolated reviewer sub-agents and consolidates a PASS/BLOCK verdict by majority. Use when the user requests an independent review of code changes, pull requests, design documents, or release notes."
3
+ description: "Runs 3 isolated reviewer sub-agents; consolidates PASS/BLOCK verdict by majority. Use when user requests independent review of code changes, pull requests, design documents, or release notes."
4
4
  ---
5
5
 
6
6
  # Skill: Panel majority vote
@@ -18,7 +18,7 @@ description: "Runs 3 isolated reviewer sub-agents and consolidates a PASS/BLOCK
18
18
 
19
19
  ## Procedure
20
20
 
21
- 1. **Validate scope** — every artifact path is under `<runRoot>` and the list is sufficient to answer the question.
21
+ 1. **Validate scope** — every artifact path under `<runRoot>`; list sufficient to answer question.
22
22
 
23
23
  2. **Spawn 3 reviewers in parallel** — start three isolated subagents with identical prompts. Spawn 3 reviewers using `runSubagent` with identical prompts; each reviewer receives the same question, artifact list, and constraints but runs in isolation. Required reviewer output sections (no others): `VERDICT: PASS | BLOCK`, `MUST-FIX:`, `SHOULD-FIX:`, `QUESTIONS:`, `TEST IDEAS:`, `CONFIDENCE: low | med | high`.
24
24
 
@@ -48,9 +48,9 @@ jq -n --arg panel_key "run123-panel" --arg verdict "$verdict" --argjson pass_cou
48
48
 
49
49
  ## Notes
50
50
 
51
- - On BLOCK: change the underlying work and re-run; do not re-word the question.
51
+ - On BLOCK: change underlying work; re-run; do not re-word question.
52
52
  - After 3 consecutive BLOCKs on the same panel key: create a dispute record per **team-lead-reference** § Dispute Protocol.
53
- - Model selection: use the same model for all 3 reviewers. See **team-lead-reference** for model routing.
53
+ - Model selection: use same model for all 3 reviewers. See **team-lead-reference** for model routing.
54
54
 
55
55
  ## Related Resources
56
56