doc-code-review-report

对文本输入或文档进行本地代码库审查并生成结构化审查报告,列出发现的问题和重构建议。适用于用户提供需求、设计说明、API 文档、Markdown 分析、PR 文本或其他书面材料,并要求全面检查逻辑缺陷、Bug、契约不匹配、TODO、空实现或行为缺失及文本与代码不一致之处。

仓库最近推送
GitHub Stars
136
Forks
20
Issues / PRs
1

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "doc-code-review-report":https://skillpi.com/zh/skills/deepskill-3e23e1837cd8fc33d90a45e018274476e77dc416391a554e0ea31b428a29c4af。安装前核对上游来源和版本:https://github.com/penwyp/ClaudePreference。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

对文本输入或文档进行本地代码库审查并生成结构化审查报告,列出发现的问题和重构建议。适用于用户提供需求、设计说明、API 文档、Markdown 分析、PR 文本或其他书面材料,并要求全面检查逻辑缺陷、Bug、契约不匹配、TODO、空实现或行为缺失及文本与代码不一致之处。

0 下载

介绍来源: third_party · penwyp · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
输入和输出
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: doc-code-review-report
description: Review text input or documents against the local codebase and produce a structured review report with findings and refactor suggestions. Use when the user provides requirements, design notes, API docs, Markdown analysis, PR text, or other written material and asks for a full review covering logic flaws, bugs, frontend-backend contract mismatches, TODOs, empty or fake implementations, missing behavior, or inconsistencies between the text and the code.

Doc Code Review Report

Overview

Review the user's text or document as a claim source, then verify those claims against the real codebase. Produce an evidence-backed review report, not a summary, and separate confirmed issues from inference.

Read references/report-template.md only when you need a ready-made report scaffold.

Workflow

  1. Normalize the review input.
  • Accept plain text, Markdown, notes, PR descriptions, API docs, or design documents.
  • Extract concrete claims: intended behavior, request flow, data fields, state changes, error handling, and unfinished work markers.
  • If the input is broad, narrow it to the specific flow, module, or interface under review.
  1. Locate the implementation before judging it.
  • Find the real entry points first: routes, pages, handlers, services, schedulers, workers, repositories, generated clients, OpenAPI specs, or protocol types.
  • Prefer concrete call paths over keyword-level guesses.
  • If the document describes a frontend flow, trace both UI state transitions and backend requests.
  1. Verify behavior claim by claim.
  • Check whether the implemented logic matches the stated requirement or document claim.
  • Distinguish:
    • documented but not implemented
    • implemented but undocumented
    • implemented differently from the document
    • behavior cannot be confirmed from current code
  1. Review for correctness and bug risk.
  • Look for broken conditions, missing branches, invalid assumptions, stale state, race windows, missing null or empty handling, unchecked errors, and inconsistent data transformations.
  • Treat "works on happy path only" as a real finding when failure branches are absent or contradicted by the input document.
  1. Cross-check frontend and backend contracts when the flow crosses layers.
  • Confirm method, path, path params, query params, body fields, enum values, response fields, and error shapes.
  • Compare frontend request builders, generated API clients, backend handlers, service DTOs, protocol definitions, and local OpenAPI or schema files.
  • Flag mismatches such as renamed fields, optional-vs-required drift, type drift, enum drift, and response shape assumptions unsupported by backend code.
  1. Inspect unfinished or fake code paths.
  • Search for TODO, FIXME, HACK, unimplemented, panic, placeholder branches, dummy return values, feature flags that permanently short-circuit logic, or test doubles leaking into production paths.
  • Also inspect "empty success" implementations: functions that return Ok, true, empty arrays, empty structs, or stub messages without real side effects.
  1. Write the review report as reviewer findings first.
  • Order findings by severity and user impact.
  • Include file references for each confirmed finding.
  • Separate evidence from inference and list open questions only when they block certainty.
  • End with concrete refactor or remediation suggestions instead of vague advice.

Review Dimensions

  • 逻辑问题: The code path does not satisfy the described business rule, state machine, or control flow.
  • BUG风险: The implementation can panic, silently fail, corrupt state, skip validation, or produce incorrect data.
  • 前后端接口不一致: The client and server disagree on contract shape, endpoint usage, or state assumptions.
  • TODO/空实现/假实现: The code advertises completion but contains placeholders, inert branches, or no-op behavior.
  • 文档与代码不一致: The provided text claims behavior that the code does not implement, or omits behavior the code already has.

Evidence Rules

  • Prefer direct evidence from source code, generated clients, schema files, and route definitions.
  • Do not claim an interface mismatch unless both sides were checked.
  • Do not treat naming differences alone as bugs unless they affect data flow or runtime behavior.
  • When the document is ambiguous, say so and downgrade certainty instead of filling gaps with assumptions.
  • If a missing implementation may live outside the current repository, state that boundary explicitly.

Output Format

Use concise sections in this order:

  • Review scope
  • Overall assessment
  • Findings
  • Contract check
  • TODO / stub / fake implementation check
  • Refactor suggestions
  • Open questions

For Findings, use one flat bullet per issue and keep this shape:

  • Severity label: Critical, High, Medium, or Low
  • Problem statement
  • Why it is wrong or risky
  • Evidence with file references
  • Suggested fix direction

If no confirmed findings exist, say that explicitly and still report residual risk or unchecked areas.

Practical Search Pattern

  1. Read the user text and extract the key claims or promised behavior.
  2. Find the owning module and real execution path in code.
  3. Trace request and response shapes across boundaries.
  4. Search for unfinished markers and fake return paths in the relevant scope.
  5. Write findings first, then remediation guidance.

Guardrails

  • Do not stop at summarizing the document.
  • Do not trust comments or docs over executable code without saying so.
  • Do not list style nits unless the user explicitly asks for style review.
  • Do not dilute the report with low-signal observations when higher-risk issues exist.
  • Do not merge multiple independent problems into one bullet; keep each finding atomic.

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 提供文档与代码一致性审查能力,适用于需求文档、API 文档、PR 文本等与实际代码的比对
  • 能发现逻辑缺陷、接口不一致、空实现等关键问题,具有广泛实用价值
触发精准95/100

亮点

  • 触发词精准完整,明确描述适用场景和审查范围
  • 边界清晰,覆盖多种文档类型和审查维度
结构规范95/100

亮点

  • 结构清晰完整,包含工作流、审查维度、证据规则、输出格式等关键章节
  • 步骤划分明确,有出口条件和端到端示例,frontmatter 完整
执行可靠90/100

亮点

  • 审查流程详细严谨,强调基于源码验证而非文档
  • 覆盖主要异常场景,逻辑严谨,执行路径清晰
证据可验 (前四项均值)91/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。