opencastle 0.35.2 → 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.
- package/package.json +1 -1
- package/src/dashboard/dist/data/convoys/demo-api-v2.json +3 -3
- package/src/dashboard/dist/data/convoys/demo-auth-revamp.json +4 -4
- package/src/dashboard/dist/data/convoys/demo-dashboard-ui.json +12 -12
- package/src/dashboard/dist/data/convoys/demo-data-pipeline.json +9 -9
- package/src/dashboard/dist/data/convoys/demo-deploy-ci.json +1 -1
- package/src/dashboard/dist/data/convoys/demo-docs-update.json +7 -7
- package/src/dashboard/dist/data/convoys/demo-perf-opt.json +4 -4
- package/src/dashboard/node_modules/.vite/deps/_metadata.json +6 -6
- package/src/dashboard/public/data/convoys/demo-api-v2.json +3 -3
- package/src/dashboard/public/data/convoys/demo-auth-revamp.json +4 -4
- package/src/dashboard/public/data/convoys/demo-dashboard-ui.json +12 -12
- package/src/dashboard/public/data/convoys/demo-data-pipeline.json +9 -9
- package/src/dashboard/public/data/convoys/demo-deploy-ci.json +1 -1
- package/src/dashboard/public/data/convoys/demo-docs-update.json +7 -7
- package/src/dashboard/public/data/convoys/demo-perf-opt.json +4 -4
- package/src/orchestrator/agents/api-designer.agent.md +10 -10
- package/src/orchestrator/agents/architect.agent.md +8 -8
- package/src/orchestrator/agents/content-engineer.agent.md +5 -5
- package/src/orchestrator/agents/copywriter.agent.md +7 -7
- package/src/orchestrator/agents/data-expert.agent.md +9 -9
- package/src/orchestrator/agents/database-engineer.agent.md +7 -7
- package/src/orchestrator/agents/developer.agent.md +13 -13
- package/src/orchestrator/agents/devops-expert.agent.md +10 -10
- package/src/orchestrator/agents/documentation-writer.agent.md +8 -8
- package/src/orchestrator/agents/performance-expert.agent.md +9 -9
- package/src/orchestrator/agents/release-manager.agent.md +8 -8
- package/src/orchestrator/agents/researcher.agent.md +5 -5
- package/src/orchestrator/agents/reviewer.agent.md +5 -5
- package/src/orchestrator/agents/security-expert.agent.md +10 -10
- package/src/orchestrator/agents/seo-specialist.agent.md +11 -11
- package/src/orchestrator/agents/session-guard.agent.md +2 -2
- package/src/orchestrator/agents/team-lead.agent.md +4 -4
- package/src/orchestrator/agents/testing-expert.agent.md +7 -7
- package/src/orchestrator/agents/ui-ux-expert.agent.md +15 -15
- package/src/orchestrator/prompts/assess-complexity.prompt.md +8 -8
- package/src/orchestrator/prompts/bootstrap-customizations.prompt.md +17 -17
- package/src/orchestrator/prompts/brainstorm.prompt.md +17 -17
- package/src/orchestrator/prompts/bug-fix.prompt.md +11 -11
- package/src/orchestrator/prompts/create-skill.prompt.md +21 -21
- package/src/orchestrator/prompts/fix-convoy.prompt.md +8 -8
- package/src/orchestrator/prompts/fix-prd.prompt.md +12 -12
- package/src/orchestrator/prompts/generate-convoy.prompt.md +50 -50
- package/src/orchestrator/prompts/generate-prd.prompt.md +32 -32
- package/src/orchestrator/prompts/implement-feature.prompt.md +16 -16
- package/src/orchestrator/prompts/quick-refinement.prompt.md +18 -18
- package/src/orchestrator/prompts/resolve-pr-comments.prompt.md +9 -9
- package/src/orchestrator/prompts/validate-convoy.prompt.md +10 -10
- package/src/orchestrator/prompts/validate-prd.prompt.md +10 -10
- package/src/orchestrator/skills/accessibility-standards/SKILL.md +8 -8
- package/src/orchestrator/skills/agent-hooks/SKILL.md +1 -1
- package/src/orchestrator/skills/agent-memory/SKILL.md +11 -11
- package/src/orchestrator/skills/api-patterns/SKILL.md +5 -5
- package/src/orchestrator/skills/backbone-scaffolding/SKILL.md +24 -51
- package/src/orchestrator/skills/code-commenting/SKILL.md +3 -3
- package/src/orchestrator/skills/context-map/REFERENCE.md +2 -2
- package/src/orchestrator/skills/context-map/SKILL.md +5 -5
- package/src/orchestrator/skills/data-engineering/SKILL.md +12 -12
- package/src/orchestrator/skills/decomposition/SKILL.md +34 -7
- package/src/orchestrator/skills/deployment-infrastructure/SKILL.md +4 -4
- package/src/orchestrator/skills/documentation-standards/SKILL.md +7 -7
- package/src/orchestrator/skills/documentation-standards/WRITING-GUIDE.md +3 -3
- package/src/orchestrator/skills/fast-review/SKILL.md +2 -2
- package/src/orchestrator/skills/frontend-design/COMPONENTS.md +1 -1
- package/src/orchestrator/skills/frontend-design/SKILL.md +11 -11
- package/src/orchestrator/skills/git-workflow/SKILL.md +5 -5
- package/src/orchestrator/skills/memory-merger/SKILL.md +32 -8
- package/src/orchestrator/skills/observability-logging/SKILL.md +6 -11
- package/src/orchestrator/skills/orchestration-protocols/SKILL.md +15 -15
- package/src/orchestrator/skills/panel-majority-vote/SKILL.md +4 -4
- package/src/orchestrator/skills/performance-optimization/SKILL.md +5 -5
- package/src/orchestrator/skills/project-consistency/SKILL.md +4 -4
- package/src/orchestrator/skills/react-development/SKILL.md +8 -8
- package/src/orchestrator/skills/security-hardening/SKILL.md +12 -12
- package/src/orchestrator/skills/self-improvement/SKILL.md +11 -11
- package/src/orchestrator/skills/seo-patterns/SKILL.md +49 -23
- package/src/orchestrator/skills/session-checkpoints/SKILL.md +12 -12
- package/src/orchestrator/skills/team-lead-reference/SKILL.md +6 -6
- package/src/orchestrator/skills/testing-workflow/SKILL.md +3 -3
- package/src/orchestrator/skills/validation-gates/SKILL.md +6 -6
- package/src/orchestrator/skills/backbone-scaffolding/EXAMPLES.md +0 -16
- package/src/orchestrator/skills/decomposition/REFERENCE.md +0 -28
- package/src/orchestrator/skills/memory-merger/REFERENCE.md +0 -20
- package/src/orchestrator/skills/react-development/REFERENCE.md +0 -7
- package/src/orchestrator/skills/seo-patterns/REFERENCE.md +0 -54
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: decomposition
|
|
3
|
-
description: "Resolves task dependencies, generates machine-actionable delegation specs,
|
|
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
|
|
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
|
|
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.
|
|
37
|
+
For score 1-3, objective + files + criteria is sufficient. Full template:
|
|
38
38
|
|
|
39
|
-
|
|
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
|
|
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
|
|
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,
|
|
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,
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
60
|
+
See [REFERENCE.md](REFERENCE.md) for full reviewer prompt template.
|
|
61
61
|
|
|
62
62
|
## Logging
|
|
63
63
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: frontend-design
|
|
3
|
-
description: "Defines
|
|
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
|
|
12
|
-
2. **Set foundations** — define `:root` CSS custom properties for colors, spacing,
|
|
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
|
|
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,
|
|
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
|
|
42
|
+
High-level design principles, full example constraints live in [REFERENCE.md](./REFERENCE.md). Keep this checklist as short reminder:
|
|
43
43
|
|
|
44
|
-
- Pick
|
|
45
|
-
- Use tokenized colors/spacing
|
|
46
|
-
- Respect `prefers-reduced-motion
|
|
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
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
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** —
|
|
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
|
|
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,
|
|
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
|
|
26
|
-
3. Draft
|
|
27
|
-
4. Apply
|
|
28
|
-
5. Archive
|
|
29
|
-
6. Update
|
|
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
|
-
|
|
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: "
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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: "
|
|
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
|
|
8
|
+
Runtime patterns for delegated agents.
|
|
9
9
|
|
|
10
10
|
## Active Steering
|
|
11
11
|
|
|
12
|
-
Intervene early
|
|
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*
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
69
|
-
- Combine related artifacts into one panel question when
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: performance-optimization
|
|
3
|
-
description: "Profiles
|
|
3
|
+
description: "Profiles, reduces frontend/backend costs: split bundles, optimize assets, apply caching, fix Core Web Vitals regressions. Use when profiling Lighthouse/CI regressions, reducing bundle size, or fixing high CLS/LCP/TTI metrics."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Performance Optimization
|
|
7
7
|
|
|
8
8
|
**Rule:** Measure first (`Chrome DevTools`, `Lighthouse`, `Datadog`), optimize second. Set budgets (load time, memory, API latency). Automate in CI/CD.
|
|
9
9
|
|
|
10
|
-
Domain-specific patterns (rendering, JS, Node optimizations)
|
|
10
|
+
Domain-specific patterns (rendering, JS, Node optimizations) referenced in REFERENCE.md to keep this skill concise.
|
|
11
11
|
|
|
12
12
|
## Patterns by Domain
|
|
13
13
|
|
|
@@ -55,15 +55,15 @@ export default function List({items}){
|
|
|
55
55
|
|
|
56
56
|
## Profiling Workflow (step-by-step)
|
|
57
57
|
|
|
58
|
-
1. Run Lighthouse (or CI perf job)
|
|
58
|
+
1. Run Lighthouse (or CI perf job); record baseline.
|
|
59
59
|
- Checkpoint: failing metric(s) identified (LCP/CLS/FID/TTI).
|
|
60
60
|
- Recovery: if noisy, reproduce locally with `--emulated-form-factor=mobile`.
|
|
61
61
|
2. Profile with DevTools Profiler / React profiler or Node `clinic` for backend.
|
|
62
62
|
- Checkpoint: hotspot call stacks / long tasks located.
|
|
63
63
|
3. Apply minimal fix (code-split, memoize, reduce payloads, defer non-critical work).
|
|
64
64
|
- Checkpoint: targeted change reduces measured hotspot time in profiler.
|
|
65
|
-
4. Re-run Lighthouse/CI perf job
|
|
66
|
-
5. If regression persists, iterate
|
|
65
|
+
4. Re-run Lighthouse/CI perf job; compare; set threshold (e.g., 10% improvement or within budget).
|
|
66
|
+
5. If regression persists, iterate; create rollback plan; note fixes in changelog.
|
|
67
67
|
|
|
68
68
|
## Review Checklist
|
|
69
69
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: project-consistency
|
|
3
|
-
description: "Generates shared CSS variables, validates component naming conventions,
|
|
3
|
+
description: "Generates shared CSS variables, validates component naming conventions, creates layout pattern templates. Use when coordinating design system, theme, consistent styling, CSS variables, or component library across parallel agents."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Project Consistency
|
|
7
7
|
|
|
8
|
-
Ensure consistency by producing shared artifacts
|
|
8
|
+
Ensure consistency by producing shared artifacts, automated checks before parallel work begins.
|
|
9
9
|
|
|
10
10
|
## Foundation-First Principle
|
|
11
11
|
|
|
@@ -22,13 +22,13 @@ Phase 1 (sequential): create shared artifacts (tokens, Layout, UI components). P
|
|
|
22
22
|
|
|
23
23
|
**Validation checkpoints:**
|
|
24
24
|
1. Foundation complete: `tokens.css` has all palette/type/spacing vars, Layout renders, UI components compile.
|
|
25
|
-
2. Per-page: `grep -r
|
|
25
|
+
2. Per-page: `grep -r .style={{. src/pages/` returns 0 hits (no inline styles). All imports resolve.
|
|
26
26
|
|
|
27
27
|
---
|
|
28
28
|
|
|
29
29
|
## Convoy Integration
|
|
30
30
|
|
|
31
|
-
Phase 1 (sequential): foundation-setup creates tokens, Layout, UI library,
|
|
31
|
+
Phase 1 (sequential): foundation-setup creates tokens, Layout, UI library, style guide brief. Phase 2 (parallel): every page task imports from Phase 1. Include these 5 references in every page prompt:
|
|
32
32
|
|
|
33
33
|
```
|
|
34
34
|
1. Design tokens path 2. Layout path 3. UI components path
|