software-code-review

Patterns, checklists, and templates for systematic code review with a focus on correctness, security, readability, performance, and maintainability.

$ 安裝

git clone https://github.com/vasilyu1983/AI-Agents-public /tmp/AI-Agents-public && cp -r /tmp/AI-Agents-public/frameworks/claude-code-kit/framework/skills/software-code-review ~/.claude/skills/AI-Agents-public

// tip: Run this command in your terminal to install the skill


name: software-code-review description: Patterns, checklists, and templates for systematic code review with a focus on correctness, security, readability, performance, and maintainability.

Code Reviewing Skill — Quick Reference

This skill provides operational checklists and prompts for structured code review across languages and stacks. Use it when the primary task is reviewing existing code rather than designing new systems.


Quick Reference

Review TypeFocus AreasKey ChecklistWhen to Use
Security ReviewAuth, input validation, secrets, OWASP Top 10software-security-appsecSecurity-critical code, API endpoints
Performance ReviewN+1 queries, algorithms, caching, hot pathsDB queries, loops, memory allocationHigh-traffic features, bottlenecks
Correctness ReviewLogic, edge cases, error handling, testsBoundary conditions, null checks, retriesBusiness logic, data transformations
Maintainability ReviewNaming, complexity, duplication, readabilityFunction length, naming clarity, DRYComplex modules, shared code
Test ReviewCoverage, edge cases, flakiness, assertionsTest quality, missing scenariosNew features, refactors
Frontend ReviewAccessibility, responsive design, performancefrontend-review.mdUI/UX changes
Backend ReviewAPI design, error handling, database patternsapi-review.mdAPI endpoints, services
Blockchain ReviewReentrancy, access control, gas optimizationcrypto-review.mdSmart contracts, DeFi protocols

.NET/EF Core Crypto Integration

For C#/.NET crypto/fintech services using Entity Framework Core, see:

Key rules summary:

  • Review only new/modified code in the MR
  • Use decimal for financial values, UTC for dates
  • No secrets in code, no sensitive data in logs
  • Async for I/O, pass CancellationToken, no .Result/.Wait()
  • EF Core: AsNoTracking for reads, avoid N+1, no dynamic SQL
  • Result<T> pattern for explicit success/fail

When to Use This Skill

Invoke this skill when the user asks to:

  • Review a pull request or diff for issues
  • Audit code for security vulnerabilities or injection risks
  • Improve readability, structure, and maintainability
  • Suggest targeted refactors without changing behavior
  • Validate tests and edge-case coverage

Decision Tree: Selecting Review Mode

Code review task: [What to Focus On?]
    ├─ Security-critical changes?
    │   ├─ Auth/access control → Security Review (OWASP, auth patterns)
    │   ├─ User input handling → Input validation, XSS, SQL injection
    │   └─ Smart contracts → Blockchain Review (reentrancy, access control)
    │
    ├─ Performance concerns?
    │   ├─ Database queries → Check for N+1, missing indexes
    │   ├─ Loops/algorithms → Complexity analysis, caching
    │   └─ API response times → Profiling, lazy loading
    │
    ├─ Correctness issues?
    │   ├─ Business logic → Edge cases, error handling, tests
    │   ├─ Data transformations → Boundary conditions, null checks
    │   └─ Integration points → Retry logic, timeouts, fallbacks
    │
    ├─ Maintainability problems?
    │   ├─ Complex code → Naming, function length, duplication
    │   ├─ Hard to understand → Comments, abstractions, clarity
    │   └─ Technical debt → Refactoring suggestions
    │
    ├─ Test coverage gaps?
    │   ├─ New features → Happy path + error cases
    │   ├─ Refactors → Regression tests
    │   └─ Bug fixes → Reproduction tests
    │
    └─ Stack-specific review?
        ├─ Frontend → [frontend-review.md](templates/web-frontend/frontend-review.md)
        ├─ Backend → [api-review.md](templates/backend-api/api-review.md)
        ├─ Mobile → [mobile-review.md](templates/mobile/mobile-review.md)
        ├─ Infrastructure → [infrastructure-review.md](templates/infrastructure/infrastructure-review.md)
        └─ Blockchain → [crypto-review.md](templates/blockchain/crypto-review.md)

Multi-Mode Reviews:

For complex PRs, apply multiple review modes sequentially:

  1. Security first (P0/P1 issues)
  2. Correctness (logic, edge cases)
  3. Performance (if applicable)
  4. Maintainability (P2/P3 suggestions)

Simplicity and Complexity Control

  • Prefer existing, battle-tested libraries over bespoke implementations when behavior is identical.
  • Flag avoidable complexity early: remove dead/commented-out code, collapse duplication, and extract single-responsibility helpers.
  • Call out premature optimization; favor clarity and measured, evidence-based tuning.
  • Encourage incremental refactors alongside reviews to keep modules small, predictable, and aligned to standards.

Operational Playbooks

Shared Foundation

Code Review Specific

Navigation

Resources

Templates

Data

Repository

vasilyu1983
vasilyu1983
Author
vasilyu1983/AI-Agents-public/frameworks/claude-code-kit/framework/skills/software-code-review
21
Stars
6
Forks
Updated4d ago
Added6d ago