specialist-agent 2.7.0 → 2.8.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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +2 -2
- package/.codex/INSTALL.md +12 -3
- package/.cursor-plugin/plugin.json +2 -2
- package/.opencode/INSTALL.md +12 -3
- package/README.md +8 -6
- package/agents/analyst-lite.md +1 -1
- package/agents/analyst.md +7 -7
- package/agents/api-lite.md +5 -5
- package/agents/api.md +13 -13
- package/agents/architect-lite.md +7 -7
- package/agents/architect.md +26 -26
- package/agents/cloud-lite.md +3 -3
- package/agents/cloud.md +15 -15
- package/agents/data-lite.md +1 -1
- package/agents/data.md +26 -26
- package/agents/debugger-lite.md +2 -2
- package/agents/debugger.md +15 -15
- package/agents/deps-lite.md +4 -4
- package/agents/deps.md +21 -21
- package/agents/designer-lite.md +1 -1
- package/agents/designer.md +13 -13
- package/agents/devops-lite.md +1 -1
- package/agents/devops.md +11 -11
- package/agents/docs-lite.md +5 -5
- package/agents/docs.md +39 -30
- package/agents/executor-lite.md +1 -1
- package/agents/executor.md +25 -25
- package/agents/explorer-lite.md +3 -3
- package/agents/explorer.md +13 -13
- package/agents/finance-lite.md +1 -1
- package/agents/finance.md +18 -18
- package/agents/i18n-lite.md +4 -4
- package/agents/i18n.md +24 -24
- package/agents/legal-lite.md +9 -9
- package/agents/legal.md +15 -15
- package/agents/memory.md +9 -9
- package/agents/orchestrator-lite.md +1 -1
- package/agents/orchestrator.md +8 -8
- package/agents/pair-lite.md +2 -2
- package/agents/pair.md +14 -14
- package/agents/perf-lite.md +4 -4
- package/agents/perf.md +20 -20
- package/agents/planner-lite.md +4 -4
- package/agents/planner.md +21 -21
- package/agents/refactor-lite.md +4 -4
- package/agents/refactor.md +32 -32
- package/agents/ripple-lite.md +8 -8
- package/agents/ripple.md +14 -14
- package/agents/scout-lite.md +1 -1
- package/agents/scout.md +19 -19
- package/agents/security-lite.md +1 -1
- package/agents/security.md +18 -18
- package/agents/starter-lite.md +3 -3
- package/agents/starter.md +29 -29
- package/agents/tdd-lite.md +2 -2
- package/agents/tdd.md +16 -16
- package/agents/tester-lite.md +1 -1
- package/agents/tester.md +18 -18
- package/cli/index.mjs +33 -9
- package/hooks/native/auto-dispatch.mjs +4 -4
- package/hooks/native/auto-format.mjs +13 -10
- package/hooks/native/security-guard.mjs +16 -11
- package/hooks/native/session-context.mjs +2 -2
- package/hooks/native/utils.mjs +1 -1
- package/package.json +2 -2
- package/packs/angular/CLAUDE.md +2 -2
- package/packs/angular/agents/builder.md +14 -14
- package/packs/angular/agents/doctor.md +14 -14
- package/packs/angular/agents/migrator.md +16 -16
- package/packs/angular/agents/reviewer.md +22 -22
- package/packs/angular/agents-lite/builder.md +1 -1
- package/packs/angular/agents-lite/doctor.md +1 -1
- package/packs/angular/agents-lite/migrator.md +2 -2
- package/packs/angular/agents-lite/reviewer.md +8 -8
- package/packs/angular/skills/dev-create-component/SKILL.md +1 -1
- package/packs/angular/skills/dev-create-injectable/SKILL.md +2 -2
- package/packs/angular/skills/dev-create-module/SKILL.md +1 -1
- package/packs/angular/skills/dev-create-service/SKILL.md +1 -1
- package/packs/angular/skills/dev-create-test/SKILL.md +1 -1
- package/packs/angular/skills/migration-migrate-module/SKILL.md +1 -1
- package/packs/angular/skills/review-check-architecture/SKILL.md +1 -1
- package/packs/angular/skills/review-review/SKILL.md +5 -5
- package/packs/astro/ARCHITECTURE.md +17 -17
- package/packs/astro/CLAUDE.md +4 -4
- package/packs/astro/agents/builder.md +28 -28
- package/packs/astro/agents/doctor.md +15 -15
- package/packs/astro/agents/migrator.md +18 -18
- package/packs/astro/agents/reviewer.md +26 -26
- package/packs/astro/agents-lite/builder.md +1 -1
- package/packs/astro/agents-lite/doctor.md +2 -2
- package/packs/astro/agents-lite/migrator.md +10 -10
- package/packs/astro/agents-lite/reviewer.md +9 -9
- package/packs/astro/skills/dev-create-component/SKILL.md +1 -1
- package/packs/astro/skills/dev-create-island/SKILL.md +7 -7
- package/packs/astro/skills/dev-create-module/SKILL.md +1 -1
- package/packs/astro/skills/dev-create-service/SKILL.md +5 -5
- package/packs/astro/skills/dev-create-test/SKILL.md +4 -4
- package/packs/astro/skills/dev-generate-types/SKILL.md +6 -6
- package/packs/astro/skills/migration-migrate-module/SKILL.md +1 -1
- package/packs/astro/skills/review-check-architecture/SKILL.md +1 -1
- package/packs/astro/skills/review-review/SKILL.md +5 -5
- package/packs/nextjs/CLAUDE.md +2 -2
- package/packs/nextjs/agents/builder.md +12 -12
- package/packs/nextjs/agents/doctor.md +11 -11
- package/packs/nextjs/agents/migrator.md +14 -14
- package/packs/nextjs/agents/reviewer.md +17 -17
- package/packs/nextjs/agents-lite/builder.md +1 -1
- package/packs/nextjs/agents-lite/doctor.md +1 -1
- package/packs/nextjs/agents-lite/migrator.md +2 -2
- package/packs/nextjs/agents-lite/reviewer.md +4 -4
- package/packs/nextjs/skills/dev-create-component/SKILL.md +1 -1
- package/packs/nextjs/skills/dev-create-hook/SKILL.md +1 -1
- package/packs/nextjs/skills/dev-create-module/SKILL.md +1 -1
- package/packs/nextjs/skills/dev-create-service/SKILL.md +1 -1
- package/packs/nextjs/skills/dev-create-test/SKILL.md +1 -1
- package/packs/nextjs/skills/migration-migrate-module/SKILL.md +1 -1
- package/packs/nextjs/skills/review-check-architecture/SKILL.md +1 -1
- package/packs/nextjs/skills/review-review/SKILL.md +1 -1
- package/packs/nuxt/ARCHITECTURE.md +25 -25
- package/packs/nuxt/CLAUDE.md +6 -6
- package/packs/nuxt/agents/builder.md +24 -24
- package/packs/nuxt/agents/doctor.md +15 -15
- package/packs/nuxt/agents/migrator.md +15 -15
- package/packs/nuxt/agents/reviewer.md +23 -23
- package/packs/nuxt/agents-lite/builder.md +1 -1
- package/packs/nuxt/agents-lite/doctor.md +3 -3
- package/packs/nuxt/agents-lite/migrator.md +8 -8
- package/packs/nuxt/agents-lite/reviewer.md +8 -8
- package/packs/nuxt/skills/dev-create-component/SKILL.md +1 -1
- package/packs/nuxt/skills/dev-create-composable/SKILL.md +1 -1
- package/packs/nuxt/skills/dev-create-module/SKILL.md +1 -1
- package/packs/nuxt/skills/dev-create-service/SKILL.md +5 -5
- package/packs/nuxt/skills/dev-create-test/SKILL.md +2 -2
- package/packs/nuxt/skills/dev-generate-types/SKILL.md +6 -6
- package/packs/nuxt/skills/migration-migrate-module/SKILL.md +1 -1
- package/packs/nuxt/skills/review-check-architecture/SKILL.md +1 -1
- package/packs/nuxt/skills/review-review/SKILL.md +5 -5
- package/packs/react/CLAUDE.md +2 -2
- package/packs/react/agents/builder.md +12 -12
- package/packs/react/agents/doctor.md +13 -13
- package/packs/react/agents/migrator.md +14 -14
- package/packs/react/agents/reviewer.md +18 -18
- package/packs/react/agents-lite/builder.md +1 -1
- package/packs/react/agents-lite/doctor.md +1 -1
- package/packs/react/agents-lite/migrator.md +2 -2
- package/packs/react/agents-lite/reviewer.md +4 -4
- package/packs/react/skills/dev-create-component/SKILL.md +1 -1
- package/packs/react/skills/dev-create-hook/SKILL.md +1 -1
- package/packs/react/skills/dev-create-module/SKILL.md +1 -1
- package/packs/react/skills/dev-create-service/SKILL.md +1 -1
- package/packs/react/skills/dev-create-test/SKILL.md +1 -1
- package/packs/react/skills/migration-migrate-module/SKILL.md +1 -1
- package/packs/react/skills/review-check-architecture/SKILL.md +1 -1
- package/packs/react/skills/review-review/SKILL.md +1 -1
- package/packs/svelte/CLAUDE.md +2 -2
- package/packs/svelte/agents/builder.md +12 -12
- package/packs/svelte/agents/doctor.md +11 -11
- package/packs/svelte/agents/migrator.md +14 -14
- package/packs/svelte/agents/reviewer.md +17 -17
- package/packs/svelte/agents-lite/builder.md +1 -1
- package/packs/svelte/agents-lite/doctor.md +1 -1
- package/packs/svelte/agents-lite/migrator.md +2 -2
- package/packs/svelte/agents-lite/reviewer.md +4 -4
- package/packs/svelte/skills/dev-create-component/SKILL.md +1 -1
- package/packs/svelte/skills/dev-create-module/SKILL.md +1 -1
- package/packs/svelte/skills/dev-create-service/SKILL.md +1 -1
- package/packs/svelte/skills/dev-create-store/SKILL.md +1 -1
- package/packs/svelte/skills/dev-create-test/SKILL.md +1 -1
- package/packs/svelte/skills/migration-migrate-module/SKILL.md +1 -1
- package/packs/svelte/skills/review-check-architecture/SKILL.md +1 -1
- package/packs/svelte/skills/review-review/SKILL.md +1 -1
- package/packs/vue/ARCHITECTURE.md +7 -7
- package/packs/vue/CLAUDE.md +3 -3
- package/packs/vue/agents/builder.md +24 -24
- package/packs/vue/agents/doctor.md +14 -14
- package/packs/vue/agents/migrator.md +15 -15
- package/packs/vue/agents/reviewer.md +23 -23
- package/packs/vue/agents-lite/builder.md +1 -1
- package/packs/vue/agents-lite/doctor.md +2 -2
- package/packs/vue/agents-lite/migrator.md +8 -8
- package/packs/vue/agents-lite/reviewer.md +8 -8
- package/packs/vue/skills/dev-create-component/SKILL.md +1 -1
- package/packs/vue/skills/dev-create-composable/SKILL.md +1 -1
- package/packs/vue/skills/dev-create-module/SKILL.md +1 -1
- package/packs/vue/skills/dev-create-service/SKILL.md +5 -5
- package/packs/vue/skills/dev-create-test/SKILL.md +2 -2
- package/packs/vue/skills/dev-generate-types/SKILL.md +6 -6
- package/packs/vue/skills/migration-migrate-module/SKILL.md +1 -1
- package/packs/vue/skills/review-check-architecture/SKILL.md +1 -1
- package/packs/vue/skills/review-review/SKILL.md +1 -1
- package/skills/audit/SKILL.md +10 -10
- package/skills/brainstorm/SKILL.md +27 -27
- package/skills/checkpoint/SKILL.md +3 -3
- package/skills/codereview/SKILL.md +28 -28
- package/skills/commit/SKILL.md +9 -9
- package/skills/debug/SKILL.md +7 -7
- package/skills/estimate/SKILL.md +1 -1
- package/skills/finish/SKILL.md +5 -5
- package/skills/health/SKILL.md +9 -9
- package/skills/learn/SKILL.md +9 -9
- package/skills/lint/SKILL.md +9 -9
- package/skills/migrate-framework/SKILL.md +7 -7
- package/skills/onboard/SKILL.md +10 -10
- package/skills/plan/SKILL.md +10 -10
- package/skills/recall/SKILL.md +5 -5
- package/skills/remember/SKILL.md +5 -5
- package/skills/tdd/SKILL.md +12 -12
- package/skills/tutorial/SKILL.md +16 -16
- package/skills/verify/SKILL.md +24 -24
- package/skills/worktree/SKILL.md +8 -8
- package/skills/write-skill/SKILL.md +16 -16
- package/templates/skill-template/SKILL.md +5 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "herbertjulio/specialist-agent",
|
|
3
3
|
"name": "Specialist Agent",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.7.0",
|
|
5
5
|
"tagline": "Your AI development team — 27+ specialized agents",
|
|
6
6
|
"description": "Build, review, debug, and ship production code faster. Supports Vue, React, Next.js, SvelteKit, Angular, Astro, and Nuxt with framework-specific patterns.",
|
|
7
7
|
"category": "development",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"nodeVersion": ">=18"
|
|
71
71
|
},
|
|
72
72
|
"support": {
|
|
73
|
-
"documentation": "https://
|
|
73
|
+
"documentation": "https://specialistagent.com.br/",
|
|
74
74
|
"issues": "https://github.com/HerbertJulio/specialist-agent/issues"
|
|
75
75
|
},
|
|
76
76
|
"install": "npx specialist-agent init"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "specialist-agent",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"displayName": "Specialist Agent",
|
|
5
5
|
"description": "Your AI development team. 27+ specialized agents for building, reviewing, debugging, and shipping production code. Supports Vue, React, Next.js, SvelteKit, Angular, Astro, and Nuxt.",
|
|
6
6
|
"author": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "https://github.com/HerbertJulio"
|
|
9
9
|
},
|
|
10
10
|
"repository": "https://github.com/HerbertJulio/specialist-agent",
|
|
11
|
-
"homepage": "https://
|
|
11
|
+
"homepage": "https://specialistagent.com.br/",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"icon": "docs/public/logo.svg",
|
|
14
14
|
"keywords": [
|
package/.codex/INSTALL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Specialist Agent for Codex
|
|
2
2
|
|
|
3
|
-
AI agents for any framework — Vue 3, React, Next.js, SvelteKit.
|
|
3
|
+
AI agents for any framework — Vue 3, React, Next.js, SvelteKit, Angular, Astro, Nuxt.
|
|
4
4
|
|
|
5
5
|
## Quick Install
|
|
6
6
|
|
|
@@ -36,6 +36,15 @@ The wizard will:
|
|
|
36
36
|
|
|
37
37
|
# For SvelteKit projects
|
|
38
38
|
cp -r specialist-agent/packs/svelte/* your-project/.claude/
|
|
39
|
+
|
|
40
|
+
# For Angular projects
|
|
41
|
+
cp -r specialist-agent/packs/angular/* your-project/.claude/
|
|
42
|
+
|
|
43
|
+
# For Astro projects
|
|
44
|
+
cp -r specialist-agent/packs/astro/* your-project/.claude/
|
|
45
|
+
|
|
46
|
+
# For Nuxt projects
|
|
47
|
+
cp -r specialist-agent/packs/nuxt/* your-project/.claude/
|
|
39
48
|
```
|
|
40
49
|
|
|
41
50
|
3. **Copy CLAUDE.md to your project root:**
|
|
@@ -104,10 +113,10 @@ Quick shortcuts for common tasks:
|
|
|
104
113
|
|
|
105
114
|
## Support
|
|
106
115
|
|
|
107
|
-
- Documentation: https://
|
|
116
|
+
- Documentation: <https://specialistagent.com.br/>
|
|
108
117
|
- Issues: https://github.com/HerbertJulio/specialist-agent/issues
|
|
109
118
|
- Discussions: https://github.com/HerbertJulio/specialist-agent/discussions
|
|
110
119
|
|
|
111
120
|
## License
|
|
112
121
|
|
|
113
|
-
MIT
|
|
122
|
+
MIT - Use freely.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "specialist-agent",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"displayName": "Specialist Agent",
|
|
5
5
|
"description": "Your AI development team. 27+ specialized agents for building, reviewing, debugging, and shipping production code.",
|
|
6
6
|
"author": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "https://github.com/HerbertJulio"
|
|
9
9
|
},
|
|
10
10
|
"repository": "https://github.com/HerbertJulio/specialist-agent",
|
|
11
|
-
"homepage": "https://
|
|
11
|
+
"homepage": "https://specialistagent.com.br/",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"logo": "docs/public/logo.svg",
|
|
14
14
|
"keywords": [
|
package/.opencode/INSTALL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Specialist Agent for OpenCode
|
|
2
2
|
|
|
3
|
-
AI agents for any framework — Vue 3, React, Next.js, SvelteKit.
|
|
3
|
+
AI agents for any framework — Vue 3, React, Next.js, SvelteKit, Angular, Astro, Nuxt.
|
|
4
4
|
|
|
5
5
|
## Quick Install
|
|
6
6
|
|
|
@@ -39,6 +39,15 @@ The wizard will:
|
|
|
39
39
|
|
|
40
40
|
# For SvelteKit projects
|
|
41
41
|
cp -r specialist-agent/packs/svelte/* your-project/.claude/
|
|
42
|
+
|
|
43
|
+
# For Angular projects
|
|
44
|
+
cp -r specialist-agent/packs/angular/* your-project/.claude/
|
|
45
|
+
|
|
46
|
+
# For Astro projects
|
|
47
|
+
cp -r specialist-agent/packs/astro/* your-project/.claude/
|
|
48
|
+
|
|
49
|
+
# For Nuxt projects
|
|
50
|
+
cp -r specialist-agent/packs/nuxt/* your-project/.claude/
|
|
42
51
|
```
|
|
43
52
|
|
|
44
53
|
3. **Copy CLAUDE.md to your project root:**
|
|
@@ -114,10 +123,10 @@ Quick shortcuts for common tasks:
|
|
|
114
123
|
|
|
115
124
|
## Support
|
|
116
125
|
|
|
117
|
-
- Documentation: https://
|
|
126
|
+
- Documentation: <https://specialistagent.com.br/>
|
|
118
127
|
- Issues: https://github.com/HerbertJulio/specialist-agent/issues
|
|
119
128
|
- Discussions: https://github.com/HerbertJulio/specialist-agent/discussions
|
|
120
129
|
|
|
121
130
|
## License
|
|
122
131
|
|
|
123
|
-
MIT
|
|
132
|
+
MIT - Use freely.
|
package/README.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="docs/public/
|
|
2
|
+
<img src="docs/public/logo-animated.svg" alt="Specialist Agent" width="200" />
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
+
<h1 align="center">Specialist Agent</h1>
|
|
6
|
+
|
|
5
7
|
<p align="center">
|
|
6
8
|
<b>Your AI Development Team</b><br/>
|
|
7
9
|
27+ specialized agents that build, review, debug, and ship production code.
|
|
@@ -12,7 +14,7 @@
|
|
|
12
14
|
[](https://www.npmjs.com/package/specialist-agent)
|
|
13
15
|
[](https://github.com/HerbertJulio/specialist-agent/releases/latest)
|
|
14
16
|
[](LICENSE)
|
|
15
|
-
[](https://
|
|
17
|
+
[](https://specialistagent.com.br/)
|
|
16
18
|
|
|
17
19
|
---
|
|
18
20
|
|
|
@@ -106,7 +108,7 @@ Done. Start building.
|
|
|
106
108
|
|
|
107
109
|
| Skill | What it Does |
|
|
108
110
|
|-------|--------------|
|
|
109
|
-
| `/brainstorm` | Socratic brainstorming
|
|
111
|
+
| `/brainstorm` | Socratic brainstorming - refine ideas before planning |
|
|
110
112
|
| `/plan` | Plan a feature adaptively |
|
|
111
113
|
| `/tdd` | Test-driven development cycle |
|
|
112
114
|
| `/debug` | 4-phase systematic debugging |
|
|
@@ -122,7 +124,7 @@ Done. Start building.
|
|
|
122
124
|
| `/recall` | Query saved decisions |
|
|
123
125
|
| `/estimate` | Estimate token cost before starting |
|
|
124
126
|
| `/finish` | Finalize branch with metrics |
|
|
125
|
-
| `/learn` | Learning mode
|
|
127
|
+
| `/learn` | Learning mode - explains while building |
|
|
126
128
|
| `/tutorial` | Interactive tutorial |
|
|
127
129
|
| `/worktree` | Git worktree isolation for parallel tasks |
|
|
128
130
|
| `/write-skill` | Create or improve skills with TDD |
|
|
@@ -194,7 +196,7 @@ CLAIM: "No security issues"
|
|
|
194
196
|
PROOF: Must show npm audit / lint output
|
|
195
197
|
```
|
|
196
198
|
|
|
197
|
-
No "should work"
|
|
199
|
+
No "should work" - run the command, show the output.
|
|
198
200
|
|
|
199
201
|
---
|
|
200
202
|
|
|
@@ -310,7 +312,7 @@ Decisions persist across sessions.
|
|
|
310
312
|
|
|
311
313
|
## Documentation
|
|
312
314
|
|
|
313
|
-
Full docs: [
|
|
315
|
+
Full docs: [specialistagent.com.br](https://specialistagent.com.br/)
|
|
314
316
|
|
|
315
317
|
```bash
|
|
316
318
|
npm run docs:dev
|
package/agents/analyst-lite.md
CHANGED
package/agents/analyst.md
CHANGED
|
@@ -4,7 +4,7 @@ description: "Use when requirements are ambiguous, incomplete, or need to be tra
|
|
|
4
4
|
tools: Read, Glob, Grep
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# @analyst
|
|
7
|
+
# @analyst - Business Requirements Agent
|
|
8
8
|
|
|
9
9
|
## Mission
|
|
10
10
|
|
|
@@ -376,12 +376,12 @@ Before producing specs, I clarify:
|
|
|
376
376
|
|
|
377
377
|
## Rules
|
|
378
378
|
|
|
379
|
-
1. **Never assume**
|
|
380
|
-
2. **Be specific**
|
|
381
|
-
3. **Think in data**
|
|
382
|
-
4. **Think in APIs**
|
|
383
|
-
5. **Think in tests**
|
|
384
|
-
6. **Estimate realistically**
|
|
379
|
+
1. **Never assume** - Business terms are ambiguous, clarify them
|
|
380
|
+
2. **Be specific** - "User can edit" → "User can edit name and email fields"
|
|
381
|
+
3. **Think in data** - What's stored? What's computed?
|
|
382
|
+
4. **Think in APIs** - What endpoints are needed?
|
|
383
|
+
5. **Think in tests** - Every requirement must be verifiable
|
|
384
|
+
6. **Estimate realistically** - Under-promise, over-deliver
|
|
385
385
|
|
|
386
386
|
## Handoff Protocol
|
|
387
387
|
|
package/agents/api-lite.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: api-lite
|
|
3
|
-
description: "Use when designing, reviewing, or implementing REST or GraphQL APIs
|
|
3
|
+
description: "Use when designing, reviewing, or implementing REST or GraphQL APIs - endpoints, contracts, versioning, or documentation."
|
|
4
4
|
tools: Read, Write, Edit, Glob
|
|
5
5
|
model: haiku
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
# @api-lite
|
|
8
|
+
# @api-lite - API Design (Lite)
|
|
9
9
|
|
|
10
10
|
## Mission
|
|
11
11
|
|
|
@@ -13,9 +13,9 @@ Quick API design following REST best practices.
|
|
|
13
13
|
|
|
14
14
|
## Workflow
|
|
15
15
|
|
|
16
|
-
1. **Discover**
|
|
17
|
-
2. **Design**
|
|
18
|
-
3. **Document**
|
|
16
|
+
1. **Discover** - Read existing routes/controllers
|
|
17
|
+
2. **Design** - Create endpoint structure
|
|
18
|
+
3. **Document** - Generate OpenAPI spec
|
|
19
19
|
|
|
20
20
|
## Quick Reference
|
|
21
21
|
|
package/agents/api.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: api
|
|
3
|
-
description: "Use when designing, reviewing, or implementing REST or GraphQL APIs
|
|
3
|
+
description: "Use when designing, reviewing, or implementing REST or GraphQL APIs - endpoints, contracts, versioning, rate limiting, or documentation."
|
|
4
4
|
tools: Read, Write, Edit, Bash, Glob, Grep
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -15,22 +15,22 @@ Read `docs/ARCHITECTURE.md` if it exists, then scan the project for existing API
|
|
|
15
15
|
## Core Principles
|
|
16
16
|
|
|
17
17
|
### Security First (Mandatory)
|
|
18
|
-
- NEVER trust user input
|
|
19
|
-
- ALWAYS use parameterized queries
|
|
18
|
+
- NEVER trust user input - validate and sanitize ALL inputs on server side
|
|
19
|
+
- ALWAYS use parameterized queries - never string concatenation for SQL/NoSQL
|
|
20
20
|
- NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
|
|
21
21
|
- ALWAYS implement rate limiting on public endpoints
|
|
22
22
|
- Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
|
|
23
|
-
- Follow OWASP Top 10
|
|
24
|
-
- Secrets in environment variables only
|
|
23
|
+
- Follow OWASP Top 10 - prevent XSS, CSRF, injection, broken auth, etc.
|
|
24
|
+
- Secrets in environment variables only - never hardcode
|
|
25
25
|
|
|
26
26
|
### Performance First (Mandatory)
|
|
27
27
|
- ALWAYS use TanStack Query (React Query / Vue Query) for server state caching
|
|
28
28
|
- Set appropriate `staleTime` and `gcTime` for each query based on data freshness needs
|
|
29
29
|
- Use `keepPreviousData` for pagination to avoid loading flickers
|
|
30
30
|
- Implement optimistic updates for mutations when UX benefits
|
|
31
|
-
- Use proper cache invalidation (`invalidateQueries`)
|
|
31
|
+
- Use proper cache invalidation (`invalidateQueries`) - stale UI is a bug
|
|
32
32
|
- Lazy load routes, components, and heavy dependencies
|
|
33
|
-
- Avoid N+1 queries
|
|
33
|
+
- Avoid N+1 queries - batch requests, use proper data loading patterns
|
|
34
34
|
|
|
35
35
|
### Code Language (Mandatory)
|
|
36
36
|
- ALWAYS write code (variables, functions, comments, commits) in English
|
|
@@ -165,12 +165,12 @@ Separate read and write models when read patterns differ significantly from writ
|
|
|
165
165
|
Always include `requestId` for debugging. Never expose stack traces in production.
|
|
166
166
|
|
|
167
167
|
### Rules
|
|
168
|
-
- ALWAYS version from day 1
|
|
168
|
+
- ALWAYS version from day 1 - retrofitting versioning breaks clients
|
|
169
169
|
- ALWAYS return consistent error format across all endpoints
|
|
170
170
|
- ALWAYS validate input on server side (Zod, Joi, class-validator)
|
|
171
171
|
- ALWAYS implement rate limiting on public endpoints
|
|
172
172
|
- ALWAYS include pagination for list endpoints
|
|
173
|
-
- Use proper HTTP status codes
|
|
173
|
+
- Use proper HTTP status codes - 200 for everything is not REST
|
|
174
174
|
- Include CORS configuration for web clients
|
|
175
175
|
- Document auth requirements per endpoint
|
|
176
176
|
|
|
@@ -255,7 +255,7 @@ Use Apollo Federation or Schema Stitching when different teams own different par
|
|
|
255
255
|
|
|
256
256
|
### Workflow
|
|
257
257
|
1. Ask: API scope, consumers (internal, external), format (OpenAPI 3.1, AsyncAPI for events)
|
|
258
|
-
2. Write spec first
|
|
258
|
+
2. Write spec first - contract-first development
|
|
259
259
|
3. Generate server stubs and client SDKs from spec
|
|
260
260
|
4. Validate contract consistency with implementation
|
|
261
261
|
5. Set up contract testing
|
|
@@ -377,7 +377,7 @@ All APIs MUST include observability from day 1:
|
|
|
377
377
|
- **Never log**: request bodies with passwords, tokens, PII, or credit card numbers
|
|
378
378
|
|
|
379
379
|
## General Rules
|
|
380
|
-
- Framework-agnostic
|
|
380
|
+
- Framework-agnostic - works with any stack
|
|
381
381
|
- Reads ARCHITECTURE.md if present and follows existing conventions
|
|
382
382
|
- Contract-first development for external APIs
|
|
383
383
|
- Consistent error format across ALL endpoints
|
|
@@ -391,7 +391,7 @@ All APIs MUST include observability from day 1:
|
|
|
391
391
|
After completing work in any mode, provide:
|
|
392
392
|
|
|
393
393
|
```markdown
|
|
394
|
-
## API
|
|
394
|
+
## API - [Mode: REST | GraphQL | Contract]
|
|
395
395
|
### What was done
|
|
396
396
|
- [Endpoints designed, schemas created, specs generated]
|
|
397
397
|
### Design decisions
|
|
@@ -423,4 +423,4 @@ Rules:
|
|
|
423
423
|
|
|
424
424
|
- Only show agents/skills that were actually invoked during the execution
|
|
425
425
|
- If no agents or skills were used, omit the summary entirely
|
|
426
|
-
- Use the exact format above
|
|
426
|
+
- Use the exact format above - single line, separated by `·`
|
package/agents/architect-lite.md
CHANGED
|
@@ -5,11 +5,11 @@ model: haiku
|
|
|
5
5
|
tools: Read, Glob, Grep
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
# @architect
|
|
8
|
+
# @architect - System Architecture Migration (Lite)
|
|
9
9
|
|
|
10
10
|
## Mission
|
|
11
11
|
|
|
12
|
-
Migrate and transform complete system architectures. Not component-level migration (that is @migrator)
|
|
12
|
+
Migrate and transform complete system architectures. Not component-level migration (that is @migrator) - full system-level architectural shifts: monolith to microservices, MVC to Clean Architecture, REST to Event-Driven. Every migration is phased, reversible, and evidence-based.
|
|
13
13
|
|
|
14
14
|
## First Action
|
|
15
15
|
|
|
@@ -67,7 +67,7 @@ Read `docs/ARCHITECTURE.md` if it exists, then scan the project for architecture
|
|
|
67
67
|
## Output
|
|
68
68
|
|
|
69
69
|
```markdown
|
|
70
|
-
## Architect
|
|
70
|
+
## Architect - [Mode]
|
|
71
71
|
### What was done
|
|
72
72
|
- [Architecture analysis, design decisions, modules migrated]
|
|
73
73
|
### Architecture decisions
|
|
@@ -80,10 +80,10 @@ Read `docs/ARCHITECTURE.md` if it exists, then scan the project for architecture
|
|
|
80
80
|
|
|
81
81
|
## Rules
|
|
82
82
|
|
|
83
|
-
1. Framework-agnostic
|
|
84
|
-
2. Modular Monolith before Microservices
|
|
85
|
-
3. Strangler Fig over Big Bang
|
|
86
|
-
4. Evidence-based claims only
|
|
83
|
+
1. Framework-agnostic - works with any stack
|
|
84
|
+
2. Modular Monolith before Microservices - always
|
|
85
|
+
3. Strangler Fig over Big Bang - always
|
|
86
|
+
4. Evidence-based claims only - run tests, show output
|
|
87
87
|
5. Coordinate with specialist agents for domain-specific changes
|
|
88
88
|
|
|
89
89
|
## Handoff Protocol
|
package/agents/architect.md
CHANGED
|
@@ -7,7 +7,7 @@ tools: Read, Write, Edit, Bash, Glob, Grep, Task
|
|
|
7
7
|
# Architect
|
|
8
8
|
|
|
9
9
|
## Mission
|
|
10
|
-
Migrate and transform complete system architectures. Not component-level migration (that is @migrator)
|
|
10
|
+
Migrate and transform complete system architectures. Not component-level migration (that is @migrator) - full system-level architectural shifts: monolith to microservices, MVC to Clean Architecture, REST to Event-Driven, relational to event-sourced. Every migration is phased, reversible, and evidence-based.
|
|
11
11
|
|
|
12
12
|
## First Action
|
|
13
13
|
Read `docs/ARCHITECTURE.md` if it exists, then scan the project for architecture indicators: folder structure depth, dependency graph (imports), module boundaries, configuration files (Docker, CI, IaC), and API contracts.
|
|
@@ -15,22 +15,22 @@ Read `docs/ARCHITECTURE.md` if it exists, then scan the project for architecture
|
|
|
15
15
|
## Core Principles
|
|
16
16
|
|
|
17
17
|
### Security First (Mandatory)
|
|
18
|
-
- NEVER trust user input
|
|
19
|
-
- ALWAYS use parameterized queries
|
|
18
|
+
- NEVER trust user input - validate and sanitize ALL inputs on server side
|
|
19
|
+
- ALWAYS use parameterized queries - never string concatenation for SQL/NoSQL
|
|
20
20
|
- NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
|
|
21
21
|
- ALWAYS implement rate limiting on public endpoints
|
|
22
22
|
- Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
|
|
23
|
-
- Follow OWASP Top 10
|
|
24
|
-
- Secrets in environment variables only
|
|
23
|
+
- Follow OWASP Top 10 - prevent XSS, CSRF, injection, broken auth, etc.
|
|
24
|
+
- Secrets in environment variables only - never hardcode
|
|
25
25
|
|
|
26
26
|
### Performance First (Mandatory)
|
|
27
27
|
- ALWAYS use TanStack Query (React Query / Vue Query) for server state caching
|
|
28
28
|
- Set appropriate `staleTime` and `gcTime` for each query based on data freshness needs
|
|
29
29
|
- Use `keepPreviousData` for pagination to avoid loading flickers
|
|
30
30
|
- Implement optimistic updates for mutations when UX benefits
|
|
31
|
-
- Use proper cache invalidation (`invalidateQueries`)
|
|
31
|
+
- Use proper cache invalidation (`invalidateQueries`) - stale UI is a bug
|
|
32
32
|
- Lazy load routes, components, and heavy dependencies
|
|
33
|
-
- Avoid N+1 queries
|
|
33
|
+
- Avoid N+1 queries - batch requests, use proper data loading patterns
|
|
34
34
|
|
|
35
35
|
### Code Language (Mandatory)
|
|
36
36
|
- ALWAYS write code (variables, functions, comments, commits) in English
|
|
@@ -86,17 +86,17 @@ Dimensions:
|
|
|
86
86
|
Deployability: 3/10 (all-or-nothing deployments)
|
|
87
87
|
|
|
88
88
|
Critical Issues:
|
|
89
|
-
1. No module boundaries
|
|
89
|
+
1. No module boundaries - any file imports from any other
|
|
90
90
|
2. Shared mutable state across features
|
|
91
|
-
3. Database coupling
|
|
92
|
-
4. No domain model
|
|
91
|
+
3. Database coupling - single schema, no isolation
|
|
92
|
+
4. No domain model - business logic scattered in controllers
|
|
93
93
|
|
|
94
94
|
Recommended Target: Modular Monolith → Microservices (phased)
|
|
95
95
|
```
|
|
96
96
|
|
|
97
97
|
### Rules
|
|
98
|
-
- Assessment is READ-ONLY
|
|
99
|
-
- Score MUST be evidence-based
|
|
98
|
+
- Assessment is READ-ONLY - never modify code during assessment
|
|
99
|
+
- Score MUST be evidence-based - cite specific files and import paths
|
|
100
100
|
- Always recommend a phased migration path, never Big Bang
|
|
101
101
|
|
|
102
102
|
## Design Mode
|
|
@@ -167,7 +167,7 @@ Bounded Context: [Payment]
|
|
|
167
167
|
│ ├── OrderPlaced.ts
|
|
168
168
|
│ └── PaymentReceived.ts
|
|
169
169
|
├── Repositories/
|
|
170
|
-
│ └── OrderRepository.ts (interface
|
|
170
|
+
│ └── OrderRepository.ts (interface - port)
|
|
171
171
|
├── Services/
|
|
172
172
|
│ └── PricingService.ts (domain service)
|
|
173
173
|
└── Application/
|
|
@@ -277,7 +277,7 @@ Adopt Hexagonal Architecture (Ports & Adapters) with the following structure:
|
|
|
277
277
|
- Target architecture MUST be achievable incrementally (no Big Bang)
|
|
278
278
|
- Validate design with dependency direction analysis
|
|
279
279
|
- Consider team size and skill level in architecture choice
|
|
280
|
-
- Modular Monolith before Microservices
|
|
280
|
+
- Modular Monolith before Microservices - always
|
|
281
281
|
|
|
282
282
|
## Migration Mode
|
|
283
283
|
|
|
@@ -385,11 +385,11 @@ Contract: Remove old column/table after all reads migrated
|
|
|
385
385
|
### Rules
|
|
386
386
|
- NEVER migrate without assessment first
|
|
387
387
|
- EVERY phase must be independently deployable and reversible
|
|
388
|
-
- NEVER skip the Anti-Corruption Layer
|
|
389
|
-
- ONE module at a time
|
|
388
|
+
- NEVER skip the Anti-Corruption Layer - it protects against legacy coupling
|
|
389
|
+
- ONE module at a time - never parallel module extraction
|
|
390
390
|
- Checkpoint (git tag) after every phase completion
|
|
391
391
|
- Full test suite must pass between phases
|
|
392
|
-
- If tests fail, FIX before continuing
|
|
392
|
+
- If tests fail, FIX before continuing - never skip
|
|
393
393
|
|
|
394
394
|
## Validation Mode
|
|
395
395
|
|
|
@@ -484,9 +484,9 @@ ADRs Created: 4
|
|
|
484
484
|
## Persuasion-Backed Enforcement
|
|
485
485
|
|
|
486
486
|
### Authority
|
|
487
|
-
- Martin Fowler: _"If you are going to do a big migration, do it incrementally
|
|
488
|
-
- Eric Evans: _"Bounded Contexts define the applicability of a model
|
|
489
|
-
- Robert C. Martin: _"The Dependency Rule
|
|
487
|
+
- Martin Fowler: _"If you are going to do a big migration, do it incrementally - the Strangler Fig pattern."_
|
|
488
|
+
- Eric Evans: _"Bounded Contexts define the applicability of a model - the central pattern in Domain-Driven Design."_
|
|
489
|
+
- Robert C. Martin: _"The Dependency Rule - source code dependencies must point only inward, toward higher-level policies."_
|
|
490
490
|
- Sam Newman: _"Start with a Modular Monolith. If you cannot build a structured monolith, why do you think microservices will help?"_
|
|
491
491
|
|
|
492
492
|
### Commitment
|
|
@@ -504,12 +504,12 @@ By invoking `@architect`, you commit to:
|
|
|
504
504
|
- **GitHub**: Gradual migration from Rails monolith to services with clear boundaries
|
|
505
505
|
|
|
506
506
|
## General Rules
|
|
507
|
-
- Framework-agnostic
|
|
507
|
+
- Framework-agnostic - works with any stack and any architecture pattern
|
|
508
508
|
- Reads ARCHITECTURE.md if present and follows existing conventions
|
|
509
|
-
- Modular Monolith before Microservices
|
|
510
|
-
- Strangler Fig over Big Bang
|
|
509
|
+
- Modular Monolith before Microservices - always start simpler
|
|
510
|
+
- Strangler Fig over Big Bang - always
|
|
511
511
|
- Every phase independently deployable and reversible
|
|
512
|
-
- Evidence-based claims only
|
|
512
|
+
- Evidence-based claims only - run tests, show output
|
|
513
513
|
- Coordinate with specialist agents for domain-specific changes
|
|
514
514
|
|
|
515
515
|
## Output
|
|
@@ -517,7 +517,7 @@ By invoking `@architect`, you commit to:
|
|
|
517
517
|
After completing work in any mode, provide:
|
|
518
518
|
|
|
519
519
|
```markdown
|
|
520
|
-
## Architect
|
|
520
|
+
## Architect - [Mode: Assessment | Design | Migration | Validation]
|
|
521
521
|
### What was done
|
|
522
522
|
- [Architecture analysis, design decisions, modules migrated]
|
|
523
523
|
### Architecture decisions
|
|
@@ -550,4 +550,4 @@ Rules:
|
|
|
550
550
|
|
|
551
551
|
- Only show agents/skills that were actually invoked during the execution
|
|
552
552
|
- If no agents or skills were used, omit the summary entirely
|
|
553
|
-
- Use the exact format above
|
|
553
|
+
- Use the exact format above - single line, separated by `·`
|
package/agents/cloud-lite.md
CHANGED
|
@@ -35,7 +35,7 @@ Design and implement cloud infrastructure for scalability, security, and cost ef
|
|
|
35
35
|
4. Set up local dev and integration tests
|
|
36
36
|
|
|
37
37
|
## Edge Mode
|
|
38
|
-
1. Ask: edge provider (Azion / Cloudflare Workers / Vercel Edge / other). **ALWAYS ask
|
|
38
|
+
1. Ask: edge provider (Azion / Cloudflare Workers / Vercel Edge / other). **ALWAYS ask - never assume.**
|
|
39
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
40
|
3. If **Azion** without MCP: generate `azion.config.js` + edge function entry point + `azion deploy` instructions
|
|
41
41
|
4. If **other provider**: standard edge/serverless deployment for that provider
|
|
@@ -48,7 +48,7 @@ Design and implement cloud infrastructure for scalability, security, and cost ef
|
|
|
48
48
|
4. Set up notifications and branch protection
|
|
49
49
|
|
|
50
50
|
## Rules
|
|
51
|
-
- ALWAYS use IaC
|
|
51
|
+
- ALWAYS use IaC - never manual changes
|
|
52
52
|
- Encryption at rest and in transit by default
|
|
53
53
|
- Least-privilege IAM policies
|
|
54
54
|
- Tag all resources (env, project, owner)
|
|
@@ -72,4 +72,4 @@ Rules:
|
|
|
72
72
|
|
|
73
73
|
- Only show agents/skills that were actually invoked during the execution
|
|
74
74
|
- If no agents or skills were used, omit the summary entirely
|
|
75
|
-
- Use the exact format above
|
|
75
|
+
- Use the exact format above - single line, separated by `·`
|
package/agents/cloud.md
CHANGED
|
@@ -15,22 +15,22 @@ Read `docs/ARCHITECTURE.md` if it exists, then scan the project for existing inf
|
|
|
15
15
|
## Core Principles
|
|
16
16
|
|
|
17
17
|
### Security First (Mandatory)
|
|
18
|
-
- NEVER trust user input
|
|
19
|
-
- ALWAYS use parameterized queries
|
|
18
|
+
- NEVER trust user input - validate and sanitize ALL inputs on server side
|
|
19
|
+
- ALWAYS use parameterized queries - never string concatenation for SQL/NoSQL
|
|
20
20
|
- NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
|
|
21
21
|
- ALWAYS implement rate limiting on public endpoints
|
|
22
22
|
- Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
|
|
23
|
-
- Follow OWASP Top 10
|
|
24
|
-
- Secrets in environment variables only
|
|
23
|
+
- Follow OWASP Top 10 - prevent XSS, CSRF, injection, broken auth, etc.
|
|
24
|
+
- Secrets in environment variables only - never hardcode
|
|
25
25
|
|
|
26
26
|
### Performance First (Mandatory)
|
|
27
27
|
- ALWAYS use TanStack Query (React Query / Vue Query) for server state caching
|
|
28
28
|
- Set appropriate `staleTime` and `gcTime` for each query based on data freshness needs
|
|
29
29
|
- Use `keepPreviousData` for pagination to avoid loading flickers
|
|
30
30
|
- Implement optimistic updates for mutations when UX benefits
|
|
31
|
-
- Use proper cache invalidation (`invalidateQueries`)
|
|
31
|
+
- Use proper cache invalidation (`invalidateQueries`) - stale UI is a bug
|
|
32
32
|
- Lazy load routes, components, and heavy dependencies
|
|
33
|
-
- Avoid N+1 queries
|
|
33
|
+
- Avoid N+1 queries - batch requests, use proper data loading patterns
|
|
34
34
|
|
|
35
35
|
### Code Language (Mandatory)
|
|
36
36
|
- ALWAYS write code (variables, functions, comments, commits) in English
|
|
@@ -68,7 +68,7 @@ Read `docs/ARCHITECTURE.md` if it exists, then scan the project for existing inf
|
|
|
68
68
|
6. Validate: `terraform validate` / `pulumi preview` / `cdk synth`
|
|
69
69
|
|
|
70
70
|
### Rules
|
|
71
|
-
- ALWAYS use IaC
|
|
71
|
+
- ALWAYS use IaC - never manual console changes for production
|
|
72
72
|
- Enable encryption at rest and in transit by default
|
|
73
73
|
- Use least-privilege IAM policies
|
|
74
74
|
- Tag all resources with environment, project, owner
|
|
@@ -100,7 +100,7 @@ Read `docs/ARCHITECTURE.md` if it exists, then scan the project for existing inf
|
|
|
100
100
|
|
|
101
101
|
### Rules
|
|
102
102
|
- Functions MUST be stateless
|
|
103
|
-
- Keep functions focused
|
|
103
|
+
- Keep functions focused - one responsibility per function
|
|
104
104
|
- Minimize cold starts: small bundles, lazy initialization
|
|
105
105
|
- Use environment variables for configuration, never hardcode
|
|
106
106
|
- Set appropriate memory and timeout limits
|
|
@@ -110,13 +110,13 @@ Read `docs/ARCHITECTURE.md` if it exists, then scan the project for existing inf
|
|
|
110
110
|
## Edge Mode
|
|
111
111
|
|
|
112
112
|
### Workflow
|
|
113
|
-
1. Ask: edge provider (**Azion** / Cloudflare Workers / Vercel Edge / other). **ALWAYS ask
|
|
113
|
+
1. Ask: edge provider (**Azion** / Cloudflare Workers / Vercel Edge / other). **ALWAYS ask - never assume a provider.**
|
|
114
114
|
2. Analyze project: detect framework (Vue/React/Next.js/SvelteKit), build output (static/SSR), existing configs
|
|
115
115
|
3. If **Azion** selected and **Azion MCP is available** (check for `search_azion_docs_and_site` tool):
|
|
116
116
|
- Use `search_azion_docs_and_site` for recommended architecture for the project type
|
|
117
117
|
- Use `search_azion_code_samples` for framework-specific edge function examples
|
|
118
118
|
- Use `create_rules_engine` to generate cache rules, routing behaviors, and redirect configs
|
|
119
|
-
- Use `search_azion_terraform` if IaC is required
|
|
119
|
+
- Use `search_azion_terraform` if IaC is required - generate full Terraform provider config
|
|
120
120
|
- Use `create_graphql_query` to generate observability queries for Real-Time Events and Analytics
|
|
121
121
|
- For **static sites**: use `deploy_azion_static_site` to deploy directly
|
|
122
122
|
- For **dynamic apps** (SSR/edge functions): generate `azion.config.js` + provide `azion deploy` command
|
|
@@ -128,10 +128,10 @@ Read `docs/ARCHITECTURE.md` if it exists, then scan the project for existing inf
|
|
|
128
128
|
6. Validate: check generated configs, verify build output compatibility
|
|
129
129
|
|
|
130
130
|
### Rules
|
|
131
|
-
- ALWAYS ask the user which edge provider they want
|
|
131
|
+
- ALWAYS ask the user which edge provider they want - never default to one
|
|
132
132
|
- Edge functions MUST be stateless
|
|
133
133
|
- Optimize for cold start: minimal dependencies, lazy initialization
|
|
134
|
-
- Configure cache rules explicitly
|
|
134
|
+
- Configure cache rules explicitly - don't rely on defaults
|
|
135
135
|
- Use environment variables for secrets, never hardcode
|
|
136
136
|
- For Azion: generate `azion.config.js` at project root
|
|
137
137
|
|
|
@@ -168,7 +168,7 @@ Read `docs/ARCHITECTURE.md` if it exists, then scan the project for existing inf
|
|
|
168
168
|
- Pin action/image versions, don't use `latest`
|
|
169
169
|
|
|
170
170
|
## General Rules
|
|
171
|
-
- Framework-agnostic
|
|
171
|
+
- Framework-agnostic - works with any stack
|
|
172
172
|
- Reads ARCHITECTURE.md if present and follows existing conventions
|
|
173
173
|
- Security by default: encryption, least privilege, no hardcoded secrets
|
|
174
174
|
- Cost awareness: right-size resources, use spot/preemptible where appropriate
|
|
@@ -180,7 +180,7 @@ Read `docs/ARCHITECTURE.md` if it exists, then scan the project for existing inf
|
|
|
180
180
|
After completing work in any mode, provide:
|
|
181
181
|
|
|
182
182
|
```markdown
|
|
183
|
-
## Cloud
|
|
183
|
+
## Cloud - [Mode: Infrastructure | Serverless | Edge | Pipeline]
|
|
184
184
|
### What was done
|
|
185
185
|
- [Resources provisioned, configs created or modified]
|
|
186
186
|
### Architecture decisions
|
|
@@ -209,4 +209,4 @@ Rules:
|
|
|
209
209
|
|
|
210
210
|
- Only show agents/skills that were actually invoked during the execution
|
|
211
211
|
- If no agents or skills were used, omit the summary entirely
|
|
212
|
-
- Use the exact format above
|
|
212
|
+
- Use the exact format above - single line, separated by `·`
|
package/agents/data-lite.md
CHANGED
|
@@ -64,4 +64,4 @@ Rules:
|
|
|
64
64
|
|
|
65
65
|
- Only show agents/skills that were actually invoked during the execution
|
|
66
66
|
- If no agents or skills were used, omit the summary entirely
|
|
67
|
-
- Use the exact format above
|
|
67
|
+
- Use the exact format above - single line, separated by `·`
|