Senior review
Portable, tested skills for reasoning and software delivery across AI agents
npx -y skills add kadenn/skills --skill senior-reviewAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 17 days oldThe repository was created 17 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Run an architecture-first, high-signal review of a pull request, branch, commit range, patch, or working-tree diff. Use when the user asks for a senior review, full review, deep review, architecture review, or a review that must prioritize concrete bugs and design risks over lint-style commentary. Inspect beyond the diff, lock architectural conclusions, then report only evidence-backed implementation findings.
SKILL.md
6.9 KB, ~1.3k tokens by cl100k_base, as published. Nobody here has run it
Senior Review
Review in two gated phases. First decide whether the change belongs and is shaped correctly. Then inspect implementation correctness. A line fix is wasted when the code should not exist in that form.
Resolve scope and delivery mode
Determine the target from the request:
- PR: inspect metadata, base and head SHAs, changed files, checks, and existing review threads.
- Branch or commit range: resolve the merge base and review the resulting diff.
- Working tree: include staged and unstaged changes as requested.
- Supplied patch: treat the patch and provided repository context as the review target.
Default to a report. Use interactive architecture locking when the user requests collaboration. Publish comments or modify code only when explicitly authorized.
Gather evidence beyond the diff
- Read applicable repository instructions from the root through modified directories.
- Read each changed function or component in full, plus relevant callers, consumers, tests, and sibling implementations.
- Search the repository for existing abstractions, constants, contracts, and feature identifiers related to the change.
- Trace changed contracts across service or package boundaries. Verify current producers and consumers instead of assuming the other side handles them.
- Load only the references needed for the target:
- architecture.md for difficult design decisions;
- implementation.md for detailed correctness and safety checks;
- agent-systems.md for LLM, tool, prompt, and state changes;
- web-and-services.md for backend and frontend changes;
- publishing.md before posting review comments.
The live repository is authoritative. References are review angles, not a reason to impose a stale convention.
Phase 1: architecture verdict
Answer every question explicitly with OK, Question, or Problem:
- Does this code live in the right layer and module?
- Is the abstraction simpler and more durable than the implementation detail it wraps?
- Does the change solve the root problem instead of a downstream symptom?
- Does the repository or framework already provide this capability?
- Does the approach match how this codebase solves the same class of problem?
- Is the change complete across callers, consumers, contracts, authorization, rollout, and rollback?
For every Question or Problem, provide:
- the evidence;
- the concrete cost or failure mode;
- the recommended layer, abstraction, or existing capability to use.
Do not manufacture an architecture issue. A clean verdict is valid.
Lock the verdict
- In interactive mode, present the architecture verdict and stop until open decisions are accepted, redesigned, or explicitly deferred.
- In report mode, record the verdict first and continue. Mark implementation findings as conditional when an architecture decision could make them moot.
Do not mix architecture observations into a long list of line comments.
Phase 2: implementation review
Inspect the changed behavior top-down:
- correctness and boundary cases;
- error classification, propagation, cleanup, and partial failure;
- data, API, persistence, and serialization contracts;
- authorization, injection, secrets, privacy, and unsafe side effects;
- configuration, override precedence, feature flags, and disabled behavior;
- concurrency, retries, idempotency, ordering, and cancellation;
- tests at the riskiest boundary;
- dead, unreachable, duplicated, or speculative code introduced by the change.
Do not spend review findings on formatting, imports, naming taste, or failures reliably enforced by the compiler, formatter, linter, or existing CI.
Evidence gate
Keep an implementation finding only when all are true:
- It is introduced by the change or directly exposed by the changed behavior.
- Confidence is at least 80 out of 100.
- A concrete input, state, sequence, or threat produces a wrong result or meaningful risk.
- The relevant code path and repository convention were verified.
- The suggested correction is applicable to this repository.
An unconstrained type annotation alone does not prove that every type-compatible value reaches the code in production. Before reporting a malformed or missing input as a bug, verify that a caller, schema, contract, test, or documented boundary permits it.
Architecture findings use a different bar: a senior engineer would raise the issue in design review, the maintenance or delivery cost is concrete, and a better direction is named.
When evidence is incomplete, investigate further or label the observation as an unresolved question. Do not present speculation as a bug.
Severity
- HIGH: data loss, security exposure, authorization bypass, production outage, corrupt state, or a core path that cannot work.
- MEDIUM: incorrect behavior in a realistic path, silent partial result, broken rollout, retry or concurrency defect, or substantial avoidable rework.
- LOW: real but limited correctness or maintenance cost that a senior reviewer would still ask to change.
Omit nits by default.
Output
Lead with findings and risks, not a congratulatory summary.
Architecture verdict
List the six answers compactly. Expand only Question and Problem items with evidence, cost, and direction.
Implementation findings
Order by severity. For each finding include:
- severity and a direct title;
file:lineor the narrowest available location;- concrete failure scenario or cost;
- evidence checked;
- a focused fix.
Coverage
State which files and boundaries were reviewed, what validation ran, and any material area that could not be verified.
If there are no findings, the Implementation findings section must contain exactly No findings passed the evidence gate. Put material residual gaps under Coverage. Never add an I checked for list or reveal rejected candidates, hypothetical inputs, or the internal filtering process.
Final self-check
Before returning the review, confirm:
- every changed file is accounted for;
- the architecture verdict is present;
- every reported finding passed the evidence gate;
- severity reflects impact, not stylistic preference;
- high and medium findings have applicable fixes;
- configuration, flag-off behavior, security sinks, and cross-boundary contracts were checked when relevant;
- no comment repeats an already resolved thread without new evidence.
What ships with it: 6 files
10.8 KB alongside SKILL.md
agents/
- openai.yaml209 B
references/
- agent-systems.md2.1 KB
- architecture.md2.3 KB
- implementation.md2.9 KB
- publishing.md1.3 KB
- web-and-services.md2.0 KB