kb-review
Uses tiered reviewer personas and quality gates to provide structured feedback on code changes before PR submission.
Install
mkdir -p .claude/skills/kb-review && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10574" && unzip -o skill.zip -d .claude/skills/kb-review && rm skill.zipInstalls to .claude/skills/kb-review
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Structured KB review using tiered persona agents, confidence-gated findings, thermonuclear structural-quality review, and a merge/dedup pipeline. Use when reviewing KB workflow code changes before completion, before creating a PR, or when kb-complete needs its review gate.Key capabilities
- →Review code changes using persona agents
- →Apply safe automated fixes
- →Generate structured review reports
- →Manage merge/deduplication pipelines
How it works
The skill uses tiered reviewer personas to evaluate code changes, applying safe automated fixes where possible and generating structured reports for human review.
Inputs & outputs
When to use kb-review
- →Reviewing code before PR creation
- →Automating quality checks in CI
- →Ensuring consistency in KB workflows
- →Getting architectural feedback
About this skill
KB Review - One Profile, One Boundary
Review the integrated change once. Deterministic tests prove encoded behavior; this review checks intent, test validity, correctness, and code health.
Invariants
- Run at most one reviewer profile for this review boundary.
- The broad profile is the default. A specialist replaces it; never stack broad plus specialist.
- Every selected profile must answer all four questions:
- Does the diff satisfy the authoritative intent or specification?
- Would the proof detect relevant breakage rather than merely execute code?
- Is the implementation correct, including failure paths and edge cases?
- Is the code healthy: clear boundaries, minimal complexity, and no avoidable structural debt?
- Review only after the caller has a passing integrated proof receipt.
- A code-affecting fix invalidates both the review and affected proof. Rerun affected deterministic proof, then run one bounded confirmation review.
- Never claim multi-agent review. This skill dispatches zero or one reviewer.
Modes
| Mode | Behavior |
|---|---|
| interactive | Report findings; apply only clearly safe fixes and ask only for genuine policy decisions |
mode:report-only | Read-only; no files, todos, commits, pushes, or PR changes |
mode:autofix | Apply only deterministic safe_auto fixes; leave other findings for the caller |
mode:headless | Non-interactive caller mode; return structured findings and a receipt |
Conflicting mode flags fail before scope discovery or dispatch.
Preflight
- Determine the reviewed base from
base:<ref>, caller scope, or the fork-safe base resolver inreferences/resolve-base.sh. - Read the authoritative requirements, manifest, plan, PR body, or issue.
- Require a proof receipt bound to the integrated tree. If the caller cannot
provide one, return
review-blocked: integrated-proof-missing. - Collect the exact changed paths. Exclude unrelated pre-existing work and identify untracked files that are outside the review.
- Preserve
docs/brainstorms/,docs/plans/, anddocs/solutions/as protected workflow artifacts.
Load references/review-process.md only while executing these steps.
Skip Classification
Semantic review may be skipped only when every changed path is:
- documentation-only with no executable contract change;
- generated-only from an already-proven generator; or
- mechanically constrained by deterministic validation that covers the full changed surface.
Runtime, behavior, contract, configuration, trust-boundary, persistence, API, CLI, or UI changes cannot skip. Unknown classification reviews rather than skips. A skip still requires proof covering every changed path and a receipt with the skip reason.
Profile Selection
Choose exactly one profile using evidence from the diff.
| Evidence | Profile |
|---|---|
| Exploitable security or trust-boundary risk | security-reviewer |
| Migration, backfill, or persistent data transformation | data-migrations-reviewer |
| Runtime scaling or materially expensive I/O/query behavior | performance-reviewer |
| Retry, timeout, async, queue, or failure-recovery behavior | reliability-reviewer |
| Public API or serialization contract change | api-contract-reviewer |
| CLI contract or command-handler change | cli-readiness-reviewer |
| Large structural refactor or code-health risk dominates | thermo-nuclear-code-quality-reviewer |
| Everything else, including unknown risk | code-review broad profile |
A specialist prompt must include the four invariant questions. Domain focus
changes emphasis, not coverage. If the exact specialist is unavailable, use
code-review with the specialist instructions instead of adding another
reviewer.
Dispatch Contract
Dispatch one read-only reviewer with:
- authoritative intent and requirements hash;
- base and integrated tree identifiers;
- proof receipt path and hash;
- risk classification and why the profile was selected;
- exact file list and diff;
- the four invariant questions;
references/findings-schema.json.
Use references/subagent-template.md for the prompt contract. If no reviewer
agent is available, perform one local structured pass and record
review-mode: local-fallback; do not simulate several personas.
Findings
Use P0-P3 severity. Keep only actionable, evidenced findings. Verify cited code before reporting and suppress formatter/linter output.
| Class | Route |
|---|---|
safe_auto | May be fixed in interactive, autofix, or headless mode |
gated_auto | Caller resolves because behavior or contracts may change |
manual | Caller or human owns a non-mechanical change |
advisory | Report residual risk without pretending it is implementation work |
P0/P1 block completion until resolved. P2/P3 do not block by severity alone, but fix cheap and clearly correct issues.
Receipt
Write or return one review receipt containing:
- base tree and integrated tree;
- requirements source and SHA-256;
- proof receipt path and SHA-256;
- review-policy version;
- risk classification and selected profile;
- review mode and reviewer provenance;
- finding counts, resolutions, and residual risks;
- changed-path scope and skip reason when review was skipped.
The caller owns receipt storage. kb-finalize normally stores it with the
manifest proof artifacts.
Stop Rules
- Do not dispatch without deterministic integrated proof.
- Do not dispatch a second reviewer because the first found nothing.
- Do not add a specialist after the broad profile.
- Do not rerun review for telemetry or model provenance.
- Do not commit, push, merge, or create a PR.
Lazy References
references/review-process.md- scope, profile selection, dispatch, and receipt flow.references/subagent-template.md- single-reviewer prompt contract.references/diff-scope.md- primary, secondary, and pre-existing scope.references/findings-schema.json- structured finding contract.references/post-review-flow.md- bounded fix and confirmation-review behavior.references/review-output-template.md- human-readable output.references/persona-catalog.md- replacement profile catalog.
When not to use it
- →Parallel review on the same checkout
Prerequisites
Limitations
- →Cannot run mutating review concurrently with browser testing
- →Requires determinable diff scope in headless mode
How it compares
It enforces a thermonuclear structural-quality review process with confidence-gated findings, unlike standard linting or manual review.
Compared to similar skills
kb-review side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| kb-review (this skill) | 0 | 2mo | No flags | Advanced |
| shellcheck-configuration | 9 | 2mo | No flags | Intermediate |
| wolf-scripts-core | 5 | 9mo | Review | Intermediate |
| final-release-review | 5 | 4mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by Irtechie
View all by Irtechie →You might also like
shellcheck-configuration
wshobson
Master ShellCheck static analysis configuration and usage for shell script quality. Use when setting up linting infrastructure, fixing code issues, or ensuring script portability.
wolf-scripts-core
Nice-Wolf-Studio
Core automation scripts for archetype selection, evidence validation, quality scoring, and safe bash execution
final-release-review
openai
Perform a release-readiness review by locating the previous release tag from remote tags and auditing the diff (e.g., v1.2.3...<commit>) for breaking changes, regressions, improvement opportunities, and risks before releasing openai-agents-python.
fix
Use when you have lint errors, formatting issues, or before committing code to ensure it passes CI.
verify
Use when you want to validate changes before committing, or when you need to check all React contribution requirements.
bash-defensive-patterns
wshobson
Master defensive Bash programming techniques for production-grade scripts. Use when writing robust shell scripts, CI/CD pipelines, or system utilities requiring fault tolerance and safety.