agentleFS
pvnarppvnarp/agent-skills/skills/review/SKILL.md

review

Skill1 starsChanged 9 months agoMITView on GitHub

Reviews code for correctness, performance, security, efficiency, and maintainability. Multi-pass review covering architecture, bugs, security holes, performance traps, code cleanliness, and test quality. Use when reviewing code changes, pull requests, or when the user asks for a code review.

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use cso, plan-devex-review 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.
  • ayudaySkill

    cso

    Chief Security Officer mode. Performs OWASP Top 10 audit, STRIDE threat modeling, attack surface analysis, auth flow verification, secret detection, dependency CVE scanning, supply chain risk assessment, and data classification review. Use when: "security audit", "threat model", "pentest review", "OWASP", "CSO review".

    Also in 11 projects that use this

  • seek888Skill

    plan-devex-review

    Interactive developer experience plan review. Explores developer personas, benchmarks against competitors, designs magical moments, and traces friction points before scoring. Three modes: DX EXPANSION (competitive advantage), DX POLISH (bulletproof every touchpoint), DX TRIAGE (critical gaps only). Use when asked to "DX review", "developer experience audit", "devex review", or "API design review". Proactively suggest when the user has a plan for developer-facing products (APIs, CLIs, SDKs, libraries, platforms, docs). (gstack) Voice triggers (speech-to-text aliases): "dx review", "developer experience review", "devex review", "devex audit", "API design review", "onboarding review".

    Also in 9 projects that use this

  • seek888Skill

    open-gstack-browser

    Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".

    Also in 5 projects that use this

  • ayudaySkill

    setup-deploy

    Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".

    Also in 11 projects that use this

  • Kit4SomeSkill

    unfreeze

    Also in 12 projects that use this

  • AICreator-WindSkill

    design-consultation

    设计合作伙伴工具。构建完整设计系统,提供专业设计建议。

    Also in 12 projects that use this

  • +1 more from seek888

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 167 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:

    Run through each pass in order.

    line 12
  2. Distinctive:

    Understand intent: - Read the PR description / commit message first.

    line 16
  3. Distinctive:

    Architecture: - Do the structural changes make sense?

    line 17
  4. Distinctive:

    Secrets: No hardcoded passwords, API keys, or tokens.

    line 33
  5. Distinctive:

    Deserialization: No unsafe deserialization of untrusted data (pickle, Java serialization, eval).

    line 36
  6. Distinctive:

    Test readability: Test names describe the scenario and expected outcome.

    line 70

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

Review every changed file. Focus on what matters: bugs, security holes, performance traps, efficiency, and maintainability. Skip trivia.

Review Passes

Run through each pass in order. Each pass builds on context from the previous one.

Pass 1: Intent and Architecture

  1. Understand intent - Read the PR description / commit message first. What problem is being solved?
  2. Architecture - Do the structural changes make sense? Right files, right layers, right abstractions?
  3. Scope - Does the change do what it claims and nothing more? Flag scope creep or unrelated changes bundled in.

Pass 2: Correctness

  • Edge cases: Null/empty inputs, boundary values, overflow, off-by-one, empty collections, concurrent access.
  • Error handling: Are errors caught, logged, and handled? No swallowed exceptions. Errors propagated to callers who can act on them. Error messages are actionable, not generic.
  • Concurrency: Race conditions, deadlocks, shared mutable state without synchronization. Check: is this accessed from multiple threads?
  • State management: State modified in expected places only. No unintended side effects. State transitions are valid.
  • Type safety: Are types used to prevent invalid states? Could a stronger type eliminate a class of bugs?
  • Contract violations: Does the code honor the contracts of what it calls and what calls it? Return value expectations, preconditions, postconditions.

Pass 3: Security

  • Input validation: User input sanitized at the boundary? SQL injection, XSS, command injection, path traversal risks.
  • Authentication/authorization: Access controls checked before every protected operation. No "confused deputy" problems.
  • Secrets: No hardcoded passwords, API keys, or tokens. No secrets in logs. Secrets loaded from env/vault only.
  • Dependencies: New dependencies from trusted sources? Known CVEs? Minimal scope (don't add a 50KB lib for one function).
  • Data exposure: API responses not leaking internal IDs, stack traces, or data the caller shouldn't see.
  • Deserialization: No unsafe deserialization of untrusted data (pickle, Java serialization, eval).

For a full security audit, use /security-audit. Reference: reference/security-checklist.md

Pass 4: Performance and Efficiency

  • Hot paths: Frequently-called functions free of unnecessary allocations, I/O, or blocking calls.
  • Algorithmic complexity: Flag O(n^2) or worse where O(n) or O(n log n) is achievable. Watch nested loops over collections.
  • Database: N+1 queries? Missing indexes for new query patterns? Unbounded result sets?
  • Resource management: Connections, file handles, streams properly closed? Timeouts set on external calls?
  • Caching: Expensive computations cached where appropriate? Caches invalidated correctly? Cache stampede possible?
  • Redundant work: Same computation done multiple times? Data fetched but never used? Unnecessary serialization/deserialization cycles?
  • Memory efficiency: Large objects copied when a reference would do? Unbounded buffers or collections that grow without limits?
  • Lazy vs eager: Is work being done upfront that could be deferred? Are large datasets loaded into memory when streaming would work?

For a deep performance audit, use /perf. Reference: reference/performance-patterns.md

Pass 5: Code Cleanliness

  • Dead code: Unused imports, unreachable branches, commented-out code, unused variables/functions. Remove it, don't leave it.
  • DRY violations: Same logic copy-pasted in multiple places? Extract only when there are 3+ copies and they change together - don't prematurely abstract.
  • Naming: Variables, functions, classes named for what they represent/do? Consistent naming scheme within the file and project? No misleading names.
  • Function size and complexity: Functions doing too many things? Deeply nested conditionals? High cyclomatic complexity? Can logic be simplified?
  • Consistent style: Follows the patterns already established in the codebase - not what you'd prefer, but what's already there.
  • Magic values: Unexplained numbers, strings, or config values inline? Should they be named constants?
  • Logging and observability: Key operations logged? Log levels appropriate? Enough context to debug issues in production without exposing sensitive data?

Reference: reference/code-cleanliness.md

Pass 6: Test Quality

  • Coverage: New behavior has tests. Changed behavior has updated tests. Deleted behavior has deleted tests.
  • Test behavior, not implementation: Tests verify outcomes, not internal mechanics. Refactoring shouldn't break tests.
  • Edge case coverage: Tests cover the happy path AND error paths, boundary values, empty inputs.
  • Test readability: Test names describe the scenario and expected outcome. Arrange-Act-Assert structure.
  • Flakiness risk: Time-dependent tests? Tests that depend on execution order? Network calls in unit tests?
  • Mocking discipline: Mocks used only at boundaries (external services, I/O). Over-mocking hides integration bugs.

What NOT to Flag

  • Style preferences not established in the project - defer to linter/formatter.
  • Missing docs on self-documenting code.
  • "I would have done it differently" when the approach is valid.
  • Patterns that add complexity without solving a current problem.
  • Nits on code you didn't change (unless it's a bug).

Utility Scripts

  • scripts/complexity_check.sh [dir] - Find long functions (50+ lines), deep nesting (4+ levels), files with many functions (10+), and long parameter lists (5+ params).

Output Format

Group findings by severity. For each finding: file, line, what's wrong, concrete fix.

### CRITICAL (must fix before merge)
- `file.ts:42` - SQL injection via unsanitized `userId` param. Use parameterized query.

### WARNING (should fix, potential issue)
- `service.py:108` - N+1 query in loop. Prefetch related objects or batch the query.

### EFFICIENCY (performance/resource concern)
- `handler.go:30` - Allocating a new map on every request. Move to a sync.Pool or pre-allocate.

### CLEANLINESS (code quality)
- `utils.js:15` - `processData` duplicates logic from `transformInput` at line 88. Extract shared logic.

### SUGGESTION (take or leave)
- `handler.go:55` - `processItems` could return early on empty input to avoid unnecessary setup.

If everything looks good, say so. A clean review is a valid outcome - don't invent issues to justify the review.

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.