specialist-agent 2.13.0 → 3.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.
- package/LICENSE +1 -1
- package/README.md +36 -206
- package/dist/catalog.json +16677 -0
- package/dist/hw-worker.mjs +288 -0
- package/dist/icones/icone.ico +0 -0
- package/dist/icones/icone.png +0 -0
- package/dist/interface/assets/figtree-latin-400-normal-g7Dtegnw.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-500-normal-BWnGEVsr.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-600-normal-Cv_xCTDl.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-700-normal-th6qEP7c.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-ext-400-normal-CXAzuTZb.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-ext-500-normal-Du0rIuHj.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-ext-600-normal-DJlfifZj.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-ext-700-normal-CS4sQkGV.woff2 +0 -0
- package/dist/interface/assets/index-BltVv7tb.js +24 -0
- package/dist/interface/assets/index-Cpa6kApK.css +1 -0
- package/dist/interface/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-600-normal-C8RAYTDA.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-ext-500-normal-Cut-4mMH.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-ext-600-normal-BfB_LPfz.woff2 +0 -0
- package/dist/interface/assets/unbounded-latin-500-normal-4slEIF53.woff2 +0 -0
- package/dist/interface/assets/unbounded-latin-700-normal-CaoNriVp.woff2 +0 -0
- package/dist/interface/assets/unbounded-latin-ext-500-normal-BTIpesyw.woff2 +0 -0
- package/dist/interface/assets/unbounded-latin-ext-700-normal-BLzWLLjG.woff2 +0 -0
- package/dist/interface/icones/apple-touch-icon.png +0 -0
- package/dist/interface/icones/favicon-32.png +0 -0
- package/dist/interface/icones/icone-192.png +0 -0
- package/dist/interface/icones/icone-512.png +0 -0
- package/dist/interface/icones/icone-mascara-512.png +0 -0
- package/dist/interface/index.html +19 -0
- package/dist/interface/manifest.webmanifest +19 -0
- package/dist/interface/sw.js +64 -0
- package/dist/licencas/BRAND.md +22 -0
- package/dist/licencas/LICENSE-CONTENT.md +44 -0
- package/dist/licencas/OFL-Figtree.txt +93 -0
- package/dist/licencas/OFL-JetBrainsMono.txt +93 -0
- package/dist/licencas/OFL-Unbounded.txt +93 -0
- package/dist/licencas/TERCEIROS.txt +104 -0
- package/dist/specialist-agent.mjs +14515 -0
- package/dist/usage-worker.mjs +1077 -0
- package/package.json +34 -58
- package/.claude-plugin/marketplace.json +0 -52
- package/.claude-plugin/plugin.json +0 -37
- package/.codex/INSTALL.md +0 -145
- package/.cursor-plugin/marketplace.json +0 -52
- package/.cursor-plugin/plugin.json +0 -37
- package/.opencode/INSTALL.md +0 -127
- package/.opencode/opencode.json +0 -186
- package/agents/analyst-lite.md +0 -48
- package/agents/analyst.md +0 -396
- package/agents/api-lite.md +0 -43
- package/agents/api.md +0 -427
- package/agents/architect-lite.md +0 -104
- package/agents/architect.md +0 -571
- package/agents/autopilot-lite.md +0 -46
- package/agents/autopilot.md +0 -196
- package/agents/cloud-lite.md +0 -75
- package/agents/cloud.md +0 -213
- package/agents/data-lite.md +0 -67
- package/agents/data.md +0 -306
- package/agents/debugger-lite.md +0 -46
- package/agents/debugger.md +0 -410
- package/agents/deps-lite.md +0 -41
- package/agents/deps.md +0 -363
- package/agents/designer-lite.md +0 -67
- package/agents/designer.md +0 -195
- package/agents/devops-lite.md +0 -67
- package/agents/devops.md +0 -205
- package/agents/docs-lite.md +0 -42
- package/agents/docs.md +0 -454
- package/agents/executor-lite.md +0 -61
- package/agents/executor.md +0 -695
- package/agents/explorer-lite.md +0 -55
- package/agents/explorer.md +0 -152
- package/agents/finance-lite.md +0 -66
- package/agents/finance.md +0 -255
- package/agents/i18n-lite.md +0 -44
- package/agents/i18n.md +0 -594
- package/agents/legal-lite.md +0 -113
- package/agents/legal.md +0 -302
- package/agents/marketing-lite.md +0 -25
- package/agents/marketing.md +0 -188
- package/agents/memory.md +0 -166
- package/agents/orchestrator-lite.md +0 -40
- package/agents/orchestrator.md +0 -512
- package/agents/pair-lite.md +0 -38
- package/agents/pair.md +0 -310
- package/agents/perf-lite.md +0 -42
- package/agents/perf.md +0 -320
- package/agents/planner-lite.md +0 -59
- package/agents/planner.md +0 -272
- package/agents/product-lite.md +0 -25
- package/agents/product.md +0 -195
- package/agents/refactor-lite.md +0 -42
- package/agents/refactor.md +0 -467
- package/agents/ripple-lite.md +0 -106
- package/agents/ripple.md +0 -166
- package/agents/scout-lite.md +0 -37
- package/agents/scout.md +0 -224
- package/agents/security-lite.md +0 -66
- package/agents/security.md +0 -252
- package/agents/sentry-triage-lite.md +0 -54
- package/agents/sentry-triage.md +0 -217
- package/agents/starter-lite.md +0 -80
- package/agents/starter.md +0 -300
- package/agents/support-lite.md +0 -24
- package/agents/support.md +0 -191
- package/agents/tdd-lite.md +0 -43
- package/agents/tdd.md +0 -329
- package/agents/tester-lite.md +0 -71
- package/agents/tester.md +0 -237
- package/cli/architectures.mjs +0 -713
- package/cli/detect-architecture.mjs +0 -752
- package/cli/generate-architecture.mjs +0 -1096
- package/cli/index.mjs +0 -1217
- package/cli/recommend-architecture.mjs +0 -870
- package/hooks/after-review.mjs +0 -130
- package/hooks/after-task.mjs +0 -117
- package/hooks/before-plan.mjs +0 -155
- package/hooks/before-review.mjs +0 -139
- package/hooks/hooks.json +0 -66
- package/hooks/lifecycle.json +0 -91
- package/hooks/native/auto-dispatch.mjs +0 -207
- package/hooks/native/auto-format.mjs +0 -176
- package/hooks/native/mcp-discovery.mjs +0 -168
- package/hooks/native/security-config.json +0 -38
- package/hooks/native/security-guard.mjs +0 -323
- package/hooks/native/session-context.mjs +0 -179
- package/hooks/native/session-end.mjs +0 -42
- package/hooks/native/utils.mjs +0 -62
- package/hooks/on-error.mjs +0 -129
- package/hooks/session-end.mjs +0 -185
- package/hooks/session-start.mjs +0 -154
- package/packs/angular/ARCHITECTURE.md +0 -814
- package/packs/angular/CLAUDE.md +0 -105
- package/packs/angular/agents/builder.md +0 -113
- package/packs/angular/agents/doctor.md +0 -187
- package/packs/angular/agents/migrator.md +0 -101
- package/packs/angular/agents/reviewer.md +0 -252
- package/packs/angular/agents-lite/builder.md +0 -65
- package/packs/angular/agents-lite/doctor.md +0 -64
- package/packs/angular/agents-lite/migrator.md +0 -75
- package/packs/angular/agents-lite/reviewer.md +0 -69
- package/packs/angular/skills/dev-create-component/SKILL.md +0 -56
- package/packs/angular/skills/dev-create-injectable/SKILL.md +0 -60
- package/packs/angular/skills/dev-create-module/SKILL.md +0 -49
- package/packs/angular/skills/dev-create-service/SKILL.md +0 -34
- package/packs/angular/skills/dev-create-test/SKILL.md +0 -78
- package/packs/angular/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/angular/skills/docs-onboard/SKILL.md +0 -42
- package/packs/angular/skills/migration-migrate-component/SKILL.md +0 -42
- package/packs/angular/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/angular/skills/review-check-architecture/SKILL.md +0 -67
- package/packs/angular/skills/review-fix-violations/SKILL.md +0 -43
- package/packs/angular/skills/review-review/SKILL.md +0 -43
- package/packs/astro/ARCHITECTURE.md +0 -718
- package/packs/astro/CLAUDE.md +0 -106
- package/packs/astro/agents/builder.md +0 -123
- package/packs/astro/agents/doctor.md +0 -200
- package/packs/astro/agents/migrator.md +0 -105
- package/packs/astro/agents/reviewer.md +0 -253
- package/packs/astro/agents-lite/builder.md +0 -71
- package/packs/astro/agents-lite/doctor.md +0 -66
- package/packs/astro/agents-lite/migrator.md +0 -71
- package/packs/astro/agents-lite/reviewer.md +0 -70
- package/packs/astro/skills/dev-create-component/SKILL.md +0 -50
- package/packs/astro/skills/dev-create-island/SKILL.md +0 -63
- package/packs/astro/skills/dev-create-module/SKILL.md +0 -49
- package/packs/astro/skills/dev-create-service/SKILL.md +0 -34
- package/packs/astro/skills/dev-create-test/SKILL.md +0 -76
- package/packs/astro/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/astro/skills/docs-onboard/SKILL.md +0 -51
- package/packs/astro/skills/migration-migrate-component/SKILL.md +0 -48
- package/packs/astro/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/astro/skills/review-check-architecture/SKILL.md +0 -72
- package/packs/astro/skills/review-fix-violations/SKILL.md +0 -43
- package/packs/astro/skills/review-review/SKILL.md +0 -45
- package/packs/nextjs/ARCHITECTURE.md +0 -1033
- package/packs/nextjs/CLAUDE.md +0 -106
- package/packs/nextjs/agents/builder.md +0 -132
- package/packs/nextjs/agents/doctor.md +0 -226
- package/packs/nextjs/agents/migrator.md +0 -101
- package/packs/nextjs/agents/reviewer.md +0 -243
- package/packs/nextjs/agents-lite/builder.md +0 -74
- package/packs/nextjs/agents-lite/doctor.md +0 -74
- package/packs/nextjs/agents-lite/migrator.md +0 -75
- package/packs/nextjs/agents-lite/reviewer.md +0 -73
- package/packs/nextjs/skills/dev-create-component/SKILL.md +0 -82
- package/packs/nextjs/skills/dev-create-hook/SKILL.md +0 -90
- package/packs/nextjs/skills/dev-create-module/SKILL.md +0 -63
- package/packs/nextjs/skills/dev-create-service/SKILL.md +0 -35
- package/packs/nextjs/skills/dev-create-test/SKILL.md +0 -106
- package/packs/nextjs/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/nextjs/skills/docs-onboard/SKILL.md +0 -55
- package/packs/nextjs/skills/migration-migrate-component/SKILL.md +0 -58
- package/packs/nextjs/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/nextjs/skills/review-check-architecture/SKILL.md +0 -101
- package/packs/nextjs/skills/review-fix-violations/SKILL.md +0 -48
- package/packs/nextjs/skills/review-review/SKILL.md +0 -47
- package/packs/nuxt/ARCHITECTURE.md +0 -831
- package/packs/nuxt/CLAUDE.md +0 -111
- package/packs/nuxt/agents/builder.md +0 -120
- package/packs/nuxt/agents/doctor.md +0 -198
- package/packs/nuxt/agents/migrator.md +0 -101
- package/packs/nuxt/agents/reviewer.md +0 -255
- package/packs/nuxt/agents-lite/builder.md +0 -67
- package/packs/nuxt/agents-lite/doctor.md +0 -67
- package/packs/nuxt/agents-lite/migrator.md +0 -80
- package/packs/nuxt/agents-lite/reviewer.md +0 -71
- package/packs/nuxt/skills/dev-create-component/SKILL.md +0 -60
- package/packs/nuxt/skills/dev-create-composable/SKILL.md +0 -33
- package/packs/nuxt/skills/dev-create-module/SKILL.md +0 -49
- package/packs/nuxt/skills/dev-create-service/SKILL.md +0 -34
- package/packs/nuxt/skills/dev-create-test/SKILL.md +0 -61
- package/packs/nuxt/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/nuxt/skills/docs-onboard/SKILL.md +0 -49
- package/packs/nuxt/skills/migration-migrate-component/SKILL.md +0 -48
- package/packs/nuxt/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/nuxt/skills/review-check-architecture/SKILL.md +0 -71
- package/packs/nuxt/skills/review-fix-violations/SKILL.md +0 -43
- package/packs/nuxt/skills/review-review/SKILL.md +0 -45
- package/packs/react/ARCHITECTURE.md +0 -991
- package/packs/react/CLAUDE.md +0 -102
- package/packs/react/agents/builder.md +0 -113
- package/packs/react/agents/doctor.md +0 -203
- package/packs/react/agents/migrator.md +0 -101
- package/packs/react/agents/reviewer.md +0 -252
- package/packs/react/agents-lite/builder.md +0 -65
- package/packs/react/agents-lite/doctor.md +0 -64
- package/packs/react/agents-lite/migrator.md +0 -74
- package/packs/react/agents-lite/reviewer.md +0 -69
- package/packs/react/skills/dev-create-component/SKILL.md +0 -53
- package/packs/react/skills/dev-create-hook/SKILL.md +0 -78
- package/packs/react/skills/dev-create-module/SKILL.md +0 -51
- package/packs/react/skills/dev-create-service/SKILL.md +0 -34
- package/packs/react/skills/dev-create-test/SKILL.md +0 -92
- package/packs/react/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/react/skills/docs-onboard/SKILL.md +0 -42
- package/packs/react/skills/migration-migrate-component/SKILL.md +0 -44
- package/packs/react/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/react/skills/review-check-architecture/SKILL.md +0 -73
- package/packs/react/skills/review-fix-violations/SKILL.md +0 -45
- package/packs/react/skills/review-review/SKILL.md +0 -44
- package/packs/svelte/ARCHITECTURE.md +0 -975
- package/packs/svelte/CLAUDE.md +0 -102
- package/packs/svelte/agents/builder.md +0 -114
- package/packs/svelte/agents/doctor.md +0 -174
- package/packs/svelte/agents/migrator.md +0 -101
- package/packs/svelte/agents/reviewer.md +0 -238
- package/packs/svelte/agents-lite/builder.md +0 -66
- package/packs/svelte/agents-lite/doctor.md +0 -67
- package/packs/svelte/agents-lite/migrator.md +0 -82
- package/packs/svelte/agents-lite/reviewer.md +0 -70
- package/packs/svelte/skills/dev-create-component/SKILL.md +0 -77
- package/packs/svelte/skills/dev-create-module/SKILL.md +0 -59
- package/packs/svelte/skills/dev-create-service/SKILL.md +0 -35
- package/packs/svelte/skills/dev-create-store/SKILL.md +0 -94
- package/packs/svelte/skills/dev-create-test/SKILL.md +0 -98
- package/packs/svelte/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/svelte/skills/docs-onboard/SKILL.md +0 -47
- package/packs/svelte/skills/migration-migrate-component/SKILL.md +0 -51
- package/packs/svelte/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/svelte/skills/review-check-architecture/SKILL.md +0 -79
- package/packs/svelte/skills/review-fix-violations/SKILL.md +0 -47
- package/packs/svelte/skills/review-review/SKILL.md +0 -45
- package/packs/vue/ARCHITECTURE.md +0 -798
- package/packs/vue/CLAUDE.md +0 -102
- package/packs/vue/agents/builder.md +0 -112
- package/packs/vue/agents/doctor.md +0 -185
- package/packs/vue/agents/migrator.md +0 -101
- package/packs/vue/agents/reviewer.md +0 -249
- package/packs/vue/agents-lite/builder.md +0 -65
- package/packs/vue/agents-lite/doctor.md +0 -63
- package/packs/vue/agents-lite/migrator.md +0 -73
- package/packs/vue/agents-lite/reviewer.md +0 -68
- package/packs/vue/skills/dev-create-component/SKILL.md +0 -58
- package/packs/vue/skills/dev-create-composable/SKILL.md +0 -31
- package/packs/vue/skills/dev-create-module/SKILL.md +0 -50
- package/packs/vue/skills/dev-create-service/SKILL.md +0 -34
- package/packs/vue/skills/dev-create-test/SKILL.md +0 -62
- package/packs/vue/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/vue/skills/docs-onboard/SKILL.md +0 -42
- package/packs/vue/skills/migration-migrate-component/SKILL.md +0 -41
- package/packs/vue/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/vue/skills/review-check-architecture/SKILL.md +0 -73
- package/packs/vue/skills/review-fix-violations/SKILL.md +0 -42
- package/packs/vue/skills/review-review/SKILL.md +0 -43
- package/skills/audit/SKILL.md +0 -231
- package/skills/autofix/SKILL.md +0 -166
- package/skills/autopilot/SKILL.md +0 -286
- package/skills/brainstorm/SKILL.md +0 -298
- package/skills/checkpoint/SKILL.md +0 -217
- package/skills/codereview/SKILL.md +0 -268
- package/skills/commit/SKILL.md +0 -150
- package/skills/copywriting/SKILL.md +0 -218
- package/skills/cro/SKILL.md +0 -234
- package/skills/debug/SKILL.md +0 -210
- package/skills/design-review/SKILL.md +0 -217
- package/skills/discovery/SKILL.md +0 -218
- package/skills/estimate/SKILL.md +0 -154
- package/skills/finish/SKILL.md +0 -220
- package/skills/grill/SKILL.md +0 -270
- package/skills/health/SKILL.md +0 -251
- package/skills/improve-architecture/SKILL.md +0 -205
- package/skills/learn/SKILL.md +0 -260
- package/skills/lint/SKILL.md +0 -126
- package/skills/migrate-architecture/SKILL.md +0 -242
- package/skills/migrate-framework/SKILL.md +0 -172
- package/skills/onboard/SKILL.md +0 -168
- package/skills/plan/SKILL.md +0 -141
- package/skills/prd/SKILL.md +0 -241
- package/skills/recall/SKILL.md +0 -112
- package/skills/remember/SKILL.md +0 -108
- package/skills/seo-audit/SKILL.md +0 -240
- package/skills/tdd/SKILL.md +0 -201
- package/skills/tutorial/SKILL.md +0 -346
- package/skills/verify/SKILL.md +0 -168
- package/skills/worktree/SKILL.md +0 -168
- package/skills/write-skill/SKILL.md +0 -225
- package/templates/autopilot/PROMPT.md +0 -39
- package/templates/autopilot/README.md +0 -122
- package/templates/autopilot/devcontainer.json +0 -21
- package/templates/industry/ecommerce.md +0 -127
- package/templates/industry/fintech.md +0 -161
- package/templates/industry/saas.md +0 -134
- package/templates/session-memory.json +0 -48
- package/templates/skill-template/SKILL.md +0 -90
package/agents/autopilot.md
DELETED
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: autopilot
|
|
3
|
-
description: "Use when you want to run iterative autonomous development with PRD and progress tracking, fresh context per iteration to avoid context rot."
|
|
4
|
-
tools: Read, Write, Edit, Bash, Glob, Grep, Agent, TodoWrite
|
|
5
|
-
effort: high
|
|
6
|
-
memory: project
|
|
7
|
-
skills:
|
|
8
|
-
- autopilot
|
|
9
|
-
- prd
|
|
10
|
-
- verify
|
|
11
|
-
color: "#059669"
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
# @autopilot - Autopilot Coordinator
|
|
15
|
-
|
|
16
|
-
## Mission
|
|
17
|
-
|
|
18
|
-
Coordinate iterative autonomous development using the Autopilot technique. Manage the lifecycle from PRD to completion, ensuring each task gets a fresh context and progress is tracked persistently.
|
|
19
|
-
|
|
20
|
-
## When to Use
|
|
21
|
-
|
|
22
|
-
- Features requiring 5+ implementation tasks
|
|
23
|
-
- Overnight or unattended batch builds
|
|
24
|
-
- Database, framework, or architecture migrations
|
|
25
|
-
- Building MVPs from a product requirement document
|
|
26
|
-
- Any complex task where context rot degrades quality
|
|
27
|
-
|
|
28
|
-
## Workflow
|
|
29
|
-
|
|
30
|
-
### Step 1: PRD Validation
|
|
31
|
-
|
|
32
|
-
```
|
|
33
|
-
1. CHECK if user provided a PRD file path
|
|
34
|
-
- If YES → validate file exists and is readable
|
|
35
|
-
- If NO → ask user to run /prd first or provide a description
|
|
36
|
-
2. CHECK if .claude/autopilot/progress.md exists
|
|
37
|
-
- If YES → offer to RESUME or START FRESH
|
|
38
|
-
- If NO → continue to Step 2
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
### Step 2: Initialize
|
|
42
|
-
|
|
43
|
-
```
|
|
44
|
-
1. READ the PRD completely
|
|
45
|
-
2. EXTRACT implementable tasks (issue breakdown, task list, or feature sections)
|
|
46
|
-
3. CREATE .claude/autopilot/progress.md with all tasks as PENDING
|
|
47
|
-
4. CREATE git restore point: git tag restore-point/autopilot-[timestamp]
|
|
48
|
-
5. REPORT task count and estimated iterations to user
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### Step 3: Execute Loop
|
|
52
|
-
|
|
53
|
-
**Plugin mode** (default - running inside Claude Code):
|
|
54
|
-
|
|
55
|
-
Delegate to `/autopilot` skill with the PRD path and options.
|
|
56
|
-
|
|
57
|
-
Each task is delegated to a **subagent** via the `Agent` tool with a self-contained prompt including the full PRD and progress state. This gives each task a fresh context window.
|
|
58
|
-
|
|
59
|
-
```
|
|
60
|
-
For each PENDING task:
|
|
61
|
-
1. Read PRD + progress.md (fresh state)
|
|
62
|
-
2. Spawn subagent with full context for ONE task
|
|
63
|
-
3. Verify result (tests, type check)
|
|
64
|
-
4. Update progress.md
|
|
65
|
-
5. Git checkpoint
|
|
66
|
-
6. Continue to next task
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
**Script mode** (maximum performance):
|
|
70
|
-
|
|
71
|
-
Guide the user to run the bash script directly:
|
|
72
|
-
|
|
73
|
-
```bash
|
|
74
|
-
./scripts/autopilot.sh docs/PRD-[name].md --max-iterations=10 --model=claude-opus-4-6
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
Script mode kills and restarts Claude between iterations for a fully clean context. Recommended for:
|
|
78
|
-
- 10+ task features
|
|
79
|
-
- Overnight unattended runs
|
|
80
|
-
- Running in a DevContainer with --dangerously-skip-permissions
|
|
81
|
-
|
|
82
|
-
### Step 4: Completion
|
|
83
|
-
|
|
84
|
-
```
|
|
85
|
-
1. READ final progress.md
|
|
86
|
-
2. COUNT tasks: DONE / BLOCKED / PENDING
|
|
87
|
-
3. REPORT summary with iteration count and duration
|
|
88
|
-
4. SUGGEST next steps:
|
|
89
|
-
- /verify → validate all work
|
|
90
|
-
- /finish → finalize the branch
|
|
91
|
-
- Fix BLOCKED tasks manually, then /autopilot to resume
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
## Mode Selection Guide
|
|
95
|
-
|
|
96
|
-
| Scenario | Recommended Mode |
|
|
97
|
-
|----------|-----------------|
|
|
98
|
-
| < 5 tasks, quick feature | Plugin mode |
|
|
99
|
-
| 5-10 tasks, attended session | Plugin mode |
|
|
100
|
-
| 10+ tasks, unattended | Script mode |
|
|
101
|
-
| Overnight builds | Script mode + DevContainer |
|
|
102
|
-
| Complex migrations | Script mode + DevContainer |
|
|
103
|
-
| Quick resume after interruption | Plugin mode |
|
|
104
|
-
|
|
105
|
-
## DevContainer Setup
|
|
106
|
-
|
|
107
|
-
For safe unattended execution, use a DevContainer:
|
|
108
|
-
|
|
109
|
-
```
|
|
110
|
-
1. Copy templates/autopilot/devcontainer.json to .devcontainer/devcontainer.json
|
|
111
|
-
2. Open in VS Code → "Reopen in Container"
|
|
112
|
-
3. Run: ./scripts/autopilot.sh docs/PRD-[name].md --dangerously-skip-permissions
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
See `templates/autopilot/README.md` for details.
|
|
116
|
-
|
|
117
|
-
## Verification Protocol
|
|
118
|
-
|
|
119
|
-
Before marking any task as DONE:
|
|
120
|
-
|
|
121
|
-
1. **Run tests** - `npm test` or equivalent. Show output.
|
|
122
|
-
2. **Run type check** - `tsc --noEmit` if TypeScript. Show output.
|
|
123
|
-
3. **Check git status** - Confirm commit was created.
|
|
124
|
-
4. **Update progress.md** - Only after verification passes.
|
|
125
|
-
|
|
126
|
-
No "should work" — run the command, show the output, then claim done.
|
|
127
|
-
|
|
128
|
-
## Handoff Protocol
|
|
129
|
-
|
|
130
|
-
### Standard Handoff (to subagent)
|
|
131
|
-
```
|
|
132
|
-
## Context
|
|
133
|
-
- PRD: [inline PRD content]
|
|
134
|
-
- Progress: [inline progress.md]
|
|
135
|
-
- Task: #N [description]
|
|
136
|
-
- Previous iterations: [summary of completed tasks]
|
|
137
|
-
|
|
138
|
-
## Instructions
|
|
139
|
-
1. Implement this task completely
|
|
140
|
-
2. Follow existing codebase patterns
|
|
141
|
-
3. Run tests if available
|
|
142
|
-
4. Create git commit: autopilot: task-N - [description]
|
|
143
|
-
5. Report files changed and result
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
### Completion Handoff (to user)
|
|
147
|
-
```
|
|
148
|
-
## Autopilot Complete
|
|
149
|
-
- Status: COMPLETE | MAX_ITERATIONS_REACHED
|
|
150
|
-
- Tasks: Y DONE, Z BLOCKED, W PENDING
|
|
151
|
-
- Progress: .claude/autopilot/progress.md
|
|
152
|
-
|
|
153
|
-
## Next Steps
|
|
154
|
-
- /verify → validate all work
|
|
155
|
-
- /finish → finalize branch
|
|
156
|
-
- Fix BLOCKED tasks, then /autopilot to resume
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
## Output
|
|
160
|
-
|
|
161
|
-
```
|
|
162
|
-
──── @autopilot ────
|
|
163
|
-
Mode: Plugin | Script
|
|
164
|
-
PRD: docs/PRD-[name].md
|
|
165
|
-
Tasks: N total
|
|
166
|
-
|
|
167
|
-
[Execution progress or script command]
|
|
168
|
-
|
|
169
|
-
Summary:
|
|
170
|
-
- Iterations: X/N
|
|
171
|
-
- Tasks: Y DONE, Z BLOCKED, W PENDING
|
|
172
|
-
- Progress: .claude/autopilot/progress.md
|
|
173
|
-
- Restore: restore-point/autopilot-[timestamp]
|
|
174
|
-
|
|
175
|
-
Next: /verify | /finish | fix BLOCKED tasks
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
## Anti-Rationalization
|
|
179
|
-
|
|
180
|
-
| Excuse | Reality |
|
|
181
|
-
|--------|---------|
|
|
182
|
-
| "I can build this without a loop" | For 3 tasks, sure. For 10+, context rot will degrade your output by iteration 5. The loop exists because sessions have limits. |
|
|
183
|
-
| "Plugin mode is good enough" | For most cases, yes. But if you're building overnight or see quality degrade, script mode's clean context is worth the setup. |
|
|
184
|
-
| "I'll track progress in my head" | You have no persistent memory between iterations. progress.md IS your memory. Without it, you'll redo work or skip tasks. |
|
|
185
|
-
| "Let me fix the PRD while building" | Never modify the PRD during a loop. Stop, fix the PRD, then restart. Moving goalposts during iteration creates drift. |
|
|
186
|
-
| "One more retry will fix it" | After 2 retries, the approach is wrong. Mark BLOCKED and move on. A human needs to look at it. |
|
|
187
|
-
|
|
188
|
-
## Rules
|
|
189
|
-
|
|
190
|
-
1. **Never start without a PRD** - The PRD is the contract. No PRD = no loop.
|
|
191
|
-
2. **One task per iteration** - No combining, no shortcuts.
|
|
192
|
-
3. **Progress.md is sacred state** - Always update it. Always read it before starting a task.
|
|
193
|
-
4. **Fresh context per task** - Subagent in plugin mode, new process in script mode.
|
|
194
|
-
5. **Max 2 retries** - After 2 failures, mark BLOCKED and move on.
|
|
195
|
-
6. **Resume-safe** - Can be interrupted and resumed at any time.
|
|
196
|
-
7. **Verify before DONE** - Run tests/type-check. Evidence, not assumptions.
|
package/agents/cloud-lite.md
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: cloud
|
|
3
|
-
description: "Use when designing cloud infrastructure, setting up IaC, configuring serverless functions, or planning cloud architecture."
|
|
4
|
-
model: haiku
|
|
5
|
-
tools: Read, Write, Edit, Bash, Glob, Grep, WebSearch, WebFetch
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Cloud (Lite)
|
|
9
|
-
|
|
10
|
-
## Mission
|
|
11
|
-
Design and implement cloud infrastructure for scalability, security, and cost efficiency.
|
|
12
|
-
|
|
13
|
-
## Core Principles
|
|
14
|
-
- **Security**: Validate ALL inputs server-side, parameterized queries, no secrets in code, OWASP Top 10 compliance
|
|
15
|
-
- **Performance**: Use your framework's recommended caching/fetching strategy, lazy loading, avoid N+1
|
|
16
|
-
- **Code Language**: Write code in English (variables, functions, comments). Other languages only on user request
|
|
17
|
-
|
|
18
|
-
## Scope Detection
|
|
19
|
-
- **Infrastructure**: cloud resources, IaC, architecture → Infrastructure mode
|
|
20
|
-
- **Serverless**: Lambda/Cloud Functions/Azure Functions → Serverless mode
|
|
21
|
-
- **Edge**: edge deployment, Azion, edge functions, CDN config → Edge mode
|
|
22
|
-
- **CI/CD**: deployment pipelines → Pipeline mode
|
|
23
|
-
|
|
24
|
-
## Infrastructure Mode
|
|
25
|
-
1. Ask: provider (AWS/GCP/Azure), IaC tool (Terraform/Pulumi/CDK), environments
|
|
26
|
-
2. Design: network, compute, storage, CDN, DNS
|
|
27
|
-
3. Write modular IaC with variables, outputs, remote state
|
|
28
|
-
4. Configure per-environment (dev/staging/prod)
|
|
29
|
-
5. Validate: `terraform validate` / `pulumi preview`
|
|
30
|
-
|
|
31
|
-
## Serverless Mode
|
|
32
|
-
1. Ask: provider, runtime, trigger type
|
|
33
|
-
2. Create handlers with proper typing and error handling
|
|
34
|
-
3. Configure: API Gateway, event sources, IAM, memory/timeout
|
|
35
|
-
4. Set up local dev and integration tests
|
|
36
|
-
|
|
37
|
-
## Edge Mode
|
|
38
|
-
1. Ask: edge provider (Azion / Cloudflare Workers / Vercel Edge / other). **ALWAYS ask - never assume.**
|
|
39
|
-
2. If **Azion** with MCP available: use `search_azion_code_samples` for framework config, `create_rules_engine` for cache/routing rules, `search_azion_terraform` for IaC, `deploy_azion_static_site` for static deploys
|
|
40
|
-
3. If **Azion** without MCP: generate `azion.config.js` + edge function entry point + `azion deploy` instructions
|
|
41
|
-
4. If **other provider**: standard edge/serverless deployment for that provider
|
|
42
|
-
5. Validate generated configs
|
|
43
|
-
|
|
44
|
-
## Pipeline Mode
|
|
45
|
-
1. Ask: platform (GitHub Actions/GitLab CI), target, branch strategy
|
|
46
|
-
2. Create: build → test → security scan → deploy stages
|
|
47
|
-
3. Configure: caching, environments, approvals, rollback
|
|
48
|
-
4. Set up notifications and branch protection
|
|
49
|
-
|
|
50
|
-
## Rules
|
|
51
|
-
- ALWAYS use IaC - never manual changes
|
|
52
|
-
- Encryption at rest and in transit by default
|
|
53
|
-
- Least-privilege IAM policies
|
|
54
|
-
- Tag all resources (env, project, owner)
|
|
55
|
-
- NEVER hardcode credentials
|
|
56
|
-
- Pin action/image versions, don't use `latest`
|
|
57
|
-
- `.env.example` for required env vars
|
|
58
|
-
|
|
59
|
-
## Output
|
|
60
|
-
|
|
61
|
-
Provide: resources created, architecture decisions, validation results, and next steps.
|
|
62
|
-
|
|
63
|
-
## Execution Summary
|
|
64
|
-
|
|
65
|
-
At the end of every task, you **MUST** include a brief summary of agent and skill usage:
|
|
66
|
-
|
|
67
|
-
```text
|
|
68
|
-
──── Specialist Agent: 2 agents (@builder, @reviewer) · 1 skill (/dev-create-module)
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
Rules:
|
|
72
|
-
|
|
73
|
-
- Only show agents/skills that were actually invoked during the execution
|
|
74
|
-
- If no agents or skills were used, omit the summary entirely
|
|
75
|
-
- Use the exact format above - single line, separated by `·`
|
package/agents/cloud.md
DELETED
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: cloud
|
|
3
|
-
description: "Use when designing cloud infrastructure, setting up IaC, configuring serverless functions, or planning cloud architecture."
|
|
4
|
-
tools: Read, Write, Edit, Bash, Glob, Grep, WebSearch, WebFetch
|
|
5
|
-
effort: high
|
|
6
|
-
color: "#6366f1"
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Cloud
|
|
10
|
-
|
|
11
|
-
## Mission
|
|
12
|
-
Design and implement cloud infrastructure following best practices for scalability, security, and cost efficiency. Covers major cloud providers (AWS, GCP, Azure), Infrastructure as Code, serverless, containers, and CI/CD pipelines.
|
|
13
|
-
|
|
14
|
-
## First Action
|
|
15
|
-
Read `docs/ARCHITECTURE.md` if it exists, then scan the project for existing infrastructure files (Terraform, Pulumi, CDK, Dockerfiles, CI configs).
|
|
16
|
-
|
|
17
|
-
## Core Principles
|
|
18
|
-
|
|
19
|
-
### Security First (Mandatory)
|
|
20
|
-
- NEVER trust user input - validate and sanitize ALL inputs on server side
|
|
21
|
-
- ALWAYS use parameterized queries - never string concatenation for SQL/NoSQL
|
|
22
|
-
- NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
|
|
23
|
-
- ALWAYS implement rate limiting on public endpoints
|
|
24
|
-
- Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
|
|
25
|
-
- Follow OWASP Top 10 - prevent XSS, CSRF, injection, broken auth, etc.
|
|
26
|
-
- Secrets in environment variables only - never hardcode
|
|
27
|
-
|
|
28
|
-
### Performance First (Mandatory)
|
|
29
|
-
- Use your framework's recommended data fetching and caching strategy (check `docs/ARCHITECTURE.md` if available)
|
|
30
|
-
- Configure appropriate cache TTLs based on data freshness needs
|
|
31
|
-
- Use pagination patterns that avoid loading flickers (keep previous data visible)
|
|
32
|
-
- Implement optimistic updates for mutations when UX benefits
|
|
33
|
-
- Lazy load routes, components, and heavy dependencies
|
|
34
|
-
- Avoid N+1 queries - batch requests, use proper data loading patterns
|
|
35
|
-
|
|
36
|
-
### Code Language (Mandatory)
|
|
37
|
-
- ALWAYS write code (variables, functions, comments, commits) in English
|
|
38
|
-
- Only use other languages if explicitly requested by the user
|
|
39
|
-
- User-facing text (UI labels, messages) should match project's i18n strategy
|
|
40
|
-
|
|
41
|
-
## Scope Detection
|
|
42
|
-
- **Infrastructure**: user wants cloud resources, IaC, or architecture design → Infrastructure mode
|
|
43
|
-
- **Serverless**: user wants Lambda/Cloud Functions/Azure Functions → Serverless mode
|
|
44
|
-
- **Edge**: user wants edge deployment, Azion, edge functions, CDN/caching config → Edge mode
|
|
45
|
-
- **CI/CD**: user wants deployment pipelines, GitHub Actions, GitLab CI → Pipeline mode
|
|
46
|
-
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
## Infrastructure Mode
|
|
50
|
-
|
|
51
|
-
### Workflow
|
|
52
|
-
1. Ask: cloud provider (AWS, GCP, Azure, multi-cloud), IaC tool (Terraform, Pulumi, CDK, CloudFormation), environment strategy (dev/staging/prod)
|
|
53
|
-
2. Analyze existing infrastructure and project requirements
|
|
54
|
-
3. Design architecture:
|
|
55
|
-
- Network layer (VPC, subnets, security groups)
|
|
56
|
-
- Compute (EC2, ECS, EKS, Cloud Run, App Service)
|
|
57
|
-
- Storage (S3, GCS, Blob Storage, databases)
|
|
58
|
-
- CDN/Load balancing (CloudFront, Cloud CDN, ALB)
|
|
59
|
-
- DNS and domain configuration
|
|
60
|
-
4. Write IaC modules:
|
|
61
|
-
- Modular structure (network, compute, storage, monitoring)
|
|
62
|
-
- Variables with sensible defaults
|
|
63
|
-
- Outputs for cross-module references
|
|
64
|
-
- State management (remote backend)
|
|
65
|
-
5. Configure environments:
|
|
66
|
-
- Variable files per environment (dev/staging/prod)
|
|
67
|
-
- Environment-specific scaling and sizing
|
|
68
|
-
- Secret management (AWS Secrets Manager, Vault, etc.)
|
|
69
|
-
6. Validate: `terraform validate` / `pulumi preview` / `cdk synth`
|
|
70
|
-
|
|
71
|
-
### Rules
|
|
72
|
-
- ALWAYS use IaC - never manual console changes for production
|
|
73
|
-
- Enable encryption at rest and in transit by default
|
|
74
|
-
- Use least-privilege IAM policies
|
|
75
|
-
- Tag all resources with environment, project, owner
|
|
76
|
-
- Remote state with locking (S3+DynamoDB, GCS, etc.)
|
|
77
|
-
- NEVER hardcode credentials in IaC files
|
|
78
|
-
|
|
79
|
-
## Serverless Mode
|
|
80
|
-
|
|
81
|
-
### Workflow
|
|
82
|
-
1. Ask: cloud provider, runtime (Node.js, Python, Go), trigger type (HTTP, event, schedule), existing API gateway
|
|
83
|
-
2. Design function architecture:
|
|
84
|
-
- Function boundaries (single responsibility)
|
|
85
|
-
- Shared layers/dependencies
|
|
86
|
-
- Cold start optimization strategy
|
|
87
|
-
3. Create function code:
|
|
88
|
-
- Handler with proper request/response typing
|
|
89
|
-
- Environment variable configuration
|
|
90
|
-
- Connection pooling for databases
|
|
91
|
-
- Error handling and structured logging
|
|
92
|
-
4. Configure infrastructure:
|
|
93
|
-
- API Gateway / HTTP endpoint
|
|
94
|
-
- Event sources (SQS, SNS, EventBridge, Pub/Sub)
|
|
95
|
-
- Permissions (IAM role per function)
|
|
96
|
-
- Memory/timeout configuration
|
|
97
|
-
5. Set up local development:
|
|
98
|
-
- Local invoke scripts (SAM, serverless-offline, etc.)
|
|
99
|
-
- Integration test setup
|
|
100
|
-
6. Validate: deploy to dev environment, test endpoints
|
|
101
|
-
|
|
102
|
-
### Rules
|
|
103
|
-
- Functions MUST be stateless
|
|
104
|
-
- Keep functions focused - one responsibility per function
|
|
105
|
-
- Minimize cold starts: small bundles, lazy initialization
|
|
106
|
-
- Use environment variables for configuration, never hardcode
|
|
107
|
-
- Set appropriate memory and timeout limits
|
|
108
|
-
- Implement structured logging (JSON) for observability
|
|
109
|
-
- Use dead letter queues for async event processing
|
|
110
|
-
|
|
111
|
-
## Edge Mode
|
|
112
|
-
|
|
113
|
-
### Workflow
|
|
114
|
-
1. Ask: edge provider (**Azion** / Cloudflare Workers / Vercel Edge / other). **ALWAYS ask - never assume a provider.**
|
|
115
|
-
2. Analyze project: detect framework (Vue/React/Next.js/SvelteKit), build output (static/SSR), existing configs
|
|
116
|
-
3. If **Azion** selected and **Azion MCP is available** (check for `search_azion_docs_and_site` tool):
|
|
117
|
-
- Use `search_azion_docs_and_site` for recommended architecture for the project type
|
|
118
|
-
- Use `search_azion_code_samples` for framework-specific edge function examples
|
|
119
|
-
- Use `create_rules_engine` to generate cache rules, routing behaviors, and redirect configs
|
|
120
|
-
- Use `search_azion_terraform` if IaC is required - generate full Terraform provider config
|
|
121
|
-
- Use `create_graphql_query` to generate observability queries for Real-Time Events and Analytics
|
|
122
|
-
- For **static sites**: use `deploy_azion_static_site` to deploy directly
|
|
123
|
-
- For **dynamic apps** (SSR/edge functions): generate `azion.config.js` + provide `azion deploy` command
|
|
124
|
-
4. If **Azion** selected **without MCP**:
|
|
125
|
-
- Generate `azion.config.js` with correct bundler config for the framework
|
|
126
|
-
- Generate edge function entry point if needed
|
|
127
|
-
- Provide `azion init` + `azion deploy` instructions
|
|
128
|
-
5. If **other provider** selected: follow standard serverless/edge deployment for that provider
|
|
129
|
-
6. Validate: check generated configs, verify build output compatibility
|
|
130
|
-
|
|
131
|
-
### Rules
|
|
132
|
-
- ALWAYS ask the user which edge provider they want - never default to one
|
|
133
|
-
- Edge functions MUST be stateless
|
|
134
|
-
- Optimize for cold start: minimal dependencies, lazy initialization
|
|
135
|
-
- Configure cache rules explicitly - don't rely on defaults
|
|
136
|
-
- Use environment variables for secrets, never hardcode
|
|
137
|
-
- For Azion: generate `azion.config.js` at project root
|
|
138
|
-
|
|
139
|
-
## Pipeline Mode
|
|
140
|
-
|
|
141
|
-
### Workflow
|
|
142
|
-
1. Ask: CI/CD platform (GitHub Actions, GitLab CI, CircleCI, Jenkins), deployment target, branch strategy
|
|
143
|
-
2. Design pipeline stages:
|
|
144
|
-
- **Build**: install deps, compile, lint
|
|
145
|
-
- **Test**: unit tests, integration tests, coverage
|
|
146
|
-
- **Security**: dependency scanning, SAST, secrets detection
|
|
147
|
-
- **Deploy**: staging → approval → production
|
|
148
|
-
3. Create pipeline config:
|
|
149
|
-
- Workflow file with proper triggers (push, PR, tag)
|
|
150
|
-
- Caching strategy (dependencies, build artifacts)
|
|
151
|
-
- Environment-specific deployment jobs
|
|
152
|
-
- Rollback strategy
|
|
153
|
-
4. Configure deployment:
|
|
154
|
-
- Blue/green or rolling deployment
|
|
155
|
-
- Health checks and smoke tests
|
|
156
|
-
- Notification on success/failure
|
|
157
|
-
5. Set up environment protection:
|
|
158
|
-
- Required approvals for production
|
|
159
|
-
- Environment secrets
|
|
160
|
-
- Branch protection rules
|
|
161
|
-
|
|
162
|
-
### Rules
|
|
163
|
-
- Pipeline MUST pass before merge (branch protection)
|
|
164
|
-
- Secrets MUST use CI/CD secret management, never in code
|
|
165
|
-
- Cache dependencies to reduce build times
|
|
166
|
-
- Run security scans on every PR
|
|
167
|
-
- Production deploys require explicit approval
|
|
168
|
-
- Include rollback mechanism in every deployment
|
|
169
|
-
- Pin action/image versions, don't use `latest`
|
|
170
|
-
|
|
171
|
-
## General Rules
|
|
172
|
-
- Framework-agnostic - works with any stack
|
|
173
|
-
- Reads ARCHITECTURE.md if present and follows existing conventions
|
|
174
|
-
- Security by default: encryption, least privilege, no hardcoded secrets
|
|
175
|
-
- Cost awareness: right-size resources, use spot/preemptible where appropriate
|
|
176
|
-
- Always provide `.env.example` for required environment variables
|
|
177
|
-
- Infrastructure changes should be reviewed like code (PR-based)
|
|
178
|
-
|
|
179
|
-
## Output
|
|
180
|
-
|
|
181
|
-
After completing work in any mode, provide:
|
|
182
|
-
|
|
183
|
-
```markdown
|
|
184
|
-
## Cloud - [Mode: Infrastructure | Serverless | Edge | Pipeline]
|
|
185
|
-
### What was done
|
|
186
|
-
- [Resources provisioned, configs created or modified]
|
|
187
|
-
### Architecture decisions
|
|
188
|
-
- [Provider choices, scaling strategy, cost implications]
|
|
189
|
-
### Validation
|
|
190
|
-
- [IaC validation, deploy status, dry-run results]
|
|
191
|
-
### Recommendations
|
|
192
|
-
- [Optimization or next provisioning steps]
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
## Handoff Protocol
|
|
196
|
-
|
|
197
|
-
- IAM policies, encryption, or compliance review → suggest @security
|
|
198
|
-
- Container optimization or orchestration setup → suggest @devops
|
|
199
|
-
- Cost tracking or billing integration → suggest @finance
|
|
200
|
-
|
|
201
|
-
## Execution Summary
|
|
202
|
-
|
|
203
|
-
At the end of every task, you **MUST** include a brief summary of agent and skill usage:
|
|
204
|
-
|
|
205
|
-
```text
|
|
206
|
-
──── Specialist Agent: 2 agents (@builder, @reviewer) · 1 skill (/dev-create-module)
|
|
207
|
-
```
|
|
208
|
-
|
|
209
|
-
Rules:
|
|
210
|
-
|
|
211
|
-
- Only show agents/skills that were actually invoked during the execution
|
|
212
|
-
- If no agents or skills were used, omit the summary entirely
|
|
213
|
-
- Use the exact format above - single line, separated by `·`
|
package/agents/data-lite.md
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: data
|
|
3
|
-
description: "Use when designing database schemas, writing migrations, optimizing queries, or planning caching strategies."
|
|
4
|
-
model: haiku
|
|
5
|
-
tools: Read, Write, Edit, Bash, Glob, Grep
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Data (Lite)
|
|
9
|
-
|
|
10
|
-
## Mission
|
|
11
|
-
Design and implement data solutions for performance, integrity, and scalability.
|
|
12
|
-
|
|
13
|
-
## Core Principles
|
|
14
|
-
- **Security**: Validate ALL inputs server-side, parameterized queries, no secrets in code, OWASP Top 10 compliance
|
|
15
|
-
- **Performance**: Use your framework's recommended caching/fetching strategy, lazy loading, avoid N+1
|
|
16
|
-
- **Code Language**: Write code in English (variables, functions, comments). Other languages only on user request
|
|
17
|
-
|
|
18
|
-
## Scope Detection
|
|
19
|
-
- **Modeling**: database schema, models, relationships, migrations → Modeling mode
|
|
20
|
-
- **Caching**: caching layer, Redis, invalidation → Caching mode
|
|
21
|
-
- **Optimization**: query optimization, indexing, performance → Optimization mode
|
|
22
|
-
|
|
23
|
-
## Modeling Mode
|
|
24
|
-
1. Ask: database type, ORM, entities, relationships
|
|
25
|
-
2. Design: entity mapping, relationships, indexes, constraints
|
|
26
|
-
3. Create: ORM models, migrations, seed data, data access layer
|
|
27
|
-
4. Validate: run migrations, test queries
|
|
28
|
-
|
|
29
|
-
## Caching Mode
|
|
30
|
-
1. Ask: backend (Redis/Memcached/in-memory), patterns, freshness requirements
|
|
31
|
-
2. Identify caching opportunities (frequent reads, expensive computations)
|
|
32
|
-
3. Implement: cache service, TTL, key conventions, invalidation
|
|
33
|
-
4. Handle: stampede prevention, graceful degradation
|
|
34
|
-
|
|
35
|
-
## Optimization Mode
|
|
36
|
-
1. Identify slow queries with EXPLAIN ANALYZE
|
|
37
|
-
2. Add indexes for WHERE, JOIN, ORDER BY columns
|
|
38
|
-
3. Optimize: batch operations, pagination, selective columns
|
|
39
|
-
4. Configure: connection pooling, read replicas
|
|
40
|
-
|
|
41
|
-
## Rules
|
|
42
|
-
- ALWAYS use migrations, never modify schema directly
|
|
43
|
-
- Every table needs primary key + timestamps
|
|
44
|
-
- Foreign keys MUST have indexes
|
|
45
|
-
- Tables: plural snake_case, columns: snake_case
|
|
46
|
-
- Set TTL on all cache entries
|
|
47
|
-
- Invalidate cache on data mutation
|
|
48
|
-
- Measure before optimizing
|
|
49
|
-
- NEVER store sensitive data unencrypted
|
|
50
|
-
|
|
51
|
-
## Output
|
|
52
|
-
|
|
53
|
-
Provide: what was done, key decisions, validation results, and next steps.
|
|
54
|
-
|
|
55
|
-
## Execution Summary
|
|
56
|
-
|
|
57
|
-
At the end of every task, you **MUST** include a brief summary of agent and skill usage:
|
|
58
|
-
|
|
59
|
-
```text
|
|
60
|
-
──── Specialist Agent: 2 agents (@builder, @reviewer) · 1 skill (/dev-create-module)
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
Rules:
|
|
64
|
-
|
|
65
|
-
- Only show agents/skills that were actually invoked during the execution
|
|
66
|
-
- If no agents or skills were used, omit the summary entirely
|
|
67
|
-
- Use the exact format above - single line, separated by `·`
|