agentleFS
abipalliabipalli/agent-skills/skills/repo-review/SKILL.md

repo-review

Skill1 starsChanged 20 days agoApache-2.0View on GitHub

Whole-repository audit: architecture, correctness, security, concurrency, operations, tests and maintainability, with fixes triaged. Use for \"review this repo\", \"audit this codebase\". For diffs or PRs use deep-code-review.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 13 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 13

    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
  1. Distinctive:

    Use this skill for a deep review of an entire repository, not a single diff.

    line 10
  2. Distinctive:

    Start review-first. Do not edit code during discovery or finding validation unless the user explicitly requested fixes.

    line 16
  3. Distinctive:

    Keep findings compact and actionable.

    line 20
  4. Distinctive:

    Run discovery commands first, preferably in parallel:

    line 25
  5. Distinctive:

    Use references/review-playbook.md when you need the detailed checklist or a worker prompt template.

    line 41
  6. Distinctive:

    Create a lightweight dependency-aware review map before deep reading.

    line 45
  7. Distinctive:

    Prefer a shallow map with many independent nodes.

    line 54
  8. Distinctive:

    Read enough surrounding code to understand the intended invariant.

    line 70
  9. Distinctive:

    Check tests that should catch the issue before filing a finding.

    line 72
  10. Distinctive:

    If parallel subagents are appropriate, give each one a bounded node, relevant files, known dependencies, and the finding quality bar from …

    line 76
  11. Distinctive:

    Leave risky fixes as recommendations unless the user approves the direction.

    line 159
  12. Distinctive:

    Run targeted tests or static checks that match the touched code.

    line 160
  13. Very specific:

    Update REPO_REVIEW.md with what changed, what remains, and any verification gaps.

    line 161
  14. Distinctive:

    When fixing in parallel, split work by disjoint files or modules and make ownership explicit.

    line 163

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

Repo Review

Use this skill for a deep review of an entire repository, not a single diff. The goal is to find real defects and systemic risks, prioritize them, and only change code when the user asked for fixes or clearly wants the review to include remediation.

Prerequisites: git and ripgrep (rg). Parallel node reviews need a subagent tool (such as Claude Code's Agent tool); without one, review the nodes in sequence.

Operating Principles

  • Start review-first. Do not edit code during discovery or finding validation unless the user explicitly requested fixes.
  • Preserve user work. Check git status --short --branch before edits, and do not revert unrelated changes.
  • Favor evidence over breadth theater. Review the meaningful systems, entrypoints, data flows, and risky edges; do not claim every generated, vendored, or mechanical file was deeply reviewed.
  • Calibrate severity by actual impact and reachability. A finding needs a plausible failure mode, affected users or operators, and a concrete fix.
  • Keep findings compact and actionable. Lead with issues, then residual risk and verification.
  • Parallelize independent reads and reviews when available and safe. Use subagents only when the environment permits delegation and the user request allows it.

Fast Start

Run discovery commands first, preferably in parallel:

git status --short --branch
git log --oneline -20
rg --files -g '!**/.git/**' -g '!**/node_modules/**' -g '!**/vendor/**' -g '!**/dist/**' -g '!**/build/**' -g '!**/.next/**'

Then inspect the files that reveal shape and risk:

  • Project manifests and build files: package.json, Cargo.toml, go.mod, pyproject.toml, pom.xml, Makefile, Docker and CI files.
  • Entrypoints and routing: servers, CLIs, workers, cron jobs, API routes, middleware.
  • Trust boundaries: auth, permissions, request parsing, webhooks, file uploads, external integrations.
  • State and persistence: database schema, migrations, ORM models, queues, caches, distributed locks.
  • Tests and observability: critical test suites, logging, metrics, tracing, alerting, runbooks.

Use references/review-playbook.md when you need the detailed checklist or a worker prompt template.

Review Map

Create a lightweight dependency-aware review map before deep reading. Group by reviewable concern, not by individual file.

Each node should include:

  • id: short name such as api-auth, billing-state, or worker-retries
  • files: key files or directories
  • focus: two to five review dimensions
  • depends_on: only true prerequisites, not loosely related areas

Prefer a shallow map with many independent nodes. Useful default nodes are:

  • Architecture and module boundaries
  • Public API, routing, and authz/authn
  • Data model, migrations, and persistence invariants
  • Background jobs, queues, async, and concurrency
  • External integrations, retries, timeouts, and idempotency
  • Configuration, secrets, deployment, and observability
  • Critical tests, fixtures, and coverage gaps

Share the map briefly when the review is large or long-running. For small repositories, keep it internal and move quickly.

Execution

Review high-risk nodes first: public entrypoints, auth, data mutation, async workers, migrations, and external calls. For each node:

  1. Read enough surrounding code to understand the intended invariant.
  2. Trace source-to-sink paths for user input, state changes, permissions, and failures.
  3. Check tests that should catch the issue before filing a finding.
  4. Validate that the finding is reachable in the current architecture.
  5. Record findings with exact file and line references.

If parallel subagents are appropriate, give each one a bounded node, relevant files, known dependencies, and the finding quality bar from the reference playbook. Avoid duplicate reviewers over the same files unless one is doing a distinct specialty pass such as security or concurrency.

Finding Quality Bar

Report a finding only when it meets most of these:

  • It identifies a specific bug, vulnerability, operational risk, or maintainability trap.
  • It explains the impact in concrete terms.
  • It cites exact code locations and the path that makes the issue reachable.
  • It proposes a practical fix or decision needed from a human.
  • It is not merely style, formatting, preference, or a linter concern.

Use this format:

### [Severity] Short Title

- **Location:** `path/to/file.ext:123`
- **Impact:** What can go wrong and who is affected.
- **Evidence:** The code path, invariant violation, exploit path, or operational scenario.
- **Fix:** Minimal practical remediation.

Severity guide:

  • Critical: likely data loss, account compromise, remote code execution, severe auth bypass, or outage trigger.
  • High: reachable security gap, corrupt state, major reliability failure, or broken core workflow.
  • Medium: real bug or operational risk with narrower blast radius or workaround.
  • Low: useful improvement tied to a concrete risk.

Output

For a short review, answer directly with findings first:

## Findings
[ordered by severity]

## Residual Risk
[important areas not fully reviewed or requiring runtime context]

## Verification
[commands run, tests inspected, and anything not run]

For a long review, create or update REPO_REVIEW.md in the repo root unless the user provided another path. Keep it current as nodes finish:

# Repository Review: <repo>

**Status:** In Progress
**Scope:** <what was reviewed>

## Review Map
<nodes and dependencies>

## Findings
<findings ordered by severity, with node attribution>

## Cross-Cutting Assessment
- Systemic patterns
- Trust-boundary posture
- Data-integrity risks
- Operational and observability gaps
- Test coverage gaps

## Remediation Plan
- Confident fixes
- Needs human decision
- Suggested verification

In the final answer, summarize the highest-risk findings, where the full review lives, and what verification was run.

Remediation

Apply fixes only when requested or when the user asked for a review-and-fix workflow.

Before editing:

  1. Re-check git status --short.
  2. Triage findings into confident fix, risky fix, and needs human.
  3. Make the smallest correct changes for confident fixes.
  4. Leave risky fixes as recommendations unless the user approves the direction.
  5. Run targeted tests or static checks that match the touched code.
  6. Update REPO_REVIEW.md with what changed, what remains, and any verification gaps.

When fixing in parallel, split work by disjoint files or modules and make ownership explicit. Never let two workers edit the same file unless one has already finished and the change has been reviewed.

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.