From df69d6b5d4095ebafe9f7c85ea3053436b88920e Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Thu, 5 Mar 2026 15:29:30 -0800 Subject: [PATCH] feat: add Amp code review checks (#9445) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Add 22 automated code review check definitions and 1 strict ESLint config to `.agents/checks/` for Amp-powered code review. ## Changes - **What**: 23 files in `.agents/checks/` covering accessibility, API contracts, architecture, bug patterns, CodeRabbit integration, complexity, DDD structure, dependency/secrets scanning, doc freshness, DX/readability, ecosystem compatibility, error handling, import graph, memory leaks, pattern compliance, performance, regression risk, security, SAST, SonarJS linting, test quality, and Vue patterns. Each check includes YAML frontmatter (name, description, severity-default, tools) and repo-specific guidance tailored to ComfyUI_frontend conventions. ## Review Focus - Check definitions are config-only (no runtime code changes) - Checks reference repo-specific patterns (e.g., `useErrorHandling` composable, `useToastStore`, `es-toolkit`, Tailwind 4, Vue Composition API) ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-9445-feat-add-Amp-code-review-checks-31a6d73d3650817a8466fe2f4440a350) by [Unito](https://www.unito.io) --------- Co-authored-by: GitHub Action --- .agents/checks/accessibility.md | 28 ++++++++ .agents/checks/api-contract.md | 35 ++++++++++ .agents/checks/architecture-reviewer.md | 27 ++++++++ .agents/checks/bug-hunter.md | 34 ++++++++++ .agents/checks/coderabbit.md | 50 ++++++++++++++ .agents/checks/complexity.md | 28 ++++++++ .agents/checks/ddd-structure.md | 86 +++++++++++++++++++++++++ .agents/checks/dep-secrets-scan.md | 66 +++++++++++++++++++ .agents/checks/doc-freshness.md | 40 ++++++++++++ .agents/checks/dx-readability.md | 25 +++++++ .agents/checks/ecosystem-compat.md | 58 +++++++++++++++++ .agents/checks/error-handling.md | 38 +++++++++++ .agents/checks/eslint.strict.config.js | 60 +++++++++++++++++ .agents/checks/import-graph.md | 72 +++++++++++++++++++++ .agents/checks/memory-leak.md | 27 ++++++++ .agents/checks/pattern-compliance.md | 60 +++++++++++++++++ .agents/checks/performance-profiler.md | 35 ++++++++++ .agents/checks/regression-risk.md | 44 +++++++++++++ .agents/checks/security-auditor.md | 34 ++++++++++ .agents/checks/semgrep-sast.md | 54 ++++++++++++++++ .agents/checks/sonarjs-lint.md | 59 +++++++++++++++++ .agents/checks/test-quality.md | 37 +++++++++++ .agents/checks/vue-patterns.md | 47 ++++++++++++++ knip.config.ts | 4 +- 24 files changed, 1047 insertions(+), 1 deletion(-) create mode 100644 .agents/checks/accessibility.md create mode 100644 .agents/checks/api-contract.md create mode 100644 .agents/checks/architecture-reviewer.md create mode 100644 .agents/checks/bug-hunter.md create mode 100644 .agents/checks/coderabbit.md create mode 100644 .agents/checks/complexity.md create mode 100644 .agents/checks/ddd-structure.md create mode 100644 .agents/checks/dep-secrets-scan.md create mode 100644 .agents/checks/doc-freshness.md create mode 100644 .agents/checks/dx-readability.md create mode 100644 .agents/checks/ecosystem-compat.md create mode 100644 .agents/checks/error-handling.md create mode 100644 .agents/checks/eslint.strict.config.js create mode 100644 .agents/checks/import-graph.md create mode 100644 .agents/checks/memory-leak.md create mode 100644 .agents/checks/pattern-compliance.md create mode 100644 .agents/checks/performance-profiler.md create mode 100644 .agents/checks/regression-risk.md create mode 100644 .agents/checks/security-auditor.md create mode 100644 .agents/checks/semgrep-sast.md create mode 100644 .agents/checks/sonarjs-lint.md create mode 100644 .agents/checks/test-quality.md create mode 100644 .agents/checks/vue-patterns.md diff --git a/.agents/checks/accessibility.md b/.agents/checks/accessibility.md new file mode 100644 index 0000000000..55cdbcab75 --- /dev/null +++ b/.agents/checks/accessibility.md @@ -0,0 +1,28 @@ +--- +name: accessibility +description: Reviews UI code for WCAG 2.2 AA accessibility violations +severity-default: medium +tools: [Read, Grep] +--- + +You are an accessibility auditor reviewing a code diff for WCAG 2.2 AA compliance. Focus on UI changes that affect users with disabilities. + +Check for: + +1. **Missing form labels** - inputs, selects, textareas without associated `