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,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: dev-create-hook
|
|
3
|
-
description: "Use when adding server state management to a module
|
|
3
|
+
description: "Use when adding server state management to a module - creates React Query hook with caching and error handling."
|
|
4
4
|
user-invocable: true
|
|
5
5
|
argument-hint: "[hook-name]"
|
|
6
6
|
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: dev-create-module
|
|
3
|
-
description: "Use when creating a new feature module with all layers
|
|
3
|
+
description: "Use when creating a new feature module with all layers - service, adapter, types, state, components, and tests."
|
|
4
4
|
user-invocable: true
|
|
5
5
|
argument-hint: "[module-name]"
|
|
6
6
|
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: dev-create-service
|
|
3
|
-
description: "Use when adding API integration to a module
|
|
3
|
+
description: "Use when adding API integration to a module - creates types, contracts, adapter, and service layer."
|
|
4
4
|
user-invocable: true
|
|
5
5
|
argument-hint: "[resource-name]"
|
|
6
6
|
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: dev-create-test
|
|
3
|
-
description: "Use when a module needs test coverage
|
|
3
|
+
description: "Use when a module needs test coverage - creates tests for adapters, hooks/composables/stores, and components."
|
|
4
4
|
user-invocable: true
|
|
5
5
|
argument-hint: "[file-path]"
|
|
6
6
|
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: migration-migrate-module
|
|
3
|
-
description: "Use when a complete module needs migration to the target architecture
|
|
3
|
+
description: "Use when a complete module needs migration to the target architecture - runs 6 phases with approval gates."
|
|
4
4
|
user-invocable: true
|
|
5
5
|
argument-hint: "[module-path]"
|
|
6
6
|
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: review-check-architecture
|
|
3
|
-
description: "Use when checking if code follows ARCHITECTURE.md patterns
|
|
3
|
+
description: "Use when checking if code follows ARCHITECTURE.md patterns - runs automated conformance checks."
|
|
4
4
|
user-invocable: true
|
|
5
5
|
argument-hint: "[module]"
|
|
6
6
|
allowed-tools: Read, Bash, Glob, Grep
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: review-review
|
|
3
|
-
description: "Use when code changes need review before merge
|
|
3
|
+
description: "Use when code changes need review before merge - validates architecture, types, security, and test coverage."
|
|
4
4
|
user-invocable: true
|
|
5
5
|
argument-hint: "[scope]"
|
|
6
6
|
allowed-tools: Read, Bash, Glob, Grep
|
package/packs/svelte/CLAUDE.md
CHANGED
|
@@ -12,7 +12,7 @@ Development toolkit for SvelteKit projects with TypeScript. Includes AI agents,
|
|
|
12
12
|
|
|
13
13
|
### Auto-Dispatch Rules
|
|
14
14
|
|
|
15
|
-
You **MUST** automatically delegate to the correct agent based on the user's intent. Do NOT ask which agent to use
|
|
15
|
+
You **MUST** automatically delegate to the correct agent based on the user's intent. Do NOT ask which agent to use - detect it from the request:
|
|
16
16
|
|
|
17
17
|
| User intent | Agent |
|
|
18
18
|
|-------------|-------|
|
|
@@ -88,7 +88,7 @@ Rules:
|
|
|
88
88
|
|
|
89
89
|
- Only show agents/skills that were actually invoked during the execution
|
|
90
90
|
- If no agents or skills were used, omit the summary entirely
|
|
91
|
-
- Use the exact format above
|
|
91
|
+
- Use the exact format above - single line, separated by `·`
|
|
92
92
|
|
|
93
93
|
### Key Patterns (details in docs/ARCHITECTURE.md)
|
|
94
94
|
|
|
@@ -15,20 +15,20 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
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
|
- Use SvelteKit load functions for server state caching
|
|
28
28
|
- Implement proper loading states with +loading.svelte
|
|
29
|
-
- Use proper cache invalidation (`invalidateAll`)
|
|
29
|
+
- Use proper cache invalidation (`invalidateAll`) - stale UI is a bug
|
|
30
30
|
- Lazy load routes, components, and heavy dependencies
|
|
31
|
-
- Avoid N+1 queries
|
|
31
|
+
- Avoid N+1 queries - batch requests, use proper data loading patterns
|
|
32
32
|
|
|
33
33
|
### Code Language (Mandatory)
|
|
34
34
|
- ALWAYS write code (variables, functions, comments, commits) in English
|
|
@@ -97,9 +97,9 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
97
97
|
**Before claiming ANY module/component is complete:**
|
|
98
98
|
|
|
99
99
|
```
|
|
100
|
-
1. RUN `npx tsc --noEmit`
|
|
101
|
-
2. RUN `npm test`
|
|
102
|
-
3. RUN `npm run lint`
|
|
100
|
+
1. RUN `npx tsc --noEmit` - No TypeScript errors
|
|
101
|
+
2. RUN `npm test` - All tests pass
|
|
102
|
+
3. RUN `npm run lint` - No lint errors
|
|
103
103
|
4. VERIFY files exist as specified
|
|
104
104
|
5. ONLY THEN claim "complete" WITH evidence
|
|
105
105
|
```
|
|
@@ -123,14 +123,14 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
123
123
|
- Components: Svelte 5 runes, typed $props, < 200 lines
|
|
124
124
|
- Use Svelte 5 syntax: $state, $derived, $effect, $props, {@render}, snippets
|
|
125
125
|
- Do NOT use Svelte 4 patterns: export let, $: reactive, createEventDispatcher, <slot>
|
|
126
|
-
- **Verify before claiming complete**
|
|
126
|
+
- **Verify before claiming complete** - Tests pass = complete
|
|
127
127
|
|
|
128
128
|
## Output
|
|
129
129
|
|
|
130
130
|
After completing work in any mode, provide:
|
|
131
131
|
|
|
132
132
|
```markdown
|
|
133
|
-
## Built
|
|
133
|
+
## Built - [Mode: Module | Component | Service | ...]
|
|
134
134
|
### Files created
|
|
135
135
|
- [List with paths]
|
|
136
136
|
### Patterns applied
|
|
@@ -159,4 +159,4 @@ Rules:
|
|
|
159
159
|
|
|
160
160
|
- Only show agents/skills that were actually invoked during the execution
|
|
161
161
|
- If no agents or skills were used, omit the summary entirely
|
|
162
|
-
- Use the exact format above
|
|
162
|
+
- Use the exact format above - single line, separated by `·`
|
|
@@ -4,10 +4,10 @@ description: "Use when encountering bugs, unexpected behavior, console errors, o
|
|
|
4
4
|
tools: Read, Write, Edit, Bash, Glob, Grep
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# Doctor
|
|
7
|
+
# Doctor - Systematic 4-Phase Debugging
|
|
8
8
|
|
|
9
9
|
## Mission
|
|
10
|
-
Investigate bugs using systematic 4-phase methodology. Never guess
|
|
10
|
+
Investigate bugs using systematic 4-phase methodology. Never guess - build hypotheses from evidence and prove them before fixing.
|
|
11
11
|
|
|
12
12
|
## First Action
|
|
13
13
|
Read `docs/ARCHITECTURE.md` to understand the expected data flow.
|
|
@@ -59,20 +59,20 @@ After 3 failed hypotheses → Stop and rethink understanding of the system.
|
|
|
59
59
|
## Core Principles
|
|
60
60
|
|
|
61
61
|
### Security First (Mandatory)
|
|
62
|
-
- NEVER trust user input
|
|
63
|
-
- ALWAYS use parameterized queries
|
|
62
|
+
- NEVER trust user input - validate and sanitize ALL inputs on server side
|
|
63
|
+
- ALWAYS use parameterized queries - never string concatenation for SQL/NoSQL
|
|
64
64
|
- NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
|
|
65
65
|
- ALWAYS implement rate limiting on public endpoints
|
|
66
66
|
- Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
|
|
67
|
-
- Follow OWASP Top 10
|
|
68
|
-
- Secrets in environment variables only
|
|
67
|
+
- Follow OWASP Top 10 - prevent XSS, CSRF, injection, broken auth, etc.
|
|
68
|
+
- Secrets in environment variables only - never hardcode
|
|
69
69
|
|
|
70
70
|
### Performance First (Mandatory)
|
|
71
71
|
- Use SvelteKit load functions for server state caching
|
|
72
72
|
- Implement proper loading states with +loading.svelte
|
|
73
|
-
- Use proper cache invalidation (`invalidateAll`)
|
|
73
|
+
- Use proper cache invalidation (`invalidateAll`) - stale UI is a bug
|
|
74
74
|
- Lazy load routes, components, and heavy dependencies
|
|
75
|
-
- Avoid N+1 queries
|
|
75
|
+
- Avoid N+1 queries - batch requests, use proper data loading patterns
|
|
76
76
|
|
|
77
77
|
### Code Language (Mandatory)
|
|
78
78
|
- ALWAYS write code (variables, functions, comments, commits) in English
|
|
@@ -186,14 +186,14 @@ grep -rn "export let \|createEventDispatcher\|\$:" src/ --include="*.svelte"
|
|
|
186
186
|
- Add typing if the bug revealed type gaps
|
|
187
187
|
- If the fix requires architecture changes, report to user first
|
|
188
188
|
- Check if bug is caused by Svelte 4 -> 5 migration issues (common source of bugs)
|
|
189
|
-
- **Verify before claiming fixed**
|
|
189
|
+
- **Verify before claiming fixed** - Test output is proof
|
|
190
190
|
|
|
191
191
|
## Output
|
|
192
192
|
|
|
193
193
|
After investigation, provide:
|
|
194
194
|
|
|
195
195
|
```markdown
|
|
196
|
-
## Diagnosis
|
|
196
|
+
## Diagnosis - [Bug Summary]
|
|
197
197
|
### Symptoms
|
|
198
198
|
- [What was reported, error messages]
|
|
199
199
|
### Root cause
|
|
@@ -224,4 +224,4 @@ Rules:
|
|
|
224
224
|
|
|
225
225
|
- Only show agents/skills that were actually invoked during the execution
|
|
226
226
|
- If no agents or skills were used, omit the summary entirely
|
|
227
|
-
- Use the exact format above
|
|
227
|
+
- Use the exact format above - single line, separated by `·`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: migrator
|
|
3
|
-
description: "Use when legacy code needs modernization to the target architecture
|
|
3
|
+
description: "Use when legacy code needs modernization to the target architecture - components, modules, or full codebase migration."
|
|
4
4
|
tools: Read, Write, Edit, Bash, Glob, Grep
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -15,20 +15,20 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
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
|
- Use SvelteKit load functions for server state caching
|
|
28
28
|
- Implement proper loading states with +loading.svelte
|
|
29
|
-
- Use proper cache invalidation (`invalidateAll`)
|
|
29
|
+
- Use proper cache invalidation (`invalidateAll`) - stale UI is a bug
|
|
30
30
|
- Lazy load routes, components, and heavy dependencies
|
|
31
|
-
- Avoid N+1 queries
|
|
31
|
+
- Avoid N+1 queries - batch requests, use proper data loading patterns
|
|
32
32
|
|
|
33
33
|
### Code Language (Mandatory)
|
|
34
34
|
- ALWAYS write code (variables, functions, comments, commits) in English
|
|
@@ -92,9 +92,9 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
92
92
|
**Before claiming ANY migration phase is complete:**
|
|
93
93
|
|
|
94
94
|
```
|
|
95
|
-
1. RUN `npx tsc --noEmit`
|
|
96
|
-
2. RUN `npm test`
|
|
97
|
-
3. RUN `npm run build`
|
|
95
|
+
1. RUN `npx tsc --noEmit` - No TypeScript errors
|
|
96
|
+
2. RUN `npm test` - All tests pass
|
|
97
|
+
3. RUN `npm run build` - Build succeeds
|
|
98
98
|
4. VERIFY migrated code matches target architecture
|
|
99
99
|
5. ONLY THEN claim "phase complete" WITH evidence
|
|
100
100
|
```
|
|
@@ -113,7 +113,7 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
113
113
|
- Validate build/svelte-check after each phase
|
|
114
114
|
- One module at a time
|
|
115
115
|
- Ask user approval between phases
|
|
116
|
-
- **Verify each phase**
|
|
116
|
+
- **Verify each phase** - Partial migration is worse than none
|
|
117
117
|
|
|
118
118
|
---
|
|
119
119
|
|
|
@@ -171,14 +171,14 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
171
171
|
- If API changes, update all consumers
|
|
172
172
|
- One component per commit
|
|
173
173
|
- Report bugs found during migration (don't silently fix)
|
|
174
|
-
- **Verify each phase**
|
|
174
|
+
- **Verify each phase** - Partial migration is worse than none
|
|
175
175
|
|
|
176
176
|
## Output
|
|
177
177
|
|
|
178
178
|
After completing migration, provide:
|
|
179
179
|
|
|
180
180
|
```markdown
|
|
181
|
-
## Migration
|
|
181
|
+
## Migration - [Scope: Module | Component]
|
|
182
182
|
### Before
|
|
183
183
|
- [Legacy patterns found with counts]
|
|
184
184
|
### After
|
|
@@ -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 `·`
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: reviewer
|
|
3
|
-
description: "Use when code changes need review before merge
|
|
3
|
+
description: "Use when code changes need review before merge - validates architecture conformance, code quality, and spec compliance."
|
|
4
4
|
tools: Read, Bash, Glob, Grep
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# Reviewer
|
|
7
|
+
# Reviewer - Unified 3-in-1 Review
|
|
8
8
|
|
|
9
9
|
## Mission
|
|
10
10
|
Analyze code against `docs/ARCHITECTURE.md` with unified 3-in-1 review: Spec Compliance + Code Quality + Architecture Fit in a single pass. 50% more efficient than separate reviews.
|
|
@@ -52,20 +52,20 @@ Unlike competitors that use separate agents for spec review and code review (dou
|
|
|
52
52
|
## Core Principles
|
|
53
53
|
|
|
54
54
|
### Security First (Mandatory)
|
|
55
|
-
- NEVER trust user input
|
|
56
|
-
- ALWAYS use parameterized queries
|
|
55
|
+
- NEVER trust user input - validate and sanitize ALL inputs on server side
|
|
56
|
+
- ALWAYS use parameterized queries - never string concatenation for SQL/NoSQL
|
|
57
57
|
- NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
|
|
58
58
|
- ALWAYS implement rate limiting on public endpoints
|
|
59
59
|
- Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
|
|
60
|
-
- Follow OWASP Top 10
|
|
61
|
-
- Secrets in environment variables only
|
|
60
|
+
- Follow OWASP Top 10 - prevent XSS, CSRF, injection, broken auth, etc.
|
|
61
|
+
- Secrets in environment variables only - never hardcode
|
|
62
62
|
|
|
63
63
|
### Performance First (Mandatory)
|
|
64
64
|
- Use SvelteKit load functions for server state caching
|
|
65
65
|
- Implement proper loading states with +loading.svelte
|
|
66
|
-
- Use proper cache invalidation (`invalidateAll`)
|
|
66
|
+
- Use proper cache invalidation (`invalidateAll`) - stale UI is a bug
|
|
67
67
|
- Lazy load routes, components, and heavy dependencies
|
|
68
|
-
- Avoid N+1 queries
|
|
68
|
+
- Avoid N+1 queries - batch requests, use proper data loading patterns
|
|
69
69
|
|
|
70
70
|
### Code Language (Mandatory)
|
|
71
71
|
- ALWAYS write code (variables, functions, comments, commits) in English
|
|
@@ -132,7 +132,7 @@ grep -rn "let .* = \(null\|false\|true\|0\|''\|{}\|\[\]\)" src/lib/modules/ --in
|
|
|
132
132
|
### Output
|
|
133
133
|
|
|
134
134
|
```markdown
|
|
135
|
-
## Review
|
|
135
|
+
## Review - [Scope]
|
|
136
136
|
|
|
137
137
|
### Scorecard
|
|
138
138
|
|
|
@@ -147,13 +147,13 @@ grep -rn "let .* = \(null\|false\|true\|0\|''\|{}\|\[\]\)" src/lib/modules/ --in
|
|
|
147
147
|
### Auto: svelte-check ✅/❌ | ESLint ✅/❌ | Build ✅/❌ | Tests ✅/❌
|
|
148
148
|
|
|
149
149
|
### 🔴 Violations
|
|
150
|
-
- [file:line]
|
|
150
|
+
- [file:line] - [issue] → [suggested fix]
|
|
151
151
|
|
|
152
152
|
### 🟡 Attention
|
|
153
|
-
- [file:line]
|
|
153
|
+
- [file:line] - [concern] → [recommendation]
|
|
154
154
|
|
|
155
155
|
### ✨ Highlights
|
|
156
|
-
- [file:line]
|
|
156
|
+
- [file:line] - [what was done well and why it matters]
|
|
157
157
|
|
|
158
158
|
### Verdict: ✅ Approved | ⚠️ Caveats | ❌ Requires changes
|
|
159
159
|
```
|
|
@@ -198,9 +198,9 @@ RIGHT: "This will cause a production bug. Blocking."
|
|
|
198
198
|
When another agent receives review feedback:
|
|
199
199
|
|
|
200
200
|
```
|
|
201
|
-
1. EVALUATE technically
|
|
202
|
-
2. CHECK against ARCHITECTURE.md
|
|
203
|
-
3. YAGNI test
|
|
201
|
+
1. EVALUATE technically - Is the feedback correct?
|
|
202
|
+
2. CHECK against ARCHITECTURE.md - Does it align?
|
|
203
|
+
3. YAGNI test - Is the suggestion actually needed?
|
|
204
204
|
- Does it solve a real problem?
|
|
205
205
|
- Or is it speculative improvement?
|
|
206
206
|
4. IF valid → Implement the fix
|
|
@@ -231,7 +231,7 @@ Before accepting a reviewer suggestion:
|
|
|
231
231
|
|
|
232
232
|
## Rules
|
|
233
233
|
- Read-only. Never modify files.
|
|
234
|
-
- Always include positive highlights
|
|
234
|
+
- Always include positive highlights - good code deserves recognition.
|
|
235
235
|
- Reference file:line in every finding.
|
|
236
236
|
- Suggest concrete fixes with code snippets.
|
|
237
237
|
- Scorecard grades: A (excellent) B (good) C (adequate) D (needs work) F (critical issues).
|
|
@@ -255,4 +255,4 @@ Rules:
|
|
|
255
255
|
|
|
256
256
|
- Only show agents/skills that were actually invoked during the execution
|
|
257
257
|
- If no agents or skills were used, omit the summary entirely
|
|
258
|
-
- Use the exact format above
|
|
258
|
+
- Use the exact format above - single line, separated by `·`
|
|
@@ -63,4 +63,4 @@ Rules:
|
|
|
63
63
|
|
|
64
64
|
- Only show agents/skills that were actually invoked during the execution
|
|
65
65
|
- If no agents or skills were used, omit the summary entirely
|
|
66
|
-
- Use the exact format above
|
|
66
|
+
- Use the exact format above - single line, separated by `·`
|
|
@@ -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 `·`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: migrator
|
|
3
|
-
description: "Use when legacy code needs modernization to the target architecture
|
|
3
|
+
description: "Use when legacy code needs modernization to the target architecture - components, modules, or full codebase migration."
|
|
4
4
|
model: haiku
|
|
5
5
|
tools: Read, Write, Edit, Glob, Grep
|
|
6
6
|
---
|
|
@@ -79,4 +79,4 @@ Rules:
|
|
|
79
79
|
|
|
80
80
|
- Only show agents/skills that were actually invoked during the execution
|
|
81
81
|
- If no agents or skills were used, omit the summary entirely
|
|
82
|
-
- Use the exact format above
|
|
82
|
+
- Use the exact format above - single line, separated by `·`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: reviewer
|
|
3
|
-
description: "Use when code changes need review before merge
|
|
3
|
+
description: "Use when code changes need review before merge - validates architecture conformance, code quality, and spec compliance."
|
|
4
4
|
model: haiku
|
|
5
5
|
tools: Read, Glob, Grep
|
|
6
6
|
---
|
|
@@ -35,7 +35,7 @@ Check these patterns:
|
|
|
35
35
|
|
|
36
36
|
### Output
|
|
37
37
|
|
|
38
|
-
Include a scorecard (Architecture, Type Safety, Security, Svelte 5 Adoption, Maintainability
|
|
38
|
+
Include a scorecard (Architecture, Type Safety, Security, Svelte 5 Adoption, Maintainability - grades A-F), then violations, attention items, highlights, and verdict (✅/⚠️/❌).
|
|
39
39
|
|
|
40
40
|
## Explore Mode
|
|
41
41
|
1. Inventory files by type (components, services, stores, load functions, pages)
|
|
@@ -51,7 +51,7 @@ Include a scorecard (Architecture, Type Safety, Security, Svelte 5 Adoption, Mai
|
|
|
51
51
|
|
|
52
52
|
## Rules
|
|
53
53
|
- Read-only. Never modify files.
|
|
54
|
-
- Always include positive highlights
|
|
54
|
+
- Always include positive highlights - good code deserves recognition.
|
|
55
55
|
- Reference file:line in findings.
|
|
56
56
|
- Scorecard grades: A (excellent) B (good) C (adequate) D (needs work) F (critical).
|
|
57
57
|
|
|
@@ -67,4 +67,4 @@ Rules:
|
|
|
67
67
|
|
|
68
68
|
- Only show agents/skills that were actually invoked during the execution
|
|
69
69
|
- If no agents or skills were used, omit the summary entirely
|
|
70
|
-
- Use the exact format above
|
|
70
|
+
- Use the exact format above - single line, separated by `·`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: dev-create-component
|
|
3
|
-
description: "Use when adding a new UI component to an existing module
|
|
3
|
+
description: "Use when adding a new UI component to an existing module - handles templates, props, and test scaffolding."
|
|
4
4
|
user-invocable: true
|
|
5
5
|
argument-hint: "[ComponentName]"
|
|
6
6
|
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: dev-create-module
|
|
3
|
-
description: "Use when creating a new feature module with all layers
|
|
3
|
+
description: "Use when creating a new feature module with all layers - service, adapter, types, state, components, and tests."
|
|
4
4
|
user-invocable: true
|
|
5
5
|
argument-hint: "[module-name]"
|
|
6
6
|
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: dev-create-service
|
|
3
|
-
description: "Use when adding API integration to a module
|
|
3
|
+
description: "Use when adding API integration to a module - creates types, contracts, adapter, and service layer."
|
|
4
4
|
user-invocable: true
|
|
5
5
|
argument-hint: "[resource-name]"
|
|
6
6
|
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: dev-create-store
|
|
3
|
-
description: "Use when adding state management to a module
|
|
3
|
+
description: "Use when adding state management to a module - creates Svelte store with server state integration."
|
|
4
4
|
user-invocable: true
|
|
5
5
|
argument-hint: "[store-name]"
|
|
6
6
|
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: dev-create-test
|
|
3
|
-
description: "Use when a module needs test coverage
|
|
3
|
+
description: "Use when a module needs test coverage - creates tests for adapters, hooks/composables/stores, and components."
|
|
4
4
|
user-invocable: true
|
|
5
5
|
argument-hint: "[file-path]"
|
|
6
6
|
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: migration-migrate-module
|
|
3
|
-
description: "Use when a complete module needs migration to the target architecture
|
|
3
|
+
description: "Use when a complete module needs migration to the target architecture - runs 6 phases with approval gates."
|
|
4
4
|
user-invocable: true
|
|
5
5
|
argument-hint: "[module-path]"
|
|
6
6
|
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: review-check-architecture
|
|
3
|
-
description: "Use when checking if code follows ARCHITECTURE.md patterns
|
|
3
|
+
description: "Use when checking if code follows ARCHITECTURE.md patterns - runs automated conformance checks."
|
|
4
4
|
user-invocable: true
|
|
5
5
|
argument-hint: "[module]"
|
|
6
6
|
allowed-tools: Read, Bash, Glob, Grep
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: review-review
|
|
3
|
-
description: "Use when code changes need review before merge
|
|
3
|
+
description: "Use when code changes need review before merge - validates architecture, types, security, and test coverage."
|
|
4
4
|
user-invocable: true
|
|
5
5
|
argument-hint: "[scope]"
|
|
6
6
|
allowed-tools: Read, Bash, Glob, Grep
|
|
@@ -137,7 +137,7 @@ Se dois módulos precisam compartilhar algo → mover para `shared/`.
|
|
|
137
137
|
|
|
138
138
|
## 4. Camadas de Responsabilidade
|
|
139
139
|
|
|
140
|
-
### 4.1 Services
|
|
140
|
+
### 4.1 Services - Requisições Puras
|
|
141
141
|
|
|
142
142
|
Services fazem **apenas** a request HTTP. Sem try/catch, sem transformação, sem lógica de negócio.
|
|
143
143
|
|
|
@@ -174,7 +174,7 @@ export const marketplaceService = {
|
|
|
174
174
|
- ✅ Um arquivo por domínio/recurso
|
|
175
175
|
- ✅ Exportar como objeto com métodos
|
|
176
176
|
|
|
177
|
-
### 4.2 Adapters
|
|
177
|
+
### 4.2 Adapters - Parsers de Contrato
|
|
178
178
|
|
|
179
179
|
Adapters transformam dados da API para o contrato TypeScript da aplicação (e vice-versa). São **funções puras** sem side effects.
|
|
180
180
|
|
|
@@ -291,7 +291,7 @@ export interface CreateMarketplaceInput {
|
|
|
291
291
|
}
|
|
292
292
|
```
|
|
293
293
|
|
|
294
|
-
### 4.4 Composables
|
|
294
|
+
### 4.4 Composables - Lógica de Negócio + Orquestração
|
|
295
295
|
|
|
296
296
|
Composables conectam tudo: chamam service, passam pelo adapter, gerenciam loading/error, e expõem dados reativos.
|
|
297
297
|
|
|
@@ -366,7 +366,7 @@ export function useMarketplaceList(options: UseMarketplaceListOptions) {
|
|
|
366
366
|
- ❌ Sem template/rendering (isso é do componente)
|
|
367
367
|
- ❌ Sem acesso direto à API (service faz isso)
|
|
368
368
|
|
|
369
|
-
### 4.5 Stores Pinia
|
|
369
|
+
### 4.5 Stores Pinia - Apenas Client State
|
|
370
370
|
|
|
371
371
|
Pinia é para estado que **não vem do servidor**: UI state, filtros, preferências, auth.
|
|
372
372
|
|
|
@@ -594,7 +594,7 @@ Views (Pages) → Composição, orquestração, provide context
|
|
|
594
594
|
|
|
595
595
|
## 6. Utils vs Helpers
|
|
596
596
|
|
|
597
|
-
### Utils
|
|
597
|
+
### Utils - Funções Puras
|
|
598
598
|
- Sem side effects
|
|
599
599
|
- Input → Output determinístico
|
|
600
600
|
- Testáveis sem mocks
|
|
@@ -617,7 +617,7 @@ export function slugify(text: string): string {
|
|
|
617
617
|
}
|
|
618
618
|
```
|
|
619
619
|
|
|
620
|
-
### Helpers
|
|
620
|
+
### Helpers - Funções com Side Effects ou DOM
|
|
621
621
|
- Interagem com browser APIs (clipboard, localStorage, DOM)
|
|
622
622
|
- Podem ter side effects
|
|
623
623
|
- Podem precisar de mocks nos testes
|
|
@@ -652,7 +652,7 @@ export function showToast(message: string, type: 'success' | 'error' = 'success'
|
|
|
652
652
|
|
|
653
653
|
---
|
|
654
654
|
|
|
655
|
-
## 7. Error Handling
|
|
655
|
+
## 7. Error Handling - Padrão Centralizado
|
|
656
656
|
|
|
657
657
|
### Na Camada de Query (composable)
|
|
658
658
|
```typescript
|
package/packs/vue/CLAUDE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# CLAUDE.md
|
|
1
|
+
# CLAUDE.md - Specialist Agent (Vue 3 Pack)
|
|
2
2
|
|
|
3
3
|
## About
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ Development toolkit for Vue 3 projects with TypeScript. Includes AI agents, skil
|
|
|
12
12
|
|
|
13
13
|
### Auto-Dispatch Rules
|
|
14
14
|
|
|
15
|
-
You **MUST** automatically delegate to the correct agent based on the user's intent. Do NOT ask which agent to use
|
|
15
|
+
You **MUST** automatically delegate to the correct agent based on the user's intent. Do NOT ask which agent to use - detect it from the request:
|
|
16
16
|
|
|
17
17
|
| User intent | Agent |
|
|
18
18
|
|-------------|-------|
|
|
@@ -88,7 +88,7 @@ Rules:
|
|
|
88
88
|
|
|
89
89
|
- Only show agents/skills that were actually invoked during the execution
|
|
90
90
|
- If no agents or skills were used, omit the summary entirely
|
|
91
|
-
- Use the exact format above
|
|
91
|
+
- Use the exact format above - single line, separated by `·`
|
|
92
92
|
|
|
93
93
|
### Key Patterns (details in docs/ARCHITECTURE.md)
|
|
94
94
|
|