Index of every page on this site: llms.txt
All skills
sylphai-inc avatar

/code-review

@9010d9a
by AdaLsylphai-inc/atskills87 stars
6
Run it yourself

Perform a thorough, structured code review of a diff or pull request

  • 1 file
  • 3.2 KB
  • Updated 4 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/sylphai-inc/atskills/code-review

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈20 tokens for metadata: the name and description. ≈771 when used: this file.

Description uses 1.0% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈82 characters, or 1.0%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Code Review Workflow

Review the given diff, pull request, or set of changed files as a careful senior engineer would — looking for correctness, safety, and maintainability issues, not just style nits.

Steps

  1. Understand intent first. Read the PR description / commit messages / linked issue before reading the diff line-by-line. Know what problem the change is supposed to solve before judging whether it solves it.

  2. Trace the change end-to-end. For each modified function/module, identify every caller and every downstream consumer of its output. A change that looks correct in isolation can still break a caller that assumed the old behavior.

  3. Check correctness before style. In priority order:

    • Logic errors — off-by-one, incorrect conditionals, wrong operator, inverted boolean logic.
    • Error handling — are error/exception paths handled, or silently swallowed? Are edge cases (empty input, null/None, zero, max values) covered?
    • Concurrency/state — race conditions, shared mutable state, missing locks/transactions where needed.
    • Security — unsanitized input reaching a query/shell/template, secrets in code, missing auth checks on new endpoints.
    • Resource handling — unclosed files/connections, unbounded loops/memory growth, missing timeouts.
  4. Check test coverage. Does the diff include tests for the new/changed behavior? Do the tests actually exercise the changed logic, or do they just assert trivial properties (tautological tests)? Are edge cases from step 3 covered?

  5. Check for duplication and reuse. Does this diff reimplement something that already exists elsewhere in the codebase (a date formatter, a retry helper, an API client)? Prefer reusing/extending existing utilities over introducing parallel implementations.

  6. Check the blast radius. Is the change scoped to what the task requires, or does it touch unrelated files/formatting/comments? Flag unrelated changes explicitly — they hide the real diff and increase review risk.

  7. Only then, style and readability. Naming, comments, consistency with surrounding code conventions. Note these, but don't let them dominate the review — they're the last priority, not the first.

  8. Write the review as specific, actionable comments. For each issue found:

    • Point to the exact file/line.
    • State what's wrong (not just "this looks off") and why it matters (what could break, and under what condition).
    • Suggest a concrete fix or ask a clarifying question if intent is genuinely ambiguous.
    • Distinguish blocking issues ("must fix before merge") from non-blocking suggestions ("consider," "nit:").

Output Format

Summarize as:

  1. TL;DR — does this change look safe to merge, with or without required fixes?
  2. Blocking issues — must be resolved before merge, with file/line references.
  3. Non-blocking suggestions — nice-to-haves, style, minor improvements.
  4. Questions — anything genuinely ambiguous that needs the author's input before you can finish the review.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 9010d9a. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 4 months ago
author
sylphai-inc
version
1.0.0
tags
[
  "review",
  "quality"
]

README badge

README badge for sylphai-inc/atskills/code-review