specialist-agent 2.5.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 +8 -8
- package/.claude-plugin/plugin.json +3 -3
- package/.codex/INSTALL.md +12 -3
- package/.cursor-plugin/marketplace.json +1 -1
- package/.cursor-plugin/plugin.json +3 -3
- package/.opencode/INSTALL.md +12 -3
- package/LICENSE +1 -1
- 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 +104 -0
- 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 +10 -10
- 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 +2 -2
- package/agents/scout.md +20 -20
- 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 +47 -16
- package/hooks/native/auto-dispatch.mjs +4 -4
- package/hooks/native/auto-format.mjs +13 -10
- package/hooks/native/security-guard.mjs +19 -13
- 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: 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
|
|
@@ -34,9 +34,9 @@ ng test --watch=false
|
|
|
34
34
|
- DI: inject() everywhere, no constructor DI
|
|
35
35
|
|
|
36
36
|
4. Classify:
|
|
37
|
-
- VIOLATION
|
|
38
|
-
- ATTENTION
|
|
39
|
-
- COMPLIANT
|
|
40
|
-
- HIGHLIGHT
|
|
37
|
+
- VIOLATION - breaks ARCHITECTURE.md
|
|
38
|
+
- ATTENTION - recommended improvement
|
|
39
|
+
- COMPLIANT - correct
|
|
40
|
+
- HIGHLIGHT - positive highlight
|
|
41
41
|
|
|
42
42
|
5. Produce report with verdict: Approved | With caveats | Requires changes
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
# ARCHITECTURE.md
|
|
1
|
+
# ARCHITECTURE.md - Architecture Guide & Patterns
|
|
2
2
|
|
|
3
3
|
> This document is the **source of truth** for all agents and skills.
|
|
4
4
|
> Any architectural decision must be documented here.
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
## 1. Overview
|
|
8
|
+
## 1. Overview - Islands Architecture
|
|
9
9
|
|
|
10
10
|
Astro is a **server-first** web framework designed for content-driven websites. Key principles:
|
|
11
11
|
|
|
12
12
|
| Principle | Description |
|
|
13
13
|
|-----------|-------------|
|
|
14
|
-
| Server-first | Components render on the server
|
|
14
|
+
| Server-first | Components render on the server - zero JS shipped by default |
|
|
15
15
|
| Islands Architecture | Interactive UI is opt-in via `client:*` directives |
|
|
16
16
|
| Content Collections | Type-safe content management with Zod schemas |
|
|
17
17
|
| Multi-framework | Use React, Vue, Svelte, or Solid components as islands |
|
|
@@ -89,12 +89,12 @@ src/
|
|
|
89
89
|
|
|
90
90
|
### Import Rules Between Layers
|
|
91
91
|
```
|
|
92
|
-
modules/newsletter <-> shared/ OK
|
|
93
|
-
modules/newsletter -> modules/commerce FORBIDDEN
|
|
94
|
-
shared/ -> modules/newsletter FORBIDDEN
|
|
95
|
-
pages/ -> modules/* OK
|
|
96
|
-
pages/ -> components/* OK
|
|
97
|
-
pages/ -> islands/* OK
|
|
92
|
+
modules/newsletter <-> shared/ OK - Module imports from shared
|
|
93
|
+
modules/newsletter -> modules/commerce FORBIDDEN - Module does NOT import from another module
|
|
94
|
+
shared/ -> modules/newsletter FORBIDDEN - Shared does NOT import from modules
|
|
95
|
+
pages/ -> modules/* OK - Pages import modules
|
|
96
|
+
pages/ -> components/* OK - Pages import components
|
|
97
|
+
pages/ -> islands/* OK - Pages import islands
|
|
98
98
|
```
|
|
99
99
|
|
|
100
100
|
If two modules need to share something, move it to `shared/`.
|
|
@@ -142,7 +142,7 @@ If two modules need to share something, move it to `shared/`.
|
|
|
142
142
|
|
|
143
143
|
## 4. Responsibility Layers
|
|
144
144
|
|
|
145
|
-
### 4.1 Services
|
|
145
|
+
### 4.1 Services - Pure Requests
|
|
146
146
|
|
|
147
147
|
Services make **only** the HTTP request. No try/catch, no transformation, no business logic.
|
|
148
148
|
|
|
@@ -178,7 +178,7 @@ export const newsletterService = {
|
|
|
178
178
|
- One file per resource
|
|
179
179
|
- Export as object with methods
|
|
180
180
|
|
|
181
|
-
### 4.2 Adapters
|
|
181
|
+
### 4.2 Adapters - Contract Parsers
|
|
182
182
|
|
|
183
183
|
Adapters transform data from the API to the TypeScript app contract (and vice-versa). **Pure functions** with no side effects.
|
|
184
184
|
|
|
@@ -270,9 +270,9 @@ export interface NewsletterList {
|
|
|
270
270
|
}
|
|
271
271
|
```
|
|
272
272
|
|
|
273
|
-
### 4.4 Data Fetching
|
|
273
|
+
### 4.4 Data Fetching - Frontmatter & Endpoints
|
|
274
274
|
|
|
275
|
-
In Astro, data is fetched **at build time (SSG) or request time (SSR)** in the component frontmatter or in server endpoints. There are no client-side composables or Vue Query
|
|
275
|
+
In Astro, data is fetched **at build time (SSG) or request time (SSR)** in the component frontmatter or in server endpoints. There are no client-side composables or Vue Query - data flows server-side.
|
|
276
276
|
|
|
277
277
|
```astro
|
|
278
278
|
---
|
|
@@ -442,7 +442,7 @@ import SearchBar from '../islands/SearchBar'
|
|
|
442
442
|
- ALWAYS specify a `client:*` directive when using in `.astro` files
|
|
443
443
|
- Choose the LEAST aggressive hydration strategy (prefer `client:visible` or `client:idle` over `client:load`)
|
|
444
444
|
- Props must be serializable (no functions, no complex objects with methods)
|
|
445
|
-
- Keep islands small
|
|
445
|
+
- Keep islands small - extract non-interactive parts to `.astro` components
|
|
446
446
|
- Each island is an independent hydration boundary
|
|
447
447
|
|
|
448
448
|
### 5.3 Component Hierarchy
|
|
@@ -465,7 +465,7 @@ Pages (src/pages/) -> Data fetching, compose layouts + components
|
|
|
465
465
|
|
|
466
466
|
## 6. Utils vs Helpers
|
|
467
467
|
|
|
468
|
-
### Utils
|
|
468
|
+
### Utils - Pure Functions
|
|
469
469
|
- No side effects
|
|
470
470
|
- Input -> Output deterministic
|
|
471
471
|
- Testable without mocks
|
|
@@ -483,7 +483,7 @@ export function slugify(text: string): string {
|
|
|
483
483
|
}
|
|
484
484
|
```
|
|
485
485
|
|
|
486
|
-
### Helpers
|
|
486
|
+
### Helpers - Functions with Side Effects or DOM
|
|
487
487
|
- Interact with browser APIs (clipboard, localStorage, DOM)
|
|
488
488
|
- May have side effects
|
|
489
489
|
- May need mocks in tests
|
|
@@ -559,7 +559,7 @@ import BaseLayout from '../layouts/BaseLayout.astro'
|
|
|
559
559
|
---
|
|
560
560
|
|
|
561
561
|
<BaseLayout title="Not Found">
|
|
562
|
-
<h1>404
|
|
562
|
+
<h1>404 - Page Not Found</h1>
|
|
563
563
|
<p>The page you are looking for does not exist.</p>
|
|
564
564
|
<a href="/">Go home</a>
|
|
565
565
|
</BaseLayout>
|
package/packs/astro/CLAUDE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# CLAUDE.md
|
|
1
|
+
# CLAUDE.md - Specialist Agent (Astro Pack)
|
|
2
2
|
|
|
3
3
|
## About
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ Development toolkit for Astro 4+ projects with TypeScript. Includes AI agents, s
|
|
|
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
|
|-------------|-------|
|
|
@@ -41,7 +41,7 @@ If a task spans multiple agents, invoke them in sequence (e.g., @builder then @r
|
|
|
41
41
|
- Content Collections (type-safe content with Zod schemas)
|
|
42
42
|
- Islands: React/Vue/Svelte components with `client:*` directives
|
|
43
43
|
- Vitest + Playwright
|
|
44
|
-
- Zero JS by default
|
|
44
|
+
- Zero JS by default - selective hydration
|
|
45
45
|
|
|
46
46
|
### Available Agents
|
|
47
47
|
|
|
@@ -90,7 +90,7 @@ Rules:
|
|
|
90
90
|
|
|
91
91
|
- Only show agents/skills that were actually invoked during the execution
|
|
92
92
|
- If no agents or skills were used, omit the summary entirely
|
|
93
|
-
- Use the exact format above
|
|
93
|
+
- Use the exact format above - single line, separated by `·`
|
|
94
94
|
|
|
95
95
|
### Key Patterns (details in docs/ARCHITECTURE.md)
|
|
96
96
|
|
|
@@ -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
|
-
- ALWAYS use server-side data fetching in frontmatter
|
|
27
|
+
- ALWAYS use server-side data fetching in frontmatter - no unnecessary client JS
|
|
28
28
|
- Choose the LEAST aggressive hydration strategy for islands (`client:visible` > `client:idle` > `client:load`)
|
|
29
|
-
- Use Content Collections for static content
|
|
29
|
+
- Use Content Collections for static content - type-safe and optimized at build time
|
|
30
30
|
- Lazy load islands and heavy dependencies
|
|
31
31
|
- Avoid shipping JavaScript unless interactivity is required
|
|
32
32
|
- Use `<Image />` from `astro:assets` for optimized images
|
|
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
|
|
@@ -51,10 +51,10 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
51
51
|
1. Ask: resource name, endpoints, UI type (list/detail/CRUD), interactivity needs
|
|
52
52
|
2. Scaffold `src/modules/[kebab-name]/` with: services/, adapters/, types/, __tests__/, index.ts
|
|
53
53
|
3. Create bottom-up:
|
|
54
|
-
- `types/[name].types.ts`
|
|
55
|
-
- `types/[name].contracts.ts`
|
|
56
|
-
- `adapters/[name]-adapter.ts`
|
|
57
|
-
- `services/[name]-service.ts`
|
|
54
|
+
- `types/[name].types.ts` - exact API response (snake_case)
|
|
55
|
+
- `types/[name].contracts.ts` - app contract (camelCase, Date objects)
|
|
56
|
+
- `adapters/[name]-adapter.ts` - pure functions: inbound (API->App) + outbound (App->API)
|
|
57
|
+
- `services/[name]-service.ts` - fetch only: `{ list, getById, create, update, delete }`. No try/catch, no transformation
|
|
58
58
|
4. Create pages in `src/pages/`:
|
|
59
59
|
- List page: fetch in frontmatter, render with .astro components
|
|
60
60
|
- Detail page: `[slug].astro` or `[id].astro` with `getStaticPaths()` for SSG
|
|
@@ -88,24 +88,24 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
88
88
|
## Service Mode
|
|
89
89
|
1. Ask: endpoint URL, HTTP method, response format (ask for JSON example)
|
|
90
90
|
2. Create 4 files:
|
|
91
|
-
- `types/[name].types.ts`
|
|
92
|
-
- `types/[name].contracts.ts`
|
|
93
|
-
- `adapters/[name]-adapter.ts`
|
|
94
|
-
- `services/[name]-service.ts`
|
|
91
|
+
- `types/[name].types.ts` - exact API (snake_case, string dates)
|
|
92
|
+
- `types/[name].contracts.ts` - app contract (camelCase, Date, computed booleans)
|
|
93
|
+
- `adapters/[name]-adapter.ts` - pure functions, bidirectional. Rename snake->camel, convert string->Date, cents->currency
|
|
94
|
+
- `services/[name]-service.ts` - fetch only. No try/catch, no transformation, no logic. Export as object with methods
|
|
95
95
|
3. Validate: `npx astro check`
|
|
96
96
|
|
|
97
97
|
## Island Mode
|
|
98
98
|
1. Ask: what interactivity is needed? (form, search, toggle, counter, etc.)
|
|
99
99
|
2. Choose framework: React (.tsx), Vue (.vue), or Svelte (.svelte) based on project preference
|
|
100
100
|
3. Choose hydration strategy:
|
|
101
|
-
- `client:load`
|
|
102
|
-
- `client:idle`
|
|
103
|
-
- `client:visible`
|
|
104
|
-
- `client:media="..."`
|
|
105
|
-
- `client:only="react"`
|
|
101
|
+
- `client:load` - immediately needed (above the fold, critical interaction)
|
|
102
|
+
- `client:idle` - not urgent (sidebar, secondary features)
|
|
103
|
+
- `client:visible` - below the fold (comments, carousels)
|
|
104
|
+
- `client:media="..."` - viewport-specific (mobile menu)
|
|
105
|
+
- `client:only="react"` - skip SSR (auth, browser-API-dependent)
|
|
106
106
|
4. Create in `src/islands/` with typed props
|
|
107
107
|
5. Props must be serializable (no functions, no class instances)
|
|
108
|
-
6. Keep islands small
|
|
108
|
+
6. Keep islands small - extract non-interactive parts to .astro components
|
|
109
109
|
7. Validate: `npx astro check && npx astro build`
|
|
110
110
|
|
|
111
111
|
## Page Mode
|
|
@@ -128,9 +128,9 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
128
128
|
**Before claiming ANY module/component is complete:**
|
|
129
129
|
|
|
130
130
|
```
|
|
131
|
-
1. RUN `npx astro check`
|
|
132
|
-
2. RUN `npx astro build`
|
|
133
|
-
3. RUN `npm test`
|
|
131
|
+
1. RUN `npx astro check` - No TypeScript/Astro errors
|
|
132
|
+
2. RUN `npx astro build` - Build succeeds
|
|
133
|
+
3. RUN `npm test` - All tests pass
|
|
134
134
|
4. VERIFY files exist as specified
|
|
135
135
|
5. ONLY THEN claim "complete" WITH evidence
|
|
136
136
|
```
|
|
@@ -149,18 +149,18 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
149
149
|
## Rules
|
|
150
150
|
- Follow ARCHITECTURE.md strictly
|
|
151
151
|
- Modules don't import from each other (use shared/)
|
|
152
|
-
- Default to .astro components (zero JS)
|
|
152
|
+
- Default to .astro components (zero JS) - only use islands when interactivity is required
|
|
153
153
|
- Services: no try/catch, no transformation
|
|
154
154
|
- Adapters: pure functions, no side effects
|
|
155
155
|
- Islands: use least aggressive hydration, keep small, serializable props
|
|
156
|
-
- **Verify before claiming complete**
|
|
156
|
+
- **Verify before claiming complete** - Tests pass = complete
|
|
157
157
|
|
|
158
158
|
## Output
|
|
159
159
|
|
|
160
160
|
After completing work in any mode, provide:
|
|
161
161
|
|
|
162
162
|
```markdown
|
|
163
|
-
## Built
|
|
163
|
+
## Built - [Mode: Module | Component | Service | Island | Page]
|
|
164
164
|
### Files created
|
|
165
165
|
- [List with paths]
|
|
166
166
|
### Patterns applied
|
|
@@ -189,4 +189,4 @@ Rules:
|
|
|
189
189
|
|
|
190
190
|
- Only show agents/skills that were actually invoked during the execution
|
|
191
191
|
- If no agents or skills were used, omit the summary entirely
|
|
192
|
-
- Use the exact format above
|
|
192
|
+
- 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
|
-
- ALWAYS use server-side data fetching in frontmatter
|
|
70
|
+
- ALWAYS use server-side data fetching in frontmatter - no unnecessary client JS
|
|
71
71
|
- Choose the LEAST aggressive hydration strategy for islands (`client:visible` > `client:idle` > `client:load`)
|
|
72
|
-
- Use Content Collections for static content
|
|
72
|
+
- Use Content Collections for static content - type-safe and optimized at build time
|
|
73
73
|
- Lazy load islands and heavy dependencies
|
|
74
74
|
- Avoid shipping JavaScript unless interactivity is required
|
|
75
75
|
- Use `<Image />` from `astro:assets` for optimized images
|
|
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
|
|
@@ -179,19 +179,19 @@ grep -rn "import.meta.env" src/ --include="*.ts" --include="*.astro"
|
|
|
179
179
|
| "The fix is obvious" | Obvious fixes that skip investigation create new bugs. |
|
|
180
180
|
|
|
181
181
|
## Rules
|
|
182
|
-
- Trace before fixing
|
|
182
|
+
- Trace before fixing - understand the full data flow first
|
|
183
183
|
- Fix at the root layer, not at the symptom layer
|
|
184
184
|
- No hacks or workarounds
|
|
185
185
|
- Add typing if the bug revealed type gaps
|
|
186
186
|
- If the fix requires architecture changes, report to user first
|
|
187
|
-
- **Verify before claiming fixed**
|
|
187
|
+
- **Verify before claiming fixed** - Test output is proof
|
|
188
188
|
|
|
189
189
|
## Output
|
|
190
190
|
|
|
191
191
|
After investigation, provide:
|
|
192
192
|
|
|
193
193
|
```markdown
|
|
194
|
-
## Diagnosis
|
|
194
|
+
## Diagnosis - [Bug Summary]
|
|
195
195
|
|
|
196
196
|
### Phase 1: Evidence
|
|
197
197
|
- Error: [full message]
|
|
@@ -203,8 +203,8 @@ After investigation, provide:
|
|
|
203
203
|
- Pattern: [what was identified]
|
|
204
204
|
|
|
205
205
|
### Phase 3: Hypotheses
|
|
206
|
-
- H1: [primary hypothesis] (X% confidence)
|
|
207
|
-
- H2: [secondary hypothesis] (Y% confidence)
|
|
206
|
+
- H1: [primary hypothesis] (X% confidence) - CONFIRMED/REJECTED
|
|
207
|
+
- H2: [secondary hypothesis] (Y% confidence) - TESTED/SKIPPED
|
|
208
208
|
|
|
209
209
|
### Phase 4: Resolution
|
|
210
210
|
**Root cause:**
|
|
@@ -251,4 +251,4 @@ Rules:
|
|
|
251
251
|
|
|
252
252
|
- Only show agents/skills that were actually invoked during the execution
|
|
253
253
|
- If no agents or skills were used, omit the summary entirely
|
|
254
|
-
- Use the exact format above
|
|
254
|
+
- 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
|
-
- ALWAYS use server-side data fetching in frontmatter
|
|
27
|
+
- ALWAYS use server-side data fetching in frontmatter - no unnecessary client JS
|
|
28
28
|
- Choose the LEAST aggressive hydration strategy for islands (`client:visible` > `client:idle` > `client:load`)
|
|
29
|
-
- Use Content Collections for static content
|
|
29
|
+
- Use Content Collections for static content - type-safe and optimized at build time
|
|
30
30
|
- Lazy load islands and heavy dependencies
|
|
31
31
|
- Avoid shipping JavaScript unless interactivity is required
|
|
32
32
|
- Use `<Image />` from `astro:assets` for optimized images
|
|
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
|
|
@@ -97,9 +97,9 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
97
97
|
**Before claiming ANY migration phase is complete:**
|
|
98
98
|
|
|
99
99
|
```
|
|
100
|
-
1. RUN `npx astro check`
|
|
101
|
-
2. RUN `npx astro build`
|
|
102
|
-
3. RUN `npm test`
|
|
100
|
+
1. RUN `npx astro check` - No TypeScript/Astro errors
|
|
101
|
+
2. RUN `npx astro build` - Build succeeds
|
|
102
|
+
3. RUN `npm test` - All tests pass
|
|
103
103
|
4. VERIFY migrated code matches target architecture
|
|
104
104
|
5. ONLY THEN claim "phase complete" WITH evidence
|
|
105
105
|
```
|
|
@@ -119,14 +119,14 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
119
119
|
- Validate build/check after each phase
|
|
120
120
|
- One module at a time
|
|
121
121
|
- Ask user approval between phases
|
|
122
|
-
- Default to .astro (zero JS)
|
|
123
|
-
- **Verify each phase**
|
|
122
|
+
- Default to .astro (zero JS) - only use islands when interactivity is proven necessary
|
|
123
|
+
- **Verify each phase** - Partial migration is worse than none
|
|
124
124
|
|
|
125
125
|
---
|
|
126
126
|
|
|
127
127
|
## Component Mode
|
|
128
128
|
|
|
129
|
-
### Conversion Table
|
|
129
|
+
### Conversion Table - SPA to Astro
|
|
130
130
|
|
|
131
131
|
| SPA Pattern | Astro Equivalent |
|
|
132
132
|
|-------------|-----------------|
|
|
@@ -161,19 +161,19 @@ Read `docs/ARCHITECTURE.md`.
|
|
|
161
161
|
6. Update pages that reference migrated component
|
|
162
162
|
|
|
163
163
|
### Rules
|
|
164
|
-
- Default to `.astro`
|
|
164
|
+
- Default to `.astro` - prove interactivity before making an island
|
|
165
165
|
- Keep public API (props) stable when possible
|
|
166
166
|
- If API changes, update all consumers
|
|
167
167
|
- One component per commit
|
|
168
168
|
- Report bugs found during migration (don't silently fix)
|
|
169
|
-
- **Verify each phase**
|
|
169
|
+
- **Verify each phase** - Partial migration is worse than none
|
|
170
170
|
|
|
171
171
|
## Output
|
|
172
172
|
|
|
173
173
|
After completing migration, provide:
|
|
174
174
|
|
|
175
175
|
```markdown
|
|
176
|
-
## Migration
|
|
176
|
+
## Migration - [Scope: Module | Component]
|
|
177
177
|
### Before
|
|
178
178
|
- [Legacy patterns found with counts]
|
|
179
179
|
- [JS bundle size estimate]
|
|
@@ -206,4 +206,4 @@ Rules:
|
|
|
206
206
|
|
|
207
207
|
- Only show agents/skills that were actually invoked during the execution
|
|
208
208
|
- If no agents or skills were used, omit the summary entirely
|
|
209
|
-
- Use the exact format above
|
|
209
|
+
- 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
|
-
- ALWAYS use server-side data fetching in frontmatter
|
|
64
|
+
- ALWAYS use server-side data fetching in frontmatter - no unnecessary client JS
|
|
65
65
|
- Choose the LEAST aggressive hydration strategy for islands (`client:visible` > `client:idle` > `client:load`)
|
|
66
|
-
- Use Content Collections for static content
|
|
66
|
+
- Use Content Collections for static content - type-safe and optimized at build time
|
|
67
67
|
- Lazy load islands and heavy dependencies
|
|
68
68
|
- Avoid shipping JavaScript unless interactivity is required
|
|
69
69
|
- Use `<Image />` from `astro:assets` for optimized images
|
|
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
|
|
@@ -95,8 +95,8 @@ npx vitest run --passWithNoTests
|
|
|
95
95
|
```bash
|
|
96
96
|
grep -rn "try {" src/modules/*/services/ --include="*.ts" 2>/dev/null && echo "VIOLATION: try/catch in service"
|
|
97
97
|
grep -rn "\.map(\|new Date" src/modules/*/services/ --include="*.ts" 2>/dev/null && echo "VIOLATION: transformation in service"
|
|
98
|
-
grep -rn "client:load" src/ --include="*.astro" 2>/dev/null && echo "ATTENTION: client:load usage
|
|
99
|
-
grep -rn "client:only" src/ --include="*.astro" 2>/dev/null && echo "ATTENTION: client:only skips SSR
|
|
98
|
+
grep -rn "client:load" src/ --include="*.astro" 2>/dev/null && echo "ATTENTION: client:load usage - verify necessity"
|
|
99
|
+
grep -rn "client:only" src/ --include="*.astro" 2>/dev/null && echo "ATTENTION: client:only skips SSR - verify necessity"
|
|
100
100
|
grep -rn ": any\|as any" src/modules/ --include="*.ts" --include="*.astro" 2>/dev/null && echo "ATTENTION: any types"
|
|
101
101
|
grep -rn "console\.\|debugger" src/modules/ --include="*.ts" --include="*.astro" 2>/dev/null && echo "ATTENTION: debug artifacts"
|
|
102
102
|
grep -rn "set:html" src/ --include="*.astro" 2>/dev/null && echo "VIOLATION: set:html (XSS risk)"
|
|
@@ -115,15 +115,15 @@ grep -rn "innerHTML" src/islands/ --include="*.tsx" --include="*.vue" --include=
|
|
|
115
115
|
- Boundaries: no cross-module imports
|
|
116
116
|
|
|
117
117
|
### 4. Classification
|
|
118
|
-
- VIOLATION
|
|
119
|
-
- ATTENTION
|
|
120
|
-
- COMPLIANT
|
|
121
|
-
- HIGHLIGHT
|
|
118
|
+
- VIOLATION - deviates from ARCHITECTURE.md
|
|
119
|
+
- ATTENTION - partial pattern, should improve
|
|
120
|
+
- COMPLIANT - correct
|
|
121
|
+
- HIGHLIGHT - above expectations
|
|
122
122
|
|
|
123
|
-
### Output
|
|
123
|
+
### Output - Unified 3-in-1 Format
|
|
124
124
|
|
|
125
125
|
```markdown
|
|
126
|
-
## Review
|
|
126
|
+
## Review - [Scope]
|
|
127
127
|
|
|
128
128
|
### Unified 3-in-1 Summary
|
|
129
129
|
|
|
@@ -146,13 +146,13 @@ grep -rn "innerHTML" src/islands/ --include="*.tsx" --include="*.vue" --include=
|
|
|
146
146
|
### Auto: astro check OK/FAIL | ESLint OK/FAIL | Build OK/FAIL | Tests OK/FAIL
|
|
147
147
|
|
|
148
148
|
### Violations (Blocking)
|
|
149
|
-
- [file:line]
|
|
149
|
+
- [file:line] - [issue] -> [suggested fix]
|
|
150
150
|
|
|
151
151
|
### Attention (Non-blocking)
|
|
152
|
-
- [file:line]
|
|
152
|
+
- [file:line] - [concern] -> [recommendation]
|
|
153
153
|
|
|
154
154
|
### Highlights (Recognition)
|
|
155
|
-
- [file:line]
|
|
155
|
+
- [file:line] - [what was done well and why it matters]
|
|
156
156
|
|
|
157
157
|
### Verdict: Approved | Approved with Caveats | Requires Changes
|
|
158
158
|
|
|
@@ -174,7 +174,7 @@ grep -rn "innerHTML" src/islands/ --include="*.tsx" --include="*.vue" --include=
|
|
|
174
174
|
---
|
|
175
175
|
|
|
176
176
|
## Performance Mode
|
|
177
|
-
1. Build: `npx astro build`
|
|
177
|
+
1. Build: `npx astro build` - check output sizes, count JS bundles
|
|
178
178
|
2. Island audit: list all `client:*` usages, verify necessity and strategy
|
|
179
179
|
3. Unnecessary JS: find islands that could be .astro components
|
|
180
180
|
4. Content: verify Content Collections are used for static content (not runtime fetch)
|
|
@@ -203,9 +203,9 @@ RIGHT: "This will cause a production bug. Blocking."
|
|
|
203
203
|
When another agent receives review feedback:
|
|
204
204
|
|
|
205
205
|
```
|
|
206
|
-
1. EVALUATE technically
|
|
207
|
-
2. CHECK against ARCHITECTURE.md
|
|
208
|
-
3. YAGNI test
|
|
206
|
+
1. EVALUATE technically - Is the feedback correct?
|
|
207
|
+
2. CHECK against ARCHITECTURE.md - Does it align?
|
|
208
|
+
3. YAGNI test - Is the suggestion actually needed?
|
|
209
209
|
- Does it solve a real problem?
|
|
210
210
|
- Or is it speculative improvement?
|
|
211
211
|
4. IF valid -> Implement the fix
|
|
@@ -236,7 +236,7 @@ Before accepting a reviewer suggestion:
|
|
|
236
236
|
|
|
237
237
|
## Rules
|
|
238
238
|
- Read-only. Never modify files.
|
|
239
|
-
- Always include positive highlights
|
|
239
|
+
- Always include positive highlights - good code deserves recognition.
|
|
240
240
|
- Reference file:line in every finding.
|
|
241
241
|
- Suggest concrete fixes with code snippets.
|
|
242
242
|
- Scorecard grades: A (excellent) B (good) C (adequate) D (needs work) F (critical issues).
|
|
@@ -260,4 +260,4 @@ Rules:
|
|
|
260
260
|
|
|
261
261
|
- Only show agents/skills that were actually invoked during the execution
|
|
262
262
|
- If no agents or skills were used, omit the summary entirely
|
|
263
|
-
- Use the exact format above
|
|
263
|
+
- Use the exact format above - single line, separated by `·`
|
|
@@ -68,4 +68,4 @@ Rules:
|
|
|
68
68
|
|
|
69
69
|
- Only show agents/skills that were actually invoked during the execution
|
|
70
70
|
- If no agents or skills were used, omit the summary entirely
|
|
71
|
-
- Use the exact format above
|
|
71
|
+
- Use the exact format above - single line, separated by `·`
|
|
@@ -42,7 +42,7 @@ Investigate bugs by tracing through architecture layers. Find root causes, not w
|
|
|
42
42
|
- Add proper typing if the bug revealed type gaps
|
|
43
43
|
|
|
44
44
|
## Rules
|
|
45
|
-
- Trace before fixing
|
|
45
|
+
- Trace before fixing - understand the full data flow first
|
|
46
46
|
- Fix at the root layer, not at the symptom layer
|
|
47
47
|
- No hacks or workarounds
|
|
48
48
|
- If fix requires architecture changes, report to user first
|
|
@@ -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 `·`
|