/kk:review-codefrom kk
Reviews current git changes with a senior-engineer lens, detecting SOLID violations, security risks, and proposing actionable improvements. Supports standard and isolated review modes.
Ships in kk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Review whether the current changes achieve their intended behavior, preserve affected contracts and meet applicable delivery constraints. Apply SOLID, architecture, security, quality and removal guidance alongside that reasoning. Default to review-only output unless the user asks to implement changes.
Load these through packet-preparation.md's preparation sequence. It supplies complete original instruction text in fewer Read calls; the direct-read fallback uses the same sources.
Before declaring the review complete, verify all outputs are delivered:
kk:review-findings (skip if no qualifying findings)Indexing is owned by this skill — callers (e.g., /kk:implement) do NOT duplicate it.
/kk:review-code)Reviews code in the main conversation context. Fast, single-pass review using the workflow below.
/kk:review-code:isolated)Delegates detection to independent reviewers that did not write the code, then annotates their findings with author context. One internal code-reviewer sub-agent plus external review chosen once at discovery: pal codereview when an API model is available, otherwise one pal clink CLI review per eligible non-authoring provider using its configured model (variable count; on the clink roster the authoring provider is excluded; PAL's shipped clients get default provider mappings that the report labels as assumed, and an operator declaration, for example in the project's CLAUDE.md or AGENTS.md, overrides them and is required for any other client name). Produces a report organized by agreement level with corroborated findings highlighted.
listmodels exposes CLI client observations in every mode for the clink path; unresolved discovery keeps the internal review with an explicit external coverage limit. Operator setup (the minimum PAL build, CLI read access outside the project, provider declarations) is described in the plugin README under "Isolated reviews with external models"See review-isolated.md for the isolated workflow.
| Level | Name | Description | Action |
|---|---|---|---|
| P0 | Critical | Demonstrated critical security, integrity or availability impact needing immediate mitigation | Must block merge |
| P1 | High | Logic error, significant SOLID violation, performance regression | Should fix before merge |
| P2 | Medium | Code smell, maintainability concern, minor SOLID violation | Fix in this PR or create follow-up |
| P3 | Low | Style, naming, minor suggestion | Optional improvement |
The standard workflow below is strictly sequential. Load the process, shared protocols, common functional method and every resolved profile checklist before source investigation, capy_search, findings, edits or tests. After basic process instructions load, the sole early-content exception is bounded inspection to resolve declared detection/conditional-load predicates: at most approximately 16 KiB per candidate file; log predicate/path, and conservatively load an instruction when its conditional is undecidable within the bound. No behavioral analysis or full-diff investigation is permitted during routing.
This ordering is load-bearing, not stylistic. Reviewing from a diff before loading profile checklists is the known failure mode this skill is designed to prevent: the LLM has enough from the diff to produce plausible findings, and optimizes away the methodology if the workflow permits.
Phases (same order as review-process.md):
bootstrap, and Read every returned part; this loads process, shared protocols, common method and all known detection ruleskk:review-findingsSee review-process.md for the detailed step-by-step process.
Preparation helper: execute scripts/prepare_instructions.py
with Python 3 using its resolved path. The installed path is
${CLAUDE_PLUGIN_ROOT}/skills/review-code/scripts/prepare_instructions.py.
The helper reads instructions only and prints packet paths. Creating a packet
does not load it: use Read on every part, including continuations, before source
investigation. If execution is unavailable, use the direct-read fallback.
Standard mode:
/kk:review-code
Isolated mode with independent sub-agents:
/kk:review-code:isolated
evals/_harness/HARNESS.md (opens in a new tab)evals/_harness/grading-fixtures/README.md (opens in a new tab)evals/_harness/grading-fixtures/complete-omission/assertions.json (opens in a new tab)evals/_harness/grading-fixtures/complete-omission/events.jsonl (opens in a new tab)evals/_harness/grading-fixtures/complete-omission/final.txt (opens in a new tab)evals/_harness/grading-fixtures/complete-omission/initial.txt (opens in a new tab)evals/_harness/grading-fixtures/complete-omission/manifest.json (opens in a new tab)evals/_harness/grading-fixtures/complete-omission/report.md (opens in a new tab)evals/_harness/grading-fixtures/complete-omission/rubric.md (opens in a new tab)evals/_harness/grading-fixtures/component/assertions.json (opens in a new tab)evals/_harness/grading-fixtures/component/reviewer-output.md (opens in a new tab)evals/_harness/grading-fixtures/early-edit/assertions.json (opens in a new tab)evals/_harness/grading-fixtures/early-edit/events.jsonl (opens in a new tab)evals/_harness/grading-fixtures/early-edit/final.txt (opens in a new tab)evals/_harness/grading-fixtures/early-edit/initial.txt (opens in a new tab)evals/_harness/grading-fixtures/early-edit/manifest.json (opens in a new tab)evals/_harness/grading-fixtures/early-edit/report.md (opens in a new tab)evals/_harness/grading-fixtures/early-edit/rubric.md (opens in a new tab)evals/_harness/grading-fixtures/expected-verdicts.json (opens in a new tab)evals/_harness/grading-fixtures/missing-events/assertions.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub serpro69/agentstakk --plugin kk16 skills in this plugin
/brainstormTRIGGER when: asked to brainstorm, think through, explore, or pressure-test a technical idea or decision through conversation. Interviews adaptively, asks one question at a time, and closes with a chat recap.
For technical products, architecture, infrastructure, tools, operations, and engineering workflows. Written design/specification and task-list requests belong to /kk:design; durable domain glossary/reference kits to /kk:model; implementation and fixes to /kk:implement. Not for nontechnical brainstorming.
/chain-of-verificationApply Chain-of-Verification (CoVe) prompting to improve response accuracy through self-verification.
Use when complex questions require fact-checking, technical accuracy, or multi-step reasoning.
/clarify-docsTRIGGER when: asked to clarify or improve existing documentation, PR drafts or
issue descriptions, including URLs and pasted bodies. Saves results locally,
grounded in requirements and source while preserving meaning. Not for requests
to implement, fix or work on an issue, code, config, generic response brevity,
or agent instructions. Explicit instruction or SKILL.md targets receive a
/kk:implement suggestion without edits or invoking implementation.
/dependency-handlingTRIGGER when: adding or upgrading any dependency — library, SDK, framework, API, IaC API version (K8s/Terraform/Helm), CRD, or container image. Use BEFORE writing the call. Forces context7/capy lookup instead of guessing.
/designTRIGGER when: asked to write or refine a technical design, PRD, specification, implementation plan, or task list, or resume an existing docs/feat/wip feature.
Turns ideas and requirements into written design documents, implementation plans, and tasks in docs/feat/wip/ before coding. For conversational exploration without written planning, use /kk:brainstorm.
/diff-skillCompare two versions of a skill's instructions to detect degradations and complexity increases.
TRIGGER when: user asks to diff, compare, or review changes to a skill's markdown instructions.
Asymmetric check — only regressions count. Additions, clarifications, and strengthenings are not degradations.
Compares HEAD → working tree by default. Walks the full reachable file set from SKILL.md via markdown links.
Produces a report file under docs/reviews/diff-skill/ and an inline summary.
Other plugins' skills for the same job