specialist-agent 2.0.0 → 2.7.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.
Files changed (104) hide show
  1. package/.claude-plugin/marketplace.json +7 -7
  2. package/.claude-plugin/plugin.json +2 -2
  3. package/.cursor-plugin/marketplace.json +1 -1
  4. package/.cursor-plugin/plugin.json +2 -2
  5. package/LICENSE +1 -1
  6. package/README.md +17 -7
  7. package/agents/api.md +374 -93
  8. package/agents/architect-lite.md +104 -0
  9. package/agents/architect.md +553 -0
  10. package/agents/data.md +108 -0
  11. package/agents/deps.md +323 -167
  12. package/agents/devops.md +12 -0
  13. package/agents/docs.md +381 -134
  14. package/agents/executor.md +117 -0
  15. package/agents/finance.md +85 -0
  16. package/agents/i18n.md +512 -117
  17. package/agents/memory.md +1 -1
  18. package/agents/perf.md +287 -109
  19. package/agents/refactor.md +380 -92
  20. package/agents/ripple-lite.md +106 -0
  21. package/agents/ripple.md +162 -0
  22. package/agents/scout-lite.md +1 -1
  23. package/agents/scout.md +1 -1
  24. package/agents/security.md +65 -0
  25. package/agents/tdd.md +11 -3
  26. package/cli/index.mjs +54 -36
  27. package/hooks/native/auto-dispatch.mjs +6 -0
  28. package/hooks/native/security-guard.mjs +3 -2
  29. package/hooks/native/settings-template.json +4 -4
  30. package/package.json +15 -2
  31. package/packs/angular/ARCHITECTURE.md +814 -0
  32. package/packs/angular/CLAUDE.md +105 -0
  33. package/packs/angular/agents/builder.md +157 -0
  34. package/packs/angular/agents/doctor.md +241 -0
  35. package/packs/angular/agents/migrator.md +195 -0
  36. package/packs/angular/agents/reviewer.md +263 -0
  37. package/packs/angular/agents-lite/builder.md +65 -0
  38. package/packs/angular/agents-lite/doctor.md +64 -0
  39. package/packs/angular/agents-lite/migrator.md +75 -0
  40. package/packs/angular/agents-lite/reviewer.md +69 -0
  41. package/packs/angular/skills/dev-create-component/SKILL.md +56 -0
  42. package/packs/angular/skills/dev-create-injectable/SKILL.md +60 -0
  43. package/packs/angular/skills/dev-create-module/SKILL.md +49 -0
  44. package/packs/angular/skills/dev-create-service/SKILL.md +34 -0
  45. package/packs/angular/skills/dev-create-test/SKILL.md +78 -0
  46. package/packs/angular/skills/dev-generate-types/SKILL.md +37 -0
  47. package/packs/angular/skills/docs-onboard/SKILL.md +42 -0
  48. package/packs/angular/skills/migration-migrate-component/SKILL.md +42 -0
  49. package/packs/angular/skills/migration-migrate-module/SKILL.md +25 -0
  50. package/packs/angular/skills/review-check-architecture/SKILL.md +67 -0
  51. package/packs/angular/skills/review-fix-violations/SKILL.md +43 -0
  52. package/packs/angular/skills/review-review/SKILL.md +42 -0
  53. package/packs/astro/ARCHITECTURE.md +718 -0
  54. package/packs/astro/CLAUDE.md +106 -0
  55. package/packs/astro/agents/builder.md +192 -0
  56. package/packs/astro/agents/doctor.md +254 -0
  57. package/packs/astro/agents/migrator.md +209 -0
  58. package/packs/astro/agents/reviewer.md +263 -0
  59. package/packs/astro/agents-lite/builder.md +71 -0
  60. package/packs/astro/agents-lite/doctor.md +66 -0
  61. package/packs/astro/agents-lite/migrator.md +71 -0
  62. package/packs/astro/agents-lite/reviewer.md +70 -0
  63. package/packs/astro/skills/dev-create-component/SKILL.md +50 -0
  64. package/packs/astro/skills/dev-create-island/SKILL.md +63 -0
  65. package/packs/astro/skills/dev-create-module/SKILL.md +49 -0
  66. package/packs/astro/skills/dev-create-service/SKILL.md +34 -0
  67. package/packs/astro/skills/dev-create-test/SKILL.md +76 -0
  68. package/packs/astro/skills/dev-generate-types/SKILL.md +37 -0
  69. package/packs/astro/skills/docs-onboard/SKILL.md +51 -0
  70. package/packs/astro/skills/migration-migrate-component/SKILL.md +48 -0
  71. package/packs/astro/skills/migration-migrate-module/SKILL.md +25 -0
  72. package/packs/astro/skills/review-check-architecture/SKILL.md +72 -0
  73. package/packs/astro/skills/review-fix-violations/SKILL.md +43 -0
  74. package/packs/astro/skills/review-review/SKILL.md +44 -0
  75. package/packs/nuxt/ARCHITECTURE.md +831 -0
  76. package/packs/nuxt/CLAUDE.md +111 -0
  77. package/packs/nuxt/agents/builder.md +165 -0
  78. package/packs/nuxt/agents/doctor.md +252 -0
  79. package/packs/nuxt/agents/migrator.md +203 -0
  80. package/packs/nuxt/agents/reviewer.md +275 -0
  81. package/packs/nuxt/agents-lite/builder.md +67 -0
  82. package/packs/nuxt/agents-lite/doctor.md +67 -0
  83. package/packs/nuxt/agents-lite/migrator.md +80 -0
  84. package/packs/nuxt/agents-lite/reviewer.md +71 -0
  85. package/packs/nuxt/skills/dev-create-component/SKILL.md +60 -0
  86. package/packs/nuxt/skills/dev-create-composable/SKILL.md +33 -0
  87. package/packs/nuxt/skills/dev-create-module/SKILL.md +49 -0
  88. package/packs/nuxt/skills/dev-create-service/SKILL.md +34 -0
  89. package/packs/nuxt/skills/dev-create-test/SKILL.md +61 -0
  90. package/packs/nuxt/skills/dev-generate-types/SKILL.md +37 -0
  91. package/packs/nuxt/skills/docs-onboard/SKILL.md +49 -0
  92. package/packs/nuxt/skills/migration-migrate-component/SKILL.md +48 -0
  93. package/packs/nuxt/skills/migration-migrate-module/SKILL.md +25 -0
  94. package/packs/nuxt/skills/review-check-architecture/SKILL.md +71 -0
  95. package/packs/nuxt/skills/review-fix-violations/SKILL.md +43 -0
  96. package/packs/nuxt/skills/review-review/SKILL.md +44 -0
  97. package/skills/checkpoint/SKILL.md +8 -0
  98. package/skills/codereview/SKILL.md +255 -0
  99. package/skills/commit/SKILL.md +150 -0
  100. package/skills/estimate/SKILL.md +9 -0
  101. package/skills/finish/SKILL.md +9 -0
  102. package/skills/health/SKILL.md +9 -0
  103. package/skills/lint/SKILL.md +126 -0
  104. package/skills/plan/SKILL.md +9 -0
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: dev-create-module
3
+ description: "Use when creating a new feature module with all layers — service, adapter, types, state, components, and tests."
4
+ user-invocable: true
5
+ argument-hint: "[module-name]"
6
+ allowed-tools: Read, Write, Edit, Bash, Glob, Grep
7
+ ---
8
+
9
+ Create a new complete feature module following `docs/ARCHITECTURE.md`.
10
+
11
+ Module name: $ARGUMENTS
12
+
13
+ ## Steps
14
+
15
+ 1. Read `docs/ARCHITECTURE.md` sections 2, 3 and 4.
16
+
17
+ 2. Create the directory structure:
18
+
19
+ ```text
20
+ src/modules/[kebab-case-name]/
21
+ ├── components/
22
+ ├── services/
23
+ ├── adapters/
24
+ ├── stores/
25
+ ├── types/
26
+ ├── pages/
27
+ ├── __tests__/
28
+ └── index.ts
29
+ ```
30
+
31
+ 3. Create `index.ts` with empty barrel export:
32
+
33
+ ```typescript
34
+ // src/modules/[name]/index.ts
35
+ // Public API for this module
36
+ ```
37
+
38
+ 4. Ask the user:
39
+ - Which API endpoints does this module consume?
40
+ - What UI type? (list with CRUD, dashboard, form, detail)
41
+
42
+ 5. Use `@builder` to create bottom-up:
43
+ - Types + contracts + adapter + service (HttpClient, inject())
44
+ - Signal-based store for client state
45
+ - Standalone components with input()/output() signals
46
+
47
+ 6. Register the route in app.routes.ts using loadComponent.
48
+
49
+ 7. Validate: `npx tsc --noEmit && ng build`
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: dev-create-service
3
+ description: "Use when adding API integration to a module — creates types, contracts, adapter, and service layer."
4
+ user-invocable: true
5
+ argument-hint: "[resource-name]"
6
+ allowed-tools: Read, Write, Edit, Bash, Glob, Grep
7
+ ---
8
+
9
+ Create the complete data layer for a resource following `docs/ARCHITECTURE.md` sections 4.1-4.3.
10
+
11
+ Resource: $ARGUMENTS
12
+
13
+ ## Steps
14
+
15
+ 1. Read `docs/ARCHITECTURE.md` sections 4.1 (Services), 4.2 (Adapters), 4.3 (Types).
16
+
17
+ 2. Ask the user:
18
+ - What is the endpoint base URL? (e.g. `/api/marketplace`)
19
+ - What is the response JSON format? (ask for an example or describe the fields)
20
+ - Which operations? (GET list, GET by ID, POST, PATCH, DELETE)
21
+
22
+ 3. Create in order:
23
+
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` -- HttpClient only, inject(HttpClient), @Injectable({ providedIn: 'root' })
28
+
29
+ 4. Required rules:
30
+ - Service: **NO try/catch**, **NO .map()/.filter()/new Date()**
31
+ - Adapter: **pure functions**, no side effects
32
+ - Types separated: .types.ts (API) != .contracts.ts (App)
33
+
34
+ 5. Validate: `npx tsc --noEmit`
@@ -0,0 +1,78 @@
1
+ ---
2
+ name: dev-create-test
3
+ description: "Use when a module needs test coverage — creates tests for adapters, services, and components."
4
+ user-invocable: true
5
+ argument-hint: "[file-path]"
6
+ allowed-tools: Read, Write, Edit, Bash, Glob, Grep
7
+ ---
8
+
9
+ Create tests for the specified file or module.
10
+
11
+ Target: $ARGUMENTS
12
+
13
+ ## Steps
14
+
15
+ 1. Analyze the file to understand what to test.
16
+
17
+ 2. Determine the test type:
18
+
19
+ ### Adapter (high priority -- pure functions, easy to test)
20
+ ```typescript
21
+ import { describe, it, expect } from 'vitest'
22
+ import { xxxAdapter } from '../adapters/xxx.adapter'
23
+
24
+ describe('xxxAdapter', () => {
25
+ describe('toXxx', () => {
26
+ it('should convert API response to app contract', () => {
27
+ const response = { uuid: '123', field_name: 'test', created_at: '2024-01-01T00:00:00Z' }
28
+ const result = xxxAdapter.toXxx(response)
29
+ expect(result.id).toBe('123')
30
+ expect(result.fieldName).toBe('test')
31
+ expect(result.createdAt).toBeInstanceOf(Date)
32
+ })
33
+ })
34
+ })
35
+ ```
36
+
37
+ ### Service (medium priority -- mock HttpClient)
38
+ ```typescript
39
+ import { TestBed } from '@angular/core/testing'
40
+ import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'
41
+ import { XxxService } from '../services/xxx.service'
42
+
43
+ describe('XxxService', () => {
44
+ let service: XxxService
45
+ let httpMock: HttpTestingController
46
+
47
+ beforeEach(() => {
48
+ TestBed.configureTestingModule({ imports: [HttpClientTestingModule] })
49
+ service = TestBed.inject(XxxService)
50
+ httpMock = TestBed.inject(HttpTestingController)
51
+ })
52
+
53
+ it('should fetch list', () => {
54
+ service.list({ page: 1, pageSize: 20 }).subscribe((data) => {
55
+ expect(data).toBeTruthy()
56
+ })
57
+ const req = httpMock.expectOne('/api/xxx?page=1&pageSize=20')
58
+ expect(req.request.method).toBe('GET')
59
+ })
60
+ })
61
+ ```
62
+
63
+ ### Component (medium-low priority)
64
+ ```typescript
65
+ import { render, screen } from '@testing-library/angular'
66
+ import { XxxComponent } from '../components/xxx.component'
67
+
68
+ describe('XxxComponent', () => {
69
+ it('should render', async () => {
70
+ await render(XxxComponent, { inputs: { /* ... */ } })
71
+ expect(screen.getByText('expected text')).toBeTruthy()
72
+ })
73
+ })
74
+ ```
75
+
76
+ 3. Create the test in `__tests__/original-name.spec.ts`.
77
+
78
+ 4. Run: `ng test --watch=false` or `npx vitest run`
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: dev-generate-types
3
+ description: "Use when integrating with an API endpoint and need TypeScript types, contracts, and adapters generated automatically."
4
+ user-invocable: true
5
+ argument-hint: "[endpoint-or-json]"
6
+ allowed-tools: Read, Write, Edit, Bash, Glob, Grep
7
+ ---
8
+
9
+ Generate types, contracts and adapter for an API endpoint following `docs/ARCHITECTURE.md` sections 4.2-4.3.
10
+
11
+ Endpoint or example JSON: $ARGUMENTS
12
+
13
+ ## Steps
14
+
15
+ 1. Read `docs/ARCHITECTURE.md` sections 4.2 and 4.3.
16
+
17
+ 2. If the user provided an example JSON, use it. If they provided an endpoint:
18
+ - Search existing code for calls to that endpoint
19
+ - Ask the user for an example response JSON
20
+
21
+ 3. From the JSON, create:
22
+
23
+ a. **`[resource].types.ts`** -- types that mirror the API exactly:
24
+ - snake_case, string dates, IDs as string
25
+ - Include request payloads and list response (with pagination)
26
+
27
+ b. **`[resource].contracts.ts`** -- clean app contracts:
28
+ - camelCase, Date objects, derived booleans
29
+ - No internal API fields (tokens, metadata)
30
+
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
+ - Conversions: snake->camel, string->Date, cents->decimal
36
+
37
+ 4. Validate: `npx tsc --noEmit`
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: docs-onboard
3
+ description: "Use when onboarding onto a module and need a quick summary of its structure, patterns, and key files."
4
+ user-invocable: true
5
+ argument-hint: "[module-name]"
6
+ allowed-tools: Read, Bash, Glob, Grep
7
+ ---
8
+
9
+ Create a quick summary of a module for onboarding.
10
+
11
+ Module: $ARGUMENTS
12
+
13
+ ## Steps
14
+
15
+ 1. Map the structure:
16
+ ```bash
17
+ find src/modules/$ARGUMENTS -type f | head -40
18
+ ```
19
+
20
+ 2. Summarize in quick format:
21
+
22
+ ### Endpoints
23
+ List the consumed endpoints (grep in services).
24
+
25
+ ### Main Components
26
+ List components and their responsibilities (1 line each).
27
+
28
+ ### State
29
+ - What is in signal stores? (client state)
30
+ - What is fetched via services? (server data)
31
+
32
+ ### Data Flow
33
+ ```
34
+ Service (HttpClient) -> Adapter (parse) -> Component (signals + template)
35
+ ```
36
+
37
+ ### Points of Attention
38
+ - Anything outside the ARCHITECTURE.md pattern?
39
+ - Components > 200 lines?
40
+ - Legacy code not yet migrated? (NgModule, @Input/@Output, constructor DI)
41
+
42
+ 3. Output: concise summary that a new developer can understand the module in 2 minutes.
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: migration-migrate-component
3
+ description: "Use when a component needs migration to the target architecture or framework version."
4
+ user-invocable: true
5
+ argument-hint: "[component-file]"
6
+ allowed-tools: Read, Write, Edit, Bash, Glob, Grep
7
+ ---
8
+
9
+ Migrate an Angular component to standalone with signals following `docs/ARCHITECTURE.md` section 5.
10
+
11
+ Component: $ARGUMENTS
12
+
13
+ ## Steps
14
+
15
+ 1. Read `docs/ARCHITECTURE.md` section 5.
16
+
17
+ 2. Analyze the component:
18
+ - Count lines (template, class)
19
+ - List: @Input, @Output, constructor deps, lifecycle hooks, NgModule membership
20
+ - Map who imports this component
21
+
22
+ 3. Convert to modern Angular:
23
+ - `@NgModule` membership -> `standalone: true`
24
+ - `@Input() prop` -> `readonly prop = input<T>()`
25
+ - `@Output() event = new EventEmitter()` -> `readonly event = output<T>()`
26
+ - `constructor(private svc: Service)` -> `private readonly svc = inject(Service)`
27
+ - `ngOnInit()` -> `constructor` or `afterNextRender()`
28
+ - `ngOnChanges()` -> `effect()` watching input signals
29
+ - `*ngIf` -> `@if () { }`
30
+ - `*ngFor` -> `@for (item of items; track item.id) { }`
31
+ - Add `ChangeDetectionStrategy.OnPush`
32
+
33
+ 4. Apply composition pattern if there is prop drilling.
34
+
35
+ 5. Decompose if > 200 lines.
36
+
37
+ 6. Validate:
38
+ ```bash
39
+ npx tsc --noEmit
40
+ ng build
41
+ ng test --watch=false
42
+ ```
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: migration-migrate-module
3
+ description: "Use when a complete module needs migration to the target architecture — runs 6 phases with approval gates."
4
+ user-invocable: true
5
+ argument-hint: "[module-path]"
6
+ allowed-tools: Read, Write, Edit, Bash, Glob, Grep
7
+ ---
8
+
9
+ Migrate an entire module to the target architecture from `docs/ARCHITECTURE.md`.
10
+
11
+ Module/Path: $ARGUMENTS
12
+
13
+ ## Steps
14
+
15
+ Use `@migrator` to coordinate the full migration in phases:
16
+
17
+ 1. **Phase 0 -- Analysis**: Map the module (files, patterns, dependencies, NgModule vs standalone)
18
+ 2. **Phase 1 -- Structure**: Create `src/modules/[name]/` and move files
19
+ 3. **Phase 2 -- Types**: Create `.types.ts` + `.contracts.ts` + adapter
20
+ 4. **Phase 3 -- Services**: Migrate to pure service (HttpClient only, inject(), no try/catch)
21
+ 5. **Phase 4 -- State**: BehaviorSubject -> signals, stores with WritableSignal + asReadonly()
22
+ 6. **Phase 5 -- Components**: NgModule -> standalone, @Input/@Output -> input()/output(), constructor -> inject(), OnPush
23
+ 7. **Phase 6 -- Review**: Validate conformance
24
+
25
+ Validate build/tsc/tests after each phase. Ask for approval before each phase.
@@ -0,0 +1,67 @@
1
+ ---
2
+ name: review-check-architecture
3
+ description: "Use when checking if code follows ARCHITECTURE.md patterns — runs automated conformance checks."
4
+ user-invocable: true
5
+ argument-hint: "[module]"
6
+ allowed-tools: Read, Bash, Glob, Grep
7
+ ---
8
+
9
+ Validate the entire project (or a specific module) against `docs/ARCHITECTURE.md`.
10
+
11
+ Scope: $ARGUMENTS (if empty, validate all src/modules/)
12
+
13
+ ## Automated Checks
14
+
15
+ Run all checks and report a summary:
16
+
17
+ ```bash
18
+ echo "=== 1. Services with try/catch ==="
19
+ grep -rn "try {" src/modules/*/services/ --include="*.ts" 2>/dev/null || echo "None"
20
+
21
+ echo "=== 2. Services with transformation ==="
22
+ grep -rn "\.map(\|\.filter(\|new Date\|\.reduce(" src/modules/*/services/ --include="*.ts" 2>/dev/null || echo "None"
23
+
24
+ echo "=== 3. NgModule usage ==="
25
+ grep -rn "NgModule\|declarations:" src/modules/ --include="*.ts" 2>/dev/null || echo "All standalone"
26
+
27
+ echo "=== 4. Constructor DI ==="
28
+ grep -rn "constructor(" src/modules/ --include="*.ts" 2>/dev/null | grep -v "\.spec\.ts" || echo "All using inject()"
29
+
30
+ echo "=== 5. Legacy @Input/@Output decorators ==="
31
+ grep -rn "@Input()\|@Output()" src/modules/ --include="*.ts" 2>/dev/null || echo "All using input()/output()"
32
+
33
+ echo "=== 6. BehaviorSubject in stores ==="
34
+ grep -rn "BehaviorSubject\|ReplaySubject" src/modules/*/stores/ --include="*.ts" 2>/dev/null || echo "All signal-based"
35
+
36
+ echo "=== 7. Missing OnPush ==="
37
+ grep -rn "@Component" src/modules/ --include="*.ts" -l 2>/dev/null | while read f; do
38
+ grep -L "OnPush" "$f" 2>/dev/null
39
+ done
40
+
41
+ echo "=== 8. any types ==="
42
+ grep -rn ": any\| any;\|as any\|<any>" src/modules/ --include="*.ts" 2>/dev/null | wc -l
43
+
44
+ echo "=== 9. Cross-module imports ==="
45
+ for module in src/modules/*/; do
46
+ name=$(basename "$module")
47
+ grep -rn "from.*modules/" "$module" --include="*.ts" 2>/dev/null | grep -v "modules/${name}" || true
48
+ done
49
+
50
+ echo "=== 10. innerHTML ==="
51
+ grep -rn "innerHTML\|\[innerHTML\]" src/ --include="*.ts" 2>/dev/null || echo "None"
52
+
53
+ echo "=== 11. Debug artifacts ==="
54
+ grep -rn "console\.\|debugger" src/modules/ --include="*.ts" 2>/dev/null | wc -l
55
+
56
+ echo "=== 12. Components > 200 lines ==="
57
+ find src/modules -name "*.component.ts" -exec sh -c 'lines=$(wc -l < "$1"); [ "$lines" -gt 200 ] && echo "$1: $lines lines"' _ {} \;
58
+ ```
59
+
60
+ Produce a summary table:
61
+
62
+ | Check | Status | Occurrences |
63
+ |-------|--------|-------------|
64
+ | Services without try/catch | PASS/FAIL | X |
65
+ | ... | ... | ... |
66
+
67
+ Overall score: X/12 checks passing.
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: review-fix-violations
3
+ description: "Use when architecture violations were found and need automated fixing by priority."
4
+ user-invocable: true
5
+ argument-hint: "[module]"
6
+ allowed-tools: Read, Write, Edit, Bash, Glob, Grep
7
+ ---
8
+
9
+ Identify and fix `docs/ARCHITECTURE.md` violations in the specified module.
10
+
11
+ Module: $ARGUMENTS
12
+
13
+ ## Steps
14
+
15
+ 1. Run `/review-check-architecture` to find violations.
16
+
17
+ 2. For each violation found, fix in priority order:
18
+
19
+ **Critical (fix first):**
20
+ - try/catch in services -> remove, move error handling to component/interceptor
21
+ - Transformation in services -> move to adapter
22
+ - innerHTML without sanitization -> remove or use DomSanitizer
23
+ - Hardcoded secrets -> move to environment files
24
+
25
+ **Important:**
26
+ - NgModule -> migrate to standalone (`/migration-migrate-component`)
27
+ - @Input/@Output decorators -> input()/output() signals
28
+ - Constructor DI -> inject()
29
+ - BehaviorSubject in stores -> signals
30
+ - any types -> type correctly
31
+ - Missing OnPush -> add ChangeDetectionStrategy.OnPush
32
+
33
+ **Improvements:**
34
+ - Components > 200 lines -> decompose
35
+ - Console.log -> remove
36
+ - TODO/FIXME -> resolve or create issue
37
+
38
+ 3. Validate after each fix:
39
+ ```bash
40
+ npx tsc --noEmit && ng build && ng test --watch=false
41
+ ```
42
+
43
+ 4. Report what was fixed and what remains.
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: review-review
3
+ description: "Use when code changes need review before merge — validates architecture, types, security, and test coverage."
4
+ user-invocable: true
5
+ argument-hint: "[scope]"
6
+ allowed-tools: Read, Bash, Glob, Grep
7
+ ---
8
+
9
+ Perform a full code review of changed files, validating against `docs/ARCHITECTURE.md`.
10
+
11
+ Scope: $ARGUMENTS (if empty, review files changed in git)
12
+
13
+ ## Steps
14
+
15
+ 1. Identify changed files:
16
+ ```bash
17
+ git diff --name-only HEAD~1 2>/dev/null || git diff --name-only --cached 2>/dev/null || echo "Please specify the files"
18
+ ```
19
+
20
+ 2. Run automated checks:
21
+ ```bash
22
+ npx tsc --noEmit
23
+ ng lint
24
+ ng test --watch=false
25
+ ```
26
+
27
+ 3. Check ARCHITECTURE.md patterns:
28
+ - Services: HttpClient only, no try/catch, no transformation, inject(HttpClient)
29
+ - Adapters: pure functions
30
+ - Stores: signal-based, private WritableSignal, public asReadonly()
31
+ - Components: standalone, input()/output() signals, OnPush, < 200 lines
32
+ - Naming: kebab-case files, PascalCase classes
33
+ - Boundaries: no cross-module imports
34
+ - DI: inject() everywhere, no constructor DI
35
+
36
+ 4. Classify:
37
+ - VIOLATION — breaks ARCHITECTURE.md
38
+ - ATTENTION — recommended improvement
39
+ - COMPLIANT — correct
40
+ - HIGHLIGHT — positive highlight
41
+
42
+ 5. Produce report with verdict: Approved | With caveats | Requires changes