AGENT SKILL

review

Check how well the current implementation matches the feature spec and evaluate code quality. Runs spec compliance review followed by code quality review. Optionally runs unit/integration test audit, logging audit, and security audit when strategy files exist. Does not modify code.

License 许可
MIT
最近更新
2026-03-27
Stars
★ 3
Forks
1

01 前言 Front Matter

name
review
context
fork
description
Check how well the current implementation matches the feature spec and evaluate code quality. Runs spec compliance review followed by code quality review. Optionally runs unit/integration test audit, logging audit, and security audit when strategy files exist. Does not modify code.
argument-hint
[feature name]

03 SKILL.md 正文

Scope boundary

  • /review is an audit command, not a browser QA command.
  • Browser E2E, visual regression, and accessibility checks are handled by /qa.

Model selection

Before spawning agents, assess task size per spec/rules/_model-routing.md:

  • reviewer: Read spec.md REQ count and count implementation files. If ≤5 REQs AND <5 files → haiku. Otherwise → sonnet.
  • code-quality-reviewer: always haiku (static analysis, pattern detection).
  • tester: sonnet (test analysis requires reasoning). Only if spec/TEST_STRATEGY.md exists.
  • log-auditor: haiku (pattern matching). Only if spec/LOG_STRATEGY.md exists.
  • security-reviewer: sonnet (semantic vulnerability analysis). Only if spec/SECURITY_STRATEGY.md exists.

Step 1 — Parallel Review Agents

Spawn all applicable agents in parallel:

Always run:

  1. reviewer agent (with assessed model):

    [HANDOFF]
    TO: reviewer ({assessed model})
    TASK: Check spec compliance for feature "$ARGUMENTS"
    DONE-WHEN:
      - Every REQ-NNN has PASS/PARTIAL/MISSING status with evidence
    MUST-NOT:
      - Modify any file
      - Suggest features beyond the spec
    READS:
      - spec/feature/[$ARGUMENTS]/spec.md
      - spec/feature/[$ARGUMENTS]/design.md
    [/HANDOFF]
    
  2. code-quality-reviewer agent (haiku):

    [HANDOFF]
    TO: code-quality-reviewer (haiku)
    TASK: Review code quality for feature "$ARGUMENTS"
    DONE-WHEN:
      - Quality report with severity-rated issues (CRITICAL/HIGH/MEDIUM/LOW)
    MUST-NOT:
      - Modify any file
    READS:
      - spec/rules/
    [/HANDOFF]
    

Conditional — only if strategy files exist:

  1. tester agent (sonnet) — only if spec/TEST_STRATEGY.md exists:

    [HANDOFF]
    TO: tester (sonnet)
    TASK: Run unit/integration tests and report results for feature "$ARGUMENTS" (audit mode)
    DONE-WHEN:
      - Test execution report with pass/fail counts
    MUST-NOT:
      - Modify source code (review mode only)
      - Run browser visual or accessibility QA flows
    READS:
      - spec/TEST_STRATEGY.md
      - spec/feature/[$ARGUMENTS]/spec.md
    [/HANDOFF]
    
  2. log-auditor agent (haiku) — only if spec/LOG_STRATEGY.md exists:

    [HANDOFF]
    TO: log-auditor (haiku)
    TASK: Audit logging practices for feature "$ARGUMENTS"
    DONE-WHEN:
      - Logging audit report with findings
    MUST-NOT:
      - Modify any code (review mode only)
    READS:
      - spec/LOG_STRATEGY.md
    [/HANDOFF]
    
  3. security-reviewer agent (sonnet) — only if spec/SECURITY_STRATEGY.md exists:

    [HANDOFF]
    TO: security-reviewer (sonnet)
    TASK: Run security audit for feature "$ARGUMENTS"
    DONE-WHEN:
      - Security audit report (secrets, XSS, injection, auth)
    MUST-NOT:
      - Modify any code (review mode only)
    READS:
      - spec/SECURITY_STRATEGY.md
      - spec/feature/[$ARGUMENTS]/spec.md
    [/HANDOFF]
    

Wait for all spawned agents to complete.

Step 2 — Combined Report

Present all reports to the user in order:

  1. Spec compliance report (from reviewer)
  2. Code quality report (from code-quality-reviewer)
  3. Test results report (from tester) — if applicable
  4. Logging audit report (from log-auditor) — if applicable
  5. Security audit report (from security-reviewer) — if applicable

If tester, log-auditor, or security-reviewer was skipped, note at the end:

Skipped: [Test audit / Log audit / Security audit] — strategy file not configured.
Run [/test --setup / /log --setup / /security --setup] to enable.
For browser, visual, or accessibility validation, run `/qa`.

04 同仓库更多 Skills

ByeongminLee
ByeongminLee/nextjs-claude-code

zustand

Zustand state management guide. Use when working with store code (src/store/**), implementing actions, managing state, or creating slices. Triggers on Zustand store development, state management questions, or action implementation.

★ 3
ByeongminLee
ByeongminLee/nextjs-claude-code

web-vitals

暂无简介

★ 3
ByeongminLee
ByeongminLee/nextjs-claude-code

vercel-storage

Vercel storage expert guidance — Blob, Edge Config, and Marketplace storage (Neon Postgres, Upstash Redis). Use when choosing, configuring, or using data storage with Vercel applications.

后端与接口
★ 3
ByeongminLee
ByeongminLee/nextjs-claude-code

vercel-functions

Vercel Functions expert guidance — Serverless Functions, Edge Functions, Fluid Compute, streaming, Cron Jobs, and runtime configuration. Use when configuring, debugging, or optimizing server-side code running on Vercel.

开发工程师后端与接口
★ 3
ByeongminLee
ByeongminLee/nextjs-claude-code

ui-ux-pro-max

UI/UX design intelligence for web and mobile. Includes 50+ styles, 161 color palettes, 57 font pairings, 161 product types, 99 UX guidelines, and 25 chart types across 10 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, and HTML/CSS). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, and check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, and mobile app. Elements: button, modal, navbar, sidebar, card, table, form, and chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, and flat design. Topics: color systems, accessibility, animation, layout, typography, font pairing, spacing, interaction states, shadow, and gradient. Integrations: shadcn/ui MCP for component search and examples.

设计师数据分析师前端开发视觉设计
★ 3
ByeongminLee
ByeongminLee/nextjs-claude-code

turborepo

Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines, dependsOn, caching, remote cache, the "turbo" CLI, --filter, --affected, CI optimization, environment variables, internal packages, monorepo structure/best practices, and boundaries. Use when user: configures tasks/workflows/pipelines, creates packages, sets up monorepo, shares code between apps, runs changed/affected packages, debugs cache, or has apps/packages directories.

★ 3