Code review perspectives

From macalbert/envilder · View interactive version

Code review perspectives is an AI agent skill from the GitHub repository macalbert/envilder. Five independent analysis perspectives for code review: correctness, architecture, security, conventions, and complexity. Use when reviewing PRs, commits, or local changes. Includes severity model and output format.

How to use this skill

Skill file

Code Review Perspectives

Five parallel analysis perspectives for comprehensive code review.

Run independently, then synthesize into a deduplicated prioritised report.

When to Use

Perspectives

1. Correctness

2. Architecture

3. Security

4. Conventions

5. Complexity (CRAP)

See code-quality-crap skill for formula and thresholds.

Severity Model

| Severity | Criteria |

|----------|----------|

| Critical | Security, data loss, broken release, major regression |

| High | Likely runtime failure, incorrect business behavior |

| Medium | Correctness risk with limited blast radius, test gaps |

| Low | Maintainability concern worth addressing soon |

Anti-Inflation Rules

Synthesis Procedure

  1. Run all 5 perspectives (can be parallel)
  2. Merge findings, deduplicate overlaps
  3. Assign severity per the model above
  4. Order by severity descending
  5. For each finding: severity, why it matters, file:line evidence, fix direction

Output Format

Use this standalone format when the caller does not define a workflow envelope:

## Findings

### [Critical/High/Medium/Low]: {title}
**File:** {path}:{line}
**Why:** {explanation}
**Fix:** {direction}

## Open Questions
- {assumptions or clarifications needed}

## Summary
{1-2 sentence overview: AFTER findings, not before}

When the caller requires the canonical ReviewResult envelope from

common-verification-first, place these findings under Prioritized findings,

preserve the same severity and anti-inflation rules, and map the remaining

sections to the corresponding envelope fields. The envelope may add

orchestration routing or contract assessment; it does not redefine review

semantics.

Verification

After analysis, verify findings before reporting:

  1. pnpm test: confirm test suite passes
  2. biome check && tsc --noEmit: lint compliance (no modifications)
  3. pnpm format:check: formatting (no modifications)
  4. Browser checks for website/UI changes (Playwright)
  5. Stack-specific: dotnet build/dotnet test, make check-sdk-python

Only report confirmed findings. Downgrade unverified suspicions.

Constraints

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.