AI-Generated Code Review

Reviewing production code, patches, branches, or PRs authored with an AI coding assistant or autonomous Agent.

StatusStable
TypeAtomic Skill
DomainSoftware testing
SDLCTest design
Good forQA / PM / DEV / SRE / DevOps
LanguageChinese / English
EvalsEvals ✓
Synced2026-11-25

Why this Skill

It turns this Skill's method into a quality input that can be executed, reviewed, and reused.

  • A formal code review requires both identifiable code version and reviewable changes. If either is missing, return BLOCKED; do not issue formal severity or merge conclusions.
  • Record model, tools, prompt version, Agent run, and code ownership only when supplied. Mark absent provenance UNKNOWN; do not infer authorship or defects from it.
  • Check task intent, changed-file scope, dependency/API evidence, error handling, critical behavior tests, test and CI changes, and how untrusted PR content enters scripts or tool chains.
  • Raising severity because code is AI-generated, or lowering it because CI is green.

When to use

Use this Skill
  • Reviewing production code, patches, branches, or PRs authored with an AI coding assistant or autonomous Agent.
  • Checking whether generated code meets requirements, relies on invented packages/APIs, or hides errors behind silent fallbacks.
  • Reviewing Agent tool traces, code provenance, test edits, CI configuration, or untrusted-input boundaries.
Common pitfalls
  • Raising severity because code is AI-generated, or lowering it because CI is green.
  • Treating Agent claims in a trace as independent verification or tool-call records as proof that a change took effect.
  • Calling an unfamiliar dependency nonexistent without checking lockfiles, repository docs, registry evidence, or marking it for verification.
  • Reviewing production code while ignoring deleted tests, reduced coverage thresholds, removed required CI jobs, or untested error paths in the same change.

Input

Minimum Input
  • Read `prompts/ai-generated-code-review.md` and confirm code identity, reviewable changes, and review scope.
Recommended Input
  • Always read prompts/ai-generated-code-review.md and follow its input gates and output contract.
  • For step-by-step comparison of Agent events, patches, and verification sources, read references/trajectory-evidence.md.
  • For dependency authenticity, silent fallback, CI integrity, or scope drift, read references/ai-code-risk-checklist.md.
  • Use evals/ to regress success, incomplete-input, risk-boundary, trajectory, and evidence-state behavior.
Optional Context
  • Relevant code or configuration
  • Historical results
  • Logs and metrics

Output

The output follows this Skill's method and makes facts, assumptions, risks, and next steps explicit.

These are the Skill's expected output requirements, not evidence that it ran in a real project.

  1. 01Confirmed code identity, reviewable changes, intent, and scope; withheld formal findings when a required gate was missing
  2. 02Every finding has a change location, trigger, impact, and repair direction
  3. 03AI provenance claims, traces, test results, and CI results retain their own source and evidence status
  4. 04Did not treat missing model information as a defect or green status/static analysis as proof of correctness
View full output structure
  1. 05Stop conditions, authorization boundaries, and Human decisions are clear

How It Works

  1. 01Read prompts/ai-generated-code-review.md and confirm code identity, reviewable changes, and review scope.
  2. 02Map intent and acceptance criteria to the baseline and diff; use only supplied or accessible repository evidence.
  3. 03Load relevant checks from references/; when a generation trace exists, compare event IDs, tool inputs/outputs, and changes step by step.
  4. 04Separate code findings, provenance claims, static judgments, test execution, and CI evidence. Rank risks and provide reviewable locations and minimal repairs.
  5. 05With missing input, return a bounded first pass or a blocked result and list the exact material needed to continue.

Install & Quick Start

Install command / SHELL
npx skills add \
  https://github.com/naodeng/awesome-qa-skills/tree/main/skills/en/testing-types/ai-generated-code-review
  -g
ai-generated-code-review.prompt
@skill ai-generated-code-review

Using the current project context, produce an actionable result following this Skill.

Additional context:
[Paste project context or requirement]