agentleFS
aleen42aleen42/PersonalContext/skills/code-review/SKILL.md

code-review

Skill3 starsChanged 8 months agoMITView on GitHub

Use when the user asks for a review, code review, codereview, commit review, PR review, diff review, or wants a bug-focused assessment of changes. Default to a code review mindset that prioritizes findings about correctness, regressions, risks, and missing tests over summaries.

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 use when Anthropic, OpenAI or Google deprecates or retires a model, to update the deprecation tables.

    Also in 10 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
  • +3 more from Azure

The file

Show its rules and text

We split this skill into the rules it gives an agent

23 rules. 0 are common, 23 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 186 edited versions we read keep these.

  • 23

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the task is to evaluate code rather than to implement changes immediately.

    line 8
  2. Distinctive:

    Treat findings as the primary output.

    line 15
  3. Distinctive:

    Keep summaries brief and secondary.

    line 16
  4. Distinctive:

    If no findings are discovered, say that explicitly and mention residual risk or testing gaps.

    line 18
  5. Distinctive:

    Do not spend most of the review on style nits unless the user explicitly asks for style review.

    line 31
  6. Distinctive:

    Do not drift into implementation unless the user also asks for changes.

    line 33
  7. Distinctive:

    If the scope is ambiguous but one reasonable default exists, use it and state the assumption.

    line 41
  8. Distinctive:

    Read the relevant diff before reading large amounts of surrounding code.

    line 42
  9. Distinctive:

    Look for behavior changes, not just syntax issues.

    line 44
  10. Distinctive:

    Check whether tests cover the changed paths and important failure modes.

    line 45
  11. Distinctive:

    Stop once the highest-signal findings are supported by evidence.

    line 46
  12. Distinctive:

    When the user does not specify scope, prefer these defaults:

    line 50
  13. Distinctive:

    Only raise a finding when all of the following are true:

    line 60
  14. Distinctive:

    Prefer fewer high-confidence findings over many speculative comments.

    line 66
  15. Distinctive:

    Do not pad the review with weak observations just to make the review feel substantial.

    line 67
  16. Distinctive:

    If there are no findings, explicitly say no findings were identified.

    line 86
  17. Distinctive:

    Do not rewrite code or propose large redesigns unless needed to explain a finding.

    line 92
  18. Distinctive:

    Do not fix the code unless the user also asks for implementation.

    line 93
  19. Distinctive:

    Prefer evidence from the diff, surrounding code, and tests over intuition.

    line 94
  20. Distinctive:

    Keep overviews short. The review should center on actionable findings, not retelling the patch.

    line 95
  21. Distinctive:

    Read enough surrounding code to confirm whether a suspicious diff is actually wrong.

    line 99
  22. Distinctive:

    Check call sites, data flow, and tests before claiming a regression.

    line 100
  23. Distinctive:

    When uncertain, lower confidence and phrase it as an assumption or question instead of a hard finding.

    line 102

“Common” is measured: kept by at least 6 in 10 of the 186 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

Use this skill when the task is to evaluate code rather than to implement changes immediately.

Goal

Produce a review that mirrors Codex's built-in review behavior:

  • Prioritize bugs, behavioral regressions, risky assumptions, and missing tests.
  • Treat findings as the primary output.
  • Keep summaries brief and secondary.
  • Focus on the changed code and its likely runtime impact.
  • If no findings are discovered, say that explicitly and mention residual risk or testing gaps.

What To Inspect

Review with the following order of attention:

  1. Correctness and broken behavior
  2. Regressions versus prior behavior
  3. Edge cases and unsafe assumptions
  4. Compatibility or integration risks
  5. Missing, weak, or misleading tests
  6. Maintainability issues only when they create real risk

Do not spend most of the review on style nits unless the user explicitly asks for style review.

Do not drift into implementation unless the user also asks for changes.

When reviewing defensive checks, trace the control flow and data loop that reaches them. If earlier invariants, loop conditions, or caller contracts already make a guard unreachable or redundant, prefer pointing out the unnecessary defensive branch and its maintenance cost instead of preserving it by default.

Review Workflow

  1. Identify the review scope.
    • Current working tree, staged changes, a commit, a diff, a branch, or a specific file set.
    • If the scope is ambiguous but one reasonable default exists, use it and state the assumption.
  2. Read the relevant diff before reading large amounts of surrounding code.
  3. Open only the files needed to validate suspicious changes, call sites, and tests.
  4. Look for behavior changes, not just syntax issues.
  5. Check whether tests cover the changed paths and important failure modes.
  6. Stop once the highest-signal findings are supported by evidence.

Default Scope Assumptions

When the user does not specify scope, prefer these defaults:

  1. Review the latest local changes when the conversation is already about a recent edit.
  2. Review the latest commit when the user says latest commit or similar.
  3. Review the current diff or working tree when the user says review this with no other detail.

State the assumption briefly instead of blocking on a question unless the ambiguity is materially risky.

Findings Bar

Only raise a finding when all of the following are true:

  • There is a concrete problem or meaningful risk.
  • You can point to the file and line that caused the concern.
  • You can explain the user-visible or system-visible impact.

Prefer fewer high-confidence findings over many speculative comments. Do not pad the review with weak observations just to make the review feel substantial.

Response Format

Present findings first, ordered by severity.

For each finding, include:

  • A short severity label if useful, such as P1, P2, or P3
  • The affected file and line reference
  • The problem
  • Why it matters in behavior or risk terms

After findings, include:

  • Open questions or assumptions
  • A brief change summary only if it helps
  • Residual risk or testing gaps when there are no findings

If there are no findings, explicitly say no findings were identified.

Default Review Stance

  • Assume the author may be correct; verify before criticizing.
  • Be direct and specific, not dramatic.
  • Do not rewrite code or propose large redesigns unless needed to explain a finding.
  • Do not fix the code unless the user also asks for implementation.
  • Prefer evidence from the diff, surrounding code, and tests over intuition.
  • Keep overviews short. The review should center on actionable findings, not retelling the patch.

Evidence Standards

  • Read enough surrounding code to confirm whether a suspicious diff is actually wrong.
  • Check call sites, data flow, and tests before claiming a regression.
  • Distinguish confirmed findings from open questions.
  • When uncertain, lower confidence and phrase it as an assumption or question instead of a hard finding.

Example Triggers

This skill should trigger for requests such as:

  • review this
  • help me to review the last commit
  • code review
  • review this diff
  • check this PR for bugs
  • look for regressions

Non-Goals

  • Full style or lint review unless explicitly requested
  • Large-scale redesign proposals unless needed to explain a concrete issue
  • Silent implementation of fixes during a review-only request

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.