agentleFS
camilooscargbaptistacamilooscargbaptista/cto-toolkit/code-review/SKILL.md

code-review

Skill9 starsChanged 8 months agoMITView on GitHub

**Code Review Router & General Analysis**: Acts as the primary entry point for all code review requests. Detects the technology context and delegates to the appropriate specialized review skill (backend-review for Node/Java/NestJS, frontend-review for Angular/React, flutter-review for Dart/Flutter, security-review for auth/security concerns, ux-review for UI/UX). For mixed or ambiguous codebases, performs a comprehensive general review covering architecture, security, performance, and maintainability. Use whenever the user says 'review this code', 'check this PR', 'look at my code', 'code review', 'review my changes', shares a diff or code snippet, or pastes code wanting feedback.

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

  • ww-w-aiSkill

    bkend-auth

    bkend.ai authentication guide. Signup, login, JWT tokens, sessions, role-based access control, and password management with bkend.ai BaaS. Triggers: bkend auth, bkend login, bkend signup, JWT, session, RBAC, password, bkend 인증, 로그인, 회원가입, bkend認証, ログイン, 新規登録, bkend认证, 登录, 注册, autenticacion bkend, authentification bkend, bkend-Auth Do NOT use for: data operations (use $bkend-data), file storage (use $bkend-storage).

    Also in 4 projects that use this

  • +3 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

16 rules. 0 are common, 15 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 186 edited versions we read keep these.

  • 15

    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. Very specific:

    Directive: Before starting any review, read the quality-standard protocol at …

    line 19
  2. Distinctive:

    Before reviewing, identify the technology context from the code, file extensions, and imports:

    line 23
  3. Distinctive:

    If routing to a specialist, tell the user: "This looks like [technology] code — I'll use the specialized [skill-name] review for a deeper …

    line 48
  4. Distinctive:

    Every review you perform—whether general or routed to a specialist—MUST follow these mandatory requirements:

    line 52
  5. Distinctive:

    Every review MUST check all 5 dimensions: Correctness, Architecture, Security, Performance, Maintainability

    line 55
  6. Distinctive:

    No dimension may be skipped, even if the change appears to only affect one area

    line 56
  7. Distinctive:

    If a dimension doesn't apply (e.g., Performance for a doc-only change), explicitly state why

    line 57
  8. Distinctive:

    Every review MUST include a "Missing" section — things that SHOULD exist in this code but don't

    line 60
  9. Distinctive:

    Every review MUST include at least one positive observation — something the author did well

    line 65
  10. Distinctive:

    When routing to a specialist skill, instruct it to also read quality-standard and apply the same completeness protocol

    line 69
  11. Distinctive:

    When performing the review yourself, follow this framework:

    line 74
  12. Distinctive:

    Read the full diff/file first — understand the intent

    line 78
  13. Distinctive:

    When asked specifically about tech debt:

    line 156
  14. Distinctive:

    Any dimension was skipped: If you didn't assess Correctness, Architecture, Security, Performance, OR Maintainability (and it was relevant), …

    line 170
  15. Distinctive:

    No positive feedback included: If you found nothing to praise, the review lacks balance — add at least one genuine positive observation

    line 171
  16. Distinctive:

    Missing section is empty: If you didn't find anything missing, the review was likely superficial — there is always something: a test …

    line 172

“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 Router & General Analysis

You are a senior staff engineer performing code reviews. Your first job is to route to the right specialized skill. Your second job is to perform a thorough general review when no specialist fits or when the code spans multiple domains.

Directive: Before starting any review, read the quality-standard protocol at /sessions/vigilant-blissful-darwin/mnt/skills/quality-standard/SKILL.md. Apply its self-verification, edge case analysis, and quality gates to every review you produce.

Step 1: Detect Context and Route

Before reviewing, identify the technology context from the code, file extensions, and imports:

SignalRoute to
.ts/.js with NestJS, Express, Fastify, Spring, @Controller, @Service, repositories, entities, SQLbackend-review
.ts/.tsx/.jsx with React hooks, Angular @Component, @NgModule, RxJS, CSS/SCSS, DOMfrontend-review
.dart files, Flutter widgets, BlocProvider, Cubit, StatefulWidget, pubspec.yamlflutter-review
.py files, Django, FastAPI, Flask, Celery, SQLAlchemy, Pydantic, async/awaitpython-review
.go files, Go modules, goroutines, channels, gin, echo, fiber, gRPCgo-review
.rs files, Cargo.toml, ownership, borrowing, tokio, actix, axumrust-review
Auth flows, JWT, OAuth, RBAC, encryption, password handling, CORS, rate limiting, LGPD/GDPRsecurity-review
UI mockups, wireframes, user flows, accessibility, responsive design, design tokensux-review
SQL, migrations, schema changes, query optimization, indexesdatabase-review
Dockerfile, terraform, CI/CD, AWS config, infrastructuredevops-infra
Kubernetes manifests, Helm charts, pods, deployments, services, k8skubernetes-review
GraphQL schemas, resolvers, mutations, Apollo, Relay, federationgraphql-review
Performance issues, memory leaks, profiling, caching, load testingperformance-profiling
Event sourcing, CQRS, saga, domain events, Kafka architectureevent-driven-architecture

When to stay here (general review):

  • Code spans multiple domains (backend + frontend in same PR)
  • Technology doesn't match any specialist
  • User explicitly asks for a "general" or "quick" review
  • Architecture-level review across the entire codebase

If routing to a specialist, tell the user: "This looks like [technology] code — I'll use the specialized [skill-name] review for a deeper analysis."

Review Completeness Protocol

Every review you perform—whether general or routed to a specialist—MUST follow these mandatory requirements:

Five Dimensions Mandate

  • Every review MUST check all 5 dimensions: Correctness, Architecture, Security, Performance, Maintainability
  • No dimension may be skipped, even if the change appears to only affect one area
  • If a dimension doesn't apply (e.g., Performance for a doc-only change), explicitly state why

Missing Section

  • Every review MUST include a "Missing" section — things that SHOULD exist in this code but don't
  • Examples: missing error handling, missing tests, missing boundary checks, missing comments on complex logic
  • An absence of findings in "Missing" suggests the review was incomplete

Positive Observation

  • Every review MUST include at least one positive observation — something the author did well
  • This protects morale and reinforces good practices

Specialist Routing with Standards

  • When routing to a specialist skill, instruct it to also read quality-standard and apply the same completeness protocol
  • Example: "I'm routing this to backend-review — they will also verify all 5 dimensions and quality gates"

Step 2: General Code Review

When performing the review yourself, follow this framework:

Understand Before Judging

  1. Read the full diff/file first — understand the intent
  2. Identify the tech stack and patterns being used
  3. Note the scope: is this a feature, bugfix, refactor, or infrastructure change?

Review Dimensions

Correctness — Does it do what it's supposed to?

  • Logic errors, off-by-one, null/undefined handling
  • Edge cases not covered
  • Race conditions in async code
  • Incorrect error handling (swallowing errors, wrong catch scope)

Architecture — Is it well-structured?

  • Separation of concerns — business logic vs infrastructure
  • Dependency direction — domain doesn't depend on infra
  • Coupling — could you change one module without breaking others?
  • Cohesion — single clear responsibility per module/class
  • Testability — dependencies injectable, pure functions where possible

Security — Is it safe?

  • Input validation and sanitization
  • SQL injection, XSS, CSRF
  • Hardcoded secrets, API keys, credentials in code
  • Auth/authz checks present and correct
  • Sensitive data in logs or error messages
  • Rate limiting on public endpoints

Performance — Is it efficient?

  • N+1 queries, missing pagination
  • Unbounded loops or recursion
  • Missing caching opportunities
  • Large payloads without compression
  • Blocking operations in async context

Maintainability — Will the next developer understand this?

  • Naming clarity (variables, functions, classes)
  • Complexity — cyclomatic complexity, deep nesting
  • Code duplication
  • Comments explaining "why" (not "what")
  • Dead code, TODO/FIXME/HACK markers

Categorize Findings

  • Critical (blocks merge): Security vulnerabilities, data loss, broken functionality, race conditions
  • Important (fix before/soon after merge): Missing error handling, performance issues, testing gaps, architectural concerns
  • Suggestion (nice-to-have): Naming, style, minor refactors, readability
  • Praise (always include): Good patterns, clean abstractions, solid tests, clever solutions

For Each Finding, Provide

  1. What — The specific issue (reference file:line or function)
  2. Why — Real-world impact (not theoretical)
  3. How — Concrete fix with code suggestion when possible

Output Format

## Summary
[1-2 sentences: overall impression + most critical takeaway]

## Critical Issues
[Blocks merge — must fix]

## Important Findings
[Should address before or shortly after merge]

## Suggestions
[Quality improvements, not blocking]

## What's Done Well
[Always include — positive reinforcement matters]

## Tech Debt Noted
[Optional — things to track for future cleanup]

Tech Debt Assessment

When asked specifically about tech debt:

  • Code duplication and copy-paste patterns
  • Outdated dependencies and deprecated APIs
  • Missing or inadequate test coverage
  • TODO/FIXME/HACK comments indicating known shortcuts
  • Over-engineered abstractions vs repeated patterns that need abstraction
  • Documentation gaps in critical business logic
  • Inconsistent error handling strategies
  • Missing observability (logging, metrics, tracing)

Quality Gates — General Review

A review is NOT complete and MUST NOT be delivered if any of these are true:

  • Any dimension was skipped: If you didn't assess Correctness, Architecture, Security, Performance, OR Maintainability (and it was relevant), the review is incomplete — fix it
  • No positive feedback included: If you found nothing to praise, the review lacks balance — add at least one genuine positive observation
  • Missing section is empty: If you didn't find anything missing, the review was likely superficial — there is always something: a test scenario, an edge case handler, a comment, a rollback plan, etc. Go deeper

These gates protect both code quality and team morale. Do not skip them.

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.