specialist-agent 2.7.0 → 2.8.1
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
|
@@ -15,22 +15,22 @@ 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
|
- ALWAYS use TanStack 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
|
|
@@ -50,14 +50,14 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
50
50
|
1. Ask: resource name, endpoints, UI type (list/detail/CRUD), client state needs
|
|
51
51
|
2. Scaffold `src/modules/[kebab-name]/` with: components/, composables/, services/, adapters/, stores/, types/, views/, __tests__/, index.ts
|
|
52
52
|
3. Create bottom-up:
|
|
53
|
-
- `types/[name].types.ts`
|
|
54
|
-
- `types/[name].contracts.ts`
|
|
55
|
-
- `adapters/[name]-adapter.ts`
|
|
56
|
-
- `services/[name]-service.ts`
|
|
57
|
-
- `stores/[name]-store.ts`
|
|
58
|
-
- `composables/useXxxList.ts`
|
|
59
|
-
- Components
|
|
60
|
-
- View
|
|
53
|
+
- `types/[name].types.ts` - exact API response (snake_case)
|
|
54
|
+
- `types/[name].contracts.ts` - app contract (camelCase, Date objects)
|
|
55
|
+
- `adapters/[name]-adapter.ts` - pure functions: inbound (API→App) + outbound (App→API)
|
|
56
|
+
- `services/[name]-service.ts` - HTTP only: `{ list, getById, create, update, delete }`. No try/catch, no transformation
|
|
57
|
+
- `stores/[name]-store.ts` - client state only (filters, UI). Setup syntax, readonly()
|
|
58
|
+
- `composables/useXxxList.ts` - orchestrate service→adapter→Vue Query. Set staleTime, reactive queryKey
|
|
59
|
+
- Components - `<script setup lang="ts">`, type-based props/emits, < 200 lines
|
|
60
|
+
- View - compose components with slots, provide context
|
|
61
61
|
4. Register lazy route in router
|
|
62
62
|
5. Create barrel export (index.ts): views + contracts only
|
|
63
63
|
6. Validate: `npx tsc --noEmit`
|
|
@@ -71,10 +71,10 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
71
71
|
## Service Mode
|
|
72
72
|
1. Ask: endpoint URL, HTTP method, response format (ask for JSON example)
|
|
73
73
|
2. Create 4 files:
|
|
74
|
-
- `types/[name].types.ts`
|
|
75
|
-
- `types/[name].contracts.ts`
|
|
76
|
-
- `adapters/[name]-adapter.ts`
|
|
77
|
-
- `services/[name]-service.ts`
|
|
74
|
+
- `types/[name].types.ts` - exact API (snake_case, string dates)
|
|
75
|
+
- `types/[name].contracts.ts` - app contract (camelCase, Date, computed booleans)
|
|
76
|
+
- `adapters/[name]-adapter.ts` - pure functions, bidirectional. Rename snake→camel, convert string→Date, cents→currency
|
|
77
|
+
- `services/[name]-service.ts` - HTTP only. No try/catch, no transformation, no logic. Export as object with methods
|
|
78
78
|
3. Validate: `npx tsc --noEmit`
|
|
79
79
|
|
|
80
80
|
## Composable Mode
|
|
@@ -94,9 +94,9 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
94
94
|
**Before claiming ANY module/component is complete:**
|
|
95
95
|
|
|
96
96
|
```
|
|
97
|
-
1. RUN `npx tsc --noEmit`
|
|
98
|
-
2. RUN `npm test`
|
|
99
|
-
3. RUN `npm run lint`
|
|
97
|
+
1. RUN `npx tsc --noEmit` - No TypeScript errors
|
|
98
|
+
2. RUN `npm test` - All tests pass
|
|
99
|
+
3. RUN `npm run lint` - No lint errors
|
|
100
100
|
4. VERIFY files exist as specified
|
|
101
101
|
5. ONLY THEN claim "complete" WITH evidence
|
|
102
102
|
```
|
|
@@ -118,14 +118,14 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
118
118
|
- Services: no try/catch, no transformation
|
|
119
119
|
- Adapters: pure functions, no side effects
|
|
120
120
|
- Components: script setup, typed props/emits, < 200 lines
|
|
121
|
-
- **Verify before claiming complete**
|
|
121
|
+
- **Verify before claiming complete** - Tests pass = complete
|
|
122
122
|
|
|
123
123
|
## Output
|
|
124
124
|
|
|
125
125
|
After completing work in any mode, provide:
|
|
126
126
|
|
|
127
127
|
```markdown
|
|
128
|
-
## Built
|
|
128
|
+
## Built - [Mode: Module | Component | Service | ...]
|
|
129
129
|
### Files created
|
|
130
130
|
- [List with paths]
|
|
131
131
|
### Patterns applied
|
|
@@ -154,4 +154,4 @@ Rules:
|
|
|
154
154
|
|
|
155
155
|
- Only show agents/skills that were actually invoked during the execution
|
|
156
156
|
- If no agents or skills were used, omit the summary entirely
|
|
157
|
-
- Use the exact format above
|
|
157
|
+
- 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.
|
|
@@ -58,22 +58,22 @@ After 3 failed hypotheses → Stop and rethink understanding of the system.
|
|
|
58
58
|
## Core Principles
|
|
59
59
|
|
|
60
60
|
### Security First (Mandatory)
|
|
61
|
-
- NEVER trust user input
|
|
62
|
-
- ALWAYS use parameterized queries
|
|
61
|
+
- NEVER trust user input - validate and sanitize ALL inputs on server side
|
|
62
|
+
- ALWAYS use parameterized queries - never string concatenation for SQL/NoSQL
|
|
63
63
|
- NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
|
|
64
64
|
- ALWAYS implement rate limiting on public endpoints
|
|
65
65
|
- Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
|
|
66
|
-
- Follow OWASP Top 10
|
|
67
|
-
- Secrets in environment variables only
|
|
66
|
+
- Follow OWASP Top 10 - prevent XSS, CSRF, injection, broken auth, etc.
|
|
67
|
+
- Secrets in environment variables only - never hardcode
|
|
68
68
|
|
|
69
69
|
### Performance First (Mandatory)
|
|
70
70
|
- ALWAYS use TanStack Query (Vue Query) for server state caching
|
|
71
71
|
- Set appropriate `staleTime` and `gcTime` for each query based on data freshness needs
|
|
72
72
|
- Use `keepPreviousData` for pagination to avoid loading flickers
|
|
73
73
|
- Implement optimistic updates for mutations when UX benefits
|
|
74
|
-
- Use proper cache invalidation (`invalidateQueries`)
|
|
74
|
+
- Use proper cache invalidation (`invalidateQueries`) - stale UI is a bug
|
|
75
75
|
- Lazy load routes, components, and heavy dependencies
|
|
76
|
-
- Avoid N+1 queries
|
|
76
|
+
- Avoid N+1 queries - batch requests, use proper data loading patterns
|
|
77
77
|
|
|
78
78
|
### Code Language (Mandatory)
|
|
79
79
|
- ALWAYS write code (variables, functions, comments, commits) in English
|
|
@@ -164,19 +164,19 @@ grep -rn "as any\|@ts-ignore" src/ --include="*.ts" --include="*.vue"
|
|
|
164
164
|
| "The fix is obvious" | Obvious fixes that skip investigation create new bugs. |
|
|
165
165
|
|
|
166
166
|
## Rules
|
|
167
|
-
- Trace before fixing
|
|
167
|
+
- Trace before fixing - understand the full data flow first
|
|
168
168
|
- Fix at the root layer, not at the symptom layer
|
|
169
169
|
- No hacks or workarounds
|
|
170
170
|
- Add typing if the bug revealed type gaps
|
|
171
171
|
- If the fix requires architecture changes, report to user first
|
|
172
|
-
- **Verify before claiming fixed**
|
|
172
|
+
- **Verify before claiming fixed** - Test output is proof
|
|
173
173
|
|
|
174
174
|
## Output
|
|
175
175
|
|
|
176
176
|
After investigation, provide:
|
|
177
177
|
|
|
178
178
|
```markdown
|
|
179
|
-
## Diagnosis
|
|
179
|
+
## Diagnosis - [Bug Summary]
|
|
180
180
|
|
|
181
181
|
### Phase 1: Evidence
|
|
182
182
|
- Error: [full message]
|
|
@@ -188,8 +188,8 @@ After investigation, provide:
|
|
|
188
188
|
- Pattern: [what was identified]
|
|
189
189
|
|
|
190
190
|
### Phase 3: Hypotheses
|
|
191
|
-
- H1: [primary hypothesis] (X% confidence)
|
|
192
|
-
- H2: [secondary hypothesis] (Y% confidence)
|
|
191
|
+
- H1: [primary hypothesis] (X% confidence) - CONFIRMED/REJECTED
|
|
192
|
+
- H2: [secondary hypothesis] (Y% confidence) - TESTED/SKIPPED
|
|
193
193
|
|
|
194
194
|
### Phase 4: Resolution
|
|
195
195
|
**Root cause:**
|
|
@@ -236,4 +236,4 @@ Rules:
|
|
|
236
236
|
|
|
237
237
|
- Only show agents/skills that were actually invoked during the execution
|
|
238
238
|
- If no agents or skills were used, omit the summary entirely
|
|
239
|
-
- Use the exact format above
|
|
239
|
+
- 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,22 +15,22 @@ 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
|
- ALWAYS use TanStack 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
|
|
@@ -90,9 +90,9 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
90
90
|
**Before claiming ANY migration phase is complete:**
|
|
91
91
|
|
|
92
92
|
```
|
|
93
|
-
1. RUN `npx tsc --noEmit`
|
|
94
|
-
2. RUN `npm test`
|
|
95
|
-
3. RUN `npm run build`
|
|
93
|
+
1. RUN `npx tsc --noEmit` - No TypeScript errors
|
|
94
|
+
2. RUN `npm test` - All tests pass
|
|
95
|
+
3. RUN `npm run build` - Build succeeds
|
|
96
96
|
4. VERIFY migrated code matches target architecture
|
|
97
97
|
5. ONLY THEN claim "phase complete" WITH evidence
|
|
98
98
|
```
|
|
@@ -111,7 +111,7 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
111
111
|
- Validate build/tsc after each phase
|
|
112
112
|
- One module at a time
|
|
113
113
|
- Ask user approval between phases
|
|
114
|
-
- **Verify each phase**
|
|
114
|
+
- **Verify each phase** - Partial migration is worse than none
|
|
115
115
|
|
|
116
116
|
---
|
|
117
117
|
|
|
@@ -132,7 +132,7 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
132
132
|
|
|
133
133
|
### Workflow
|
|
134
134
|
1. Read the component and list: props, emits, data, computed, methods, watchers, mixins, lifecycle hooks
|
|
135
|
-
2. Map consumers (who uses this component)
|
|
135
|
+
2. Map consumers (who uses this component) - note if props/emits API changes
|
|
136
136
|
3. Convert to `<script setup lang="ts">`
|
|
137
137
|
4. Type all props and emits
|
|
138
138
|
5. Extract mixins to composables in same module
|
|
@@ -146,14 +146,14 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
146
146
|
- If API changes, update all consumers
|
|
147
147
|
- One component per commit
|
|
148
148
|
- Report bugs found during migration (don't silently fix)
|
|
149
|
-
- **Verify each phase**
|
|
149
|
+
- **Verify each phase** - Partial migration is worse than none
|
|
150
150
|
|
|
151
151
|
## Output
|
|
152
152
|
|
|
153
153
|
After completing migration, provide:
|
|
154
154
|
|
|
155
155
|
```markdown
|
|
156
|
-
## Migration
|
|
156
|
+
## Migration - [Scope: Module | Component]
|
|
157
157
|
### Before
|
|
158
158
|
- [Legacy patterns found with counts]
|
|
159
159
|
### After
|
|
@@ -184,4 +184,4 @@ Rules:
|
|
|
184
184
|
|
|
185
185
|
- Only show agents/skills that were actually invoked during the execution
|
|
186
186
|
- If no agents or skills were used, omit the summary entirely
|
|
187
|
-
- Use the exact format above
|
|
187
|
+
- 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,22 +52,22 @@ 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
|
- ALWAYS use TanStack Query (Vue Query) for server state caching
|
|
65
65
|
- Set appropriate `staleTime` and `gcTime` for each query based on data freshness needs
|
|
66
66
|
- Use `keepPreviousData` for pagination to avoid loading flickers
|
|
67
67
|
- Implement optimistic updates for mutations when UX benefits
|
|
68
|
-
- Use proper cache invalidation (`invalidateQueries`)
|
|
68
|
+
- Use proper cache invalidation (`invalidateQueries`) - stale UI is a bug
|
|
69
69
|
- Lazy load routes, components, and heavy dependencies
|
|
70
|
-
- Avoid N+1 queries
|
|
70
|
+
- Avoid N+1 queries - batch requests, use proper data loading patterns
|
|
71
71
|
|
|
72
72
|
### Code Language (Mandatory)
|
|
73
73
|
- ALWAYS write code (variables, functions, comments, commits) in English
|
|
@@ -114,15 +114,15 @@ grep -rn "v-html" src/ --include="*.vue" 2>/dev/null && echo "🔴 v-html"
|
|
|
114
114
|
- Boundaries: no cross-module imports
|
|
115
115
|
|
|
116
116
|
### 4. Classification
|
|
117
|
-
- 🔴 **Violation**
|
|
118
|
-
- 🟡 **Attention**
|
|
119
|
-
- 🟢 **Compliant**
|
|
120
|
-
- ✨ **Highlight**
|
|
117
|
+
- 🔴 **Violation** - deviates from ARCHITECTURE.md
|
|
118
|
+
- 🟡 **Attention** - partial pattern, should improve
|
|
119
|
+
- 🟢 **Compliant** - correct
|
|
120
|
+
- ✨ **Highlight** - above expectations
|
|
121
121
|
|
|
122
|
-
### Output
|
|
122
|
+
### Output - Unified 3-in-1 Format
|
|
123
123
|
|
|
124
124
|
```markdown
|
|
125
|
-
## Review
|
|
125
|
+
## Review - [Scope]
|
|
126
126
|
|
|
127
127
|
### Unified 3-in-1 Summary
|
|
128
128
|
|
|
@@ -145,13 +145,13 @@ grep -rn "v-html" src/ --include="*.vue" 2>/dev/null && echo "🔴 v-html"
|
|
|
145
145
|
### Auto: tsc ✅/❌ | ESLint ✅/❌ | Build ✅/❌ | Tests ✅/❌
|
|
146
146
|
|
|
147
147
|
### 🔴 Violations (Blocking)
|
|
148
|
-
- [file:line]
|
|
148
|
+
- [file:line] - [issue] → [suggested fix]
|
|
149
149
|
|
|
150
150
|
### 🟡 Attention (Non-blocking)
|
|
151
|
-
- [file:line]
|
|
151
|
+
- [file:line] - [concern] → [recommendation]
|
|
152
152
|
|
|
153
153
|
### ✨ Highlights (Recognition)
|
|
154
|
-
- [file:line]
|
|
154
|
+
- [file:line] - [what was done well and why it matters]
|
|
155
155
|
|
|
156
156
|
### Verdict: ✅ Approved | ⚠️ Approved with Caveats | ❌ Requires Changes
|
|
157
157
|
|
|
@@ -173,7 +173,7 @@ grep -rn "v-html" src/ --include="*.vue" 2>/dev/null && echo "🔴 v-html"
|
|
|
173
173
|
---
|
|
174
174
|
|
|
175
175
|
## Performance Mode
|
|
176
|
-
1. Bundle: `npx vite build`
|
|
176
|
+
1. Bundle: `npx vite build` - check output sizes, identify large chunks
|
|
177
177
|
2. Lazy loading: verify routes use `() => import(...)`, not static imports
|
|
178
178
|
3. Queries: find useQuery without staleTime
|
|
179
179
|
4. Rendering: find deep watchers (`{ deep: true }`), inline objects in templates, heavy computed
|
|
@@ -201,9 +201,9 @@ RIGHT: "This will cause a production bug. Blocking."
|
|
|
201
201
|
When another agent receives review feedback:
|
|
202
202
|
|
|
203
203
|
```
|
|
204
|
-
1. EVALUATE technically
|
|
205
|
-
2. CHECK against ARCHITECTURE.md
|
|
206
|
-
3. YAGNI test
|
|
204
|
+
1. EVALUATE technically - Is the feedback correct?
|
|
205
|
+
2. CHECK against ARCHITECTURE.md - Does it align?
|
|
206
|
+
3. YAGNI test - Is the suggestion actually needed?
|
|
207
207
|
- Does it solve a real problem?
|
|
208
208
|
- Or is it speculative improvement?
|
|
209
209
|
4. IF valid → Implement the fix
|
|
@@ -234,7 +234,7 @@ Before accepting a reviewer suggestion:
|
|
|
234
234
|
|
|
235
235
|
## Rules
|
|
236
236
|
- Read-only. Never modify files.
|
|
237
|
-
- Always include positive highlights
|
|
237
|
+
- Always include positive highlights - good code deserves recognition.
|
|
238
238
|
- Reference file:line in every finding.
|
|
239
239
|
- Suggest concrete fixes with code snippets.
|
|
240
240
|
- Scorecard grades: A (excellent) B (good) C (adequate) D (needs work) F (critical issues).
|
|
@@ -258,4 +258,4 @@ Rules:
|
|
|
258
258
|
|
|
259
259
|
- Only show agents/skills that were actually invoked during the execution
|
|
260
260
|
- If no agents or skills were used, omit the summary entirely
|
|
261
|
-
- Use the exact format above
|
|
261
|
+
- Use the exact format above - single line, separated by `·`
|
|
@@ -62,4 +62,4 @@ Rules:
|
|
|
62
62
|
|
|
63
63
|
- Only show agents/skills that were actually invoked during the execution
|
|
64
64
|
- If no agents or skills were used, omit the summary entirely
|
|
65
|
-
- Use the exact format above
|
|
65
|
+
- Use the exact format above - single line, separated by `·`
|
|
@@ -39,7 +39,7 @@ Investigate bugs by tracing through architecture layers. Find root causes, not w
|
|
|
39
39
|
- Add proper typing if the bug revealed type gaps
|
|
40
40
|
|
|
41
41
|
## Rules
|
|
42
|
-
- Trace before fixing
|
|
42
|
+
- Trace before fixing - understand the full data flow first
|
|
43
43
|
- Fix at the root layer, not at the symptom layer
|
|
44
44
|
- No hacks or workarounds
|
|
45
45
|
- If fix requires architecture changes, report to user first
|
|
@@ -60,4 +60,4 @@ Rules:
|
|
|
60
60
|
|
|
61
61
|
- Only show agents/skills that were actually invoked during the execution
|
|
62
62
|
- If no agents or skills were used, omit the summary entirely
|
|
63
|
-
- Use the exact format above
|
|
63
|
+
- 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
|
---
|
|
@@ -16,12 +16,12 @@ Migrate legacy code to target architecture. Detect scope: module | component.
|
|
|
16
16
|
- **Code Language**: Write code in English (variables, functions, comments). Other languages only on user request
|
|
17
17
|
|
|
18
18
|
## Module Mode (6 Phases)
|
|
19
|
-
1. **Analysis**
|
|
20
|
-
2. **Structure**
|
|
21
|
-
3. **Types & Adapters**
|
|
22
|
-
4. **Services**
|
|
23
|
-
5. **State**
|
|
24
|
-
6. **Components**
|
|
19
|
+
1. **Analysis** - Map files, count Options vs setup, JS vs TS, mixins, cross-module imports
|
|
20
|
+
2. **Structure** - Create target dirs: components/, composables/, services/, adapters/, stores/, types/, views/, __tests__/
|
|
21
|
+
3. **Types & Adapters** - .types.ts (API snake_case) + .contracts.ts (app camelCase) + adapter (bidirectional)
|
|
22
|
+
4. **Services** - Extract HTTP to pure service (no try/catch, no transformation)
|
|
23
|
+
5. **State** - Server state → Vue Query, client state → Pinia (setup syntax, readonly)
|
|
24
|
+
6. **Components** - Convert to `<script setup lang="ts">`, typed props/emits, extract mixins to composables
|
|
25
25
|
|
|
26
26
|
Order: bottom-up (types → services → state → components). Ask user approval between phases.
|
|
27
27
|
|
|
@@ -70,4 +70,4 @@ Rules:
|
|
|
70
70
|
|
|
71
71
|
- Only show agents/skills that were actually invoked during the execution
|
|
72
72
|
- If no agents or skills were used, omit the summary entirely
|
|
73
|
-
- Use the exact format above
|
|
73
|
+
- 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
|
---
|
|
@@ -26,14 +26,14 @@ Check these patterns:
|
|
|
26
26
|
- No cross-module imports, no `any`, no v-html, no console.log/debugger
|
|
27
27
|
|
|
28
28
|
### Classification
|
|
29
|
-
- 🔴 **Violation**
|
|
30
|
-
- 🟡 **Attention**
|
|
31
|
-
- 🟢 **Compliant**
|
|
32
|
-
- ✨ **Highlight**
|
|
29
|
+
- 🔴 **Violation** - breaks conventions
|
|
30
|
+
- 🟡 **Attention** - partial pattern
|
|
31
|
+
- 🟢 **Compliant** - correct
|
|
32
|
+
- ✨ **Highlight** - above expectations
|
|
33
33
|
|
|
34
34
|
### Output
|
|
35
35
|
|
|
36
|
-
Include a scorecard (Architecture, Type Safety, Security, Maintainability
|
|
36
|
+
Include a scorecard (Architecture, Type Safety, Security, Maintainability - grades A-F), then violations, attention items, highlights, and verdict (✅/⚠️/❌).
|
|
37
37
|
|
|
38
38
|
## Explore Mode
|
|
39
39
|
1. Inventory files by type (components, services, composables, stores, views)
|
|
@@ -49,7 +49,7 @@ Include a scorecard (Architecture, Type Safety, Security, Maintainability — gr
|
|
|
49
49
|
|
|
50
50
|
## Rules
|
|
51
51
|
- Read-only. Never modify files.
|
|
52
|
-
- Always include positive highlights
|
|
52
|
+
- Always include positive highlights - good code deserves recognition.
|
|
53
53
|
- Reference file:line in findings.
|
|
54
54
|
- Scorecard grades: A (excellent) B (good) C (adequate) D (needs work) F (critical).
|
|
55
55
|
|
|
@@ -65,4 +65,4 @@ Rules:
|
|
|
65
65
|
|
|
66
66
|
- Only show agents/skills that were actually invoked during the execution
|
|
67
67
|
- If no agents or skills were used, omit the summary entirely
|
|
68
|
-
- Use the exact format above
|
|
68
|
+
- 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-composable
|
|
3
|
-
description: "Use when adding server state management to a module
|
|
3
|
+
description: "Use when adding server state management to a module - creates Vue Query composable with caching and error handling."
|
|
4
4
|
user-invocable: true
|
|
5
5
|
argument-hint: "[composable-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
|
|
@@ -21,10 +21,10 @@ Resource: $ARGUMENTS
|
|
|
21
21
|
|
|
22
22
|
3. Create in order:
|
|
23
23
|
|
|
24
|
-
a. `types/[resource].types.ts`
|
|
25
|
-
b. `types/[resource].contracts.ts`
|
|
26
|
-
c. `adapters/[resource]-adapter.ts`
|
|
27
|
-
d. `services/[resource]-service.ts`
|
|
24
|
+
a. `types/[resource].types.ts` - mirrors API exactly (snake_case)
|
|
25
|
+
b. `types/[resource].contracts.ts` - app contract (camelCase, correct types)
|
|
26
|
+
c. `adapters/[resource]-adapter.ts` - inbound (API→App) + outbound (App→API)
|
|
27
|
+
d. `services/[resource]-service.ts` - HTTP only, no try/catch, no transformation
|
|
28
28
|
|
|
29
29
|
4. Required rules:
|
|
30
30
|
- Service: **NO try/catch**, **NO .map()/.filter()/new Date()**
|
|
@@ -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
|
|
@@ -16,7 +16,7 @@ Target: $ARGUMENTS
|
|
|
16
16
|
|
|
17
17
|
2. Determine the test type:
|
|
18
18
|
|
|
19
|
-
### Adapter (high priority
|
|
19
|
+
### Adapter (high priority - pure functions, easy to test)
|
|
20
20
|
```typescript
|
|
21
21
|
import { describe, it, expect } from 'vitest'
|
|
22
22
|
import { xxxAdapter } from '../adapters/xxx-adapter'
|
|
@@ -20,18 +20,18 @@ Endpoint or example JSON: $ARGUMENTS
|
|
|
20
20
|
|
|
21
21
|
3. From the JSON, create:
|
|
22
22
|
|
|
23
|
-
a. **`[resource].types.ts`**
|
|
23
|
+
a. **`[resource].types.ts`** - types that mirror the API exactly:
|
|
24
24
|
- snake_case, string dates, IDs as string
|
|
25
25
|
- Include request payloads and list response (with pagination)
|
|
26
26
|
|
|
27
|
-
b. **`[resource].contracts.ts`**
|
|
27
|
+
b. **`[resource].contracts.ts`** - clean app contracts:
|
|
28
28
|
- camelCase, Date objects, derived booleans
|
|
29
29
|
- No internal API fields (tokens, metadata)
|
|
30
30
|
|
|
31
|
-
c. **`[resource]-adapter.ts`**
|
|
32
|
-
- `toXxx(response)`
|
|
33
|
-
- `toXxxList(response)`
|
|
34
|
-
- `toCreatePayload(input)`
|
|
31
|
+
c. **`[resource]-adapter.ts`** - pure functions:
|
|
32
|
+
- `toXxx(response)` - inbound (API → App)
|
|
33
|
+
- `toXxxList(response)` - inbound for list
|
|
34
|
+
- `toCreatePayload(input)` - outbound (App → API)
|
|
35
35
|
- Conversions: snake→camel, string→Date, cents→decimal
|
|
36
36
|
|
|
37
37
|
4. Validate: `npx tsc --noEmit`
|
|
@@ -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
|