opencastle 0.1.0 → 0.3.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.
Files changed (132) hide show
  1. package/README.md +16 -7
  2. package/bin/cli.mjs +2 -3
  3. package/dist/cli/adapters/claude-code.d.ts.map +1 -1
  4. package/dist/cli/adapters/claude-code.js +7 -3
  5. package/dist/cli/adapters/claude-code.js.map +1 -1
  6. package/dist/cli/adapters/cursor.d.ts.map +1 -1
  7. package/dist/cli/adapters/cursor.js +27 -9
  8. package/dist/cli/adapters/cursor.js.map +1 -1
  9. package/dist/cli/dashboard.d.ts.map +1 -1
  10. package/dist/cli/dashboard.js +7 -4
  11. package/dist/cli/dashboard.js.map +1 -1
  12. package/dist/cli/eject.d.ts +1 -1
  13. package/dist/cli/eject.d.ts.map +1 -1
  14. package/dist/cli/eject.js +6 -1
  15. package/dist/cli/eject.js.map +1 -1
  16. package/dist/cli/gitignore.d.ts +11 -0
  17. package/dist/cli/gitignore.d.ts.map +1 -0
  18. package/dist/cli/gitignore.js +61 -0
  19. package/dist/cli/gitignore.js.map +1 -0
  20. package/dist/cli/init.d.ts +1 -1
  21. package/dist/cli/init.d.ts.map +1 -1
  22. package/dist/cli/init.js +81 -5
  23. package/dist/cli/init.js.map +1 -1
  24. package/dist/cli/mcp.d.ts +3 -2
  25. package/dist/cli/mcp.d.ts.map +1 -1
  26. package/dist/cli/mcp.js +23 -5
  27. package/dist/cli/mcp.js.map +1 -1
  28. package/dist/cli/run/schema.d.ts.map +1 -1
  29. package/dist/cli/run/schema.js +28 -1
  30. package/dist/cli/run/schema.js.map +1 -1
  31. package/dist/cli/run.d.ts.map +1 -1
  32. package/dist/cli/run.js +16 -0
  33. package/dist/cli/run.js.map +1 -1
  34. package/dist/cli/stack-config.d.ts +13 -0
  35. package/dist/cli/stack-config.d.ts.map +1 -1
  36. package/dist/cli/stack-config.js +20 -0
  37. package/dist/cli/stack-config.js.map +1 -1
  38. package/dist/cli/update.d.ts.map +1 -1
  39. package/dist/cli/update.js +16 -3
  40. package/dist/cli/update.js.map +1 -1
  41. package/package.json +1 -1
  42. package/src/cli/adapters/claude-code.ts +7 -5
  43. package/src/cli/adapters/cursor.ts +28 -13
  44. package/src/cli/dashboard.ts +9 -4
  45. package/src/cli/eject.ts +7 -1
  46. package/src/cli/gitignore.ts +77 -0
  47. package/src/cli/init.ts +88 -5
  48. package/src/cli/mcp.ts +31 -6
  49. package/src/cli/run/schema.ts +26 -1
  50. package/src/cli/run.ts +4 -0
  51. package/src/cli/stack-config.ts +33 -0
  52. package/src/cli/update.ts +18 -3
  53. package/src/orchestrator/agent-workflows/README.md +2 -0
  54. package/src/orchestrator/agent-workflows/bug-fix.md +2 -0
  55. package/src/orchestrator/agent-workflows/data-pipeline.md +2 -0
  56. package/src/orchestrator/agent-workflows/database-migration.md +2 -0
  57. package/src/orchestrator/agent-workflows/feature-implementation.md +2 -0
  58. package/src/orchestrator/agent-workflows/performance-optimization.md +2 -0
  59. package/src/orchestrator/agent-workflows/refactoring.md +2 -0
  60. package/src/orchestrator/agent-workflows/schema-changes.md +2 -0
  61. package/src/orchestrator/agent-workflows/security-audit.md +2 -0
  62. package/src/orchestrator/agent-workflows/shared-delivery-phase.md +2 -0
  63. package/src/orchestrator/agents/api-designer.agent.md +2 -0
  64. package/src/orchestrator/agents/architect.agent.md +2 -0
  65. package/src/orchestrator/agents/content-engineer.agent.md +2 -0
  66. package/src/orchestrator/agents/copywriter.agent.md +2 -0
  67. package/src/orchestrator/agents/data-expert.agent.md +2 -0
  68. package/src/orchestrator/agents/database-engineer.agent.md +2 -0
  69. package/src/orchestrator/agents/developer.agent.md +2 -0
  70. package/src/orchestrator/agents/devops-expert.agent.md +2 -0
  71. package/src/orchestrator/agents/documentation-writer.agent.md +2 -0
  72. package/src/orchestrator/agents/performance-expert.agent.md +2 -0
  73. package/src/orchestrator/agents/release-manager.agent.md +2 -0
  74. package/src/orchestrator/agents/researcher.agent.md +2 -0
  75. package/src/orchestrator/agents/reviewer.agent.md +2 -0
  76. package/src/orchestrator/agents/security-expert.agent.md +2 -0
  77. package/src/orchestrator/agents/seo-specialist.agent.md +2 -0
  78. package/src/orchestrator/agents/team-lead.agent.md +2 -0
  79. package/src/orchestrator/agents/testing-expert.agent.md +3 -1
  80. package/src/orchestrator/agents/ui-ux-expert.agent.md +5 -3
  81. package/src/orchestrator/copilot-instructions.md +2 -0
  82. package/src/orchestrator/instructions/ai-optimization.instructions.md +2 -0
  83. package/src/orchestrator/instructions/general.instructions.md +2 -0
  84. package/src/orchestrator/prompts/bootstrap-customizations.prompt.md +2 -0
  85. package/src/orchestrator/prompts/brainstorm.prompt.md +2 -0
  86. package/src/orchestrator/prompts/bug-fix.prompt.md +2 -0
  87. package/src/orchestrator/prompts/create-skill.prompt.md +2 -0
  88. package/src/orchestrator/prompts/generate-task-spec.prompt.md +2 -0
  89. package/src/orchestrator/prompts/implement-feature.prompt.md +2 -0
  90. package/src/orchestrator/prompts/metrics-report.prompt.md +2 -0
  91. package/src/orchestrator/prompts/quick-refinement.prompt.md +2 -0
  92. package/src/orchestrator/prompts/resolve-pr-comments.prompt.md +2 -0
  93. package/src/orchestrator/skills/accessibility-standards/SKILL.md +2 -0
  94. package/src/orchestrator/skills/agent-hooks/SKILL.md +2 -0
  95. package/src/orchestrator/skills/agent-memory/SKILL.md +2 -0
  96. package/src/orchestrator/skills/api-patterns/SKILL.md +2 -0
  97. package/src/orchestrator/skills/browser-testing/SKILL.md +14 -26
  98. package/src/orchestrator/skills/code-commenting/SKILL.md +2 -0
  99. package/src/orchestrator/skills/contentful-cms/SKILL.md +2 -0
  100. package/src/orchestrator/skills/context-map/SKILL.md +2 -0
  101. package/src/orchestrator/skills/convex-database/SKILL.md +2 -0
  102. package/src/orchestrator/skills/data-engineering/SKILL.md +2 -0
  103. package/src/orchestrator/skills/deployment-infrastructure/SKILL.md +2 -0
  104. package/src/orchestrator/skills/documentation-standards/SKILL.md +2 -0
  105. package/src/orchestrator/skills/fast-review/SKILL.md +2 -0
  106. package/src/orchestrator/skills/frontend-design/SKILL.md +2 -0
  107. package/src/orchestrator/skills/jira-management/SKILL.md +2 -0
  108. package/src/orchestrator/skills/memory-merger/SKILL.md +2 -0
  109. package/src/orchestrator/skills/nextjs-patterns/SKILL.md +2 -0
  110. package/src/orchestrator/skills/nx-workspace/SKILL.md +2 -0
  111. package/src/orchestrator/skills/panel-majority-vote/SKILL.md +2 -0
  112. package/src/orchestrator/skills/panel-majority-vote/panel-report.template.md +2 -0
  113. package/src/orchestrator/skills/performance-optimization/SKILL.md +2 -0
  114. package/src/orchestrator/skills/react-development/SKILL.md +2 -0
  115. package/src/orchestrator/skills/sanity-cms/SKILL.md +2 -0
  116. package/src/orchestrator/skills/security-hardening/SKILL.md +2 -0
  117. package/src/orchestrator/skills/self-improvement/SKILL.md +2 -0
  118. package/src/orchestrator/skills/seo-patterns/SKILL.md +2 -0
  119. package/src/orchestrator/skills/session-checkpoints/SKILL.md +2 -0
  120. package/src/orchestrator/skills/slack-notifications/SKILL.md +2 -0
  121. package/src/orchestrator/skills/strapi-cms/SKILL.md +2 -0
  122. package/src/orchestrator/skills/supabase-database/SKILL.md +2 -0
  123. package/src/orchestrator/skills/task-management/SKILL.md +2 -0
  124. package/src/orchestrator/skills/team-lead-reference/SKILL.md +2 -0
  125. package/src/orchestrator/skills/teams-notifications/SKILL.md +2 -0
  126. package/src/orchestrator/skills/testing-workflow/SKILL.md +4 -2
  127. package/src/orchestrator/skills/validation-gates/SKILL.md +4 -2
  128. package/dist/cli/diff.d.ts +0 -3
  129. package/dist/cli/diff.d.ts.map +0 -1
  130. package/dist/cli/diff.js +0 -27
  131. package/dist/cli/diff.js.map +0 -1
  132. package/src/cli/diff.ts +0 -44
@@ -5,6 +5,8 @@ model: Claude Opus 4.6
5
5
  tools: ['search/codebase', 'edit/editFiles', 'web/fetch', 'read/problems', 'search', 'search/usages', 'execute/runInTerminal', 'execute/getTerminalOutput', 'read/terminalLastCommand', 'nx-mcp-server/nx_workspace', 'nx-mcp-server/nx_project_details', 'nx-mcp-server/nx_visualize_graph']
6
6
  ---
7
7
 
8
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
9
+
8
10
  # Software Architect
9
11
 
10
12
  You are a senior software architect specializing in strategic architecture decisions, roadmap planning, system design, and technology evaluation.
@@ -5,6 +5,8 @@ model: Gemini 3.1 Pro
5
5
  tools: ['search/changes', 'search/codebase', 'edit/editFiles', 'web/fetch', 'read/problems', 'execute/getTerminalOutput', 'execute/runInTerminal', 'read/terminalLastCommand', 'read/terminalSelection', 'search', 'execute/testFailure', 'search/usages', 'sanity/get_schema', 'sanity/get_sanity_rules', 'sanity/list_sanity_rules', 'sanity/query_documents', 'sanity/get_document', 'sanity/create_documents_from_json', 'sanity/create_documents_from_markdown', 'sanity/patch_document_from_json', 'sanity/patch_document_from_markdown', 'sanity/deploy_schema', 'sanity/publish_documents', 'sanity/unpublish_documents', 'sanity/discard_drafts', 'sanity/list_projects', 'sanity/list_datasets', 'sanity/list_workspace_schemas', 'sanity/list_embeddings_indices', 'sanity/search_docs', 'sanity/read_docs', 'sanity/semantic_search', 'sanity/migration_guide', 'sanity/create_version', 'sanity/generate_image', 'sanity/transform_image', 'sanity/add_cors_origin']
6
6
  ---
7
7
 
8
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
9
+
8
10
  # Content Engineer
9
11
 
10
12
  You are a content engineer specializing in CMS schema design, content queries, content modeling, plugin development, and studio customization.
@@ -5,6 +5,8 @@ model: GPT-5 mini
5
5
  tools: ['search/codebase', 'edit/editFiles', 'web/fetch', 'search', 'read/problems', 'search/usages', 'sanity/get_schema', 'sanity/query_documents', 'sanity/get_document', 'sanity/patch_document_from_json', 'sanity/patch_document_from_markdown', 'sanity/list_datasets', 'sanity/list_projects', 'resend/send-email']
6
6
  ---
7
7
 
8
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
9
+
8
10
  # Copywriter
9
11
 
10
12
  You are a copywriter specializing in user-facing text for web applications — UI microcopy, marketing copy, email content, SEO text, error messages, and content polish.
@@ -5,6 +5,8 @@ model: GPT-5.3-Codex
5
5
  tools: ['search/changes', 'search/codebase', 'edit/editFiles', 'web/fetch', 'read/problems', 'execute/getTerminalOutput', 'execute/runInTerminal', 'read/terminalLastCommand', 'read/terminalSelection', 'search', 'execute/testFailure', 'search/usages', 'sanity/get_schema', 'sanity/query_documents', 'sanity/create_documents_from_json', 'sanity/patch_document_from_json', 'sanity/get_document', 'sanity/list_datasets', 'sanity/list_projects']
6
6
  ---
7
7
 
8
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
9
+
8
10
  # Data Expert
9
11
 
10
12
  You are an expert in building ETL pipelines, web scrapers, data processors, and CLI tools for data ingestion.
@@ -5,6 +5,8 @@ model: Gemini 3.1 Pro
5
5
  tools: ['search/changes', 'search/codebase', 'edit/editFiles', 'web/fetch', 'read/problems', 'execute/getTerminalOutput', 'execute/runInTerminal', 'read/terminalLastCommand', 'read/terminalSelection', 'search', 'execute/testFailure', 'search/usages', 'supabase/apply_migration', 'supabase/execute_sql', 'supabase/list_tables', 'supabase/list_migrations', 'supabase/list_extensions', 'supabase/get_logs', 'supabase/get_project', 'supabase/get_project_url', 'supabase/list_projects', 'supabase/search_docs', 'supabase/generate_typescript_types', 'supabase/get_advisors', 'supabase/create_branch', 'supabase/list_branches']
6
6
  ---
7
7
 
8
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
9
+
8
10
  # Database Engineer
9
11
 
10
12
  You are a database engineer specializing in schema design, migrations, row-level security, performance optimization, and auth integration.
@@ -5,6 +5,8 @@ model: Gemini 3.1 Pro
5
5
  tools: ['search/changes', 'search/codebase', 'edit/editFiles', 'web/fetch', 'vscode/getProjectSetupInfo', 'vscode/installExtension', 'vscode/newWorkspace', 'vscode/runCommand', 'read/problems', 'execute/getTerminalOutput', 'execute/runInTerminal', 'read/terminalLastCommand', 'read/terminalSelection', 'search', 'execute/testFailure', 'search/usages', 'nx-mcp-server/nx_project_details', 'nx-mcp-server/nx_workspace', 'nx-mcp-server/nx_generators']
6
6
  ---
7
7
 
8
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
9
+
8
10
  # Developer
9
11
 
10
12
  You are a full-stack developer specializing in building pages, components, routing, layouts, API routes, server-side logic, and feature implementation.
@@ -5,6 +5,8 @@ model: GPT-5.3-Codex
5
5
  tools: ["search/changes", "search/codebase", "edit/editFiles", "web/fetch", "vscode/getProjectSetupInfo", "vscode/installExtension", "vscode/newWorkspace", "vscode/runCommand", "read/problems", "execute/getTerminalOutput", "execute/runInTerminal", "read/terminalLastCommand", "read/terminalSelection", "search", "execute/testFailure", "search/usages", "vercel/deploy_to_vercel", "vercel/get_deployment", "vercel/get_deployment_build_logs", "vercel/get_project", "vercel/get_runtime_logs", "vercel/list_deployments", "vercel/list_projects", "vercel/list_teams", "vercel/search_vercel_documentation", "vercel/check_domain_availability_and_price", "nx-mcp-server/nx_project_details", "nx-mcp-server/nx_workspace", "nx-mcp-server/nx_workspace_path"]
6
6
  ---
7
7
 
8
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
9
+
8
10
  # DevOps Expert
9
11
 
10
12
  You are a DevOps expert specializing in Vercel deployments, CI/CD pipelines, cron jobs, security headers, caching strategies, and build optimization.
@@ -5,6 +5,8 @@ model: GPT-5 mini
5
5
  tools: ['search/codebase', 'edit/editFiles', 'web/fetch', 'search', 'read/problems']
6
6
  ---
7
7
 
8
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
9
+
8
10
  # Documentation Writer
9
11
 
10
12
  You are a technical documentation specialist. You maintain project documentation, roadmaps, architecture records, and technical guides.
@@ -5,6 +5,8 @@ model: Gemini 3.1 Pro
5
5
  tools: ['search/changes', 'search/codebase', 'edit/editFiles', 'web/fetch', 'read/problems', 'execute/getTerminalOutput', 'execute/runInTerminal', 'read/terminalLastCommand', 'read/terminalSelection', 'search', 'execute/testFailure', 'search/usages', 'chrome-devtools/*', 'nx-mcp-server/nx_project_details', 'nx-mcp-server/nx_workspace']
6
6
  ---
7
7
 
8
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
9
+
8
10
  # Performance Expert
9
11
 
10
12
  You are an expert in frontend and backend performance optimization.
@@ -5,6 +5,8 @@ model: GPT-5.3-Codex
5
5
  tools: ['search/changes', 'search/codebase', 'edit/editFiles', 'web/fetch', 'read/problems', 'execute/getTerminalOutput', 'execute/runInTerminal', 'read/terminalLastCommand', 'read/terminalSelection', 'search', 'execute/testFailure', 'search/usages', 'vercel/get_deployment', 'vercel/get_deployment_build_logs', 'vercel/get_runtime_logs', 'vercel/list_deployments', 'vercel/list_projects', 'nx-mcp-server/nx_project_details', 'nx-mcp-server/nx_workspace', 'nx-mcp-server/nx_workspace_path']
6
6
  ---
7
7
 
8
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
9
+
8
10
  # Release Manager
9
11
 
10
12
  You are a release manager responsible for pre-release verification, changelog generation, version management, regression checks, and coordinating the release process.
@@ -5,6 +5,8 @@ model: GPT-5 mini
5
5
  tools: ['search/codebase', 'search/textSearch', 'search/fileSearch', 'search/usages', 'read/readFile', 'search/listDirectory', 'web/fetch', 'execute/runInTerminal', 'read/terminalLastCommand']
6
6
  ---
7
7
 
8
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
9
+
8
10
  # Researcher
9
11
 
10
12
  You are a codebase exploration specialist. Your job is to **find information, map patterns, and report back** — never to implement changes. You are the team's scout: fast, thorough, and focused on delivering actionable intelligence.
@@ -1,3 +1,5 @@
1
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
2
+
1
3
  ```chatagent
2
4
  ---
3
5
  description: 'Mandatory fast reviewer that validates every agent delegation output before acceptance. Checks acceptance criteria, file partitions, regressions, type safety, and security basics.'
@@ -5,6 +5,8 @@ model: Claude Opus 4.6
5
5
  tools: ["search/changes", "search/codebase", "edit/editFiles", "web/fetch", "vscode/getProjectSetupInfo", "vscode/installExtension", "vscode/newWorkspace", "vscode/runCommand", "read/problems", "execute/getTerminalOutput", "execute/runInTerminal", "read/terminalLastCommand", "read/terminalSelection", "search", "execute/testFailure", "search/usages", "supabase/execute_sql", "supabase/list_tables", "supabase/get_advisors", "supabase/list_migrations", "supabase/get_project"]
6
6
  ---
7
7
 
8
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
9
+
8
10
  # Security Expert
9
11
 
10
12
  You are a security expert specializing in authentication, authorization, security headers, input validation, API security, and vulnerability management for Next.js applications with Supabase.
@@ -5,6 +5,8 @@ model: GPT-5 mini
5
5
  tools: ['search/changes', 'search/codebase', 'edit/editFiles', 'web/fetch', 'read/problems', 'execute/getTerminalOutput', 'execute/runInTerminal', 'read/terminalLastCommand', 'search', 'search/usages', 'chrome-devtools/*']
6
6
  ---
7
7
 
8
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
9
+
8
10
  # SEO Specialist
9
11
 
10
12
  You are an SEO specialist focused on technical SEO implementation — meta tags, structured data, sitemaps, Open Graph, crawlability, and search performance for web applications.
@@ -71,6 +71,8 @@ handoffs:
71
71
  send: true
72
72
  ---
73
73
 
74
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
75
+
74
76
  # Team Lead
75
77
 
76
78
  You are a **team lead and task orchestrator**. You do **not** implement code yourself. Your role is to:
@@ -5,6 +5,8 @@ model: GPT-5.3-Codex
5
5
  tools: ['search/changes', 'search/codebase', 'edit/editFiles', 'web/fetch', 'read/problems', 'execute/getTerminalOutput', 'execute/runInTerminal', 'read/terminalLastCommand', 'read/terminalSelection', 'search', 'execute/testFailure', 'search/usages', 'chrome-devtools/*']
6
6
  ---
7
7
 
8
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
9
+
8
10
  # Testing Expert
9
11
 
10
12
  You are an expert tester who validates UI changes using Chrome DevTools MCP automation and writes E2E/integration test suites.
@@ -49,7 +51,7 @@ Every test suite must cover:
49
51
  - Verify server-side behavior — confirm filter changes trigger new server requests
50
52
  - Start the dev server before browser testing
51
53
  - Reload between major test flows to prevent stale state
52
- - **MANDATORY: Test every UI change at all three responsive breakpoints (Mobile 375px, Tablet 768px, Desktop 1440px) — never test at desktop only. Use `mcp_chrome-devtoo_resize_page()` to switch viewports. See the browser-testing skill for exact commands and per-breakpoint checklists.**
54
+ - **MANDATORY: Test every UI change at all responsive breakpoints defined in the project's testing config — never test at desktop only. Use `mcp_chrome-devtoo_resize_page()` to switch viewports. See the browser-testing skill for exact commands and per-breakpoint checklists.**
53
55
 
54
56
  ## Critical Rules
55
57
 
@@ -5,6 +5,8 @@ model: Gemini 3.1 Pro
5
5
  tools: ['search/changes', 'search/codebase', 'edit/editFiles', 'web/fetch', 'vscode/getProjectSetupInfo', 'vscode/installExtension', 'vscode/newWorkspace', 'vscode/runCommand', 'read/problems', 'execute/getTerminalOutput', 'execute/runInTerminal', 'read/terminalLastCommand', 'read/terminalSelection', 'search', 'execute/testFailure', 'search/usages', 'chrome-devtools/*']
6
6
  ---
7
7
 
8
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
9
+
8
10
  # UI/UX Expert
9
11
 
10
12
  You are an expert UI/UX developer specializing in building accessible, visually consistent React components based on a design system template.
@@ -29,7 +31,7 @@ Resolve via [skill-matrix.md](.github/customizations/agents/skill-matrix.md).
29
31
  ## Guidelines
30
32
 
31
33
  - Design with mobile-first responsive approach
32
- - **Validate every UI change at all three breakpoints:** Mobile (375px), Tablet (768px), Desktop (1440px) — load the **e2e-testing** skill (resolved via matrix) for resize commands and per-breakpoint checklists
34
+ - **Validate every UI change at all responsive breakpoints** defined in the project's testing config — load the **e2e-testing** skill (resolved via matrix) for resize commands and per-breakpoint checklists
33
35
  - Use semantic HTML before adding ARIA
34
36
  - Test with keyboard-only navigation
35
37
  - Implement hover, focus, and active states for all interactive elements
@@ -38,7 +40,7 @@ Resolve via [skill-matrix.md](.github/customizations/agents/skill-matrix.md).
38
40
 
39
41
  ## Done When
40
42
 
41
- - Components render correctly at all three breakpoints (375px, 768px, 1440px)
43
+ - Components render correctly at all project-defined responsive breakpoints
42
44
  - WCAG 2.2 AA compliance verified (keyboard navigation, contrast, semantics)
43
45
  - Components are exported from the UI library index
44
46
  - Hover, focus, and active states are implemented for all interactive elements
@@ -57,7 +59,7 @@ When completing a task, return a structured summary:
57
59
 
58
60
  1. **Components** — List components created/modified with purpose
59
61
  2. **Accessibility** — WCAG checks performed and results
60
- 3. **Responsive** — Breakpoints tested (mobile 375px, tablet 768px, desktop 1440px)
62
+ 3. **Responsive** — Breakpoints tested (per project testing config)
61
63
  4. **Visual Evidence** — Screenshots at each breakpoint
62
64
 
63
65
  See **Base Output Contract** in `general.instructions.md` for the standard closing items (Discovered Issues + Lessons Applied).
@@ -1,3 +1,5 @@
1
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
2
+
1
3
  # Copilot Instructions
2
4
 
3
5
  All conventions, architecture, and project context live in `.github/instructions/`. Read those files before making changes.
@@ -3,6 +3,8 @@ description: 'AI assistant optimization techniques for efficient context usage a
3
3
  applyTo: '**'
4
4
  ---
5
5
 
6
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
7
+
6
8
  # AI Assistant Optimization Instructions
7
9
 
8
10
  ## Batch Processing
@@ -2,6 +2,8 @@
2
2
  applyTo: '**'
3
3
  ---
4
4
 
5
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
6
+
5
7
  # Coding Standards
6
8
 
7
9
  ## Constitution
@@ -3,6 +3,8 @@ description: 'Bootstrap the .github/customizations/ directory for a new project.
3
3
  agent: Researcher
4
4
  ---
5
5
 
6
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
7
+
6
8
  # Bootstrap Project Customizations
7
9
 
8
10
  You are setting up the AI agent framework for a new project. Your job is to **discover** the project's structure, tech stack, and configuration, then **generate** the customization files that skills reference for project-specific context.
@@ -3,6 +3,8 @@ description: 'Collaborative brainstorm to explore requirements, approaches, and
3
3
  agent: Team Lead
4
4
  ---
5
5
 
6
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
7
+
6
8
  # Brainstorm
7
9
 
8
10
  You are the Team Lead. Before planning or writing any code, run a structured brainstorm to explore the request described below. The goal is to **surface assumptions, alternative approaches, and trade-offs** before locking in a plan.
@@ -3,6 +3,8 @@ description: 'Investigate and fix a reported bug with proper triage, root cause
3
3
  agent: Team Lead
4
4
  ---
5
5
 
6
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
7
+
6
8
  # Fix Bug
7
9
 
8
10
  You are the Team Lead. Investigate and fix the bug described below. Bugs are real defects that affect users — treat them seriously with proper triage, tracking, and verification.
@@ -3,6 +3,8 @@ description: 'Scaffold a new skill directory with proper frontmatter, structure,
3
3
  agent: Team Lead
4
4
  ---
5
5
 
6
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
7
+
6
8
  # Create Skill
7
9
 
8
10
  Scaffold a new skill for the AI agent configuration. Skills encode domain-specific knowledge that agents load on demand.
@@ -3,6 +3,8 @@ description: 'Generate a valid opencastle.tasks.yml spec file for autonomous ove
3
3
  agent: Team Lead
4
4
  ---
5
5
 
6
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
7
+
6
8
  # Generate Task Spec for Autonomous Run
7
9
 
8
10
  You are the Team Lead. The user wants to run `opencastle run` to execute a batch of tasks autonomously (e.g., overnight). Your job is to produce a valid `opencastle.tasks.yml` file they can feed to the CLI.
@@ -3,6 +3,8 @@ description: 'Instruct the Team Lead to implement a specific task from the post-
3
3
  agent: Team Lead
4
4
  ---
5
5
 
6
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
7
+
6
8
  # Implement Roadmap Task
7
9
 
8
10
  You are the Team Lead. Implement the roadmap task described below following this strict workflow. The task comes from `docs/ROADMAP-POST-MVP.md`.
@@ -3,6 +3,8 @@ description: 'Collect and report metrics from agent logs, GitHub PRs, Linear iss
3
3
  agent: Researcher
4
4
  ---
5
5
 
6
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
7
+
6
8
  # Metrics Report
7
9
 
8
10
  Generate a comprehensive metrics dashboard from all project data sources.
@@ -3,6 +3,8 @@ description: 'Handle follow-up refinements after a roadmap task — bug fixes, U
3
3
  agent: Team Lead
4
4
  ---
5
5
 
6
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
7
+
6
8
  # Follow-Up Refinement
7
9
 
8
10
  You are the Team Lead. Handle the follow-up refinement described below. This is a **post-task adjustment** — a bug fix, UI tweak, or polish item that came up after reviewing a completed roadmap task. It does NOT require Linear tracking.
@@ -3,6 +3,8 @@ description: 'Resolve GitHub PR review comments by reading them, grouping by fil
3
3
  agent: Team Lead
4
4
  ---
5
5
 
6
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
7
+
6
8
  # Resolve PR Comments
7
9
 
8
10
  You are the Team Lead. A pull request has review comments that need to be resolved. Read the comments, group them by file, and delegate fixes efficiently.
@@ -3,6 +3,8 @@ 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 customizations/ directory instead. -->
7
+
6
8
  # Accessibility Standards
7
9
 
8
10
  Code must conform to [WCAG 2.2 Level AA](https://www.w3.org/TR/WCAG22/). Go beyond minimal conformance wherever possible.
@@ -3,6 +3,8 @@ 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 customizations/ directory instead. -->
7
+
6
8
  # Agent Lifecycle Hooks
7
9
 
8
10
  Hooks are **standardized actions** that agents execute at specific points during their lifecycle. They enforce consistency across sessions and prevent common oversights (missing lessons, forgotten checkpoints, untracked issues).
@@ -3,6 +3,8 @@ 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 customizations/ directory instead. -->
7
+
6
8
  # Agent Memory Protocol
7
9
 
8
10
  ## Purpose
@@ -3,6 +3,8 @@ 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 customizations/ directory instead. -->
7
+
6
8
  # API Patterns
7
9
 
8
10
  Generic API design patterns for Next.js App Router projects. For project-specific endpoints, actions, and external API inventory, see [api-config.md](../../customizations/stack/api-config.md).
@@ -3,6 +3,8 @@ 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 customizations/ directory instead. -->
7
+
6
8
  # Browser Testing with Chrome DevTools MCP
7
9
 
8
10
  Generic browser testing methodology using Chrome DevTools MCP. For project-specific test app, selectors, suites, and breakpoint config, see [testing-config.md](../../customizations/stack/testing-config.md).
@@ -123,48 +125,34 @@ mcp_chrome-devtoo_list_console_messages()
123
125
 
124
126
  ### 6. Responsive Breakpoint Testing (MANDATORY)
125
127
 
126
- **Every UI change MUST be tested at all three breakpoints.** Do not test at desktop only — most layout bugs surface at mobile or tablet widths. See [testing-config.md](../../customizations/stack/testing-config.md) for project-specific breakpoint values.
128
+ **Every UI change MUST be tested at all responsive breakpoints.** Do not test at desktop only — most layout bugs surface at smaller viewports. Define your breakpoints in your project's testing config (e.g., `testing-config.md`).
127
129
 
128
130
  #### How to Resize
129
131
 
130
132
  ```javascript
131
- // Mobile (iPhone-like)
132
- mcp_chrome-devtoo_resize_page({ width: 375, height: 812 })
133
-
134
- // Tablet (iPad-like)
135
- mcp_chrome-devtoo_resize_page({ width: 768, height: 1024 })
136
-
137
- // Desktop (standard)
138
- mcp_chrome-devtoo_resize_page({ width: 1440, height: 900 })
133
+ // Example breakpoints — adjust to your project's testing config
134
+ mcp_chrome-devtoo_resize_page({ width: 375, height: 812 }) // Mobile
135
+ mcp_chrome-devtoo_resize_page({ width: 768, height: 1024 }) // Tablet
136
+ mcp_chrome-devtoo_resize_page({ width: 1440, height: 900 }) // Desktop
139
137
  ```
140
138
 
141
139
  #### Per-Breakpoint Verification
142
140
 
143
- At **each** viewport size, verify:
141
+ #### Per-Breakpoint Verification
144
142
 
145
- **Mobile (375 x 812):**
146
- - [ ] Sidebar/filter panel hidden — accessible via drawer/hamburger
147
- - [ ] Cards stack vertically, no horizontal overflow
148
- - [ ] Text truncates or wraps cleanly — no overflow or overlap
149
- - [ ] Touch targets >= 44px
150
- - [ ] Badges, tags, and pills wrap without horizontal scroll
151
- - [ ] Map/list toggle works
143
+ At **each** breakpoint, check:
152
144
 
153
- **Tablet (768 x 1024):**
154
- - [ ] Layout adapts may show 2-column grid or collapsed sidebar
155
- - [ ] Interactive elements have adequate spacing
145
+ - [ ] Layout adapts correctly — no horizontal overflow
146
+ - [ ] Text truncates or wraps cleanly no overlap
147
+ - [ ] Interactive elements have adequate spacing and touch targets
148
+ - [ ] Navigation and panels collapse/expand as expected
156
149
  - [ ] Images and cards resize proportionally
157
150
 
158
- **Desktop (1440 x 900):**
159
- - [ ] Full layout visible — sidebar + content columns
160
- - [ ] Filter sidebar, content area, and any panels properly aligned
161
- - [ ] No excessive whitespace or stretched elements
162
-
163
151
  #### Responsive Testing Anti-Patterns
164
152
 
165
153
  | Anti-Pattern | Correct Approach |
166
154
  |---|---|
167
- | Testing only at desktop width | Test at all 3 breakpoints (Mobile -> Tablet -> Desktop) |
155
+ | Testing only at desktop width | Test at all project-defined breakpoints |
168
156
  | Skipping resize because "it uses Tailwind" | Tailwind classes can be wrong — always verify visually |
169
157
  | Only checking layout, not interactions | Test filter drawers, dropdowns, and modals at each size |
170
158
  | Taking 3 screenshots (one per breakpoint) | Use `evaluate_script()` to check layout; save screenshots for failures |
@@ -3,6 +3,8 @@ 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 customizations/ directory instead. -->
7
+
6
8
  # Self-explanatory Code Commenting
7
9
 
8
10
  ## Core Principle
@@ -3,6 +3,8 @@ 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 customizations/ directory instead. -->
7
+
6
8
  # Contentful CMS
7
9
 
8
10
  Generic Contentful CMS development methodology. For project-specific configuration, content types, and API keys, see [cms-config.md](../../customizations/stack/cms-config.md).
@@ -3,6 +3,8 @@ 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 customizations/ directory instead. -->
7
+
6
8
  # Skill: Context Map
7
9
 
8
10
  Generate a structured **file impact map** before any code changes begin. This map identifies all files that will be touched, their relationships, and cascade effects — directly improving the Team Lead's file partitioning for parallel agents.
@@ -3,6 +3,8 @@ 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 customizations/ directory instead. -->
7
+
6
8
  # Convex Database
7
9
 
8
10
  Generic Convex development methodology. For project-specific schema, functions, and deployment details, see [database-config.md](../../customizations/stack/database-config.md).
@@ -3,6 +3,8 @@ name: data-engineering
3
3
  description: "Data pipeline ETL workflows, web scraping with Puppeteer, 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 customizations/ directory instead. -->
7
+
6
8
  # Data Engineering
7
9
 
8
10
  Generic data pipeline patterns and scraping methodology. For project-specific pipeline architecture, sources, CLI commands, and data status, see [data-pipeline-config.md](../../customizations/stack/data-pipeline-config.md).
@@ -3,6 +3,8 @@ 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 customizations/ directory instead. -->
7
+
6
8
  # Deployment Infrastructure
7
9
 
8
10
  All deployment configuration is project-specific. See [deployment-config.md](../../customizations/stack/deployment-config.md) for the full architecture, environment variables, cron jobs, caching headers, and key files.
@@ -3,6 +3,8 @@ 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 customizations/ directory instead. -->
7
+
6
8
  # Documentation Standards
7
9
 
8
10
  Generic documentation templates and writing standards. For project-specific directory structure and practices, see [docs-structure.md](../../customizations/project/docs-structure.md).
@@ -1,3 +1,5 @@
1
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
2
+
1
3
  ````skill
2
4
  ---
3
5
  name: fast-review
@@ -4,6 +4,8 @@ description: "Create distinctive, production-grade frontend interfaces with high
4
4
  license: Complete terms in LICENSE.txt
5
5
  ---
6
6
 
7
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
8
+
7
9
  This skill guides creation of distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics. Implement real working code with exceptional attention to aesthetic details and creative choices.
8
10
 
9
11
  The user provides frontend requirements: a component, page, application, or interface to build. They may include context about the purpose, audience, or technical constraints.
@@ -3,6 +3,8 @@ 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 customizations/ directory instead. -->
7
+
6
8
  # Task Management with Jira
7
9
 
8
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 [jira-config.md](../../customizations/project/jira-config.md).
@@ -3,6 +3,8 @@ name: memory-merger
3
3
  description: "Protocol for graduating mature lessons from LESSONS-LEARNED.md into permanent instruction and skill files. Closes the self-improvement loop by codifying validated knowledge at the source level."
4
4
  ---
5
5
 
6
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
7
+
6
8
  # Skill: Memory Merger
7
9
 
8
10
  This skill automates the final step of the self-improvement cycle: promoting validated lessons into the instruction and skill files where they have structural, permanent impact.
@@ -3,6 +3,8 @@ name: nextjs-patterns
3
3
  description: "Next.js App Router best practices for server/client components, routing, API routes, and project structure. Use when creating or modifying Next.js pages, layouts, route handlers, or Server Actions."
4
4
  ---
5
5
 
6
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
7
+
6
8
  # Next.js Patterns (2025)
7
9
 
8
10
  ## Project Structure
@@ -3,6 +3,8 @@ 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 customizations/ directory instead. -->
7
+
6
8
  # NX Workspace
7
9
 
8
10
  ## Commands
@@ -3,6 +3,8 @@ name: panel-majority-vote
3
3
  description: "Run 3 isolated reviewer sub-agents against the same question and decide PASS/BLOCK by majority vote (2/3 wins). Use when deterministic verification is insufficient."
4
4
  ---
5
5
 
6
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
7
+
6
8
  # Skill: Panel majority vote (3 reviewers)
7
9
 
8
10
  Use this skill when deterministic verification is unavailable and you need a panel to decide PASS/BLOCK for a single question against a declared artifact scope.
@@ -1,3 +1,5 @@
1
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
2
+
1
3
  # Panel Report
2
4
 
3
5
  ## Context
@@ -3,6 +3,8 @@ name: performance-optimization
3
3
  description: "Frontend and backend performance optimization patterns including rendering, asset optimization, JavaScript performance, caching, profiling, and code review checklist. Use when optimizing components, reviewing code for performance, or analyzing bundle size and Core Web Vitals."
4
4
  ---
5
5
 
6
+ <!-- ⚠️ This file is managed by OpenCastle. Edits will be overwritten on update. Customize in the customizations/ directory instead. -->
7
+
6
8
  # Performance Optimization
7
9
 
8
10
  ## General Principles