kn-review

kn-review is a skill for Claude Code from knowns-dev/knowns. It costs 19 tokens per session (1,863 once invoked), scanned A, original, MIT.

A code-review workflow that examines implemented changes from several perspectives and ranks findings by severity before a commit. A commit is a saved checkpoint in version control.

In plain words
What is it for?
Reviewing a task or the current Git difference against its acceptance criteria and specification before committing, including review within a larger workflow.
Why use it?
It helps catch important problems in the current changes and makes clear which serious issues must be fixed before they are saved.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/knowns-dev/knowns/kn-review
Any agent
npx skills add knowns-dev/knowns --skill kn-review
Clone the repo
git clone --depth 1 https://github.com/knowns-dev/knowns

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kn-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/knowns-dev/knowns/kn-review.svg)](https://agentmods.dev/skills/knowns-dev/knowns/kn-review)
Your own site
<a href="https://agentmods.dev/skills/knowns-dev/knowns/kn-review"><img src="https://agentmods.dev/badge/skills/knowns-dev/knowns/kn-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,863 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.01863
Opus 5 $0.00010 $0.00932
Sonnet 5 $0.00004 $0.00373
Haiku 4.5 $0.00002 $0.00186

Measured 6d ago against content hash d3fe68bc4885, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

kn-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

internal/instructions/skills/kn-review/SKILL.md · 242 lines

How it starts

The opening of the file, as written. The whole thing — 242 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Code Review

Post-implementation quality review. Run after kn-implement, before kn-commit.

Announce: "Using kn-review for task [ID] (or current changes)."

Core principle: MULTI-PERSPECTIVE REVIEW → SEVERITY TRIAGE → FIX P1 → COMMIT.

When to Use

  • After implementing a task, before committing
  • When user says "review my code", "check this", "review before commit"
  • As the review step inside /kn-flow after each task or integrated wave
  • As part of /kn-go pipeline (optional — can be enabled)

If the user asks to review and finish a whole approved spec or task wave, route to /kn-flow @doc/<spec-path> so review is paired with implementation and combined verification.

Inputs

  • Task ID (optional — if provided, reviews against task ACs and spec)
  • Current git diff (always)

Step 1: Gather Review Context

git diff --stat
git diff

If task ID provided:

mcp_knowns_tasks({ "action": "get", "taskId": "$ARGUMENTS" })

If task has spec:

mcp_knowns_docs({ "action": "get", "path": "<spec-path>", "smart": true })

Read the linked spec's full Locked Decisions section, then retrieve only relevant current System Decisions:

mcp_knowns_search({ "action": "retrieve", "query": "<task + feature area>",
  "sourceTypes": ["decision"], "status": "accepted", "includeHistorical": false, "limit": 8 })

Search for relevant conventions and past review patterns:

mcp_knowns_search({ "action": "search", "query": "<feature area>", "type": "memory" })

Step 2: Multi-Perspective Review

Review the diff from 4 perspectives. For each, produce findings with severity.

2a. Code Quality

  • Readability and simplicity
  • DRY — duplicated logic
  • Error handling — missing or swallowed errors
  • Type safety — any any, unsafe casts, missing types
  • Naming — unclear variable/function names

2b. Architecture

  • Separation of concerns — business logic in handlers, UI logic in components
  • Coupling — tight dependencies between unrelated modules
  • API design — consistent patterns, proper HTTP methods/status codes
  • File organization — follows project conventions

Read the full file on GitHub · 242 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 242 lines · 19 tokens per session scan A d3fe68bc4885

Subscribe to this mod's changes

kn-review is a skill published in the GitHub repository knowns-dev/knowns (242 stars, last pushed today), licensed MIT. It adds 19 tokens to every session and 1,863 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.