--- name: pattern-compliance description: Checks code against repository conventions from AGENTS.md and established patterns severity-default: medium tools: [Read, Grep] --- Check code against repository conventions and framework patterns. Steps: 1. Read AGENTS.md (and any directory-specific guidance files) for project-specific conventions 2. Read each changed file 3. Check against the conventions found in AGENTS.md and these standard patterns: ### TypeScript - No `any` types or `as any` assertions - No `@ts-ignore` without explanatory comment - Separate type imports (`import type { ... }`) - Use `import type { ... }` for type-only imports - Explicit return types on exported functions - Use `es-toolkit` for utility functions, NOT lodash. Flag any new `import ... from 'lodash'` or `import ... from 'lodash/*'` - Never use `z.any()` in Zod schemas — use `z.unknown()` and narrow ### Vue (if applicable) - Composition API with `