用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/knowns-dev/knowns --skill kn-review命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use when committing code changes with proper conventional commit format and verification
Use when creating, triaging, promoting, or superseding a System Decision - the durable project guidance other skills enforce
Use when working with Knowns documentation - viewing, searching, creating, or updating docs
正在显示 SKILL.md
| name | kn-review |
| description | Use when reviewing implemented code before committing — multi-perspective review with severity-based findings |
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-flow after each task or integrated wave/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.
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" })
Review the diff from 4 perspectives. For each, produce findings with severity.
any, unsafe casts, missing typesSpec Decision Compliance markers for the linked spec (P1 when the task would otherwise be approved)System Decision Impact: none — <reason> or System Decision Impact: candidate @decision/<id> (added|changed|removed) — <summary> on an in-review/done task (P1 when the task would otherwise be approved)decision, or copied Spec Locked Decisions into the System Decision ledgerClassify 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- 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
✓ 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-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/kn-flow when reviewing inside an active flow/kn-flow is needed