code-review-patterns

Multi-dimensional code assessment across security, quality, performance, and maintainability with confidence-gated reporting (>=80%) and Router Contract generation.

509 stars

Best use case

code-review-patterns is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Multi-dimensional code assessment across security, quality, performance, and maintainability with confidence-gated reporting (>=80%) and Router Contract generation.

Teams using code-review-patterns should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/code-review-patterns/SKILL.md --create-dirs "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/methodologies/cc10x/skills/code-review-patterns/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/code-review-patterns/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How code-review-patterns Compares

Feature / Agentcode-review-patternsStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Multi-dimensional code assessment across security, quality, performance, and maintainability with confidence-gated reporting (>=80%) and Router Contract generation.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Code Review Patterns

## Overview

Structured patterns for multi-dimensional code review with strict confidence gating. Only issues with >=80% confidence are reported. Zero tolerance for empty catch blocks.

## Four Dimensions

### Security (weight: 30%)
- Injection vulnerabilities (SQL, XSS, command)
- Authentication and authorization patterns
- Secrets handling (no hardcoded credentials)
- Input validation and sanitization

### Quality (weight: 25%)
- Naming conventions and consistency
- Code structure (SRP, cohesion, coupling)
- Error handling completeness
- Type safety (no `any` escapes)

### Performance (weight: 20%)
- Algorithmic complexity (flag O(n^2) or worse)
- Resource and memory leaks
- Database query efficiency (N+1)
- Caching opportunities

### Maintainability (weight: 25%)
- Documentation (JSDoc/TSDoc for public APIs)
- Test coverage adequacy
- Readability (function length, nesting depth)
- Tech debt markers (TODO, FIXME)

## Confidence Gating

- Only report issues with confidence >= 80%
- Empty catch blocks are always critical (100% confidence)
- Classify: critical, high, medium, low
- Include actionable remediation for each issue

## Router Contract

Every review must produce: STATUS, BLOCKING, REQUIRES_REMEDIATION, issue counts.

## When to Use

- Code review step in BUILD workflow
- Fix review in DEBUG workflow
- Full REVIEW workflow

## Agents Used

- `code-reviewer` (primary consumer)
- `silent-failure-hunter` (error handling dimension)

Related Skills

parallel-patterns

509
from a5c-ai/babysitter

GPU parallel algorithm design patterns and implementations. Implement parallel reduction, scan/prefix sum, histogram, parallel sort algorithms, stream compaction, and work-efficient patterns optimized for specific GPU architectures.

systematic-review

509
from a5c-ai/babysitter

Conduct comprehensive literature searches, quality assessments, evidence synthesis, and meta-analyses

quality-assurance-review

509
from a5c-ai/babysitter

Conduct systematic quality reviews of instructional materials using established rubrics (Quality Matters) and design standards

peer-review-simulator

509
from a5c-ai/babysitter

Skill for simulating peer review feedback on manuscripts

dfm-review

509
from a5c-ai/babysitter

Skill for design for manufacturing review and optimization

design-review

509
from a5c-ai/babysitter

Skill for formal design review preparation and execution (PDR/CDR)

design-review-facilitator

509
from a5c-ai/babysitter

Design review planning and execution skill for structured design phase gate reviews per 21 CFR 820.30

clinical-literature-reviewer

509
from a5c-ai/babysitter

Systematic literature review skill for clinical evaluation supporting regulatory submissions

performance-review

509
from a5c-ai/babysitter

Generate performance review documentation and facilitate evaluation processes

requesting-code-review

509
from a5c-ai/babysitter

Use when completing tasks, implementing major features, or before merging to verify work meets requirements.

receiving-code-review

509
from a5c-ai/babysitter

Use when receiving code review feedback, before implementing suggestions. Requires technical rigor and verification, not blind implementation.

security-review

509
from a5c-ai/babysitter

Security vulnerability assessment identifying OWASP risks, injection vectors, authentication issues, and data exposure with severity classification.