opencastle 0.1.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/LICENSE +21 -0
- package/README.md +215 -0
- package/bin/cli.mjs +69 -0
- package/dist/cli/adapters/claude-code.d.ts +22 -0
- package/dist/cli/adapters/claude-code.d.ts.map +1 -0
- package/dist/cli/adapters/claude-code.js +237 -0
- package/dist/cli/adapters/claude-code.js.map +1 -0
- package/dist/cli/adapters/cursor.d.ts +20 -0
- package/dist/cli/adapters/cursor.d.ts.map +1 -0
- package/dist/cli/adapters/cursor.js +231 -0
- package/dist/cli/adapters/cursor.js.map +1 -0
- package/dist/cli/adapters/vscode.d.ts +20 -0
- package/dist/cli/adapters/vscode.d.ts.map +1 -0
- package/dist/cli/adapters/vscode.js +132 -0
- package/dist/cli/adapters/vscode.js.map +1 -0
- package/dist/cli/copy.d.ts +14 -0
- package/dist/cli/copy.d.ts.map +1 -0
- package/dist/cli/copy.js +62 -0
- package/dist/cli/copy.js.map +1 -0
- package/dist/cli/dashboard.d.ts +3 -0
- package/dist/cli/dashboard.d.ts.map +1 -0
- package/dist/cli/dashboard.js +183 -0
- package/dist/cli/dashboard.js.map +1 -0
- package/dist/cli/diff.d.ts +3 -0
- package/dist/cli/diff.d.ts.map +1 -0
- package/dist/cli/diff.js +27 -0
- package/dist/cli/diff.js.map +1 -0
- package/dist/cli/eject.d.ts +3 -0
- package/dist/cli/eject.d.ts.map +1 -0
- package/dist/cli/eject.js +27 -0
- package/dist/cli/eject.js.map +1 -0
- package/dist/cli/init.d.ts +3 -0
- package/dist/cli/init.d.ts.map +1 -0
- package/dist/cli/init.js +92 -0
- package/dist/cli/init.js.map +1 -0
- package/dist/cli/manifest.d.ts +14 -0
- package/dist/cli/manifest.d.ts.map +1 -0
- package/dist/cli/manifest.js +34 -0
- package/dist/cli/manifest.js.map +1 -0
- package/dist/cli/mcp.d.ts +14 -0
- package/dist/cli/mcp.d.ts.map +1 -0
- package/dist/cli/mcp.js +35 -0
- package/dist/cli/mcp.js.map +1 -0
- package/dist/cli/prompt.d.ts +12 -0
- package/dist/cli/prompt.d.ts.map +1 -0
- package/dist/cli/prompt.js +104 -0
- package/dist/cli/prompt.js.map +1 -0
- package/dist/cli/run/adapters/claude-code.d.ts +16 -0
- package/dist/cli/run/adapters/claude-code.d.ts.map +1 -0
- package/dist/cli/run/adapters/claude-code.js +82 -0
- package/dist/cli/run/adapters/claude-code.js.map +1 -0
- package/dist/cli/run/adapters/copilot.d.ts +16 -0
- package/dist/cli/run/adapters/copilot.d.ts.map +1 -0
- package/dist/cli/run/adapters/copilot.js +84 -0
- package/dist/cli/run/adapters/copilot.js.map +1 -0
- package/dist/cli/run/adapters/cursor.d.ts +16 -0
- package/dist/cli/run/adapters/cursor.d.ts.map +1 -0
- package/dist/cli/run/adapters/cursor.js +81 -0
- package/dist/cli/run/adapters/cursor.js.map +1 -0
- package/dist/cli/run/adapters/index.d.ts +14 -0
- package/dist/cli/run/adapters/index.d.ts.map +1 -0
- package/dist/cli/run/adapters/index.js +35 -0
- package/dist/cli/run/adapters/index.js.map +1 -0
- package/dist/cli/run/executor.d.ts +15 -0
- package/dist/cli/run/executor.d.ts.map +1 -0
- package/dist/cli/run/executor.js +249 -0
- package/dist/cli/run/executor.js.map +1 -0
- package/dist/cli/run/reporter.d.ts +10 -0
- package/dist/cli/run/reporter.d.ts.map +1 -0
- package/dist/cli/run/reporter.js +112 -0
- package/dist/cli/run/reporter.js.map +1 -0
- package/dist/cli/run/schema.d.ts +28 -0
- package/dist/cli/run/schema.d.ts.map +1 -0
- package/dist/cli/run/schema.js +511 -0
- package/dist/cli/run/schema.js.map +1 -0
- package/dist/cli/run.d.ts +6 -0
- package/dist/cli/run.d.ts.map +1 -0
- package/dist/cli/run.js +123 -0
- package/dist/cli/run.js.map +1 -0
- package/dist/cli/stack-config.d.ts +12 -0
- package/dist/cli/stack-config.d.ts.map +1 -0
- package/dist/cli/stack-config.js +146 -0
- package/dist/cli/stack-config.js.map +1 -0
- package/dist/cli/types.d.ts +169 -0
- package/dist/cli/types.d.ts.map +1 -0
- package/dist/cli/types.js +2 -0
- package/dist/cli/types.js.map +1 -0
- package/dist/cli/update.d.ts +3 -0
- package/dist/cli/update.d.ts.map +1 -0
- package/dist/cli/update.js +50 -0
- package/dist/cli/update.js.map +1 -0
- package/package.json +48 -0
- package/src/cli/adapters/claude-code.ts +287 -0
- package/src/cli/adapters/cursor.ts +377 -0
- package/src/cli/adapters/vscode.ts +168 -0
- package/src/cli/copy.ts +79 -0
- package/src/cli/dashboard.ts +225 -0
- package/src/cli/diff.ts +44 -0
- package/src/cli/eject.ts +39 -0
- package/src/cli/init.ts +120 -0
- package/src/cli/manifest.ts +45 -0
- package/src/cli/mcp.ts +49 -0
- package/src/cli/prompt.ts +115 -0
- package/src/cli/run/adapters/claude-code.ts +95 -0
- package/src/cli/run/adapters/copilot.ts +97 -0
- package/src/cli/run/adapters/cursor.ts +94 -0
- package/src/cli/run/adapters/index.ts +40 -0
- package/src/cli/run/executor.ts +292 -0
- package/src/cli/run/reporter.ts +129 -0
- package/src/cli/run/schema.ts +595 -0
- package/src/cli/run.ts +137 -0
- package/src/cli/stack-config.ts +180 -0
- package/src/cli/types.ts +207 -0
- package/src/cli/update.ts +75 -0
- package/src/dashboard/astro.config.mjs +6 -0
- package/src/dashboard/package-lock.json +5455 -0
- package/src/dashboard/package.json +14 -0
- package/src/dashboard/public/data/delegations.ndjson +35 -0
- package/src/dashboard/public/data/panels.ndjson +13 -0
- package/src/dashboard/public/data/sessions.ndjson +50 -0
- package/src/dashboard/public/icon-192.png +0 -0
- package/src/dashboard/scripts/generate-seed-data.ts +355 -0
- package/src/dashboard/src/layouts/Layout.astro +25 -0
- package/src/dashboard/src/pages/index.astro +1070 -0
- package/src/dashboard/src/styles/dashboard.css +1078 -0
- package/src/dashboard/tsconfig.json +6 -0
- package/src/orchestrator/agent-workflows/README.md +22 -0
- package/src/orchestrator/agent-workflows/bug-fix.md +128 -0
- package/src/orchestrator/agent-workflows/data-pipeline.md +145 -0
- package/src/orchestrator/agent-workflows/database-migration.md +159 -0
- package/src/orchestrator/agent-workflows/feature-implementation.md +223 -0
- package/src/orchestrator/agent-workflows/performance-optimization.md +125 -0
- package/src/orchestrator/agent-workflows/refactoring.md +142 -0
- package/src/orchestrator/agent-workflows/schema-changes.md +164 -0
- package/src/orchestrator/agent-workflows/security-audit.md +148 -0
- package/src/orchestrator/agent-workflows/shared-delivery-phase.md +33 -0
- package/src/orchestrator/agents/api-designer.agent.md +68 -0
- package/src/orchestrator/agents/architect.agent.md +129 -0
- package/src/orchestrator/agents/content-engineer.agent.md +57 -0
- package/src/orchestrator/agents/copywriter.agent.md +95 -0
- package/src/orchestrator/agents/data-expert.agent.md +63 -0
- package/src/orchestrator/agents/database-engineer.agent.md +62 -0
- package/src/orchestrator/agents/developer.agent.md +66 -0
- package/src/orchestrator/agents/devops-expert.agent.md +57 -0
- package/src/orchestrator/agents/documentation-writer.agent.md +60 -0
- package/src/orchestrator/agents/performance-expert.agent.md +58 -0
- package/src/orchestrator/agents/release-manager.agent.md +72 -0
- package/src/orchestrator/agents/researcher.agent.md +145 -0
- package/src/orchestrator/agents/reviewer.agent.md +62 -0
- package/src/orchestrator/agents/security-expert.agent.md +64 -0
- package/src/orchestrator/agents/seo-specialist.agent.md +67 -0
- package/src/orchestrator/agents/team-lead.agent.md +644 -0
- package/src/orchestrator/agents/testing-expert.agent.md +85 -0
- package/src/orchestrator/agents/ui-ux-expert.agent.md +63 -0
- package/src/orchestrator/copilot-instructions.md +3 -0
- package/src/orchestrator/customizations/AGENT-EXPERTISE.md +325 -0
- package/src/orchestrator/customizations/AGENT-FAILURES.md +69 -0
- package/src/orchestrator/customizations/AGENT-PERFORMANCE.md +58 -0
- package/src/orchestrator/customizations/DISPUTES.md +162 -0
- package/src/orchestrator/customizations/KNOWLEDGE-GRAPH.md +10 -0
- package/src/orchestrator/customizations/LESSONS-LEARNED.md +70 -0
- package/src/orchestrator/customizations/README.md +59 -0
- package/src/orchestrator/customizations/agents/agent-registry.md +46 -0
- package/src/orchestrator/customizations/agents/skill-matrix.md +142 -0
- package/src/orchestrator/customizations/logs/README.md +181 -0
- package/src/orchestrator/customizations/logs/delegations.ndjson +1 -0
- package/src/orchestrator/customizations/logs/panels.ndjson +1 -0
- package/src/orchestrator/customizations/logs/sessions.ndjson +1 -0
- package/src/orchestrator/customizations/project/docs-structure.md +23 -0
- package/src/orchestrator/customizations/project/tracker-config.md +45 -0
- package/src/orchestrator/customizations/project.instructions.md +64 -0
- package/src/orchestrator/customizations/stack/api-config.md +37 -0
- package/src/orchestrator/customizations/stack/cms-config.md +26 -0
- package/src/orchestrator/customizations/stack/data-pipeline-config.md +41 -0
- package/src/orchestrator/customizations/stack/database-config.md +44 -0
- package/src/orchestrator/customizations/stack/deployment-config.md +45 -0
- package/src/orchestrator/customizations/stack/testing-config.md +56 -0
- package/src/orchestrator/instructions/ai-optimization.instructions.md +143 -0
- package/src/orchestrator/instructions/general.instructions.md +194 -0
- package/src/orchestrator/mcp.json +55 -0
- package/src/orchestrator/prompts/bootstrap-customizations.prompt.md +235 -0
- package/src/orchestrator/prompts/brainstorm.prompt.md +115 -0
- package/src/orchestrator/prompts/bug-fix.prompt.md +141 -0
- package/src/orchestrator/prompts/create-skill.prompt.md +103 -0
- package/src/orchestrator/prompts/generate-task-spec.prompt.md +154 -0
- package/src/orchestrator/prompts/implement-feature.prompt.md +124 -0
- package/src/orchestrator/prompts/metrics-report.prompt.md +142 -0
- package/src/orchestrator/prompts/quick-refinement.prompt.md +137 -0
- package/src/orchestrator/prompts/resolve-pr-comments.prompt.md +100 -0
- package/src/orchestrator/skills/accessibility-standards/SKILL.md +164 -0
- package/src/orchestrator/skills/agent-hooks/SKILL.md +147 -0
- package/src/orchestrator/skills/agent-memory/SKILL.md +144 -0
- package/src/orchestrator/skills/api-patterns/SKILL.md +106 -0
- package/src/orchestrator/skills/browser-testing/SKILL.md +203 -0
- package/src/orchestrator/skills/code-commenting/SKILL.md +133 -0
- package/src/orchestrator/skills/contentful-cms/SKILL.md +43 -0
- package/src/orchestrator/skills/context-map/SKILL.md +135 -0
- package/src/orchestrator/skills/convex-database/SKILL.md +80 -0
- package/src/orchestrator/skills/data-engineering/SKILL.md +99 -0
- package/src/orchestrator/skills/deployment-infrastructure/SKILL.md +49 -0
- package/src/orchestrator/skills/documentation-standards/SKILL.md +85 -0
- package/src/orchestrator/skills/fast-review/SKILL.md +327 -0
- package/src/orchestrator/skills/frontend-design/SKILL.md +42 -0
- package/src/orchestrator/skills/jira-management/SKILL.md +168 -0
- package/src/orchestrator/skills/memory-merger/SKILL.md +123 -0
- package/src/orchestrator/skills/nextjs-patterns/SKILL.md +75 -0
- package/src/orchestrator/skills/nx-workspace/SKILL.md +192 -0
- package/src/orchestrator/skills/panel-majority-vote/SKILL.md +184 -0
- package/src/orchestrator/skills/panel-majority-vote/panel-report.template.md +38 -0
- package/src/orchestrator/skills/performance-optimization/SKILL.md +101 -0
- package/src/orchestrator/skills/react-development/SKILL.md +117 -0
- package/src/orchestrator/skills/sanity-cms/SKILL.md +18 -0
- package/src/orchestrator/skills/security-hardening/SKILL.md +118 -0
- package/src/orchestrator/skills/self-improvement/SKILL.md +137 -0
- package/src/orchestrator/skills/seo-patterns/SKILL.md +40 -0
- package/src/orchestrator/skills/session-checkpoints/SKILL.md +205 -0
- package/src/orchestrator/skills/slack-notifications/SKILL.md +211 -0
- package/src/orchestrator/skills/strapi-cms/SKILL.md +43 -0
- package/src/orchestrator/skills/supabase-database/SKILL.md +24 -0
- package/src/orchestrator/skills/task-management/SKILL.md +143 -0
- package/src/orchestrator/skills/team-lead-reference/SKILL.md +317 -0
- package/src/orchestrator/skills/teams-notifications/SKILL.md +249 -0
- package/src/orchestrator/skills/testing-workflow/SKILL.md +134 -0
- package/src/orchestrator/skills/validation-gates/SKILL.md +100 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Documentation Structure
|
|
2
|
+
|
|
3
|
+
<!-- Populated by the `bootstrap-customizations` prompt based on project structure. -->
|
|
4
|
+
|
|
5
|
+
Project-specific documentation layout referenced by the `documentation-standards` skill.
|
|
6
|
+
|
|
7
|
+
## Directory Tree
|
|
8
|
+
|
|
9
|
+
<!-- Map your project's docs/ directory here -->
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
docs/
|
|
13
|
+
├── README.md — Documentation index
|
|
14
|
+
└── ... — Add entries as docs are created
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Practices
|
|
18
|
+
|
|
19
|
+
- **Check Known Issues** before starting any task
|
|
20
|
+
- **Review Architecture** docs for context
|
|
21
|
+
- **Update roadmap** after completing features
|
|
22
|
+
- **Add new issues** with: Issue ID, Status, Severity, Evidence, Root Cause, Solution Options
|
|
23
|
+
- **Archive** outdated docs rather than deleting
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Task Tracker Configuration
|
|
2
|
+
|
|
3
|
+
<!-- Populated by the `bootstrap-customizations` prompt.
|
|
4
|
+
Rename this file to match your tracker: linear-config.md, jira-config.md, etc. -->
|
|
5
|
+
|
|
6
|
+
Project-specific task tracker details referenced by the `task-management` skill.
|
|
7
|
+
|
|
8
|
+
## Workspace
|
|
9
|
+
|
|
10
|
+
- **Team:** _(team name)_
|
|
11
|
+
- **Prefix:** _(issue prefix, e.g., PRJ)_
|
|
12
|
+
- **Team ID:** _(team UUID)_
|
|
13
|
+
|
|
14
|
+
## Workflow State IDs
|
|
15
|
+
|
|
16
|
+
<!-- The `update_issue` MCP tool requires state UUIDs (not names) for status changes.
|
|
17
|
+
Populate these from your task tracker's settings. -->
|
|
18
|
+
|
|
19
|
+
| Status | UUID |
|
|
20
|
+
|--------|------|
|
|
21
|
+
| Backlog | |
|
|
22
|
+
| Todo | |
|
|
23
|
+
| In Progress | |
|
|
24
|
+
| In Review | |
|
|
25
|
+
| Done | |
|
|
26
|
+
| Canceled | |
|
|
27
|
+
|
|
28
|
+
## Label UUIDs
|
|
29
|
+
|
|
30
|
+
<!-- Map issues to the specialist agent responsible.
|
|
31
|
+
Labels must be created in the tracker UI first, then UUIDs copied here. -->
|
|
32
|
+
|
|
33
|
+
| Label | Agent | UUID |
|
|
34
|
+
|-------|-------|------|
|
|
35
|
+
| `nextjs` | Developer | _TBD_ |
|
|
36
|
+
| `ui` | UI/UX Expert | _TBD_ |
|
|
37
|
+
| `testing` | Testing Expert | _TBD_ |
|
|
38
|
+
| `docs` | Documentation Writer | _TBD_ |
|
|
39
|
+
| `devops` | DevOps Expert | _TBD_ |
|
|
40
|
+
| `data` | Data Expert | _TBD_ |
|
|
41
|
+
| `security` | Security Expert | _TBD_ |
|
|
42
|
+
| `performance` | Performance Expert | _TBD_ |
|
|
43
|
+
| `architecture` | Architect | _TBD_ |
|
|
44
|
+
| `bug` | _(any)_ | _TBD_ |
|
|
45
|
+
| `follow-up` | _(any)_ | _TBD_ |
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
```instructions
|
|
2
|
+
# Project Context
|
|
3
|
+
|
|
4
|
+
<!-- This file is populated by the `bootstrap-customizations` prompt.
|
|
5
|
+
Run that prompt to auto-discover your project's structure, tech stack, and configuration. -->
|
|
6
|
+
|
|
7
|
+
## Overview
|
|
8
|
+
|
|
9
|
+
<!-- Project name, description, and current status -->
|
|
10
|
+
|
|
11
|
+
## System Architecture
|
|
12
|
+
|
|
13
|
+
<!-- Architecture diagram showing apps, shared libraries, and external services -->
|
|
14
|
+
|
|
15
|
+
## Tech Stack
|
|
16
|
+
|
|
17
|
+
<!-- Table of technologies with versions and notes -->
|
|
18
|
+
|
|
19
|
+
| Layer | Technology | Version | Notes |
|
|
20
|
+
|-------|-----------|---------|-------|
|
|
21
|
+
| | | | |
|
|
22
|
+
|
|
23
|
+
## Project Structure
|
|
24
|
+
|
|
25
|
+
<!-- Table of directories and their purpose -->
|
|
26
|
+
|
|
27
|
+
| Path | Purpose |
|
|
28
|
+
|------|---------|
|
|
29
|
+
| | |
|
|
30
|
+
|
|
31
|
+
## Apps & Deployment
|
|
32
|
+
|
|
33
|
+
<!-- Table of apps with production URLs and dev ports -->
|
|
34
|
+
|
|
35
|
+
| App | Production URL | Dev Port |
|
|
36
|
+
|-----|---------------|----------|
|
|
37
|
+
| | | |
|
|
38
|
+
|
|
39
|
+
## Key Commands
|
|
40
|
+
|
|
41
|
+
<!-- Package manager and common development commands -->
|
|
42
|
+
|
|
43
|
+
## Routes
|
|
44
|
+
|
|
45
|
+
<!-- Application routes and their descriptions -->
|
|
46
|
+
|
|
47
|
+
## Key Documentation
|
|
48
|
+
|
|
49
|
+
<!-- Links to important docs files -->
|
|
50
|
+
|
|
51
|
+
| Document | Description |
|
|
52
|
+
|----------|-------------|
|
|
53
|
+
| | |
|
|
54
|
+
|
|
55
|
+
## Domain Quick Reference
|
|
56
|
+
|
|
57
|
+
<!-- Maps domains to skills and key file paths -->
|
|
58
|
+
|
|
59
|
+
| Domain | Skill | Key Paths |
|
|
60
|
+
|--------|-------|-----------|
|
|
61
|
+
| | | |
|
|
62
|
+
|
|
63
|
+
<!-- End of Project Context -->
|
|
64
|
+
```
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# API Configuration
|
|
2
|
+
|
|
3
|
+
<!-- Populated by the `bootstrap-customizations` prompt based on detected API routes and Server Actions. -->
|
|
4
|
+
|
|
5
|
+
Project-specific API inventory referenced by the `api-patterns` skill.
|
|
6
|
+
|
|
7
|
+
## API Endpoints
|
|
8
|
+
|
|
9
|
+
<!-- List all API route handlers with HTTP method, purpose, and auth requirements. -->
|
|
10
|
+
|
|
11
|
+
| Endpoint | Method | Purpose | Auth |
|
|
12
|
+
|----------|--------|---------|------|
|
|
13
|
+
| | | | |
|
|
14
|
+
|
|
15
|
+
## Server Actions
|
|
16
|
+
|
|
17
|
+
<!-- List Server Actions with their file locations and purpose. -->
|
|
18
|
+
|
|
19
|
+
| Action | Purpose |
|
|
20
|
+
|--------|---------|
|
|
21
|
+
| | |
|
|
22
|
+
|
|
23
|
+
## Security Layers
|
|
24
|
+
|
|
25
|
+
<!-- Describe the security middleware chain (WAF, proxy, rate limiting, etc.) -->
|
|
26
|
+
|
|
27
|
+
## External APIs
|
|
28
|
+
|
|
29
|
+
<!-- List third-party APIs used by the project. -->
|
|
30
|
+
|
|
31
|
+
| API | Purpose | Used In |
|
|
32
|
+
|-----|---------|---------|
|
|
33
|
+
| | | |
|
|
34
|
+
|
|
35
|
+
## Key Files
|
|
36
|
+
|
|
37
|
+
<!-- List key files related to API routes, middleware, and search. -->
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# CMS Configuration
|
|
2
|
+
|
|
3
|
+
<!-- Populated by the `bootstrap-customizations` prompt based on detected CMS.
|
|
4
|
+
Rename this file to match your CMS: sanity-config.md, contentful-config.md, strapi-config.md, etc. -->
|
|
5
|
+
|
|
6
|
+
Project-specific CMS details referenced by the corresponding CMS skill (e.g., `sanity-cms`).
|
|
7
|
+
|
|
8
|
+
## Configuration
|
|
9
|
+
|
|
10
|
+
<!-- CMS project IDs, dataset, API version, studio location, etc. -->
|
|
11
|
+
|
|
12
|
+
## Plugins
|
|
13
|
+
|
|
14
|
+
<!-- List CMS plugins and their purpose. -->
|
|
15
|
+
|
|
16
|
+
## Schema / Document Types
|
|
17
|
+
|
|
18
|
+
<!-- List document types with key fields and references to full schema docs. -->
|
|
19
|
+
|
|
20
|
+
## Query Examples
|
|
21
|
+
|
|
22
|
+
<!-- Provide representative query examples for the CMS query language (GROQ, GraphQL, etc.) -->
|
|
23
|
+
|
|
24
|
+
## Key Files
|
|
25
|
+
|
|
26
|
+
<!-- List key CMS config, schema, and query files. -->
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Data Pipeline Configuration
|
|
2
|
+
|
|
3
|
+
<!-- Populated by the `bootstrap-customizations` prompt based on detected ETL/scraping infrastructure. -->
|
|
4
|
+
|
|
5
|
+
Project-specific pipeline details referenced by the `data-engineering` skill.
|
|
6
|
+
|
|
7
|
+
## Pipeline Architecture
|
|
8
|
+
|
|
9
|
+
<!-- Describe the pipeline stages from data source to final destination. -->
|
|
10
|
+
|
|
11
|
+
## Library Structure
|
|
12
|
+
|
|
13
|
+
<!-- Map the data pipeline directory tree with file purposes. -->
|
|
14
|
+
|
|
15
|
+
## Target Sources
|
|
16
|
+
|
|
17
|
+
<!-- List data sources with URLs, data types, and status. -->
|
|
18
|
+
|
|
19
|
+
| Source | URL | Data Type | Status |
|
|
20
|
+
|--------|-----|-----------|--------|
|
|
21
|
+
| | | | |
|
|
22
|
+
|
|
23
|
+
## Data Model
|
|
24
|
+
|
|
25
|
+
<!-- Reference the canonical data model documentation. -->
|
|
26
|
+
|
|
27
|
+
## CLI Commands
|
|
28
|
+
|
|
29
|
+
<!-- List CLI commands for running pipeline stages. -->
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
# Example commands — replace with your project's actual commands
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Key Documentation
|
|
36
|
+
|
|
37
|
+
<!-- List key documentation files related to the data pipeline. -->
|
|
38
|
+
|
|
39
|
+
| File | Content |
|
|
40
|
+
|------|---------|
|
|
41
|
+
| | |
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Database Configuration
|
|
2
|
+
|
|
3
|
+
<!-- Populated by the `bootstrap-customizations` prompt based on detected database.
|
|
4
|
+
Rename this file to match your provider: supabase-config.md, prisma-config.md, drizzle-config.md, etc. -->
|
|
5
|
+
|
|
6
|
+
Project-specific database details referenced by the corresponding database skill (e.g., `supabase-database`).
|
|
7
|
+
|
|
8
|
+
## Integration
|
|
9
|
+
|
|
10
|
+
<!-- Auth library path, migration directory, session pattern, role system overview. -->
|
|
11
|
+
|
|
12
|
+
## Database Schema
|
|
13
|
+
|
|
14
|
+
### Core Tables
|
|
15
|
+
|
|
16
|
+
<!-- List tables with their purpose and RLS status. -->
|
|
17
|
+
|
|
18
|
+
| Table | Purpose | RLS |
|
|
19
|
+
|-------|---------|-----|
|
|
20
|
+
| | | |
|
|
21
|
+
|
|
22
|
+
### Role System
|
|
23
|
+
|
|
24
|
+
<!-- Describe roles and their permissions. -->
|
|
25
|
+
|
|
26
|
+
| Role | Permissions |
|
|
27
|
+
|------|------------|
|
|
28
|
+
| | |
|
|
29
|
+
|
|
30
|
+
### Migration History
|
|
31
|
+
|
|
32
|
+
<!-- List migrations in chronological order. -->
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
001_initial_schema.sql — Description
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Auth Flow
|
|
39
|
+
|
|
40
|
+
<!-- Describe the authentication flow step by step. -->
|
|
41
|
+
|
|
42
|
+
## Key Files
|
|
43
|
+
|
|
44
|
+
<!-- List key database, auth, and migration files. -->
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Deployment Configuration
|
|
2
|
+
|
|
3
|
+
<!-- Populated by the `bootstrap-customizations` prompt based on detected deployment config. -->
|
|
4
|
+
|
|
5
|
+
Project-specific deployment infrastructure referenced by the `deployment-infrastructure` skill.
|
|
6
|
+
|
|
7
|
+
## Architecture
|
|
8
|
+
|
|
9
|
+
<!-- Describe the deployment platform, CI/CD pipeline, and trigger mechanism. -->
|
|
10
|
+
|
|
11
|
+
## Apps & URLs
|
|
12
|
+
|
|
13
|
+
<!-- Reference the Apps & Deployment table in `project.instructions.md` for production URLs and dev ports. -->
|
|
14
|
+
|
|
15
|
+
## Cron Jobs
|
|
16
|
+
|
|
17
|
+
<!-- List scheduled jobs with their schedule, purpose, and auth mechanism. -->
|
|
18
|
+
|
|
19
|
+
| Cron | Schedule | Purpose | Auth |
|
|
20
|
+
|------|----------|---------|------|
|
|
21
|
+
| | | | |
|
|
22
|
+
|
|
23
|
+
## Environment Variables
|
|
24
|
+
|
|
25
|
+
<!-- List environment variable names (NEVER values) with their purpose and which apps need them. -->
|
|
26
|
+
|
|
27
|
+
| Variable | Purpose | Required For |
|
|
28
|
+
|----------|---------|--------------|
|
|
29
|
+
| | | |
|
|
30
|
+
|
|
31
|
+
## Caching Headers
|
|
32
|
+
|
|
33
|
+
<!-- Define cache-control headers for different content types. -->
|
|
34
|
+
|
|
35
|
+
| Source Pattern | Cache-Control |
|
|
36
|
+
|----------------|---------------|
|
|
37
|
+
| | |
|
|
38
|
+
|
|
39
|
+
## Security Headers
|
|
40
|
+
|
|
41
|
+
<!-- Reference the security-hardening skill for full header inventory and CSP configuration. -->
|
|
42
|
+
|
|
43
|
+
## Key Files
|
|
44
|
+
|
|
45
|
+
<!-- List key deployment config files. -->
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Testing Configuration
|
|
2
|
+
|
|
3
|
+
<!-- Populated by the `bootstrap-customizations` prompt based on detected test infrastructure. -->
|
|
4
|
+
|
|
5
|
+
Project-specific testing details referenced by the `browser-testing` skill.
|
|
6
|
+
|
|
7
|
+
## Primary Test App
|
|
8
|
+
|
|
9
|
+
<!-- Specify which app to use for E2E testing and how to build/start it. -->
|
|
10
|
+
|
|
11
|
+
- **App:** _(app name)_ (port XXXX)
|
|
12
|
+
- **Pre-test build:** _(build command)_
|
|
13
|
+
- **Start server:** _(serve command)_
|
|
14
|
+
|
|
15
|
+
## Data Test IDs
|
|
16
|
+
|
|
17
|
+
<!-- List `data-testid` selectors used across the project for E2E testing. -->
|
|
18
|
+
|
|
19
|
+
| Selector | Element |
|
|
20
|
+
|----------|---------|
|
|
21
|
+
| | |
|
|
22
|
+
|
|
23
|
+
## Breakpoints
|
|
24
|
+
|
|
25
|
+
<!-- Define responsive breakpoints for UI testing. -->
|
|
26
|
+
|
|
27
|
+
| Breakpoint | Width | CSS prefix | Test viewport |
|
|
28
|
+
|-----------|-------|------------|---------------|
|
|
29
|
+
| Mobile | | (default) | |
|
|
30
|
+
| Tablet | | | |
|
|
31
|
+
| Desktop | | | |
|
|
32
|
+
|
|
33
|
+
## E2E Test Suites
|
|
34
|
+
|
|
35
|
+
<!-- List E2E test suite files and their focus areas. -->
|
|
36
|
+
|
|
37
|
+
| Suite | Focus |
|
|
38
|
+
|-------|-------|
|
|
39
|
+
| | |
|
|
40
|
+
|
|
41
|
+
## Reporting Format
|
|
42
|
+
|
|
43
|
+
```markdown
|
|
44
|
+
## Browser Test: [Feature Name]
|
|
45
|
+
**Date:** [Date] | **App:** [app] (localhost:XXXX)
|
|
46
|
+
|
|
47
|
+
| Test | Status | Notes |
|
|
48
|
+
|------|--------|-------|
|
|
49
|
+
| Page loads | ✅ PASS | |
|
|
50
|
+
| Interaction works | ⚠️ ISSUE | Description |
|
|
51
|
+
| Edge case handled | ✅ PASS | |
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Test Results Log
|
|
55
|
+
|
|
56
|
+
<!-- Specify where to log test results. -->
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: 'AI assistant optimization techniques for efficient context usage and faster responses'
|
|
3
|
+
applyTo: '**'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# AI Assistant Optimization Instructions
|
|
7
|
+
|
|
8
|
+
## Batch Processing
|
|
9
|
+
|
|
10
|
+
### DO: Batch Independent Operations
|
|
11
|
+
|
|
12
|
+
When gathering context, batch all read operations together in a single parallel call:
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
Good: Read 3 files + search in parallel → 1 cache-friendly turn
|
|
16
|
+
Bad: Read file 1 → Read file 2 → Read file 3 → 3 separate turns
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
When modifying multiple independent files, batch the edits:
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
Good: Update 5 config files in parallel
|
|
23
|
+
Bad: Update config 1 → wait → Update config 2 → wait...
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### DON'T: Batch Dependent Operations
|
|
27
|
+
|
|
28
|
+
Don't batch operations where one depends on the output of another:
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
Bad: Read file + Edit file (need to read first)
|
|
32
|
+
Good: Read file → Analyze → Edit file
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Context Gathering Workflow
|
|
36
|
+
|
|
37
|
+
Gather all necessary context upfront before analysis/implementation:
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
Phase 1 (parallel): Read files + search for patterns + check errors
|
|
41
|
+
Phase 2: Analyze and plan
|
|
42
|
+
Phase 3 (parallel if independent): Create/modify files
|
|
43
|
+
Phase 4: Verify (tests, errors, lint)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Token Reduction Techniques
|
|
47
|
+
|
|
48
|
+
### Strategic Tool Selection
|
|
49
|
+
|
|
50
|
+
- Use `grep_search` with `includePattern` to scope searches to specific directories
|
|
51
|
+
- Use `file_search` to find files by pattern before reading
|
|
52
|
+
- Use `semantic_search` for exploring unfamiliar code instead of multiple grep searches
|
|
53
|
+
- Read targeted line ranges when you know approximately where code is
|
|
54
|
+
|
|
55
|
+
### Avoid Redundant Operations
|
|
56
|
+
|
|
57
|
+
- Don't re-read files already in context from the same conversation turn
|
|
58
|
+
- Check errors once per phase, not after every single change
|
|
59
|
+
- Don't search for what's already mentioned in context
|
|
60
|
+
- Use regex with alternation (e.g., `word1|word2|word3`) to combine searches
|
|
61
|
+
|
|
62
|
+
### Read Strategically
|
|
63
|
+
|
|
64
|
+
- Read larger sections (500-2000 lines) instead of many small reads
|
|
65
|
+
- Use `grep_search` to locate code, then read targeted ranges around it
|
|
66
|
+
- Deduplicate file paths before batching read operations
|
|
67
|
+
|
|
68
|
+
## Multi-Agent Optimization
|
|
69
|
+
|
|
70
|
+
### Sub-Agent Context Isolation
|
|
71
|
+
|
|
72
|
+
Sub-agents run in isolated context windows. Use this to your advantage:
|
|
73
|
+
|
|
74
|
+
- **Offload exploration** — fire a sub-agent to research a broad question; only the concise result comes back, keeping your primary context clean
|
|
75
|
+
- **Parallel research** — launch multiple sub-agents simultaneously for independent research tasks (e.g., "find all GROQ queries" + "list all components using X" at the same time)
|
|
76
|
+
- **Detailed prompts save tokens** — a specific sub-agent prompt avoids the sub-agent doing its own exploratory searches, which would waste its context budget
|
|
77
|
+
|
|
78
|
+
### Trust Sub-Agent Results
|
|
79
|
+
|
|
80
|
+
- Don't re-read files a sub-agent just analyzed — trust the returned summary
|
|
81
|
+
- Don't re-search for patterns a sub-agent already identified
|
|
82
|
+
- If a sub-agent returns file paths or code snippets, use them directly
|
|
83
|
+
|
|
84
|
+
### Background Agents for Long Work
|
|
85
|
+
|
|
86
|
+
- Delegate tasks expected to take >5 minutes to background agents — they run in parallel without blocking
|
|
87
|
+
- Include **all necessary context** in the delegation prompt (background agents can't ask follow-up questions)
|
|
88
|
+
- Batch independent background delegations together (e.g., launch DB migration + UI components + docs simultaneously)
|
|
89
|
+
|
|
90
|
+
### Delegation Prompt Efficiency
|
|
91
|
+
|
|
92
|
+
- Include exact file paths so the delegated agent doesn't waste time searching
|
|
93
|
+
- Reference existing patterns ("follow the structure in `libs/ui-kit/src/lib/Button/`") instead of describing patterns from scratch
|
|
94
|
+
- Set clear scope boundaries ("only modify files under `libs/queries/`") to prevent unnecessary exploration
|
|
95
|
+
|
|
96
|
+
## Response Optimization
|
|
97
|
+
|
|
98
|
+
- Provide brief progress updates after batched operations
|
|
99
|
+
- Describe changes concisely instead of repeating large code blocks
|
|
100
|
+
- Plan what context is needed before making tool calls
|
|
101
|
+
- Combine multiple related edits in planning before executing
|
|
102
|
+
|
|
103
|
+
## Planning Thresholds
|
|
104
|
+
|
|
105
|
+
Scale planning effort to task complexity — don't over-plan simple work:
|
|
106
|
+
|
|
107
|
+
| Complexity | Planning | Approach |
|
|
108
|
+
|-----------|----------|----------|
|
|
109
|
+
| Trivial (1-2 files, clear fix) | None | Act directly |
|
|
110
|
+
| Small (3-5 files, single concern) | Mental plan | Brief reasoning, then act |
|
|
111
|
+
| Medium (5-10 files, multiple concerns) | Todo list | Track steps, batch reads |
|
|
112
|
+
| Large (10+ files, cross-cutting) | Full decomposition | Dependency graph, phased execution |
|
|
113
|
+
|
|
114
|
+
**Stop-and-re-plan trigger:** See the Task Decomposition Protocol in `general.instructions.md` (step 5).
|
|
115
|
+
|
|
116
|
+
## Test & Build Output Efficiency
|
|
117
|
+
|
|
118
|
+
- Capture full test/build output **once** per verification phase, not after each micro-change
|
|
119
|
+
- Pipe verbose output through `tail -n 30` or `grep -E 'FAIL|ERROR|PASS'` to reduce noise
|
|
120
|
+
- When tests fail, read the **relevant failure block** — don't re-run the entire suite repeatedly
|
|
121
|
+
|
|
122
|
+
## README Cascade Reading
|
|
123
|
+
|
|
124
|
+
When entering an unfamiliar directory, check for a `README.md` before exploring files. READMEs provide architecture context that prevents wasted searches. Priority order:
|
|
125
|
+
1. Project root `README.md` (already covered by instruction files)
|
|
126
|
+
2. Library/app-level `README.md` (e.g., `libs/queries/README.md`)
|
|
127
|
+
3. Feature-level `README.md` (e.g., `libs/data-pipeline/src/lib/scrapers/README.md`)
|
|
128
|
+
|
|
129
|
+
## Anti-Patterns to Avoid
|
|
130
|
+
|
|
131
|
+
1. **Micro-reads** — Reading tiny file sections repeatedly
|
|
132
|
+
2. **Sequential searches** — Running searches one at a time when they're independent
|
|
133
|
+
3. **Premature actions** — Acting before gathering sufficient context
|
|
134
|
+
4. **Silent processing** — Batching without progress updates
|
|
135
|
+
5. **Exploratory tool calls** — Making tool calls without a clear plan
|
|
136
|
+
6. **Over-checking** — Validating after every tiny change instead of batching
|
|
137
|
+
7. **Re-gathering delegated context** — Re-reading files or re-searching after a sub-agent already returned the information
|
|
138
|
+
8. **Vague delegation prompts** — Forcing sub-agents to waste their context budget on discovery you already completed
|
|
139
|
+
9. **Sequential delegation** — Running independent sub-agents one-by-one when they could run in parallel
|
|
140
|
+
10. **Leaking secrets** — Printing tokens, keys, or passwords in terminal output or logs (violates Constitution #1)
|
|
141
|
+
11. **Over-planning** — Writing a full decomposition for a 2-file fix (see Planning Thresholds)
|
|
142
|
+
|
|
143
|
+
<!-- End of AI Optimization Instructions -->
|