opencastle 0.20.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/adapters/cursor.d.ts.map +1 -1
- package/dist/cli/adapters/cursor.js +3 -12
- package/dist/cli/adapters/cursor.js.map +1 -1
- package/dist/cli/adapters/single-file-base.d.ts.map +1 -1
- package/dist/cli/adapters/single-file-base.js +3 -12
- package/dist/cli/adapters/single-file-base.js.map +1 -1
- package/dist/cli/adapters/vscode.d.ts +1 -1
- package/dist/cli/adapters/vscode.d.ts.map +1 -1
- package/dist/cli/adapters/vscode.js +4 -16
- package/dist/cli/adapters/vscode.js.map +1 -1
- package/dist/cli/dashboard.js +1 -1
- package/dist/cli/dashboard.js.map +1 -1
- package/dist/cli/doctor.js +7 -7
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/eject.js +2 -2
- package/dist/cli/eject.js.map +1 -1
- package/dist/cli/init.d.ts.map +1 -1
- package/dist/cli/init.js +13 -4
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/init.test.js +27 -15
- package/dist/cli/init.test.js.map +1 -1
- package/dist/cli/lesson.js +5 -5
- package/dist/cli/lesson.js.map +1 -1
- package/dist/cli/log.d.ts +1 -1
- package/dist/cli/log.d.ts.map +1 -1
- package/dist/cli/log.js +5 -5
- package/dist/cli/log.js.map +1 -1
- package/dist/cli/manifest.d.ts +4 -1
- package/dist/cli/manifest.d.ts.map +1 -1
- package/dist/cli/manifest.js +16 -5
- package/dist/cli/manifest.js.map +1 -1
- package/dist/cli/stack-config.d.ts.map +1 -1
- package/dist/cli/stack-config.js +2 -14
- package/dist/cli/stack-config.js.map +1 -1
- package/dist/cli/update.d.ts.map +1 -1
- package/dist/cli/update.js +87 -34
- package/dist/cli/update.js.map +1 -1
- package/package.json +1 -1
- package/src/cli/adapters/cursor.ts +2 -12
- package/src/cli/adapters/single-file-base.ts +2 -12
- package/src/cli/adapters/vscode.ts +4 -16
- package/src/cli/dashboard.ts +1 -1
- package/src/cli/doctor.ts +7 -7
- package/src/cli/eject.ts +2 -2
- package/src/cli/init.test.ts +28 -15
- package/src/cli/init.ts +14 -4
- package/src/cli/lesson.ts +5 -5
- package/src/cli/log.ts +5 -5
- package/src/cli/manifest.ts +18 -5
- package/src/cli/stack-config.ts +2 -14
- package/src/cli/update.ts +95 -36
- package/src/dashboard/node_modules/.vite/deps/_metadata.json +6 -6
- package/src/orchestrator/agent-workflows/README.md +1 -1
- package/src/orchestrator/agent-workflows/bug-fix.md +4 -4
- package/src/orchestrator/agent-workflows/data-pipeline.md +1 -1
- package/src/orchestrator/agent-workflows/database-migration.md +4 -4
- package/src/orchestrator/agent-workflows/feature-implementation.md +3 -3
- package/src/orchestrator/agent-workflows/performance-optimization.md +1 -1
- package/src/orchestrator/agent-workflows/refactoring.md +1 -1
- package/src/orchestrator/agent-workflows/schema-changes.md +2 -2
- package/src/orchestrator/agent-workflows/security-audit.md +4 -4
- package/src/orchestrator/agent-workflows/shared-delivery-phase.md +1 -1
- package/src/orchestrator/agents/api-designer.agent.md +2 -2
- package/src/orchestrator/agents/architect.agent.md +2 -2
- package/src/orchestrator/agents/content-engineer.agent.md +2 -2
- package/src/orchestrator/agents/copywriter.agent.md +2 -2
- package/src/orchestrator/agents/data-expert.agent.md +2 -2
- package/src/orchestrator/agents/database-engineer.agent.md +2 -2
- package/src/orchestrator/agents/developer.agent.md +2 -2
- package/src/orchestrator/agents/devops-expert.agent.md +2 -2
- package/src/orchestrator/agents/documentation-writer.agent.md +2 -2
- package/src/orchestrator/agents/performance-expert.agent.md +2 -2
- package/src/orchestrator/agents/release-manager.agent.md +2 -2
- package/src/orchestrator/agents/researcher.agent.md +4 -4
- package/src/orchestrator/agents/reviewer.agent.md +1 -1
- package/src/orchestrator/agents/security-expert.agent.md +2 -2
- package/src/orchestrator/agents/seo-specialist.agent.md +2 -2
- package/src/orchestrator/agents/session-guard.agent.md +10 -10
- package/src/orchestrator/agents/team-lead.agent.md +3 -3
- package/src/orchestrator/agents/testing-expert.agent.md +2 -2
- package/src/orchestrator/agents/ui-ux-expert.agent.md +2 -2
- package/src/orchestrator/copilot-instructions.md +1 -1
- package/src/orchestrator/customizations/AGENT-PERFORMANCE.md +11 -11
- package/src/orchestrator/customizations/DISPUTES.md +2 -2
- package/src/orchestrator/customizations/README.md +1 -1
- package/src/orchestrator/customizations/logs/README.md +1 -1
- package/src/orchestrator/customizations/project/docs-structure.md +6 -6
- package/src/orchestrator/instructions/ai-optimization.instructions.md +1 -1
- package/src/orchestrator/instructions/general.instructions.md +6 -6
- package/src/orchestrator/plugins/astro/SKILL.md +1 -1
- package/src/orchestrator/plugins/chrome-devtools/SKILL.md +4 -4
- package/src/orchestrator/plugins/contentful/SKILL.md +2 -2
- package/src/orchestrator/plugins/convex/SKILL.md +2 -2
- package/src/orchestrator/plugins/cypress/SKILL.md +2 -2
- package/src/orchestrator/plugins/figma/SKILL.md +1 -1
- package/src/orchestrator/plugins/jira/SKILL.md +3 -3
- package/src/orchestrator/plugins/linear/SKILL.md +2 -2
- package/src/orchestrator/plugins/netlify/SKILL.md +2 -2
- package/src/orchestrator/plugins/nextjs/SKILL.md +1 -1
- package/src/orchestrator/plugins/nx/SKILL.md +1 -1
- package/src/orchestrator/plugins/playwright/SKILL.md +2 -2
- package/src/orchestrator/plugins/prisma/SKILL.md +2 -2
- package/src/orchestrator/plugins/resend/SKILL.md +1 -1
- package/src/orchestrator/plugins/sanity/SKILL.md +2 -2
- package/src/orchestrator/plugins/slack/SKILL.md +2 -2
- package/src/orchestrator/plugins/strapi/SKILL.md +2 -2
- package/src/orchestrator/plugins/supabase/SKILL.md +2 -2
- package/src/orchestrator/plugins/teams/SKILL.md +1 -1
- package/src/orchestrator/plugins/turborepo/SKILL.md +1 -1
- package/src/orchestrator/plugins/vercel/SKILL.md +2 -2
- package/src/orchestrator/plugins/vitest/SKILL.md +2 -2
- package/src/orchestrator/prompts/bootstrap-customizations.prompt.md +8 -8
- package/src/orchestrator/prompts/brainstorm.prompt.md +3 -3
- package/src/orchestrator/prompts/bug-fix.prompt.md +4 -4
- package/src/orchestrator/prompts/create-skill.prompt.md +3 -3
- package/src/orchestrator/prompts/generate-convoy.prompt.md +1 -1
- package/src/orchestrator/prompts/implement-feature.prompt.md +10 -10
- package/src/orchestrator/prompts/quick-refinement.prompt.md +3 -3
- package/src/orchestrator/prompts/resolve-pr-comments.prompt.md +1 -1
- package/src/orchestrator/skills/accessibility-standards/SKILL.md +1 -1
- package/src/orchestrator/skills/agent-hooks/SKILL.md +9 -9
- package/src/orchestrator/skills/agent-memory/SKILL.md +4 -4
- package/src/orchestrator/skills/api-patterns/SKILL.md +2 -2
- package/src/orchestrator/skills/code-commenting/SKILL.md +1 -1
- package/src/orchestrator/skills/context-map/SKILL.md +1 -1
- package/src/orchestrator/skills/data-engineering/SKILL.md +2 -2
- package/src/orchestrator/skills/decomposition/SKILL.md +1 -1
- package/src/orchestrator/skills/deployment-infrastructure/SKILL.md +2 -2
- package/src/orchestrator/skills/documentation-standards/SKILL.md +2 -2
- package/src/orchestrator/skills/fast-review/SKILL.md +2 -2
- package/src/orchestrator/skills/frontend-design/SKILL.md +1 -1
- package/src/orchestrator/skills/git-workflow/SKILL.md +2 -2
- package/src/orchestrator/skills/memory-merger/SKILL.md +3 -3
- package/src/orchestrator/skills/observability-logging/SKILL.md +10 -10
- package/src/orchestrator/skills/orchestration-protocols/SKILL.md +1 -1
- package/src/orchestrator/skills/panel-majority-vote/SKILL.md +2 -2
- package/src/orchestrator/skills/panel-majority-vote/panel-report.template.md +1 -1
- package/src/orchestrator/skills/performance-optimization/SKILL.md +1 -1
- package/src/orchestrator/skills/react-development/SKILL.md +1 -1
- package/src/orchestrator/skills/security-hardening/SKILL.md +1 -1
- package/src/orchestrator/skills/self-improvement/SKILL.md +2 -2
- package/src/orchestrator/skills/seo-patterns/SKILL.md +1 -1
- package/src/orchestrator/skills/session-checkpoints/SKILL.md +5 -5
- 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 +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
applyTo: '**'
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
5
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
6
6
|
|
|
7
7
|
# Coding Standards
|
|
8
8
|
|
|
@@ -13,7 +13,7 @@ applyTo: '**'
|
|
|
13
13
|
3. **Leave code better than you found it** — fix adjacent issues when the cost is low.
|
|
14
14
|
4. **Fail visibly** — surface errors clearly; never swallow exceptions silently.
|
|
15
15
|
5. **Verify, don't trust** — confirm outcomes with tools (tests, lint, build) rather than assuming success.
|
|
16
|
-
6. **Log every session** — append observability records to `.
|
|
16
|
+
6. **Log every session** — append observability records to `.opencastle/logs/` before yielding to the user. No exceptions. Load the **observability-logging** skill for details.
|
|
17
17
|
|
|
18
18
|
## Instruction Priority Hierarchy
|
|
19
19
|
|
|
@@ -34,7 +34,7 @@ applyTo: '**'
|
|
|
34
34
|
|
|
35
35
|
## Technology Standards
|
|
36
36
|
|
|
37
|
-
Load the corresponding skill for detailed conventions before writing code in that domain. These are **not optional**. See `.
|
|
37
|
+
Load the corresponding skill for detailed conventions before writing code in that domain. These are **not optional**. See `.opencastle/agents/skill-matrix.json` for the full domain-to-skill mapping.
|
|
38
38
|
|
|
39
39
|
| Domain | Skill |
|
|
40
40
|
|--------|-------|
|
|
@@ -90,7 +90,7 @@ See [ai-optimization.instructions.md](ai-optimization.instructions.md) for batch
|
|
|
90
90
|
|
|
91
91
|
## Project Context
|
|
92
92
|
|
|
93
|
-
For project-specific context (apps, libraries, tech stack, ports, URLs), see [project.instructions.md](
|
|
93
|
+
For project-specific context (apps, libraries, tech stack, ports, URLs), see [project.instructions.md](../.opencastle/project.instructions.md).
|
|
94
94
|
|
|
95
95
|
## Git Workflow
|
|
96
96
|
|
|
@@ -108,13 +108,13 @@ When you encounter a bug unrelated to the current task: check if already tracked
|
|
|
108
108
|
> Do NOT respond to the user until you have appended the required log records.
|
|
109
109
|
> A session without log records is a failed session — regardless of code quality.
|
|
110
110
|
|
|
111
|
-
**Every agent MUST log every session** to `.
|
|
111
|
+
**Every agent MUST log every session** to `.opencastle/logs/events.ndjson`. No exceptions. No threshold. No "too small to log." Load the **observability-logging** skill for CLI commands, record schemas, and the full logging checklist.
|
|
112
112
|
|
|
113
113
|
## Self-Improvement Protocol
|
|
114
114
|
|
|
115
115
|
> **⛔ HARD GATE — Lessons are the team's collective memory. Skipping them causes repeated failures.**
|
|
116
116
|
|
|
117
|
-
1. **Before starting work:** Read `.
|
|
117
|
+
1. **Before starting work:** Read `.opencastle/LESSONS-LEARNED.md` — apply relevant lessons proactively. This is NOT optional.
|
|
118
118
|
2. **During execution:** If you retry with a different approach and it works, use the **self-improvement** skill to add a lesson immediately.
|
|
119
119
|
3. **Update source files:** If the lesson reveals a gap in instruction/skill files, update those files too.
|
|
120
120
|
|
|
@@ -3,7 +3,7 @@ name: astro-framework
|
|
|
3
3
|
description: "Astro framework best practices for content-driven sites, islands architecture, routing, integrations, and project structure. Use when creating or modifying Astro pages, layouts, components, or content collections."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Astro Framework
|
|
9
9
|
|
|
@@ -3,11 +3,11 @@ name: browser-testing
|
|
|
3
3
|
description: "Chrome DevTools MCP automation patterns for validating UI changes in real browsers. Use when performing E2E browser testing, validating visual changes, testing user interactions, or debugging UI issues with Chrome DevTools."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Browser Testing with Chrome DevTools MCP
|
|
9
9
|
|
|
10
|
-
Generic browser testing methodology using Chrome DevTools MCP. For project-specific test app, selectors, suites, and breakpoint config, see [testing-config.md](
|
|
10
|
+
Generic browser testing methodology using Chrome DevTools MCP. For project-specific test app, selectors, suites, and breakpoint config, see [testing-config.md](../../.opencastle/stack/testing-config.md).
|
|
11
11
|
|
|
12
12
|
## Purpose
|
|
13
13
|
|
|
@@ -21,7 +21,7 @@ After any UI change, validate in a real browser:
|
|
|
21
21
|
|
|
22
22
|
## Pre-Test Build Verification
|
|
23
23
|
|
|
24
|
-
**CRITICAL: Always build before browser testing.** Testing stale code wastes time. See [testing-config.md](
|
|
24
|
+
**CRITICAL: Always build before browser testing.** Testing stale code wastes time. See [testing-config.md](../../.opencastle/stack/testing-config.md) for the specific build and serve commands.
|
|
25
25
|
|
|
26
26
|
## Chrome MCP Tools Reference
|
|
27
27
|
|
|
@@ -85,7 +85,7 @@ mcp_chrome-devtoo_performance_analyze_insight({ insightSetId: 'set_id', insightN
|
|
|
85
85
|
|
|
86
86
|
### 1. Setup
|
|
87
87
|
|
|
88
|
-
Start the dev server (see [testing-config.md](
|
|
88
|
+
Start the dev server (see [testing-config.md](../../.opencastle/stack/testing-config.md) for app and port).
|
|
89
89
|
|
|
90
90
|
### 2. Initial State
|
|
91
91
|
|
|
@@ -3,11 +3,11 @@ name: contentful-cms
|
|
|
3
3
|
description: "Contentful CMS development patterns, GraphQL/REST API usage, content modeling, and migration best practices. Use when working with Contentful content types, entries, assets, or the Management API."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Contentful CMS
|
|
9
9
|
|
|
10
|
-
Generic Contentful CMS development methodology. For project-specific configuration, content types, and API keys, see [cms-config.md](
|
|
10
|
+
Generic Contentful CMS development methodology. For project-specific configuration, content types, and API keys, see [cms-config.md](../../.opencastle/stack/cms-config.md).
|
|
11
11
|
|
|
12
12
|
## Critical Development Rules
|
|
13
13
|
|
|
@@ -3,11 +3,11 @@ name: convex-database
|
|
|
3
3
|
description: "Convex reactive database patterns, schema design, real-time queries, mutations, actions, and deployment best practices. Use when designing Convex schemas, writing queries/mutations, or managing the Convex backend."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Convex Database
|
|
9
9
|
|
|
10
|
-
Generic Convex development methodology. For project-specific schema, functions, and deployment details, see [database-config.md](
|
|
10
|
+
Generic Convex development methodology. For project-specific schema, functions, and deployment details, see [database-config.md](../../.opencastle/stack/database-config.md).
|
|
11
11
|
|
|
12
12
|
## Critical Development Rules
|
|
13
13
|
|
|
@@ -3,11 +3,11 @@ name: cypress-testing
|
|
|
3
3
|
description: "Cypress E2E and component testing patterns, commands, selectors, and CI configuration. Use when writing E2E tests, component tests, or configuring Cypress in CI pipelines."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Cypress Testing
|
|
9
9
|
|
|
10
|
-
Cypress-specific E2E and component testing patterns. For project-specific test configuration and breakpoints, see [testing-config.md](
|
|
10
|
+
Cypress-specific E2E and component testing patterns. For project-specific test configuration and breakpoints, see [testing-config.md](../../.opencastle/stack/testing-config.md).
|
|
11
11
|
|
|
12
12
|
## Commands
|
|
13
13
|
|
|
@@ -3,7 +3,7 @@ name: figma-design
|
|
|
3
3
|
description: "Figma design-to-code workflows, design token extraction, component inspection, and asset export. Use when translating Figma designs into code, extracting design tokens, or referencing component specs."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Figma Design
|
|
9
9
|
|
|
@@ -3,11 +3,11 @@ name: jira-management
|
|
|
3
3
|
description: "Jira board conventions for tracking feature work — issue naming, labels, priorities, status workflow, and session continuity via Atlassian Rovo MCP. Use when decomposing features into tasks or resuming interrupted sessions."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Task Management with Jira
|
|
9
9
|
|
|
10
|
-
Conventions for tracking feature work on Jira via the Atlassian Rovo MCP server. For project-specific project keys, workflow state IDs, and board configuration, see [tracker-config.md](
|
|
10
|
+
Conventions for tracking feature work on Jira via the Atlassian Rovo MCP server. For project-specific project keys, workflow state IDs, and board configuration, see [tracker-config.md](../../.opencastle/project/tracker-config.md).
|
|
11
11
|
|
|
12
12
|
## Atlassian Rovo MCP Server
|
|
13
13
|
|
|
@@ -167,4 +167,4 @@ project = PROJ AND sprint in openSprints() ORDER BY priority DESC
|
|
|
167
167
|
project = PROJ AND priority = Highest AND status != Done
|
|
168
168
|
```
|
|
169
169
|
|
|
170
|
-
Replace `PROJ` with the actual project key from [tracker-config.md](
|
|
170
|
+
Replace `PROJ` with the actual project key from [tracker-config.md](../../.opencastle/project/tracker-config.md).
|
|
@@ -3,11 +3,11 @@ name: linear-task-management
|
|
|
3
3
|
description: "Linear board conventions for tracking feature work — issue naming, labels, priorities, status workflow, and session continuity. Use when decomposing features into tasks or resuming interrupted sessions."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Task Management with Linear
|
|
9
9
|
|
|
10
|
-
Conventions for tracking feature work on the Linear board via MCP tools. For project-specific team ID, workflow state UUIDs, and label UUIDs, see [tracker-config.md](
|
|
10
|
+
Conventions for tracking feature work on the Linear board via MCP tools. For project-specific team ID, workflow state UUIDs, and label UUIDs, see [tracker-config.md](../../.opencastle/project/tracker-config.md).
|
|
11
11
|
|
|
12
12
|
## Discovered Issues (Bug Tickets)
|
|
13
13
|
|
|
@@ -3,11 +3,11 @@ name: netlify-deployment
|
|
|
3
3
|
description: "Netlify deployment workflows, serverless functions, edge functions, environment management, and build configuration. Use when deploying to Netlify, writing serverless/edge functions, or troubleshooting builds."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Netlify Deployment
|
|
9
9
|
|
|
10
|
-
Netlify-specific deployment patterns and conventions. For project-specific deployment architecture, environment variables, and key files, see [deployment-config.md](
|
|
10
|
+
Netlify-specific deployment patterns and conventions. For project-specific deployment architecture, environment variables, and key files, see [deployment-config.md](../../.opencastle/stack/deployment-config.md).
|
|
11
11
|
|
|
12
12
|
## Deployment Model
|
|
13
13
|
|
|
@@ -3,7 +3,7 @@ name: nextjs-framework
|
|
|
3
3
|
description: "Next.js framework best practices covering App Router, server/client components, data fetching, caching, rendering strategies, middleware, configuration, and deployment. Use when creating or modifying Next.js pages, layouts, route handlers, Server Actions, or project configuration."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Next.js Framework
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@ name: nx-workspace
|
|
|
3
3
|
description: "NX monorepo commands, conventions, code generation, and task running patterns. Use when running builds, tests, linting, code generation, or any development commands."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# NX Workspace
|
|
9
9
|
|
|
@@ -3,11 +3,11 @@ name: playwright-testing
|
|
|
3
3
|
description: "Playwright E2E testing patterns, cross-browser configuration, page objects, and CI setup. Use when writing E2E tests, visual regression tests, or configuring Playwright in CI pipelines."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Playwright Testing
|
|
9
9
|
|
|
10
|
-
Playwright-specific E2E testing patterns. For project-specific test configuration and breakpoints, see [testing-config.md](
|
|
10
|
+
Playwright-specific E2E testing patterns. For project-specific test configuration and breakpoints, see [testing-config.md](../../.opencastle/stack/testing-config.md).
|
|
11
11
|
|
|
12
12
|
## Commands
|
|
13
13
|
|
|
@@ -3,11 +3,11 @@ name: prisma-database
|
|
|
3
3
|
description: "Prisma ORM schema design, migrations, client generation, and query patterns. Use when designing database schemas, writing migrations, querying data, or managing Prisma Client."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Prisma Database
|
|
9
9
|
|
|
10
|
-
Prisma-specific schema design, migration, and query patterns. For project-specific database schema and connection details, see [database-config.md](
|
|
10
|
+
Prisma-specific schema design, migration, and query patterns. For project-specific database schema and connection details, see [database-config.md](../../.opencastle/stack/database-config.md).
|
|
11
11
|
|
|
12
12
|
## Commands
|
|
13
13
|
|
|
@@ -3,7 +3,7 @@ name: resend-email
|
|
|
3
3
|
description: "Resend transactional email patterns, React Email templates, domain configuration, and webhook handling. Use when sending emails, building email templates, or configuring email delivery."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Resend Email
|
|
9
9
|
|
|
@@ -3,11 +3,11 @@ name: sanity-cms
|
|
|
3
3
|
description: "Sanity CMS development rules, GROQ query patterns, and content management best practices. Use when working with Sanity schemas, writing GROQ queries, modifying content models, or managing CMS configuration."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Sanity CMS
|
|
9
9
|
|
|
10
|
-
Generic Sanity CMS development methodology. For project-specific configuration, schemas, plugins, document types, and GROQ examples, see [sanity-config.md](
|
|
10
|
+
Generic Sanity CMS development methodology. For project-specific configuration, schemas, plugins, document types, and GROQ examples, see [sanity-config.md](../../.opencastle/stack/sanity-config.md).
|
|
11
11
|
|
|
12
12
|
## Critical Development Rules
|
|
13
13
|
|
|
@@ -3,7 +3,7 @@ name: slack-notifications
|
|
|
3
3
|
description: "Slack MCP integration for agent-to-human notifications and bi-directional communication. Use when agents need to post progress updates, request approvals, or read user responses via Slack channels and threads."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Slack Notifications
|
|
9
9
|
|
|
@@ -217,7 +217,7 @@ To check for approvals or instructions:
|
|
|
217
217
|
|
|
218
218
|
### Channel Configuration
|
|
219
219
|
|
|
220
|
-
Project-specific channel mappings are defined in `.
|
|
220
|
+
Project-specific channel mappings are defined in `.opencastle/stack/notifications-config.md`. Agents read that file to determine which channel to post to for each event type. Always prefer channel IDs from the config over hardcoded names.
|
|
221
221
|
|
|
222
222
|
### Default Channel Structure
|
|
223
223
|
|
|
@@ -3,11 +3,11 @@ name: strapi-cms
|
|
|
3
3
|
description: "Strapi CMS development patterns, REST/GraphQL API usage, content type building, plugin development, and deployment best practices. Use when working with Strapi content types, controllers, services, or plugins."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Strapi CMS
|
|
9
9
|
|
|
10
|
-
Generic Strapi CMS development methodology. For project-specific configuration, content types, and deployment details, see [cms-config.md](
|
|
10
|
+
Generic Strapi CMS development methodology. For project-specific configuration, content types, and deployment details, see [cms-config.md](../../.opencastle/stack/cms-config.md).
|
|
11
11
|
|
|
12
12
|
## Critical Development Rules
|
|
13
13
|
|
|
@@ -3,11 +3,11 @@ name: supabase-database
|
|
|
3
3
|
description: "Supabase database migration rules, RLS policy patterns, and auth integration best practices. Use when designing database tables, writing migrations, configuring RLS policies, implementing auth, or managing user roles."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Supabase Database
|
|
9
9
|
|
|
10
|
-
Generic Supabase development methodology. For project-specific schema, roles, migration history, auth flow, and key files, see [supabase-config.md](
|
|
10
|
+
Generic Supabase development methodology. For project-specific schema, roles, migration history, auth flow, and key files, see [supabase-config.md](../../.opencastle/stack/supabase-config.md).
|
|
11
11
|
|
|
12
12
|
## Migration Rules
|
|
13
13
|
|
|
@@ -3,7 +3,7 @@ name: teams-notifications
|
|
|
3
3
|
description: "Microsoft Teams MCP integration for agent-to-human notifications and bi-directional communication. Use when agents need to post progress updates, request approvals, or read user responses via Teams channels and chats."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Teams Notifications
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@ name: turborepo-monorepo
|
|
|
3
3
|
description: "Turborepo monorepo commands, pipeline configuration, caching strategies, and task orchestration. Use when running builds, tests, linting, or any development commands in a Turborepo monorepo."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Turborepo Monorepo
|
|
9
9
|
|
|
@@ -3,11 +3,11 @@ name: vercel-deployment
|
|
|
3
3
|
description: "Vercel deployment workflows, environment management, domain configuration, and build troubleshooting. Use when deploying, checking deployment status, reviewing build logs, or managing environments."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Vercel Deployment
|
|
9
9
|
|
|
10
|
-
Vercel-specific deployment patterns and MCP tool usage. For project-specific deployment architecture, environment variables, and key files, see [deployment-config.md](
|
|
10
|
+
Vercel-specific deployment patterns and MCP tool usage. For project-specific deployment architecture, environment variables, and key files, see [deployment-config.md](../../.opencastle/stack/deployment-config.md).
|
|
11
11
|
|
|
12
12
|
## Deployment Model
|
|
13
13
|
|
|
@@ -3,11 +3,11 @@ name: vitest-testing
|
|
|
3
3
|
description: "Vitest unit and integration testing patterns, configuration, mocking, and coverage. Use when writing unit tests, configuring Vitest, or setting up test coverage."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Vitest Testing
|
|
9
9
|
|
|
10
|
-
Vitest-specific unit and integration testing patterns. For project-specific test configuration, see [testing-config.md](
|
|
10
|
+
Vitest-specific unit and integration testing patterns. For project-specific test configuration, see [testing-config.md](../../.opencastle/stack/testing-config.md).
|
|
11
11
|
|
|
12
12
|
## Commands
|
|
13
13
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: 'Bootstrap the .
|
|
2
|
+
description: 'Bootstrap the .opencastle/ directory for a new project. Discovers project structure, tech stack, and configuration, then generates all customization files so skills have project-specific context to operate on.'
|
|
3
3
|
agent: 'Team Lead (OpenCastle)'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Bootstrap Project Customizations
|
|
9
9
|
|
|
@@ -17,7 +17,7 @@ You are setting up the AI agent framework for a new project. Your job is to **di
|
|
|
17
17
|
|
|
18
18
|
## Background
|
|
19
19
|
|
|
20
|
-
The `.
|
|
20
|
+
The `.opencastle/` directory holds project-specific configuration that skills load at runtime. Skills contain generic methodology (how to write migrations, how to test, how to deploy); customizations hold the concrete values (which database, which endpoints, which project IDs).
|
|
21
21
|
|
|
22
22
|
Without customizations, agents operate blind — they don't know the project's table schema, API routes, deployment target, or task board. This prompt fixes that.
|
|
23
23
|
|
|
@@ -69,7 +69,7 @@ The result is a single unified view of the project's tech stack:
|
|
|
69
69
|
|
|
70
70
|
**Still verify:** `repoInfo` detects presence, not configuration details. You still need to read the actual config files for schemas, IDs, routes, etc.
|
|
71
71
|
|
|
72
|
-
The skill matrix (`.
|
|
72
|
+
The skill matrix (`.opencastle/agents/skill-matrix.json`) will already have the `cms` and `database` binding entries pre-filled based on this selection. The appropriate task management skill (`linear-task-management` for Linear, `jira-management` for Jira) and notifications skill (`slack-notifications` for Slack, `teams-notifications` for Teams) will already be installed. Verify they are correct and fill in any remaining empty bindings.
|
|
73
73
|
|
|
74
74
|
## Workflow
|
|
75
75
|
|
|
@@ -117,12 +117,12 @@ For each detected technology, dig into the config:
|
|
|
117
117
|
|
|
118
118
|
### Phase 2: Generate Customization Files
|
|
119
119
|
|
|
120
|
-
Create `.
|
|
120
|
+
Create `.opencastle/` and generate files based on what you discovered. **Only create files for technologies actually present in the project.** Skip files that don't apply.
|
|
121
121
|
|
|
122
122
|
Files are organized into subdirectories by domain:
|
|
123
123
|
|
|
124
124
|
```
|
|
125
|
-
.
|
|
125
|
+
.opencastle/
|
|
126
126
|
├── README.md # Directory index
|
|
127
127
|
├── project.instructions.md # High-level project context
|
|
128
128
|
├── LESSONS-LEARNED.md # Knowledge base (retries, workarounds)
|
|
@@ -265,8 +265,8 @@ After your summary, suggest next steps:
|
|
|
265
265
|
|
|
266
266
|
Now that your project is configured, here's what you can do:
|
|
267
267
|
|
|
268
|
-
1. **Review the generated files** — Scan `.
|
|
269
|
-
2. **Commit the customizations** — `git add .
|
|
268
|
+
1. **Review the generated files** — Scan `.opencastle/` for any `<!-- TODO: verify -->` comments and fill in missing values (e.g., tracker team IDs, Supabase project IDs)
|
|
269
|
+
2. **Commit the customizations** — `git add .opencastle/ && git commit -m "chore: bootstrap OpenCastle customizations"`
|
|
270
270
|
3. **Implement a feature** — Use the **"Implement Feature"** prompt to have the Team Lead orchestrate a full feature build with task tracking, delegation, and verification
|
|
271
271
|
4. **Fix a bug** — Use the **"Bug Fix"** prompt for structured triage, root cause analysis, and fix with tracker tracking
|
|
272
272
|
5. **Brainstorm first** — Not sure how to approach something? Use the **"Brainstorm"** prompt to explore requirements and trade-offs before committing to a plan
|
|
@@ -3,7 +3,7 @@ description: 'Collaborative brainstorm to explore requirements, approaches, and
|
|
|
3
3
|
agent: 'Team Lead (OpenCastle)'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Brainstorm
|
|
9
9
|
|
|
@@ -35,8 +35,8 @@ Before exploring solutions, make sure the problem is well-understood:
|
|
|
35
35
|
Research before proposing. Gather data, don't guess:
|
|
36
36
|
|
|
37
37
|
1. **Search existing code** — is there already a partial implementation, similar pattern, or relevant utility?
|
|
38
|
-
2. **Check documentation** — read `.
|
|
39
|
-
3. **Check lessons learned** — read `.
|
|
38
|
+
2. **Check documentation** — read `.opencastle/project.instructions.md`, `.opencastle/project/decisions.md`, `.opencastle/KNOWN-ISSUES.md` for constraints
|
|
39
|
+
3. **Check lessons learned** — read `.opencastle/LESSONS-LEARNED.md` for pitfalls in this area
|
|
40
40
|
4. **Identify affected layers** — which apps, libs, data stores, and third-party services are involved?
|
|
41
41
|
|
|
42
42
|
### 3. Generate Alternatives
|
|
@@ -3,7 +3,7 @@ description: 'Investigate and fix a reported bug with proper triage, root cause
|
|
|
3
3
|
agent: 'Team Lead (OpenCastle)'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Fix Bug
|
|
9
9
|
|
|
@@ -35,9 +35,9 @@ You are the Team Lead. Investigate and fix the bug described below. Bugs are rea
|
|
|
35
35
|
|
|
36
36
|
Before fixing anything, understand the bug:
|
|
37
37
|
|
|
38
|
-
1. **Check known issues** — Search `.
|
|
38
|
+
1. **Check known issues** — Search `.opencastle/KNOWN-ISSUES.md` for an existing entry. If found, note workarounds and decide if a fix is now feasible
|
|
39
39
|
2. **Check tracker** — Search for existing bug tickets. If one exists, take it over instead of creating a duplicate
|
|
40
|
-
3. **Read lessons learned** — Check `.
|
|
40
|
+
3. **Read lessons learned** — Check `.opencastle/LESSONS-LEARNED.md` for related pitfalls
|
|
41
41
|
4. **Reproduce the bug** — Start the dev server and confirm you can trigger the issue:
|
|
42
42
|
- Start the dev server (see the **codebase-tool** skill for the serve command)
|
|
43
43
|
- Navigate to the affected page in Chrome
|
|
@@ -126,7 +126,7 @@ Follow the **Delivery Outcome** defined in the **git-workflow** skill — commit
|
|
|
126
126
|
### 7. Wrap Up
|
|
127
127
|
|
|
128
128
|
1. **Move tracker issue to Done** — Only after all validation passes
|
|
129
|
-
2. **Update Known Issues** — If this was a documented known issue, remove or update the entry in `.
|
|
129
|
+
2. **Update Known Issues** — If this was a documented known issue, remove or update the entry in `.opencastle/KNOWN-ISSUES.md`
|
|
130
130
|
3. **Capture lessons** — If the root cause reveals a pattern that other agents should know about, use the **self-improvement** skill to add a lesson
|
|
131
131
|
4. **Note prevention** — If this class of bug could be caught earlier (by a lint rule, test, or type check), note that in the tracker issue as a follow-up suggestion
|
|
132
132
|
|
|
@@ -3,7 +3,7 @@ description: 'Scaffold a new skill file with proper frontmatter, structure, and
|
|
|
3
3
|
agent: 'Team Lead (OpenCastle)'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Create Skill
|
|
9
9
|
|
|
@@ -92,13 +92,13 @@ Registration differs by type:
|
|
|
92
92
|
|
|
93
93
|
#### Process Skill
|
|
94
94
|
|
|
95
|
-
1. **Add to the skill matrix** — Add the skill name to the `directSkills` array of each relevant agent in `.
|
|
95
|
+
1. **Add to the skill matrix** — Add the skill name to the `directSkills` array of each relevant agent in `.opencastle/agents/skill-matrix.json`
|
|
96
96
|
2. **Optional: reference in instructions** — If the skill should be loaded by default, add it to the appropriate `.github/instructions/` file
|
|
97
97
|
|
|
98
98
|
#### Plugin Skill
|
|
99
99
|
|
|
100
100
|
1. **Set `skillName` in the plugin's `config.ts`** — This connects the skill to the plugin
|
|
101
|
-
2. **Update the skill matrix** — Add an entry to the matching capability slot's `entries` array in `.
|
|
101
|
+
2. **Update the skill matrix** — Add an entry to the matching capability slot's `entries` array in `.opencastle/agents/skill-matrix.json`
|
|
102
102
|
3. **No agent changes needed** — Agents resolve plugin skills through capability slots automatically
|
|
103
103
|
|
|
104
104
|
### Step 5: Validate
|
|
@@ -3,7 +3,7 @@ description: 'Generate a .convoy.yml spec file for autonomous convoy execution b
|
|
|
3
3
|
agent: 'Team Lead (OpenCastle)'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Generate Convoy Spec
|
|
9
9
|
|
|
@@ -3,11 +3,11 @@ description: 'Instruct the Team Lead to implement a specific task from a roadmap
|
|
|
3
3
|
agent: 'Team Lead (OpenCastle)'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Implement Roadmap Task
|
|
9
9
|
|
|
10
|
-
You are the Team Lead. Implement the roadmap task described below following this strict workflow. The task comes from `.
|
|
10
|
+
You are the Team Lead. Implement the roadmap task described below following this strict workflow. The task comes from `.opencastle/project/roadmap.md`.
|
|
11
11
|
|
|
12
12
|
## Task
|
|
13
13
|
|
|
@@ -25,10 +25,10 @@ You are the Team Lead. Implement the roadmap task described below following this
|
|
|
25
25
|
|
|
26
26
|
Before writing any code, gather all relevant context:
|
|
27
27
|
|
|
28
|
-
1. **Read the roadmap** — Open `.
|
|
29
|
-
2. **Read known issues** — Check `.
|
|
30
|
-
3. **Read architecture docs** — Check `.
|
|
31
|
-
4. **Read lessons learned** — Check `.
|
|
28
|
+
1. **Read the roadmap** — Open `.opencastle/project/roadmap.md` and find the full scope, status, and acceptance criteria for this task
|
|
29
|
+
2. **Read known issues** — Check `.opencastle/KNOWN-ISSUES.md` for blockers or workarounds that affect this task
|
|
30
|
+
3. **Read architecture docs** — Check `.opencastle/project.instructions.md` and `.opencastle/project/decisions.md` for constraints and prior decisions
|
|
31
|
+
4. **Read lessons learned** — Check `.opencastle/LESSONS-LEARNED.md` for pitfalls relevant to this feature area
|
|
32
32
|
5. **Search existing code** — Find all files, components, queries, and tests related to this feature area
|
|
33
33
|
6. **Identify reusable code** — Before creating anything new, check if similar logic, components, or utilities already exist in the codebase that can be reused or extended
|
|
34
34
|
|
|
@@ -123,15 +123,15 @@ Follow the **Delivery Outcome** defined in the **git-workflow** skill — commit
|
|
|
123
123
|
|
|
124
124
|
Keep documentation current so future sessions have full context:
|
|
125
125
|
|
|
126
|
-
1. **Update roadmap** — Mark completed items in `.
|
|
126
|
+
1. **Update roadmap** — Mark completed items in `.opencastle/project/roadmap.md` with ✅ and the completion date. **Include tracker issue IDs and links** next to each scope item so progress is traceable across sessions. Format:
|
|
127
127
|
```
|
|
128
128
|
**Tracker Issues:**
|
|
129
129
|
- [PREFIX-6](<tracker-url>/PREFIX-6) — [Search] Description ✅ Done
|
|
130
130
|
- [PREFIX-7](<tracker-url>/PREFIX-7) — [UI] Description 📋 Todo
|
|
131
131
|
```
|
|
132
132
|
> Replace `PREFIX` with the project's issue prefix (see `tracker-config.md`).
|
|
133
|
-
2. **Update known issues** — If new limitations are discovered, add them to `.
|
|
134
|
-
3. **Update architecture docs** — If architectural decisions were made, add an ADR to `.
|
|
133
|
+
2. **Update known issues** — If new limitations are discovered, add them to `.opencastle/KNOWN-ISSUES.md`
|
|
134
|
+
3. **Update architecture docs** — If architectural decisions were made, add an ADR to `.opencastle/project/decisions.md`
|
|
135
135
|
4. **Link tracker issues** — Every issue description should reference:
|
|
136
136
|
- Related roadmap section
|
|
137
137
|
- Files modified (the partition)
|
|
@@ -152,6 +152,6 @@ The roadmap task is complete when:
|
|
|
152
152
|
- [ ] Visual consistency maintained across all affected pages and apps
|
|
153
153
|
- [ ] Documentation updated (roadmap, known issues, decisions)
|
|
154
154
|
- [ ] Panel review passed for any high-stakes changes
|
|
155
|
-
- [ ] Roadmap item marked complete in `.
|
|
155
|
+
- [ ] Roadmap item marked complete in `.opencastle/project/roadmap.md`
|
|
156
156
|
- [ ] Delivery Outcome completed (see the **git-workflow** skill) — branch pushed, PR opened (not merged), tracker linked
|
|
157
157
|
- [ ] Lessons learned captured if any retries occurred
|
|
@@ -3,7 +3,7 @@ description: 'Handle follow-up refinements after a roadmap task — bug fixes, U
|
|
|
3
3
|
agent: 'Team Lead (OpenCastle)'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
6
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
7
7
|
|
|
8
8
|
# Follow-Up Refinement
|
|
9
9
|
|
|
@@ -59,8 +59,8 @@ Before touching any code:
|
|
|
59
59
|
|
|
60
60
|
1. **Clarify scope** — Identify exactly which pages, components, or behaviors need to change
|
|
61
61
|
2. **Find affected files** — Search the codebase for the relevant components, styles, queries, and tests
|
|
62
|
-
3. **Check known issues** — Scan `.
|
|
63
|
-
4. **Read lessons learned** — Check `.
|
|
62
|
+
3. **Check known issues** — Scan `.opencastle/KNOWN-ISSUES.md` in case this is a documented limitation
|
|
63
|
+
4. **Read lessons learned** — Check `.opencastle/LESSONS-LEARNED.md` for relevant pitfalls before starting
|
|
64
64
|
5. **Assess complexity** — If the request turns out to be larger than expected (touches >5 files, needs a migration, or affects auth/security), escalate it:
|
|
65
65
|
- Inform the user that this should be a tracked task
|
|
66
66
|
- Create a tracker issue (if not already created in triage) and switch to the `implement-feature` workflow
|