knowns-dev/knowns/kn-review
Claude Code and agent skill by knowns-dev/knowns
- community
Checking that the SKILL.md file is still in the repository.
Use when reviewing implemented code before committing — multi-perspective review with severity-based findings
Install
npx vskill@latest install knowns-dev/knowns/kn-reviewSKILL.md
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-flowafter each task or integrated wave - As part of
/kn-gopipeline (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
If task ID provided:
If task has spec:
Read the linked spec's full Locked Decisions section, then retrieve only relevant current System Decisions:
Search for relevant conventions and past review patterns:
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
2c. Security
- Input validation — user input sanitized
- Auth — proper authorization checks
- Secrets — no hardcoded credentials or tokens
- Data exposure — sensitive data in logs, responses, or error messages
2d. Completeness
- Missing tests for new logic
- Edge cases not handled
- Integration gaps — new code not wired into existing flows
- Stubs or TODOs left in code
- ACs from task not fully met (if task provided)
- Missing, incomplete, or contradicted
Spec Decision Compliancemarkers for the linked spec (P1 when the task would otherwise be approved) - Missing
System Decision Impact: none — <reason>orSystem Decision Impact: candidate @decision/<id> (added|changed|removed) — <summary>on an in-review/done task (P1 when the task would otherwise be approved) - A positive System Decision impact has no persisted candidate, lacks task/spec/source provenance, or treats a draft/replacement as current before explicit verified human resolution
- A workflow created Memory category
decision, or copied Spec Locked Decisions into the System Decision ledger
Step 3: Triage Findings
Classify each finding:
| Severity | Criteria | Action | |
|---|---|---|---|
| P1 | Security vuln, data corruption, breaking change, stub shipped | Blocks commit — must fix | |
| P2 | Performance issue, architecture concern, missing test | Should fix before commit | |
| P3 | Minor cleanup, naming, style | Record for later |
Calibration: Not everything is P1. Severity inflation wastes time. When in doubt, P2.
Step 4: Report Findings
Present findings grouped by severity:
Step 5: Handle Results
If P1 findings exist — HARD GATE
⛔ P1 findings block commit. Fix these first:1. [Finding + suggested fix]2. [Finding + suggested fix]After fixing, run/kn-reviewagain.
Do NOT proceed to commit. Do NOT offer to skip P1.
If only P2/P3
✓ No blocking issues. P2 findings recommended:1. [Finding + suggested fix]Options:- Fix P2s now, then/kn-commit- If running inside/kn-flow, return to the flow after fixing or explicitly deferring P2s- Commit as-is:/kn-commit- Create follow-up task for P2s
If clean
✓ Review passed. No issues found.Ready:/kn-commit
Step 6: Track Findings (optional)
If P2 findings are deferred, create a follow-up task:
Artifact Verification (if task has spec)
For each deliverable in the spec, verify 3 levels:
- EXISTS — file/component/route exists
- SUBSTANTIVE — not a stub (no
return null, empty handlers, TODO-only implementations) - WIRED — imported and used in the integration layer
Report:
- ✅ L1+L2+L3: fully wired
- ⚠️ L1+L2 only: created but not integrated → P2
- 🛑 L1 only (stub): exists but empty → P1
- 🛑 Missing: not found → P1
Shared Output Contract
Required order for the final user-facing response:
- Goal/result — review verdict (PASS / BLOCKED / PASS with warnings).
- Key details — findings by severity, artifact verification status, suggested fixes.
- Next action —
/kn-commitif passed, fix instructions if blocked.
For kn-review, the key details should cover:
- finding count by severity
- specific file:line references for each finding
- whether artifact verification passed (if spec-linked)
- concrete fix suggestions for P1/P2
Related Skills
/kn-flow @doc/<spec-path>— orchestrate review as part of full spec/task-wave execution/kn-implement <id>— implement before review/kn-commit— commit after review passes/kn-verify— SDD-level verification (broader than code review)/kn-decision— resolve a Decision finding: an unlinked candidate, a missing marker, or a draft being treated as current
Checklist
- [ ] Diff reviewed from 4 perspectives
- [ ] Findings triaged by severity
- [ ] P1 findings block commit
- [ ] Artifact verification done (if spec linked)
- [ ] Every linked Spec Decision was assessed and no conflict was hidden
- [ ] System Decision Impact marker is explicit and any candidate ref resolves with required provenance
- [ ] No new legacy Decision Memory or duplicated Spec Decision row was introduced
- [ ] Returned control to
/kn-flowwhen reviewing inside an active flow - [ ] Next step suggested
Red Flags
- Approving code with P1 findings
- Marking stubs as complete
- Not checking the actual diff (reviewing from memory)
- Severity inflation — calling everything P1
- Skipping security perspective
- Reviewing one task as if the whole spec is complete when
/kn-flowis needed - Approving a task without an explicit System Decision Impact marker
- Accepting a Decision candidate automatically as part of implementation
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinginternal/instructions/skills/kn-review/SKILL.md
Popularity
- Repository stars
- 213
- Repository forks
- 44
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/knowns-dev/knowns/kn-review)