principal-review

Reviews code changes and modules with evidence-verified findings persisted to an in-repo ledger.

Updated Sep 1, 2026
One-click install
npx skills add https://github.com/krishsharma-source/skills --skill principal-review-krishsharma-source
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: principal-review
Source: https://github.com/krishsharma-source/skills/tree/main/principal-review
Command: npx skills add https://github.com/krishsharma-source/skills --skill principal-review-krishsharma-source

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? AI code review tends to over-report, hallucinate library behavior, and lose all state between sessions, so findings get ignored and the same issues are rediscovered every run. This Skill enforces a precision-first review process: every claim about a library or runtime is verified against the installed version's source or docs before it becomes a finding, and all state lives in a durable .code-review/ ledger that survives context compaction. ## Core Features & Use Cases - Evidence-verified findings: Every BLOCKER or MAJOR finding requires a quoted hunk, a concrete failure scenario, verified evidence, and an independent confidence score of 80 or higher, or it is demoted to a question. - Two review modes: Mode A reviews a change, PR, or branch in passes of at most 400 lines; Mode B audits a whole module and produces a backlog of self-contained remediation tasks for subagents. - Durable review state: Scripts scaffold a .code-review/ workspace with an append-only findings ledger using stable IDs, so regressions are detected instead of re-reported. - Use Case: After finishing a feature branch, ask for a review; the Skill detects the stack, chunks the diff, verifies each library-dependent claim against the pinned versions, and emits a verdict with tiered findings and a resumable ledger. ## Quick Start Ask the assistant to review your current uncommitted changes or a specific pull request using the principal-review skill.

Frequently Asked Questions about principal-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review a pull request with an AI code reviewer?

Point the Skill at your branch, diff, or uncommitted changes and it runs Mode A: it detects the stack, chunks the change into passes of at most 400 lines, verifies each finding against installed sources, and emits a verdict with tiered BLOCKER, MAJOR, MINOR, and NIT findings.

How does this code review avoid false positives?

Every finding must include a quoted hunk, a concrete failure scenario, and evidence verified against the installed library version or official docs. BLOCKER and MAJOR findings are independently scored by a fresh subagent, and anything below 80 confidence is demoted to a question or dropped.

Can it audit an entire legacy module instead of a diff?

Yes, Mode B maps the module's architecture from first principles, researches current good practice for that stack, audits file by file, and produces a backlog of self-contained remediation tasks that subagents can execute under supervision.

Does the review state survive between sessions?

Yes, all state is written to a .code-review/ directory in the repository, including an append-only findings ledger with stable IDs, an evidence log, and an INDEX.md ending with an explicit next action so a fresh session can resume after compaction.

What programming languages does the code review support?

It detects stacks from pyproject.toml, package.json, go.mod, Cargo.toml, deno.json, and similar markers, with a bundled Python standards pack. For stacks without a pack, it researches conventions and persists them as a reusable standards file.

When should I not use this review process?

Skip it for small emergency fixes that stop ongoing production harm, where speed outranks thoroughness and a follow-up review happens later. It is also unnecessary for changes a linter, typechecker, or compiler already fully validates.