internal/instructions/skills/kn-review/SKILL.md
Use when reviewing implemented code before committing — multi-perspective review with severity-based findings
npx skillsauth add knowns-dev/knowns kn-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
/kn-go pipeline (optional — can be enabled)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 })
Search for relevant conventions and past review patterns:
mcp_knowns_search({ "action": "search", "query": "<feature area>", "type": "memory" })
Review the diff from 4 perspectives. For each, produce findings with severity.
any, unsafe casts, missing typesClassify 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.
Present findings grouped by severity:
Review Complete — [task-id or "current changes"]
═══════════════════════════════════════════════
P1 (blocks commit): X findings
- [file:line] Description — why it's critical
P2 (should fix): X findings
- [file:line] Description — impact
P3 (nice to have): X findings
- [file:line] Description
Verdict: PASS / BLOCKED (P1 exists)
⛔ P1 findings block commit. Fix these first:
- [Finding + suggested fix]
- [Finding + suggested fix]
After fixing, run
/kn-reviewagain.
Do NOT proceed to commit. Do NOT offer to skip P1.
✓ No blocking issues. P2 findings recommended:
- [Finding + suggested fix]
Options:
- Fix P2s now, then
/kn-commit- Commit as-is:
/kn-commit- Create follow-up task for P2s
✓ Review passed. No issues found.
Ready:
/kn-commit
If P2 findings are deferred, create a follow-up task:
mcp_knowns_tasks({ "action": "create", "title": "Review follow-up: <summary>",
"description": "P2 findings from review of task-<id>:\n- Finding 1\n- Finding 2",
"priority": "low",
"labels": ["review-followup"]
})
For each deliverable in the spec, verify 3 levels:
return null, empty handlers, TODO-only implementations)Report:
Required order for the final user-facing response:
/kn-commit if passed, fix instructions if blocked.For kn-review, the key details should cover:
/kn-implement <id> — implement before review/kn-commit — commit after review passes/kn-verify — SDD-level verification (broader than code review)testing
Use when running SDD verification and coverage reporting
development
Use when generating code from templates - list, run, or create templates
testing
Use when creating a specification document for a feature (SDD workflow)
development
Use when you need to understand existing code, find patterns, or explore the codebase before implementation