specialist-agent 1.5.0 → 1.6.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 (57) hide show
  1. package/agents/cloud-lite.md +5 -0
  2. package/agents/cloud.md +25 -0
  3. package/agents/data-lite.md +5 -0
  4. package/agents/data.md +25 -0
  5. package/agents/designer-lite.md +5 -0
  6. package/agents/designer.md +25 -0
  7. package/agents/devops-lite.md +5 -0
  8. package/agents/devops.md +25 -0
  9. package/agents/explorer-lite.md +5 -0
  10. package/agents/explorer.md +25 -0
  11. package/agents/finance-lite.md +5 -0
  12. package/agents/finance.md +25 -0
  13. package/agents/legal-lite.md +113 -0
  14. package/agents/legal.md +301 -0
  15. package/agents/security-lite.md +5 -0
  16. package/agents/security.md +25 -0
  17. package/agents/starter-lite.md +5 -0
  18. package/agents/starter.md +25 -0
  19. package/agents/tester-lite.md +5 -0
  20. package/agents/tester.md +25 -0
  21. package/package.json +1 -1
  22. package/packs/nextjs/CLAUDE.md +1 -0
  23. package/packs/nextjs/agents/builder.md +25 -0
  24. package/packs/nextjs/agents/doctor.md +25 -0
  25. package/packs/nextjs/agents/migrator.md +25 -0
  26. package/packs/nextjs/agents/reviewer.md +25 -0
  27. package/packs/nextjs/agents-lite/builder.md +5 -0
  28. package/packs/nextjs/agents-lite/doctor.md +5 -0
  29. package/packs/nextjs/agents-lite/migrator.md +5 -0
  30. package/packs/nextjs/agents-lite/reviewer.md +5 -0
  31. package/packs/react/CLAUDE.md +1 -0
  32. package/packs/react/agents/builder.md +25 -0
  33. package/packs/react/agents/doctor.md +25 -0
  34. package/packs/react/agents/migrator.md +25 -0
  35. package/packs/react/agents/reviewer.md +25 -0
  36. package/packs/react/agents-lite/builder.md +5 -0
  37. package/packs/react/agents-lite/doctor.md +5 -0
  38. package/packs/react/agents-lite/migrator.md +5 -0
  39. package/packs/react/agents-lite/reviewer.md +5 -0
  40. package/packs/svelte/CLAUDE.md +1 -0
  41. package/packs/svelte/agents/builder.md +23 -0
  42. package/packs/svelte/agents/doctor.md +23 -0
  43. package/packs/svelte/agents/migrator.md +23 -0
  44. package/packs/svelte/agents/reviewer.md +23 -0
  45. package/packs/svelte/agents-lite/builder.md +5 -0
  46. package/packs/svelte/agents-lite/doctor.md +5 -0
  47. package/packs/svelte/agents-lite/migrator.md +5 -0
  48. package/packs/svelte/agents-lite/reviewer.md +5 -0
  49. package/packs/vue/CLAUDE.md +1 -0
  50. package/packs/vue/agents/builder.md +25 -0
  51. package/packs/vue/agents/doctor.md +25 -0
  52. package/packs/vue/agents/migrator.md +25 -0
  53. package/packs/vue/agents/reviewer.md +25 -0
  54. package/packs/vue/agents-lite/builder.md +5 -0
  55. package/packs/vue/agents-lite/doctor.md +5 -0
  56. package/packs/vue/agents-lite/migrator.md +5 -0
  57. package/packs/vue/agents-lite/reviewer.md +5 -0
@@ -12,6 +12,31 @@ Create code following `docs/ARCHITECTURE.md`. Detect the scope from the user's r
12
12
  ## First Action
13
13
  Read `docs/ARCHITECTURE.md`.
14
14
 
15
+ ## Core Principles
16
+
17
+ ### Security First (Mandatory)
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
+ - NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
21
+ - ALWAYS implement rate limiting on public endpoints
22
+ - Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
23
+ - Follow OWASP Top 10 — prevent XSS, CSRF, injection, broken auth, etc.
24
+ - Secrets in environment variables only — never hardcode
25
+
26
+ ### Performance First (Mandatory)
27
+ - ALWAYS use TanStack Query (React Query) for server state caching
28
+ - Set appropriate `staleTime` and `gcTime` for each query based on data freshness needs
29
+ - Use `keepPreviousData` for pagination to avoid loading flickers
30
+ - Implement optimistic updates for mutations when UX benefits
31
+ - Use proper cache invalidation (`invalidateQueries`) — stale UI is a bug
32
+ - Lazy load routes, components, and heavy dependencies
33
+ - Avoid N+1 queries — batch requests, use proper data loading patterns
34
+
35
+ ### Code Language (Mandatory)
36
+ - ALWAYS write code (variables, functions, comments, commits) in English
37
+ - Only use other languages if explicitly requested by the user
38
+ - User-facing text (UI labels, messages) should match project's i18n strategy
39
+
15
40
  ## Scope Detection
16
41
  - **Module**: user wants a full feature (CRUD, page, multiple endpoints) -> Module mode
17
42
  - **Component**: user wants a UI element (form, table, modal, card, list) -> Component mode
@@ -12,6 +12,31 @@ Investigate bugs by tracing through architecture layers. Find root causes, not w
12
12
  ## First Action
13
13
  Read `docs/ARCHITECTURE.md` to understand the expected data flow.
14
14
 
15
+ ## Core Principles
16
+
17
+ ### Security First (Mandatory)
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
+ - NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
21
+ - ALWAYS implement rate limiting on public endpoints
22
+ - Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
23
+ - Follow OWASP Top 10 — prevent XSS, CSRF, injection, broken auth, etc.
24
+ - Secrets in environment variables only — never hardcode
25
+
26
+ ### Performance First (Mandatory)
27
+ - ALWAYS use TanStack Query (React Query) for server state caching
28
+ - Set appropriate `staleTime` and `gcTime` for each query based on data freshness needs
29
+ - Use `keepPreviousData` for pagination to avoid loading flickers
30
+ - Implement optimistic updates for mutations when UX benefits
31
+ - Use proper cache invalidation (`invalidateQueries`) — stale UI is a bug
32
+ - Lazy load routes, components, and heavy dependencies
33
+ - Avoid N+1 queries — batch requests, use proper data loading patterns
34
+
35
+ ### Code Language (Mandatory)
36
+ - ALWAYS write code (variables, functions, comments, commits) in English
37
+ - Only use other languages if explicitly requested by the user
38
+ - User-facing text (UI labels, messages) should match project's i18n strategy
39
+
15
40
  ## Workflow
16
41
 
17
42
  ### 1. Understand the Bug
@@ -12,6 +12,31 @@ Migrate legacy code (JS, class components, Redux, unstructured) to target archit
12
12
  ## First Action
13
13
  Read `docs/ARCHITECTURE.md`.
14
14
 
15
+ ## Core Principles
16
+
17
+ ### Security First (Mandatory)
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
+ - NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
21
+ - ALWAYS implement rate limiting on public endpoints
22
+ - Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
23
+ - Follow OWASP Top 10 — prevent XSS, CSRF, injection, broken auth, etc.
24
+ - Secrets in environment variables only — never hardcode
25
+
26
+ ### Performance First (Mandatory)
27
+ - ALWAYS use TanStack Query (React Query) for server state caching
28
+ - Set appropriate `staleTime` and `gcTime` for each query based on data freshness needs
29
+ - Use `keepPreviousData` for pagination to avoid loading flickers
30
+ - Implement optimistic updates for mutations when UX benefits
31
+ - Use proper cache invalidation (`invalidateQueries`) — stale UI is a bug
32
+ - Lazy load routes, components, and heavy dependencies
33
+ - Avoid N+1 queries — batch requests, use proper data loading patterns
34
+
35
+ ### Code Language (Mandatory)
36
+ - ALWAYS write code (variables, functions, comments, commits) in English
37
+ - Only use other languages if explicitly requested by the user
38
+ - User-facing text (UI labels, messages) should match project's i18n strategy
39
+
15
40
  ## Scope Detection
16
41
  - **Module**: user wants to migrate an entire module/directory -> Module mode (6 phases)
17
42
  - **Component**: user wants to migrate a single component -> Component mode
@@ -12,6 +12,31 @@ Analyze code against `docs/ARCHITECTURE.md`. Detect the scope from the user's re
12
12
  ## First Action
13
13
  Read `docs/ARCHITECTURE.md`.
14
14
 
15
+ ## Core Principles
16
+
17
+ ### Security First (Mandatory)
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
+ - NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
21
+ - ALWAYS implement rate limiting on public endpoints
22
+ - Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
23
+ - Follow OWASP Top 10 — prevent XSS, CSRF, injection, broken auth, etc.
24
+ - Secrets in environment variables only — never hardcode
25
+
26
+ ### Performance First (Mandatory)
27
+ - ALWAYS use TanStack Query (React Query) for server state caching
28
+ - Set appropriate `staleTime` and `gcTime` for each query based on data freshness needs
29
+ - Use `keepPreviousData` for pagination to avoid loading flickers
30
+ - Implement optimistic updates for mutations when UX benefits
31
+ - Use proper cache invalidation (`invalidateQueries`) — stale UI is a bug
32
+ - Lazy load routes, components, and heavy dependencies
33
+ - Avoid N+1 queries — batch requests, use proper data loading patterns
34
+
35
+ ### Code Language (Mandatory)
36
+ - ALWAYS write code (variables, functions, comments, commits) in English
37
+ - Only use other languages if explicitly requested by the user
38
+ - User-facing text (UI labels, messages) should match project's i18n strategy
39
+
15
40
  ## Scope Detection
16
41
  - **Review**: user wants code review, PR validation, or violation fixing -> Review mode
17
42
  - **Explore**: user wants to understand a module, onboarding, or mapping -> Explore mode
@@ -10,6 +10,11 @@ tools: Read, Write, Edit, Glob, Grep
10
10
  ## Mission
11
11
  Create code following architecture conventions. Detect scope: module | component | service | hook | test.
12
12
 
13
+ ## Core Principles
14
+ - **Security**: Validate ALL inputs server-side, parameterized queries, no secrets in code, OWASP Top 10 compliance
15
+ - **Performance**: Use TanStack Query for caching (staleTime, invalidateQueries), lazy loading, avoid N+1
16
+ - **Code Language**: Write code in English (variables, functions, comments). Other languages only on user request
17
+
13
18
  ## Rules (Always Apply)
14
19
  - Functional TSX components (no class components)
15
20
  - Services: HTTP only, no try/catch, no transformation
@@ -10,6 +10,11 @@ tools: Read, Glob, Grep
10
10
  ## Mission
11
11
  Investigate bugs by tracing through architecture layers. Find root causes, not workarounds.
12
12
 
13
+ ## Core Principles
14
+ - **Security**: Validate ALL inputs server-side, parameterized queries, no secrets in code, OWASP Top 10 compliance
15
+ - **Performance**: Use TanStack Query for caching (staleTime, invalidateQueries), lazy loading, avoid N+1
16
+ - **Code Language**: Write code in English (variables, functions, comments). Other languages only on user request
17
+
13
18
  ## Workflow
14
19
 
15
20
  ### 1. Understand the Bug
@@ -10,6 +10,11 @@ tools: Read, Write, Edit, Glob, Grep
10
10
  ## Mission
11
11
  Migrate legacy code to target architecture. Detect scope: module | component.
12
12
 
13
+ ## Core Principles
14
+ - **Security**: Validate ALL inputs server-side, parameterized queries, no secrets in code, OWASP Top 10 compliance
15
+ - **Performance**: Use TanStack Query for caching (staleTime, invalidateQueries), lazy loading, avoid N+1
16
+ - **Code Language**: Write code in English (variables, functions, comments). Other languages only on user request
17
+
13
18
  ## Module Mode (6 Phases)
14
19
  1. **Analysis** -- Map files, count class vs functional, JS vs TS, PropTypes, Redux, HOCs, cross-module imports
15
20
  2. **Structure** -- Create target dirs: components/, hooks/, services/, adapters/, stores/, types/, pages/, __tests__/
@@ -10,6 +10,11 @@ tools: Read, Glob, Grep
10
10
  ## Mission
11
11
  Analyze code against architecture conventions. Detect scope: review | explore | performance.
12
12
 
13
+ ## Core Principles
14
+ - **Security**: Validate ALL inputs server-side, parameterized queries, no secrets in code, OWASP Top 10 compliance
15
+ - **Performance**: Use TanStack Query for caching (staleTime, invalidateQueries), lazy loading, avoid N+1
16
+ - **Code Language**: Write code in English (variables, functions, comments). Other languages only on user request
17
+
13
18
  ## Review Mode
14
19
  Check these patterns:
15
20
  - Services: HTTP only, no try/catch, no transformation
@@ -29,6 +29,7 @@ You **MUST** automatically delegate to the correct agent based on the user's int
29
29
  | Docker, Kubernetes, CI/CD pipelines, monitoring | `@devops` |
30
30
  | Test strategies, test suites, coverage, mocking | `@tester` |
31
31
  | Explore unfamiliar codebase, onboarding, technical assessment | `@explorer` |
32
+ | Data privacy (LGPD, GDPR), consent flows, compliance review | `@legal` |
32
33
 
33
34
  If a task spans multiple agents, invoke them in sequence (e.g., @builder then @reviewer).
34
35
 
@@ -12,6 +12,29 @@ Create code following `docs/ARCHITECTURE.md`. Detect the scope from the user's r
12
12
  ## First Action
13
13
  Read `docs/ARCHITECTURE.md`.
14
14
 
15
+ ## Core Principles
16
+
17
+ ### Security First (Mandatory)
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
+ - NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
21
+ - ALWAYS implement rate limiting on public endpoints
22
+ - Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
23
+ - Follow OWASP Top 10 — prevent XSS, CSRF, injection, broken auth, etc.
24
+ - Secrets in environment variables only — never hardcode
25
+
26
+ ### Performance First (Mandatory)
27
+ - Use SvelteKit load functions for server state caching
28
+ - Implement proper loading states with +loading.svelte
29
+ - Use proper cache invalidation (`invalidateAll`) — stale UI is a bug
30
+ - Lazy load routes, components, and heavy dependencies
31
+ - Avoid N+1 queries — batch requests, use proper data loading patterns
32
+
33
+ ### Code Language (Mandatory)
34
+ - ALWAYS write code (variables, functions, comments, commits) in English
35
+ - Only use other languages if explicitly requested by the user
36
+ - User-facing text (UI labels, messages) should match project's i18n strategy
37
+
15
38
  ## Scope Detection
16
39
  - **Module**: user wants a full feature (CRUD, page, multiple endpoints) -> Module mode
17
40
  - **Component**: user wants a UI element (form, table, modal, card, list) -> Component mode
@@ -12,6 +12,29 @@ Investigate bugs by tracing through architecture layers. Find root causes, not w
12
12
  ## First Action
13
13
  Read `docs/ARCHITECTURE.md` to understand the expected data flow.
14
14
 
15
+ ## Core Principles
16
+
17
+ ### Security First (Mandatory)
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
+ - NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
21
+ - ALWAYS implement rate limiting on public endpoints
22
+ - Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
23
+ - Follow OWASP Top 10 — prevent XSS, CSRF, injection, broken auth, etc.
24
+ - Secrets in environment variables only — never hardcode
25
+
26
+ ### Performance First (Mandatory)
27
+ - Use SvelteKit load functions for server state caching
28
+ - Implement proper loading states with +loading.svelte
29
+ - Use proper cache invalidation (`invalidateAll`) — stale UI is a bug
30
+ - Lazy load routes, components, and heavy dependencies
31
+ - Avoid N+1 queries — batch requests, use proper data loading patterns
32
+
33
+ ### Code Language (Mandatory)
34
+ - ALWAYS write code (variables, functions, comments, commits) in English
35
+ - Only use other languages if explicitly requested by the user
36
+ - User-facing text (UI labels, messages) should match project's i18n strategy
37
+
15
38
  ## Workflow
16
39
 
17
40
  ### 1. Understand the Bug
@@ -12,6 +12,29 @@ Migrate legacy code (Svelte 4, SvelteKit 1, JavaScript, unstructured) to target
12
12
  ## First Action
13
13
  Read `docs/ARCHITECTURE.md`.
14
14
 
15
+ ## Core Principles
16
+
17
+ ### Security First (Mandatory)
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
+ - NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
21
+ - ALWAYS implement rate limiting on public endpoints
22
+ - Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
23
+ - Follow OWASP Top 10 — prevent XSS, CSRF, injection, broken auth, etc.
24
+ - Secrets in environment variables only — never hardcode
25
+
26
+ ### Performance First (Mandatory)
27
+ - Use SvelteKit load functions for server state caching
28
+ - Implement proper loading states with +loading.svelte
29
+ - Use proper cache invalidation (`invalidateAll`) — stale UI is a bug
30
+ - Lazy load routes, components, and heavy dependencies
31
+ - Avoid N+1 queries — batch requests, use proper data loading patterns
32
+
33
+ ### Code Language (Mandatory)
34
+ - ALWAYS write code (variables, functions, comments, commits) in English
35
+ - Only use other languages if explicitly requested by the user
36
+ - User-facing text (UI labels, messages) should match project's i18n strategy
37
+
15
38
  ## Scope Detection
16
39
  - **Module**: user wants to migrate an entire module/directory -> Module mode (6 phases)
17
40
  - **Component**: user wants to migrate a single component -> Component mode
@@ -12,6 +12,29 @@ Analyze code against `docs/ARCHITECTURE.md`. Detect the scope from the user's re
12
12
  ## First Action
13
13
  Read `docs/ARCHITECTURE.md`.
14
14
 
15
+ ## Core Principles
16
+
17
+ ### Security First (Mandatory)
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
+ - NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
21
+ - ALWAYS implement rate limiting on public endpoints
22
+ - Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
23
+ - Follow OWASP Top 10 — prevent XSS, CSRF, injection, broken auth, etc.
24
+ - Secrets in environment variables only — never hardcode
25
+
26
+ ### Performance First (Mandatory)
27
+ - Use SvelteKit load functions for server state caching
28
+ - Implement proper loading states with +loading.svelte
29
+ - Use proper cache invalidation (`invalidateAll`) — stale UI is a bug
30
+ - Lazy load routes, components, and heavy dependencies
31
+ - Avoid N+1 queries — batch requests, use proper data loading patterns
32
+
33
+ ### Code Language (Mandatory)
34
+ - ALWAYS write code (variables, functions, comments, commits) in English
35
+ - Only use other languages if explicitly requested by the user
36
+ - User-facing text (UI labels, messages) should match project's i18n strategy
37
+
15
38
  ## Scope Detection
16
39
  - **Review**: user wants code review, PR validation, or violation fixing -> Review mode
17
40
  - **Explore**: user wants to understand a module, onboarding, or mapping -> Explore mode
@@ -10,6 +10,11 @@ tools: Read, Write, Edit, Glob, Grep
10
10
  ## Mission
11
11
  Create code following architecture conventions. Detect scope: module | component | service | store | test.
12
12
 
13
+ ## Core Principles
14
+ - **Security**: Validate ALL inputs server-side, parameterized queries, no secrets in code, OWASP Top 10 compliance
15
+ - **Performance**: Use SvelteKit load functions for caching, lazy loading, avoid N+1
16
+ - **Code Language**: Write code in English (variables, functions, comments). Other languages only on user request
17
+
13
18
  ## Rules (Always Apply)
14
19
  - Svelte 5 runes: `$state`, `$derived`, `$effect`, `$props` (NOT Svelte 4 patterns)
15
20
  - Services: HTTP only, no try/catch, no transformation, native `fetch`
@@ -10,6 +10,11 @@ tools: Read, Glob, Grep
10
10
  ## Mission
11
11
  Investigate bugs by tracing through architecture layers. Find root causes, not workarounds.
12
12
 
13
+ ## Core Principles
14
+ - **Security**: Validate ALL inputs server-side, parameterized queries, no secrets in code, OWASP Top 10 compliance
15
+ - **Performance**: Use SvelteKit load functions for caching, lazy loading, avoid N+1
16
+ - **Code Language**: Write code in English (variables, functions, comments). Other languages only on user request
17
+
13
18
  ## Workflow
14
19
 
15
20
  ### 1. Understand the Bug
@@ -10,6 +10,11 @@ tools: Read, Write, Edit, Glob, Grep
10
10
  ## Mission
11
11
  Migrate legacy code to target architecture. Detect scope: module | component.
12
12
 
13
+ ## Core Principles
14
+ - **Security**: Validate ALL inputs server-side, parameterized queries, no secrets in code, OWASP Top 10 compliance
15
+ - **Performance**: Use SvelteKit load functions for caching, lazy loading, avoid N+1
16
+ - **Code Language**: Write code in English (variables, functions, comments). Other languages only on user request
17
+
13
18
  ## Module Mode (6 Phases)
14
19
  1. **Analysis** -- Map files, count Svelte 4 vs 5 patterns, JS vs TS, SvelteKit 1 vs 2
15
20
  2. **Structure** -- Create target dirs: components/, stores/, services/, adapters/, types/, __tests__/
@@ -10,6 +10,11 @@ tools: Read, Glob, Grep
10
10
  ## Mission
11
11
  Analyze code against architecture conventions. Detect scope: review | explore | performance.
12
12
 
13
+ ## Core Principles
14
+ - **Security**: Validate ALL inputs server-side, parameterized queries, no secrets in code, OWASP Top 10 compliance
15
+ - **Performance**: Use SvelteKit load functions for caching, lazy loading, avoid N+1
16
+ - **Code Language**: Write code in English (variables, functions, comments). Other languages only on user request
17
+
13
18
  ## Review Mode
14
19
  Check these patterns:
15
20
  - Services: HTTP only, no try/catch, no transformation, native fetch
@@ -29,6 +29,7 @@ You **MUST** automatically delegate to the correct agent based on the user's int
29
29
  | Docker, Kubernetes, CI/CD pipelines, monitoring | `@devops` |
30
30
  | Test strategies, test suites, coverage, mocking | `@tester` |
31
31
  | Explore unfamiliar codebase, onboarding, technical assessment | `@explorer` |
32
+ | Data privacy (LGPD, GDPR), consent flows, compliance review | `@legal` |
32
33
 
33
34
  If a task spans multiple agents, invoke them in sequence (e.g., @builder then @reviewer).
34
35
 
@@ -12,6 +12,31 @@ Create code following `docs/ARCHITECTURE.md`. Detect the scope from the user's r
12
12
  ## First Action
13
13
  Read `docs/ARCHITECTURE.md`.
14
14
 
15
+ ## Core Principles
16
+
17
+ ### Security First (Mandatory)
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
+ - NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
21
+ - ALWAYS implement rate limiting on public endpoints
22
+ - Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
23
+ - Follow OWASP Top 10 — prevent XSS, CSRF, injection, broken auth, etc.
24
+ - Secrets in environment variables only — never hardcode
25
+
26
+ ### Performance First (Mandatory)
27
+ - ALWAYS use TanStack Query (Vue Query) for server state caching
28
+ - Set appropriate `staleTime` and `gcTime` for each query based on data freshness needs
29
+ - Use `keepPreviousData` for pagination to avoid loading flickers
30
+ - Implement optimistic updates for mutations when UX benefits
31
+ - Use proper cache invalidation (`invalidateQueries`) — stale UI is a bug
32
+ - Lazy load routes, components, and heavy dependencies
33
+ - Avoid N+1 queries — batch requests, use proper data loading patterns
34
+
35
+ ### Code Language (Mandatory)
36
+ - ALWAYS write code (variables, functions, comments, commits) in English
37
+ - Only use other languages if explicitly requested by the user
38
+ - User-facing text (UI labels, messages) should match project's i18n strategy
39
+
15
40
  ## Scope Detection
16
41
  - **Module**: user wants a full feature (CRUD, page, multiple endpoints) → Module mode
17
42
  - **Component**: user wants a UI element (form, table, modal, card, list) → Component mode
@@ -12,6 +12,31 @@ Investigate bugs by tracing through architecture layers. Find root causes, not w
12
12
  ## First Action
13
13
  Read `docs/ARCHITECTURE.md` to understand the expected data flow.
14
14
 
15
+ ## Core Principles
16
+
17
+ ### Security First (Mandatory)
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
+ - NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
21
+ - ALWAYS implement rate limiting on public endpoints
22
+ - Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
23
+ - Follow OWASP Top 10 — prevent XSS, CSRF, injection, broken auth, etc.
24
+ - Secrets in environment variables only — never hardcode
25
+
26
+ ### Performance First (Mandatory)
27
+ - ALWAYS use TanStack Query (Vue Query) for server state caching
28
+ - Set appropriate `staleTime` and `gcTime` for each query based on data freshness needs
29
+ - Use `keepPreviousData` for pagination to avoid loading flickers
30
+ - Implement optimistic updates for mutations when UX benefits
31
+ - Use proper cache invalidation (`invalidateQueries`) — stale UI is a bug
32
+ - Lazy load routes, components, and heavy dependencies
33
+ - Avoid N+1 queries — batch requests, use proper data loading patterns
34
+
35
+ ### Code Language (Mandatory)
36
+ - ALWAYS write code (variables, functions, comments, commits) in English
37
+ - Only use other languages if explicitly requested by the user
38
+ - User-facing text (UI labels, messages) should match project's i18n strategy
39
+
15
40
  ## Workflow
16
41
 
17
42
  ### 1. Understand the Bug
@@ -12,6 +12,31 @@ Migrate legacy code (JS, Options API, unstructured) to target architecture defin
12
12
  ## First Action
13
13
  Read `docs/ARCHITECTURE.md`.
14
14
 
15
+ ## Core Principles
16
+
17
+ ### Security First (Mandatory)
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
+ - NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
21
+ - ALWAYS implement rate limiting on public endpoints
22
+ - Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
23
+ - Follow OWASP Top 10 — prevent XSS, CSRF, injection, broken auth, etc.
24
+ - Secrets in environment variables only — never hardcode
25
+
26
+ ### Performance First (Mandatory)
27
+ - ALWAYS use TanStack Query (Vue Query) for server state caching
28
+ - Set appropriate `staleTime` and `gcTime` for each query based on data freshness needs
29
+ - Use `keepPreviousData` for pagination to avoid loading flickers
30
+ - Implement optimistic updates for mutations when UX benefits
31
+ - Use proper cache invalidation (`invalidateQueries`) — stale UI is a bug
32
+ - Lazy load routes, components, and heavy dependencies
33
+ - Avoid N+1 queries — batch requests, use proper data loading patterns
34
+
35
+ ### Code Language (Mandatory)
36
+ - ALWAYS write code (variables, functions, comments, commits) in English
37
+ - Only use other languages if explicitly requested by the user
38
+ - User-facing text (UI labels, messages) should match project's i18n strategy
39
+
15
40
  ## Scope Detection
16
41
  - **Module**: user wants to migrate an entire module/directory → Module mode (6 phases)
17
42
  - **Component**: user wants to migrate a single component → Component mode
@@ -12,6 +12,31 @@ Analyze code against `docs/ARCHITECTURE.md`. Detect the scope from the user's re
12
12
  ## First Action
13
13
  Read `docs/ARCHITECTURE.md`.
14
14
 
15
+ ## Core Principles
16
+
17
+ ### Security First (Mandatory)
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
+ - NEVER expose sensitive data (tokens, passwords, PII) in logs, URLs, or error messages
21
+ - ALWAYS implement rate limiting on public endpoints
22
+ - Use HTTPS everywhere, set secure headers (CSP, HSTS, X-Frame-Options)
23
+ - Follow OWASP Top 10 — prevent XSS, CSRF, injection, broken auth, etc.
24
+ - Secrets in environment variables only — never hardcode
25
+
26
+ ### Performance First (Mandatory)
27
+ - ALWAYS use TanStack Query (Vue Query) for server state caching
28
+ - Set appropriate `staleTime` and `gcTime` for each query based on data freshness needs
29
+ - Use `keepPreviousData` for pagination to avoid loading flickers
30
+ - Implement optimistic updates for mutations when UX benefits
31
+ - Use proper cache invalidation (`invalidateQueries`) — stale UI is a bug
32
+ - Lazy load routes, components, and heavy dependencies
33
+ - Avoid N+1 queries — batch requests, use proper data loading patterns
34
+
35
+ ### Code Language (Mandatory)
36
+ - ALWAYS write code (variables, functions, comments, commits) in English
37
+ - Only use other languages if explicitly requested by the user
38
+ - User-facing text (UI labels, messages) should match project's i18n strategy
39
+
15
40
  ## Scope Detection
16
41
  - **Review**: user wants code review, PR validation, or violation fixing → Review mode
17
42
  - **Explore**: user wants to understand a module, onboarding, or mapping → Explore mode
@@ -10,6 +10,11 @@ tools: Read, Write, Edit, Glob, Grep
10
10
  ## Mission
11
11
  Create code following architecture conventions. Detect scope: module | component | service | composable | test.
12
12
 
13
+ ## Core Principles
14
+ - **Security**: Validate ALL inputs server-side, parameterized queries, no secrets in code, OWASP Top 10 compliance
15
+ - **Performance**: Use TanStack Vue Query for caching (staleTime, invalidateQueries), lazy loading, avoid N+1
16
+ - **Code Language**: Write code in English (variables, functions, comments). Other languages only on user request
17
+
13
18
  ## Rules (Always Apply)
14
19
  - `<script setup lang="ts">` for all components
15
20
  - Services: HTTP only, no try/catch, no transformation
@@ -10,6 +10,11 @@ tools: Read, Glob, Grep
10
10
  ## Mission
11
11
  Investigate bugs by tracing through architecture layers. Find root causes, not workarounds.
12
12
 
13
+ ## Core Principles
14
+ - **Security**: Validate ALL inputs server-side, parameterized queries, no secrets in code, OWASP Top 10 compliance
15
+ - **Performance**: Use TanStack Vue Query for caching (staleTime, invalidateQueries), lazy loading, avoid N+1
16
+ - **Code Language**: Write code in English (variables, functions, comments). Other languages only on user request
17
+
13
18
  ## Workflow
14
19
 
15
20
  ### 1. Understand the Bug
@@ -10,6 +10,11 @@ tools: Read, Write, Edit, Glob, Grep
10
10
  ## Mission
11
11
  Migrate legacy code to target architecture. Detect scope: module | component.
12
12
 
13
+ ## Core Principles
14
+ - **Security**: Validate ALL inputs server-side, parameterized queries, no secrets in code, OWASP Top 10 compliance
15
+ - **Performance**: Use TanStack Vue Query for caching (staleTime, invalidateQueries), lazy loading, avoid N+1
16
+ - **Code Language**: Write code in English (variables, functions, comments). Other languages only on user request
17
+
13
18
  ## Module Mode (6 Phases)
14
19
  1. **Analysis** — Map files, count Options vs setup, JS vs TS, mixins, cross-module imports
15
20
  2. **Structure** — Create target dirs: components/, composables/, services/, adapters/, stores/, types/, views/, __tests__/
@@ -10,6 +10,11 @@ tools: Read, Glob, Grep
10
10
  ## Mission
11
11
  Analyze code against architecture conventions. Detect scope: review | explore | performance.
12
12
 
13
+ ## Core Principles
14
+ - **Security**: Validate ALL inputs server-side, parameterized queries, no secrets in code, OWASP Top 10 compliance
15
+ - **Performance**: Use TanStack Vue Query for caching (staleTime, invalidateQueries), lazy loading, avoid N+1
16
+ - **Code Language**: Write code in English (variables, functions, comments). Other languages only on user request
17
+
13
18
  ## Review Mode
14
19
  Check these patterns:
15
20
  - Services: HTTP only, no try/catch, no transformation