Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

pensive

Code review and analysis toolkit with specialized review skills.

Overview

Pensive provides deep code review capabilities across multiple dimensions: architecture, APIs, bugs, tests, and more. It orchestrates reviews intelligently, selecting the right skills for each codebase.

Installation

/plugin install pensive@claude-night-market

Skills

SkillDescriptionWhen to Use
unified-reviewReview orchestrationStarting reviews (Claude picks tools)
api-reviewAPI surface evaluationReviewing OpenAPI specs, library exports
architecture-reviewArchitecture assessmentChecking ADR alignment, design principles
bug-reviewBug huntingSystematic search for logic errors
rust-reviewRust-specific checkingAuditing unsafe code, borrow patterns
test-reviewTest quality reviewEnsuring tests verify behavior
makefile-reviewMakefile best practicesReviewing Makefile quality
math-reviewMathematical correctnessReviewing mathematical logic
shell-reviewShell script auditingExit codes, portability, safety patterns
fpf-reviewFPF architecture reviewFunctional/Practical/Foundation analysis
safety-critical-patternsNASA Power of 10 rulesRobust, verifiable code with context-appropriate rigor
code-refinementCode quality analysisDuplication, efficiency, clean code violations

Commands

CommandDescription
/full-reviewUnified review with intelligent skill selection
/api-reviewRun API surface review
/architecture-reviewRun architecture assessment
/bug-reviewRun bug hunting
/rust-reviewRun Rust-specific review
/test-reviewRun test quality review
/makefile-reviewRun Makefile review
/math-reviewRun mathematical review
/shell-reviewRun shell script safety review
/fpf-reviewRun FPF architecture review
/skill-reviewAnalyze skill runtime metrics and stability gaps (canonical)
/skill-historyView recent skill executions

Note: For static skill quality analysis (frontmatter, structure), use abstract:skill-auditor instead.

Agents

AgentDescription
code-reviewerExpert code review for bugs, security, quality
architecture-reviewerPrincipal-level architecture specialist
rust-auditorExpert Rust security and safety auditor

Usage Examples

Full Review

/full-review

# Claude will:
# 1. Analyze codebase structure
# 2. Select relevant review skills
# 3. Execute reviews in priority order
# 4. Synthesize findings
# 5. Provide actionable recommendations

Specific Reviews

# Architecture review
/architecture-review

# API review
/api-review

# Bug hunting
/bug-review

# Test quality
/test-review

Manual Skill Invocation

Skill(pensive:architecture-review)

# Checks:
# - ADR compliance
# - Dependency direction
# - Layer violations
# - Design pattern usage

Review Depth

Each review skill operates at multiple levels:

LevelDescriptionTime
QuickHigh-level scan1-2 min
StandardThorough review5-10 min
DeepExhaustive analysis15+ min

Specify depth when invoking:

/architecture-review --depth deep

Review Categories

Architecture Review

  • ADR alignment
  • Dependency analysis
  • Layer boundary violations
  • Pattern consistency
  • Coupling metrics

API Review

  • Endpoint consistency
  • Error response patterns
  • Authentication/authorization
  • Versioning strategy
  • Documentation completeness

Bug Review

  • Logic errors
  • Edge cases
  • Race conditions
  • Resource leaks
  • Error handling gaps

Test Review

  • Coverage gaps
  • Test isolation
  • Assertion quality
  • Mocking patterns
  • Edge case coverage

Rust Review

  • Unsafe code audit
  • Borrow checker patterns
  • Memory safety
  • Concurrency safety
  • Idiomatic usage

Dependencies

Pensive builds on foundation plugins:

pensive
    |
    +--> imbue (review-core, evidence-logging)
    |
    +--> sanctum (git-workspace-review)

Workflow Integration

Pre-PR Review

# Before opening PR
Skill(sanctum:git-workspace-review)
/full-review

# Address findings
# Then create PR

Post-Merge Review

# After merge, deep review
/architecture-review --depth deep

Targeted Review

# Review specific area
/api-review src/api/

Superpowers Integration

CommandEnhancement
/full-reviewUses systematic-debugging for four-phase analysis
/full-reviewUses verification-before-completion for evidence

Output Format

Reviews produce structured output:

## Review Summary

### Critical Issues
1. [BUG] Race condition in UserService.update()
   - Location: src/services/user.ts:45
   - Impact: Data corruption under load
   - Recommendation: Add mutex lock

### Warnings
1. [ARCH] Layer violation detected
   - Controllers importing from repositories
   - Recommendation: Add service layer

### Suggestions
1. [TEST] Missing edge case coverage
   - UserService.delete() lacks null check test
  • imbue: Provides review scaffolding
  • sanctum: Provides workspace context
  • archetypes: Paradigm context for architecture review