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

code-review

Skill1 starsChanged 3 months 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.

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use starter, media-processing 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.
  • ww-w-aiSkill

    starter

    Static web development guide for beginners. Covers HTML/CSS/JavaScript and Next.js App Router basics. Project initialization with "init starter". Triggers: static website, portfolio, landing page, HTML CSS, beginner, 정적 웹, 포트폴리오, 초보자, 静的サイト, 初心者, 静态网站, 初学者, sitio web estático, site statique, statische Website, sito web statico Do NOT use for: fullstack apps (use $dynamic), enterprise (use $enterprise).

    Also in 4 projects that use this

  • mrgoonieSkill

    media-processing

    Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration) and ImageMagick (image manipulation, format conversion, batch processing, effects, composition). Use when converting media formats, encoding videos with specific codecs (H.264, H.265, VP9), resizing/cropping images, extracting audio from video, applying filters and effects, optimizing file sizes, creating streaming manifests (HLS/DASH), generating thumbnails, batch processing images, creating composite images, or implementing media processing pipelines. Supports 100+ formats, hardware acceleration (NVENC, QSV), and complex filtergraphs.

    Also in 5 projects that use this

  • loulanyueSkill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 15 projects that use this

  • mrgoonieSkill

    aesthetic

    Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing designs from inspiration sites, generating design images with ai-multimodal, implementing visual hierarchy and color theory, adding micro-interactions, or creating design documentation. Includes workflows for capturing and analyzing inspiration screenshots with chrome-devtools and ai-multimodal, iterative design image generation until aesthetic standards are met, and comprehensive design system guidance covering BEAUTIFUL (aesthetic principles), RIGHT (functionality/accessibility), SATISFYING (micro-interactions), and PEAK (storytelling) stages. Integrates with chrome-devtools, ai-multimodal, media-processing, ui-styling, and web-frameworks skills.

    Also in 4 projects that use this

  • AWSSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 32 projects that use this

  • AWSSkill

    resolving-merge-conflicts

    Use when you need to resolve an in-progress git merge/rebase conflict.

    Also in 48 projects that use this

  • +1 more from mrgoonie
  • +2 more from aws

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 175 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 175 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.