agentleFS
arumaekawaarumaekawa/codex-skills/skills/review-code/SKILL.md

review-code

Skill4 starsChanged 5 months agoMITView on GitHub

Review code changes, including research and development code, for simplicity and readability, consistency, and correctness. Report questions about intent, required fixes, and optional improvements.

78 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use review-deps, audit-test-suite 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.
  • ba0918Skill

    review-deps

    A focused read-only review that treats manifests, lockfiles, and dependency diffs as first-class input and evaluates known vulnerabilities and supply chain signals. Use when the user says "review the dependencies", "look at the dependency vulnerabilities", "check the lockfile", "supply chain risk", "organize the npm audit output", "detect typosquats", "dependency health", or "review-deps". Its subject is the health of the dependencies, not test quality or code quality.

    Also in 4 projects that use this

  • yaohuangguanSkill

    audit-test-suite

    Find where an existing test suite is weak and decide what to test next, ranked by risk. Use this when asked to add missing tests, find gaps, raise coverage, assess test quality or see which areas are thin, even if the request only mentions a coverage percentage.

    Also in 3 projects that use this

  • yaohuangguanSkill

    change-data-safely

    Change a database schema or stored data without breaking running code or losing data. Use this for any migration, new or changed column, backfill, bulk update, delete, index, or change to a stored format, including in small projects. Data mistakes are often impossible to undo.

    Also in 3 projects that use this

  • mrdulasolutionsSkill

    clear-caches

    Clear extension caches, analysis data, and drafts from the database. Use when testing sender lookups, analysis, or draft generation from a clean state.

    Also in 3 projects that use this

  • GeiserXSkill

    docs-loop

    Use when the user asks to audit docs, check documentation for stale claims, or verify docs against the code.

    Also in 3 projects that use this

  • mrdulasolutionsSkill

    electron-devtools-testing

    Test the Electron app interactively using Chrome DevTools Protocol. Use when the user asks to test, verify, or interact with the running app via browser automation.

    Also in 3 projects that use this

  • +1 more from mrdulasolutions
  • +1 more from yaohuangguan

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 68 edited versions we read keep these.

  • 6

    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:

    List the changes: Read the request and the diff in scope.

    line 8
  2. Distinctive:

    If the change strengthens reproducibility beyond the existing implementation, does the experiment need that stronger guarantee?

    line 17
  3. Distinctive:

    Do the code and operating procedures follow established repository conventions?

    line 23
  4. Distinctive:

    Do existing paths still work?

    line 30
  5. Distinctive:

    Do the tests cover the intended behavior and the existing behavior the change could break?

    line 31
  6. Distinctive:

    Recommended change: Call the existing function with the validation split so filename conventions can be updated in one place.

    line 68

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

  1. List the changes. Read the request and the diff in scope. Write one short bullet per substantive change, starting with a descriptive title. Include its purpose or effect when it helps explain the change.
  2. Review from three perspectives. Identify potential problems, points where the author's intent needs clarification, and opportunities to improve or simplify the code. Inspect existing code, callers, and tests as needed to support your judgment.

    Simplicity and readability

    • Can a reader quickly follow the main flow?
    • Is the implementation straightforward for what the change needs to accomplish?
    • Is each validation check and fallback necessary for a supported use case or a realistic failure?
    • If the change strengthens reproducibility beyond the existing implementation, does the experiment need that stronger guarantee? Is it worth the extra code or processing?
    • Does the implementation use standard patterns and library APIs that fit the repository's style?
    • What dependencies or constraints does the change add? Are they justified?

    Consistency

    • Do the code and operating procedures follow established repository conventions? Do routine tasks require extra settings or steps, and are they justified?
    • Could reorganizing an existing path handle the new case without adding a special branch?
    • Can the same structure accommodate foreseeable additions, such as another experiment setting or evaluation method?

    Correctness

    • Is the intent clear, and does the implementation match it?
    • Do existing paths still work? Do added constraints narrow the inputs, settings, or environments they previously supported?
    • Do the tests cover the intended behavior and the existing behavior the change could break?
    • Are any tests or verification steps redundant, or do they cover scenarios beyond realistic use?
  3. Consider how to address each candidate. Check its evidence and impact, then assess possible responses using the same three perspectives. Choose a response proportionate to the problem and account for any added implementation or operational burden. If your judgment depends on the author's intent, formulate a specific question.

    Request additional handling or verification only for an explicit requirement, behavior existing callers rely on, or a realistic experiment workflow. Identify when the issue could occur and what it would affect. Omit findings based solely on hypothetical inputs, configurations, or environments. Distinguish confirmed problems from material verification gaps.

  4. Report the change summary and review results. Begin with the summary from step 1, even if there are no findings. Drop disproportionate findings and group the rest under Review results. Give each finding a priority from P0 (most urgent) to P3 (lowest priority) based on its impact and urgency, alongside its location and rationale. List higher-priority findings first within each group.

    • Change summary. List the changes from step 1 as bullets.
    • Review results.
      • Clarify intent. State what you need to ask the author and how the answer would affect your judgment.
      • Required fix. Describe when the issue occurs and what it affects. Describe the fix in a separate Recommended change item.
      • Suggested improvement. Describe the limitation in the current implementation. Describe the optional change and its benefit in a separate Recommended change item.

Example review report

Change summary

  • Validation-split evaluation. Adds a mode for comparing checkpoints before evaluating on the test set.
  • Metric aggregation. Computes the reported loss as the mean of batch means.
  • Deterministic GPU default. Enables deterministic GPU execution for all evaluation runs.

Review results

Clarify intent

  • [P2] eval/config.py:24 — Does checkpoint selection require identical scores across repeated runs with the same setup? If only selected experiments need deterministic execution, an explicit option could avoid the runtime cost on routine runs.

Required fix

  • [P1] eval/metrics.py:58 — The evaluator averages batch means equally, although the metric is defined as a mean over samples. For batches with losses [0, 0] and [3], it returns 1.5 where the expected mean is 1.0.
    • Recommended change. Sum the per-sample losses and divide by the sample count. Use unequal batch sizes in the regression test.

Suggested improvement

  • [P3] eval/validation.py:41 — The new mode repeats the filename formatting already handled by result_path() in eval/outputs.py. A naming change would require edits in both places.
    • Recommended change. Call the existing function with the validation split so filename conventions can be updated in one place.

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.