agentleFS
HyperVonHyperVon/agent-guidance-kit/skills/code-review/SKILL.md

code-review

Skill1 starsChanged 15 days agoApache-2.0View on GitHub

Review a diff, pull request, branch, subsystem, or bounded repository surface for concrete correctness and regression defects, reporting any defect found — security ones included. Use when the deliverable is the code review itself; use security-review when a dedicated vulnerability assessment is the primary task.

194 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use close-spec, design-with-images and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • dzhngSkill

    close-spec

    When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).

    Also in 5 projects that use this

  • dzhngSkill

    design-with-images

    Explore UI and visual design with image generation, then iterate the real implementation against the user-selected concept. Use when brainstorming visual directions, offering mockup variants, or implementing an approved generated design; do not stop at the mockups or the first code approximation.

    Also in 5 projects that use this

  • PydanticSkill

    add-new-model

    Add support for a newly-released language or image generation model in pydantic-ai (e.g. openai:gpt-5.6, anthropic:claude-sonnet-5, openai:gpt-image-2). Use when a provider ships a new model id and you need to wire literals, profile flags, adapters, and tests to recognize it. Handles SDK-lag, gateway list conventions, capability probing, and direct image-model geometry.

    Also in 9 projects that use this

  • transitive-bullshitSkill

    compare-screenshots

    Compare screenshots against the intended design, distinguishing approved references from historical baselines. Use for iterative implementation matching, before/after visual review, objective image telemetry, or checking a lone capture for flat, empty, or badly framed content.

    Also in 5 projects that use this

  • Microsoft AzureSkill

    azsdk-common-apiview-feedback-resolution

    Analyze and resolve APIView review feedback on Azure SDK PRs. **UTILITY SKILL**. USE FOR: APIView comments, API review feedback, SDK API surface changes. DO NOT USE FOR: general code review, non-APIView feedback. INVOKES: azure-sdk-mcp:azsdk_apiview_get_comments, azure-sdk-mcp:azsdk_customized_code_update, azure-sdk-mcp:azsdk_typespec_delegate_apiview_feedback, azure-sdk-mcp:azsdk_run_typespec_validation, azure-sdk-mcp:azsdk_package_generate_code.

    Also in 6 projects that use this

  • Microsoft AzureSkill

    azsdk-common-generate-sdk-locally

    Generate and finalize Azure SDKs locally from TypeSpec, including build, checks, tests, changelog, metadata, and version updates by default. WHEN: "generate SDK locally", "build SDK", "run SDK tests", "run CI checks", "validate package", "run checks", "update changelog", "fix SDK build errors", "resolve SDK generation errors", "customize TypeSpec", "rename SDK client", "rename SDK model", "hide operation from SDK", "fix analyzer errors", "resolve customization drift", "create subclient", "update metadata", "update version". INVOKES: azsdk_verify_setup, azsdk_package_generate_code, azsdk_package_build_code, azsdk_package_run_check, azsdk_package_run_tests, azsdk_customized_code_update, azsdk_package_update_changelog_content, azsdk_package_update_metadata, azsdk_package_update_version.

    Also in 6 projects that use this

  • +4 more from dzhng
  • +2 more from Azure

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 10 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 184 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Use this skill for a focused diff or subsystem and its concrete behavior.

    line 20
  2. Distinctive:

    Read the contract: Read applicable local guidance, source-of-truth code/configuration, relevant tests, and documentation before evaluating …

    line 52
  3. Distinctive:

    Inspect concrete risks: Check boundary ownership, input validation, state transitions, error propagation, cancellation and lifecycle, …

    line 55
  4. Distinctive:

    Check adjacent claims: Verify changed docs, configuration, generated artifacts, and integration instructions against current source.

    line 77
  5. Distinctive:

    Style nitpicking: Do not report formatting, identifier casing, or subjective syntax preferences if automated linters pass and the code …

    line 103
  6. Distinctive:

    Speculative vulnerabilities: Do not report security flaws without demonstrating a concrete untrusted data flow, unverified input, or …

    line 104
  7. Distinctive:

    Scope creep & unsolicited redesign: Do not demand an architectural rewrite when reviewing a localized bug fix or narrow feature addition.

    line 105
  8. Distinctive:

    Phantom verification: Never claim tests passed or code is verified without running the exact test command and inspecting output.

    line 106
  9. Distinctive:

    Do not call a check passed when it was not run.

    line 108
  10. Distinctive:

    Before the final verdict, check review coverage against the frozen scope and state what was not inspected.

    line 111
  11. Distinctive:

    Stop and report a blocked review when a required check cannot be run — missing credentials, unavailable CI, or an unlicensed tool — and …

    line 125

“Common” is measured: kept by at least 6 in 10 of the 184 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Code Review

Authority and boundary

This skill produces a recommendation-first review, not an automatic refactor, merge, publication, or approval. Do not edit reviewed files unless the user explicitly requests application of selected findings. Keep review findings separate from implementation decisions.

Use this skill for a focused diff or subsystem and its concrete behavior. Use architecture-review for redesign or refactor-versus-rewrite choices, ai-slop-detector for broad artifact-quality and test-independence audits, documentation-review for factual docs sync, quality-hardening for a bounded set of correctness fixes, and reduce-code-size when the goal is size reduction.

Freeze the review point before judging findings: record the base, diff, source version, generated-file policy, and checks that were actually run. Review the specification or public contract separately from engineering standards so a style preference cannot masquerade as a correctness defect.

Inputs and evidence

Take the named diff, branch, subsystem, or repository; the review question; local rules; and relevant source-of-truth contracts, configuration, tests, build files, documentation, and runtime evidence. Establish the complete changed surface before judging an individual line. If a merge base or comparison target is named, include it in the review context.

Ground each finding in a path and line or other precise anchor, a failing check or reproduction, a verified contract, a plausible wrong behavior, or a distinct test gap. Separate observed facts from inferences and unknowns. Do not treat style, size, familiarity, or suspected authorship as a defect by itself.

Review workflow

  1. Establish review truth. Inspect git status, the complete scoped diff, merge base, and target base; identify generated files, contract boundaries, public interfaces, security surfaces, persistence, concurrency, and user-visible changes.
  2. Read the contract. Read applicable local guidance, source-of-truth code/configuration, relevant tests, and documentation before evaluating behavior. Source and executable checks outrank stale prose.
  3. Inspect concrete risks. Check boundary ownership, input validation, state transitions, error propagation, cancellation and lifecycle, retries, timeouts, duplicate or out-of-order work, security and secret handling, compatibility, and data-loss behavior as applicable. Trace changed symbols through callers, removed behavior, sibling implementations, and the canonical source of truth; do not assume a local diff is the whole contract.

    High-risk defect categories:

    • Concurrency & atomicity: unlocked mutexes/locks on early return or exception paths; check-then-act (TOCTOU) races; goroutine/thread/task leaks without lifecycle termination; unhandled promise/async task rejections.
    • State transitions & persistence: partial multi-step persistence writes lacking transaction rollback; missing database connection/file handle release in finally/defer blocks; idempotency failures during retries.
    • Input & boundary validation: missing bounds, size, or type checks on untrusted payloads; unescaped inputs reaching regex/SQL/shell parsers; sensitive data leaked into log lines.
    • Error propagation: swallowed exceptions returning synthetic default values that masquerade as success; missing error wrapping that loses operational root cause.
    • Effective fix / behavior change: When the change is framed as fixing a bug or closing a vulnerability, trace the reported root cause to the changed lines and confirm the diff actually alters the behavior that produces it. A diff that only adds logging, comments, formatting, docs, or unrelated code is not a fix; report it as an incomplete or ineffective change rather than accepting it.
  4. Inspect tests and evidence. Each changed test should protect a distinct defect class and derive expected values from a contract or independent oracle. Ask whether a plausible wrong implementation would fail. Run the smallest relevant local checks and record anything not run. Treat an unverified blocker as unresolved rather than a confirmed finding.
  5. Check adjacent claims. Verify changed docs, configuration, generated artifacts, and integration instructions against current source. Do not expand into a full documentation or architecture audit without that scope.
  6. Report and stop. Rank concrete findings, state the smallest safe correction, include strengths and verification gaps, then stop unless the user explicitly authorizes applying selected findings. Maintain one disposition for every finding and every uncovered review area: confirmed, disproved, duplicate, needs-information, waived, or carried forward.

Findings and severity

Return a report with scope, verdict, strengths or non-issues, findings, impact, smallest safe correction, verification gaps, and deferred questions. Each finding should include a severity and precise evidence anchor.

  • P0: acceptance, security, integrity, destructive-action, or data-loss blocker.
  • P1: material correctness, contract, compatibility, lifecycle, or boundary defect.
  • P2: localized maintainability, documentation, or meaningful test-quality issue.
  • P3: low-risk improvement without demonstrated correctness or safety impact.

Reviewer anti-patterns to avoid

  • Style nitpicking: Do not report formatting, identifier casing, or subjective syntax preferences if automated linters pass and the code matches local codebase conventions.
  • Speculative vulnerabilities: Do not report security flaws without demonstrating a concrete untrusted data flow, unverified input, or reachable abuse path.
  • Scope creep & unsolicited redesign: Do not demand an architectural rewrite when reviewing a localized bug fix or narrow feature addition.
  • Phantom verification: Never claim tests passed or code is verified without running the exact test command and inspecting output.

Do not call a check passed when it was not run. Do not claim merge readiness, approval, or external completion from this review alone.

Before the final verdict, check review coverage against the frozen scope and state what was not inspected. A clean report means no evidence-backed finding was confirmed in the examined scope; it does not mean the change is universally safe.

Side effects and stop conditions

Review mode is read-only. Applying findings is a separate explicitly authorized mode and may change only the selected scope, with focused verification after each correction. Stop when evidence is insufficient, when a proposed fix changes architecture or behavior beyond the review request, or when the issue belongs to a neighboring skill; report the hand-off or verification gap instead of guessing.

Stop and report a blocked review when a required check cannot be run — missing credentials, unavailable CI, or an unlicensed tool — and state the exact verification gap rather than treating the finding as confirmed. When recommending a fix, require fresh evidence that the smallest correction was run and passed; never claim a fix is verified without running the exact command and inspecting its output.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.