opencastle 0.19.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/README.md +18 -9
- package/dist/cli/adapters/claude-code.d.ts +2 -2
- package/dist/cli/adapters/claude-code.d.ts.map +1 -1
- package/dist/cli/adapters/claude-code.js +2 -2
- package/dist/cli/adapters/claude-code.js.map +1 -1
- package/dist/cli/adapters/cursor.d.ts +2 -1
- package/dist/cli/adapters/cursor.d.ts.map +1 -1
- package/dist/cli/adapters/cursor.js +13 -12
- package/dist/cli/adapters/cursor.js.map +1 -1
- package/dist/cli/adapters/opencode.d.ts +2 -2
- package/dist/cli/adapters/opencode.d.ts.map +1 -1
- package/dist/cli/adapters/opencode.js +2 -2
- package/dist/cli/adapters/opencode.js.map +1 -1
- package/dist/cli/adapters/single-file-base.d.ts.map +1 -1
- package/dist/cli/adapters/single-file-base.js +19 -13
- package/dist/cli/adapters/single-file-base.js.map +1 -1
- package/dist/cli/adapters/vscode.d.ts +3 -2
- package/dist/cli/adapters/vscode.d.ts.map +1 -1
- package/dist/cli/adapters/vscode.js +14 -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.d.ts +12 -1
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +90 -100
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/doctor.test.d.ts +2 -0
- package/dist/cli/doctor.test.d.ts.map +1 -0
- package/dist/cli/doctor.test.js +213 -0
- package/dist/cli/doctor.test.js.map +1 -0
- 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/types.d.ts +14 -0
- package/dist/cli/types.d.ts.map +1 -1
- package/dist/cli/types.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/claude-code.ts +2 -2
- package/src/cli/adapters/cursor.ts +14 -13
- package/src/cli/adapters/opencode.ts +2 -2
- package/src/cli/adapters/single-file-base.ts +19 -14
- package/src/cli/adapters/vscode.ts +16 -17
- package/src/cli/dashboard.ts +1 -1
- package/src/cli/doctor.test.ts +245 -0
- package/src/cli/doctor.ts +101 -104
- 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/types.ts +15 -0
- package/src/cli/update.ts +95 -36
- package/src/dashboard/node_modules/.vite/deps/_metadata.json +6 -6
- package/src/dashboard/scripts/generate-seed-data.ts +4 -4
- package/src/dashboard/seed-data/delegations.ndjson +15 -15
- package/src/dashboard/seed-data/events.ndjson +15 -15
- 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 +8 -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 +11 -11
- 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 +5 -5
- 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 +4 -4
- 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
|
@@ -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
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: 'Instruct the Team Lead to implement a specific task from
|
|
2
|
+
description: 'Instruct the Team Lead to implement a specific task from a roadmap with full orchestration, validation, and traceability.'
|
|
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
|
|
@@ -3,7 +3,7 @@ description: 'Resolve GitHub PR review comments by reading them, grouping by fil
|
|
|
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
|
# Resolve PR Comments
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@ name: accessibility-standards
|
|
|
3
3
|
description: "WCAG 2.2 Level AA accessibility patterns for React/HTML/CSS. Use when creating or modifying UI components, forms, navigation, tables, images, or any user-facing elements. Covers keyboard navigation, screen reader semantics, low vision contrast, voice access, and inclusive language."
|
|
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
|
# Accessibility Standards
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@ name: agent-hooks
|
|
|
3
3
|
description: "Lifecycle hooks for AI agent sessions — reusable actions that run at specific points (session start, session end, pre-delegation, post-delegation). Defines what to do at each lifecycle event so agents behave consistently."
|
|
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
|
# Agent Lifecycle Hooks
|
|
9
9
|
|
|
@@ -28,11 +28,11 @@ Session Lifecycle:
|
|
|
28
28
|
|
|
29
29
|
### Actions
|
|
30
30
|
|
|
31
|
-
1. **Read lessons learned** — Scan `.
|
|
32
|
-
2. **Check for checkpoint** — If `.
|
|
31
|
+
1. **Read lessons learned** — Scan `.opencastle/LESSONS-LEARNED.md` for entries relevant to the current task domain. Apply proactively.
|
|
32
|
+
2. **Check for checkpoint** — If `.opencastle/SESSION-CHECKPOINT.md` exists, read it. Resume from last known state instead of re-analyzing.
|
|
33
33
|
3. **Check pending approvals** — If the checkpoint has a `## Pending Approvals` section, check for replies using the configured messaging provider's MCP tools (e.g., `conversations_replies` for Slack). Read `.opencastle.json` → `stack.teamTools` to determine the provider. If no messaging is configured, skip this step.
|
|
34
|
-
4. **Check dead letter queue** — Scan `.
|
|
35
|
-
5. **Validate skill-matrix bindings** — Open `.
|
|
34
|
+
4. **Check dead letter queue** — Scan `.opencastle/AGENT-FAILURES.md` for pending failures related to the current scope.
|
|
35
|
+
5. **Validate skill-matrix bindings** — Open `.opencastle/agents/skill-matrix.json` and check whether the `bindings` object has any slots with non-empty `entries` arrays. If all entries are empty, **warn the user** that the bootstrap hasn't been run and capability slots will not resolve. Suggest running the *"Bootstrap Customizations"* prompt first. Do NOT silently continue with empty bindings.
|
|
36
36
|
6. **Load domain skills** — Based on the task description, load the appropriate skills before writing code. Don't start coding without the relevant skill loaded.
|
|
37
37
|
|
|
38
38
|
### Template for Delegation Prompts
|
|
@@ -40,10 +40,10 @@ Session Lifecycle:
|
|
|
40
40
|
Include this reminder in every delegation:
|
|
41
41
|
|
|
42
42
|
```
|
|
43
|
-
**Session Start:** Read `.
|
|
44
|
-
Check `.
|
|
43
|
+
**Session Start:** Read `.opencastle/LESSONS-LEARNED.md` before starting.
|
|
44
|
+
Check `.opencastle/SESSION-CHECKPOINT.md` for prior state and pending approvals.
|
|
45
45
|
If pending approvals exist, check for replies via the messaging provider.
|
|
46
|
-
Validate `.
|
|
46
|
+
Validate `.opencastle/agents/skill-matrix.json` — warn if skill bindings are empty (bootstrap not run).
|
|
47
47
|
Load relevant skills before writing code.
|
|
48
48
|
```
|
|
49
49
|
|
|
@@ -60,7 +60,7 @@ Load relevant skills before writing code.
|
|
|
60
60
|
|
|
61
61
|
1. **Call Session Guard** (Team Lead only) — Delegate to the **Session Guard** agent with a session summary (delegations, retries, discoveries, files changed). Execute any fix commands it returns. This replaces the manual Pre-Response Quality Gate checklist — the guard runs it automatically with a fresh context window.
|
|
62
62
|
2. **For specialist agents** (not Team Lead) — Run the Pre-Response Quality Gate checklist from the **observability-logging** skill manually. Specialist agents don't have access to the Session Guard.
|
|
63
|
-
3. **Save checkpoint** (Team Lead only) — If work is incomplete, write `.
|
|
63
|
+
3. **Save checkpoint** (Team Lead only) — If work is incomplete, write `.opencastle/SESSION-CHECKPOINT.md` with current state so the next session can resume. Load **session-checkpoints** skill for format.
|
|
64
64
|
4. **Memory merge check** — If `LESSONS-LEARNED.md` has grown significantly (5+ new entries this session), flag for memory merge consideration.
|
|
65
65
|
5. **Clean up** — Remove any temporary files created during the session (e.g., test fixtures, debug outputs).
|
|
66
66
|
|
|
@@ -3,7 +3,7 @@ name: agent-memory
|
|
|
3
3
|
description: "Agent expertise tracking and cross-session knowledge graph. Use when delegating tasks to track agent strengths/weaknesses, or when building context about file relationships and patterns."
|
|
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
|
# Agent Memory Protocol
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ Track which agents have expertise with which files, patterns, and tools across s
|
|
|
13
13
|
|
|
14
14
|
## Expertise File
|
|
15
15
|
|
|
16
|
-
Location: `.
|
|
16
|
+
Location: `.opencastle/AGENT-EXPERTISE.md` — a structured record of agent performance per domain.
|
|
17
17
|
|
|
18
18
|
Template structure:
|
|
19
19
|
|
|
@@ -33,7 +33,7 @@ Template structure:
|
|
|
33
33
|
| Styling approach | Required 2 retries on styling task (TAS-AA) | YYYY-MM-DD |
|
|
34
34
|
|
|
35
35
|
### File Familiarity
|
|
36
|
-
- `apps/
|
|
36
|
+
- `apps/web-app/places/` — 3 tasks completed
|
|
37
37
|
- `libs/queries/src/lib/` — 2 tasks completed
|
|
38
38
|
```
|
|
39
39
|
|
|
@@ -49,7 +49,7 @@ Template structure:
|
|
|
49
49
|
|
|
50
50
|
## Memory Retrieval Protocol
|
|
51
51
|
|
|
52
|
-
1. Before delegating, check `.
|
|
52
|
+
1. Before delegating, check `.opencastle/AGENT-EXPERTISE.md` for the candidate agent
|
|
53
53
|
2. If the task matches a Strong Area, include in the prompt: *"You have prior experience with [area] from [TAS-XX]. Apply the same patterns."*
|
|
54
54
|
3. If the task matches a Weak Area, either: (a) add extra context to the prompt to compensate, or (b) consider a different agent
|
|
55
55
|
4. If the file has high familiarity, mention it: *"You've worked on [file] before in [TAS-XX]."*
|
|
@@ -102,7 +102,7 @@ Capture structured relationships between concepts, files, agents, and decisions.
|
|
|
102
102
|
|
|
103
103
|
### Knowledge Graph File
|
|
104
104
|
|
|
105
|
-
Location: `.
|
|
105
|
+
Location: `.opencastle/KNOWLEDGE-GRAPH.md` — an append-only relationship log.
|
|
106
106
|
|
|
107
107
|
Template structure:
|
|
108
108
|
|
|
@@ -3,11 +3,11 @@ name: api-patterns
|
|
|
3
3
|
description: "API design patterns for route handlers, Server Actions, Zod validation, and external API integration. Use when creating API routes, Server Actions, or integrating external services."
|
|
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
|
# API Patterns
|
|
9
9
|
|
|
10
|
-
Generic API design patterns for server-rendered framework projects. For project-specific endpoints, actions, and external API inventory, see [api-config.md](
|
|
10
|
+
Generic API design patterns for server-rendered framework projects. For project-specific endpoints, actions, and external API inventory, see [api-config.md](../../.opencastle/stack/api-config.md).
|
|
11
11
|
|
|
12
12
|
## Architecture
|
|
13
13
|
|
|
@@ -3,7 +3,7 @@ name: code-commenting
|
|
|
3
3
|
description: "Guidelines for writing self-explanatory code with minimal comments. Covers when to comment (WHY not WHAT), anti-patterns to avoid, annotation tags, and public API documentation. Use when writing or reviewing code comments."
|
|
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
|
# Self-explanatory Code Commenting
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@ name: context-map
|
|
|
3
3
|
description: "Generate a structured file impact map before making changes. Identifies all files that will be affected, their relationships, and cascade effects — improving file partitioning for parallel work and reducing unexpected side effects."
|
|
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
|
# Skill: Context Map
|
|
9
9
|
|
|
@@ -63,8 +63,8 @@ Produce a structured map in this format:
|
|
|
63
63
|
### Cascade Effects (WILL change)
|
|
64
64
|
| File | Triggered By | Reason | Owner |
|
|
65
65
|
|------|-------------|--------|-------|
|
|
66
|
-
| `apps/
|
|
67
|
-
| `apps/
|
|
66
|
+
| `apps/web-app/places/page.tsx` | PlaceCard change | Update props | Frontend Dev |
|
|
67
|
+
| `apps/admin-panel/places/page.tsx` | PlaceCard change | Update props | Frontend Dev |
|
|
68
68
|
| `libs/queries/src/lib/__tests__/places.test.ts` | Query change | Update test | Testing Expert |
|
|
69
69
|
|
|
70
70
|
### Shared Boundaries (WATCH for conflicts)
|
|
@@ -87,7 +87,7 @@ From the context map, assign file ownership to agents:
|
|
|
87
87
|
```
|
|
88
88
|
Agent A (Content Engineer): libs/queries/src/lib/places.ts
|
|
89
89
|
Agent B (UI/UX Expert): libs/ui-kit/src/lib/components/PlaceCard/
|
|
90
|
-
Agent C (Frontend Dev): apps/
|
|
90
|
+
Agent C (Frontend Dev): apps/web-app/places/, apps/admin-panel/places/
|
|
91
91
|
Agent D (Testing Expert): **/*test*, **/*spec*
|
|
92
92
|
```
|
|
93
93
|
|
|
@@ -3,11 +3,11 @@ name: data-engineering
|
|
|
3
3
|
description: "Data pipeline ETL workflows, web scraping, NDJSON processing, and CMS data import. Use when building scrapers, processing data, running CLI tools, or importing to a CMS."
|
|
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
|
# Data Engineering
|
|
9
9
|
|
|
10
|
-
Generic data pipeline patterns and scraping methodology. For project-specific pipeline architecture, sources, CLI commands, and data status, see [data-pipeline-config.md](
|
|
10
|
+
Generic data pipeline patterns and scraping methodology. For project-specific pipeline architecture, sources, CLI commands, and data status, see [data-pipeline-config.md](../../.opencastle/stack/data-pipeline-config.md).
|
|
11
11
|
|
|
12
12
|
## Scraper Architecture
|
|
13
13
|
|
|
@@ -70,7 +70,7 @@ Return a structured summary with:
|
|
|
70
70
|
**Note:** Follow the Structured Output Contract from the team-lead-reference skill. Include all standard fields plus agent-specific extensions.
|
|
71
71
|
|
|
72
72
|
### Self-Improvement
|
|
73
|
-
Read `.
|
|
73
|
+
Read `.opencastle/LESSONS-LEARNED.md` before starting. If you retry any command/tool with a different approach that works, use the **self-improvement** skill to add a lesson immediately.
|
|
74
74
|
```
|
|
75
75
|
|
|
76
76
|
For simpler tasks (score 1-3), the existing prompt format (objective + files + criteria) is sufficient. Don't over-engineer delegation for trivial work.
|
|
@@ -3,11 +3,11 @@ name: deployment-infrastructure
|
|
|
3
3
|
description: "Deployment architecture, environment variables, cron jobs, security headers, and caching patterns. Use when configuring deployments, managing environment variables, setting up cron jobs, or troubleshooting build/deployment issues."
|
|
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
|
# Deployment Infrastructure
|
|
9
9
|
|
|
10
|
-
All deployment configuration is project-specific. See [deployment-config.md](
|
|
10
|
+
All deployment configuration is project-specific. See [deployment-config.md](../../.opencastle/stack/deployment-config.md) for the full architecture, environment variables, cron jobs, caching headers, and key files.
|
|
11
11
|
|
|
12
12
|
## Generic Deployment Principles
|
|
13
13
|
|
|
@@ -3,11 +3,11 @@ name: documentation-standards
|
|
|
3
3
|
description: "Documentation templates, structure, and standards for project docs, roadmaps, ADRs, and known issues. Use when writing or updating documentation files."
|
|
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
|
# Documentation Standards
|
|
9
9
|
|
|
10
|
-
Generic documentation templates and writing standards. For project-specific directory structure and practices, see [docs-structure.md](
|
|
10
|
+
Generic documentation templates and writing standards. For project-specific directory structure and practices, see [docs-structure.md](../../.opencastle/project/docs-structure.md).
|
|
11
11
|
|
|
12
12
|
## Issue Documentation Template
|
|
13
13
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .
|
|
1
|
+
<!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the .opencastle/ directory instead. -->
|
|
2
2
|
|
|
3
3
|
````skill
|
|
4
4
|
---
|
|
@@ -155,7 +155,7 @@ CONFIDENCE: low | medium | high
|
|
|
155
155
|
4. The panel decides PASS/BLOCK with the standard majority vote protocol
|
|
156
156
|
5. If panel PASS → accept with a note that it required escalation
|
|
157
157
|
6. If panel BLOCK → follow the standard panel retry flow (max 3 panel attempts)
|
|
158
|
-
7. If panel BLOCKs 3 times → create a **dispute record** in `.
|
|
158
|
+
7. If panel BLOCKs 3 times → create a **dispute record** in `.opencastle/DISPUTES.md` (see **team-lead-reference** skill § Dispute Protocol)
|
|
159
159
|
|
|
160
160
|
```
|
|
161
161
|
Fast Review Attempt 1: FAIL → retry
|