スキル一覧に戻る
vasilyu1983

software-code-review

by vasilyu1983

25🍴 6📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


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

Specialized: .NET/EF Core Crypto Integration

Skip unless reviewing C#/.NET crypto/fintech services using Entity Framework Core.

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
  • Follow CC-SEC-03 (no secrets in code) and CC-OBS-02 (no sensitive data in logs)
  • Async for I/O, pass CancellationToken, avoid .Result/.Wait() (see CC-ERR-04, CC-FLOW-03)
  • 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](assets/web-frontend/frontend-review.md)
        ├─ Backend → [api-review.md](assets/backend-api/api-review.md)
        ├─ Mobile → [mobile-review.md](assets/mobile/mobile-review.md)
        ├─ Infrastructure → [infrastructure-review.md](assets/infrastructure/infrastructure-review.md)
        └─ Blockchain → [crypto-review.md](assets/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)

Async Review Workflows (Dec 2025)

Timezone-Friendly Reviews

PracticeImplementation
Review windowsDefine 4-hour overlap windows
Review rotationAssign reviewers across timezones
Async communicationUse PR comments, not DMs
Review SLAs24-hour initial response, 48-hour completion

Non-Blocking Reviews

PR Submitted -> Auto-checks (CI) -> Async Review -> Merge
       |              |               |
  Author continues   If green,    Reviewer comments
  on other work      queue for    when available
                     review

Anti-patterns:

  • Synchronous review meetings for routine PRs
  • Blocking on reviewer availability for non-critical changes
  • Single reviewer bottleneck

Review Prioritization Matrix

PriorityCriteriaSLA
P0Security fix, production incident4 hours
P1Bug fix, blocking dependency24 hours
P2Feature work, tech debt48 hours
P3Documentation, refactoring72 hours

Optional: AI/Automation Extensions

Note: AI-assisted review tools. Human review remains authoritative.

AI Review Assistants

ToolUse CaseLimitation
GitHub Copilot PRSummary, suggestionsMay miss context
CodeRabbitAutomated comments, 46% bug accuracyRequires human validation
QodoTest generation + review, 15+ workflowsEnterprise pricing
OpenAI CodexSystem-level context (Datadog use case)API integration required
AWS Security AgentOWASP Top 10, policy violationsPreview only (2026)
Endor Labs AI SASTBusiness logic, 95% FP reductionSecurity-focused
GraphitePR stacking, stack-aware merge queueProcess, not content

AI assistant rules:

  • AI suggestions are advisory only
  • Human reviewer approves/rejects
  • AI cannot bypass security review
  • AI findings require manual verification

AI Review Checklist

  • AI suggestions validated against codebase patterns
  • AI-flagged issues manually confirmed
  • False positives documented for tool improvement
  • Human reviewer explicitly approved

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

Resources

Templates

Data


Trend Awareness Protocol

IMPORTANT: When users ask recommendation questions about code review tools, practices, or automation, you MUST use WebSearch to check current trends before answering.

Trigger Conditions

  • "What's the best code review tool?"
  • "What should I use for [automated code review/PR automation]?"
  • "What's the latest in code review practices?"
  • "Current best practices for [code review/PR workflow]?"
  • "Is [GitHub Copilot PR/CodeRabbit] still relevant in 2026?"
  • "[CodeRabbit] vs [Graphite] vs [other]?"
  • "Best AI code review assistant?"

Required Searches

  1. Search: "code review best practices 2026"
  2. Search: "[specific tool] vs alternatives 2026"
  3. Search: "AI code review tools January 2026"
  4. Search: "PR automation trends 2026"

What to Report

After searching, provide:

  • Current landscape: What code review tools/practices are popular NOW
  • Emerging trends: New AI assistants, PR tools, or review patterns gaining traction
  • Deprecated/declining: Tools/approaches losing relevance or support
  • Recommendation: Based on fresh data, not just static knowledge
  • AI code review (GitHub Copilot PR, CodeRabbit, Cursor)
  • PR automation (Graphite, Stacked PRs, merge queues)
  • Code review platforms (GitHub, GitLab, Bitbucket)
  • Review bots and automation
  • Async review practices for distributed teams
  • Review metrics and analytics tools

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です