review-spec
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "review-spec":https://skillpi.com/zh/skills/deepskill-bf693f23c3c45d59ccadff14c408eae8fcb27ef0da4c1548d87c3b0eb74447a9。安装前核对上游来源和版本:https://github.com/serpro69/claude-toolbox。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
在实现任务或功能的中途使用,用于验证代码是否与设计文档一致,检测规范偏差、未实现的代码、文档不一致以及设计与实现文档中的过时内容。
介绍来源: third_party · serpro69 · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: review-spec
description: |
Use after implementing tasks or mid-feature to verify code matches design docs and ensure they are in sync.
Detects spec deviations, missing implementations, doc inconsistencies, and outdated docs in design and implementation documentation.<!-- codex: tool-name mapping applied. See .codex/scripts/session-start.sh -->
Implementation Review
Conventions
- Read capy knowledge base conventions at shared-capy-knowledge-protocol.md.
- Read profile detection at shared-profile-detection.md for the shared detection procedure. When an active profile populates a
review-spec/phase slot, itsindex.mdcontent is loaded before per-task verification begins.
Overview
Systematically compare implemented code against a feature's design.md, implementation.md, and tasks.md in /docs/feat/wip/[feature]/. Works both mid-implementation (reviewing completed tasks only) and post-implementation (full feature review).
Findings go in both directions — code that deviates from spec AND spec that is wrong or outdated given the code.
Required Outputs
Before declaring the review complete, verify all outputs are delivered:
- [ ] Review report presented to user
- [ ] User-confirmed intentional
SPEC_DEV/EXTRA_IMPLfindings indexed askk:arch-decisions(skip if none confirmed) - [ ] Next steps confirmation from user
Indexing is owned by this skill — callers (e.g., $kk:implement) do NOT duplicate it.
Review Modes
Standard Mode ($kk:review-spec)
Reviews spec conformance in the main conversation context. Single-pass review using the workflow below.
Isolated Mode ($kk:review-spec:isolated)
Delegates detection to an independent spec-reviewer sub-agent that did not write the code, then annotates its findings with type-specific author context. Low-relevance types (MISSING_IMPL, DOC_INCON, OUTDATED_DOC, AMBIGUOUS) get brief annotations; high-relevance types (SPEC_DEV, EXTRA_IMPL) get detailed annotations with spec update suggestions.
- Cost: Higher (sub-agent + annotation)
- Isolation: True — reviewer has zero authorship bias or session context
- Degradation: If sub-agent fails, suggests standard mode fallback
- Best for: When extra rigor is worth the cost (post-implementation, pre-merge)
See review-isolated.md for the isolated workflow.
Finding Types
Each finding is classified by type (what kind of mismatch) and severity (how urgent).
| Type | Code | Description | Example |
|---|---|---|---|
| Missing Implementation | MISSING_IMPL |
Spec describes something that was not implemented | Design says "rate limiting on /api/auth" but no rate limiter exists |
| Extra Implementation | EXTRA_IMPL |
Code implements something not in the spec | A caching layer was added that design docs don't mention |
| Spec Deviation | SPEC_DEV |
Code implements the feature but differently than specified | Design says "bcrypt cost 12" but code uses cost 10 |
| Doc Inconsistency | DOC_INCON |
Documentation contradicts itself or is internally inconsistent | design.md says JWT tokens, implementation.md says session cookies |
| Outdated Doc | OUTDATED_DOC |
Code is correct but docs haven't been updated to reflect reality | Endpoint was renamed during implementation but docs still reference old name |
| Ambiguous Spec | AMBIGUOUS |
Spec is unclear enough that multiple interpretations are valid | "Support pagination" without specifying cursor vs offset |
IaC Profile Semantics
When profile detection identifies an Infrastructure-as-Code profile (e.g., Kubernetes, Terraform), the declarative artifacts ARE the implementation — there is no separate runtime code to trace. Apply these adjusted type-mappings:
- A design-specified resource whose manifest is absent →
MISSING_IMPL(absence in declarative systems is a gap, not a pending item or inconsistency) - A field value in a manifest that disagrees with the design →
SPEC_DEV - A manifest resource the design does not mention →
EXTRA_IMPL
DOC_INCON and OUTDATED_DOC apply unchanged — their semantics are doc-vs-doc or code-vs-doc, which declarative IaC does not alter.
For each active IaC profile that populates a review-spec/ slot, load ../../profiles/<name>/review-spec/index.md for domain-specific verification patterns.
Severity Levels
Same P0–P3 scale as $kk:review-code, adapted for spec conformance:
| Level | Name | Description | Action |
|---|---|---|---|
| P0 | Critical | Missing core functionality, security spec violated, data model mismatch | Must fix before merge |
| P1 | High | Significant behavioral deviation from spec, missing error handling that spec requires | Should fix before merge |
| P2 | Medium | Minor deviation, doc inconsistency, partial implementation of a spec requirement | Fix or create follow-up |
| P3 | Low | Naming mismatch, doc typo, cosmetic deviation from spec | Optional |
Confidence Levels
Each finding gets a confidence score (1–10) with mandatory reasoning explaining what was checked, what evidence supports the finding, and what uncertainty remains.
| Score | Meaning |
|---|---|
| 9–10 | Certain — direct, unambiguous contradiction between spec and code |
| 7–8 | Strong — clear evidence but minor room for interpretation |
| 5–6 | Moderate — likely issue but spec is somewhat vague or code has plausible alternative reading |
| 3–4 | Uncertain — possible issue, needs human judgment |
| 1–2 | Speculative — gut feeling, very ambiguous spec or indirect evidence |
Workflow
Mandatory order — spec before code. The flow below is strictly sequential. Do not read implementation code, run grep against the codebase, or form spec-deviation findings until you have loaded the feature's design/implementation docs AND completed profile detection and loaded all resolved review-spec/ profile content. The only early contact with the implementation is a feature-directory listing (filenames only) — enough to drive profile detection, not enough to pattern-match deviations.
See review-process.md for the detailed step-by-step process.
Phases:
- Load feature documents — read
tasks.md,design.md,implementation.md(the spec, not the subject matter) - Capy search: Search
kk:arch-decisionsfor design rationale that may explain intentional spec deviations. Searchkk:review-findingsfor known patterns from prior reviews. - Detect active profiles and load
review-spec/content from matching profiles - Determine review scope (mid-implementation vs post-implementation)
- Per-task verification against spec — only now read implementation code (apply IaC type-mapping when an IaC profile is active)
- Cross-cutting concern check
- Self-check and confidence assessment
- Present findings
- Index confirmed deviations — index user-confirmed intentional
SPEC_DEV/EXTRA_IMPLaskk:arch-decisions
Invocation
Use the $kk:review-spec [feature-name] command, or invoke naturally when a user asks to verify implementation against docs.
For isolated mode with an independent sub-agent:
$kk:review-spec:isolated [feature-name]版本历史
-
v0.25.4
GitHub ↗
原版更新说明
## What's Changed * Protect repo-local kubeconfig files as guard secrets by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/190 * Remove ignored Codex auto-review settings by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/193 * Apply destructive rules to commands spawned from inline code by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/191 * Add docs explore page around real catches from capy by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/194 **Full Changelog**: https://github.com/serpro69/claude-toolbox/compare/v0.25.3...v0.25.4
-
v0.25.3
GitHub ↗
原版更新说明
## What's Changed * Apply YAGNI to design plans and make scope reviews two-sided by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/189 **Full Changelog**: https://github.com/serpro69/claude-toolbox/compare/v0.25.2...v0.25.3
-
v0.25.2
GitHub ↗
原版更新说明
## What's Changed * Add manual task handoffs through secret gists by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/187 **Full Changelog**: https://github.com/serpro69/claude-toolbox/compare/v0.25.1...v0.25.2
-
v0.25.1
GitHub ↗
原版更新说明
## What's Changed * Preserve guard denial diagnostics in Codex adapters by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/185 * Keep vendored Go profile references self-contained by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/186 **Full Changelog**: https://github.com/serpro69/claude-toolbox/compare/v0.25.0...v0.25.1
-
v0.25.0
GitHub ↗
原版更新说明
## What's Changed * Revamp permission guard engine by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/178 **Full Changelog**: https://github.com/serpro69/claude-toolbox/compare/v0.24.1...v0.25.0
此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- High-value tool for ensuring code-spec alignment, critical for software quality and maintenance
- Supports both mid-implementation and post-implementation review modes
- Comprehensive finding types covering all common spec-code mismatches
待提升项
-
description写错位置 原报告严重程度:轻微
Top-level description is brief while detailed description is in skill_body frontmatter
改进建议:Move detailed description to top-level for better visibility
亮点
- Clear trigger description with multiple invocation patterns
- Supports both command-based and natural language invocation
待提升项
-
文档过长 原报告严重程度:轻微
Skill documentation is comprehensive but quite lengthy
改进建议:Consider breaking into smaller sections or adding a quick-start guide
亮点
- Well-structured with clear phases and workflow
- Includes comprehensive examples and type definitions
- Frontmatter is complete and properly formatted
待提升项
-
引用文件缺失 原报告严重程度:轻微
References several external files (.codex/scripts/session-start.sh, shared-capy-knowledge-protocol.md, etc.) that are not included in the package
改进建议:Ensure all referenced files are included or provide fallback mechanisms
亮点
- Detailed workflow with clear phase separation
- Includes confidence scoring and reasoning requirements
- Has isolated mode for unbiased review with fallback mechanism
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。