跳到正文
cccskills
免费在 GitHub 公开中文介绍

deep-review

通过独立审查者检查拉取请求、差异或分支,并根据改动检查逻辑、安全、性能、兼容性等问题,附上依据形成结构化报告。

原文查看原文说明

Use for independent PR, diff or branch review; not explanations. Full multi-agent review requires an explicit deep-review request.

lobehub/lobehub星标 83,504(GitHub 83,504 + cccskills 0)

实测评分 未实测

查看安装方法

适用场景

  • 审查拉取请求中的问题
  • 提交拉取请求前检查分支
  • 请求多个代理进行详细审查

中文介绍

功能

deep-review 会从独立视角审查拉取请求、代码差异和分支。它会根据改动选择检查项,可检查逻辑、错误处理、可读性、性能、安全、兼容性和用户体验,并结合代码库现有惯例及改动规模寻找问题。普通审查请求会由一名独立审查者按照快速检查清单进行检查。明确提出 deep-review 后,才会启动更完整的流程:由多名审查者检查、验证发现的问题、合并重复项,并生成结构化报告。该技能用于确认是否存在问题,而不是解释代码。

适用场景

提交拉取请求前,希望减少遗漏时可以使用。若希望由未参与实现的人从另一视角审查,也很适用。身份验证、计费或数据库等影响较大的改动,可以请求详细审查。

使用示例

  • “请审查这个拉取请求;如有问题,请附上依据并报告。”
  • “请让多个代理对这个分支进行完整审查。”

注意事项

详细审查需要明确提出。该技能适用于 Claude Code 和 Codex。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

文档检查

AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。

安全性发送数据、删除文件、执行命令等是否有说明
B部分不足详细审查需明确请求,但操作细节仅部分提供。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足注明支持 Claude Code 和 Codex,但未提供安装步骤。

不计入评分。 由 AI(OpenAI Codex)于 2026年10月26日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(31)

  • SKILL.md21.7 KB
  • references/claude-code/main.md4.7 KB
  • references/codex/main.md6.5 KB
  • references/consolidate-prompt.md1.2 KB
  • references/dimensions/ai-coding-bad-habits.md10.5 KB
  • references/dimensions/business-logic.md3.6 KB
  • references/dimensions/code-style.md2.9 KB
  • references/dimensions/compatibility.md5.8 KB
  • references/dimensions/logic.md3.6 KB
  • references/dimensions/new-feature.md7.0 KB
  • references/dimensions/observability.md7.7 KB
  • references/dimensions/performance.md4.2 KB
  • references/dimensions/release-risk.md5.5 KB
  • references/dimensions/reuse-architecture.md7.9 KB
  • references/dimensions/security.md2.6 KB
  • references/dimensions/skill-freshness.md2.0 KB
  • references/dimensions/ux.md2.3 KB
  • references/dimensions/workflow.md2.4 KB
  • references/light-review-prompt.md5.0 KB
  • references/release-risk/persisted-state.md3.8 KB
  • references/release-risk/prompt-surface.md2.4 KB
  • references/release-risk/rollout-surface.md2.8 KB
  • references/report-template.md13.5 KB
  • references/review-prompt.md9.6 KB
  • references/scoping.md7.2 KB
  • references/verification/release-risk.md1.1 KB
  • references/verification/reuse-architecture.md680 B
  • references/verify-prompt.md4.8 KB
  • scripts/validate-output.test.ts3.4 KB
  • scripts/validate-output.ts6.6 KB
  • scripts/vitest.config.ts163 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Deep Review

Multi-dimensional code review built on independent reviewers. Review breadth comes from parallel dimension coverage; precision comes from adversarial verification and global duplicate consolidation before findings reach the report.

Core principles

Every design choice below serves one of these. When unsure how to execute a step, come back here.

  1. Anti-hallucination — reviewers need surrounding context, not only diff fragments. Deep mode verifies candidate findings through independent agents returning confirmed / false_positive / need_more_context. Light mode uses the bounded follow-up procedure below; it does not add a separate per-finding verification pipeline.
  2. Anti self-approval — an agent that just wrote the code is grading its own homework and will pass it. Both modes use an independent reviewer with a third-party stance. Light: one reviewer that is not the main agent. Deep: independent subagents per the environment manual. Never silently degrade either mode to "the main agent reviews the diff itself".
  3. Rules over model — review quality comes from fine-grained, executable dimension rules, not from a smarter model. Subagents run on balanced/fast model tiers; each dimension file tells them exactly how to check, what counts, and what does not.
  4. Calibrate to codebase and lifespan — hold the diff to the standard the codebase already meets, not an idealized one. If a pattern is widespread in the existing code and this diff does not make it worse, it is not a finding. Declared-temporary code (time-boxed campaign, experiment, one-off script) is judged against its lifespan: hardcoding and low-extensibility shortcuts are the intended trade-off for shipping fast, and "delete the code at expiry" is a valid plan — do not demand configurability from code built to be deleted. (Security is exempt from all calibration — see the dimension file.)
  5. Speed is a feature — one wave of parallel reviewers, verification pipelined per dimension (never a global barrier), irrelevant dimensions pruned up front.

Two entry modes

ModeTriggerWhat runs
Light (default)Any ordinary review ask: "review this PR", an informal "look at this change for problems", a diff pasted for review — but not explain-only questions about a changeOne independent reviewer against the Quick checklist of each applicable dimension. Prefer a different-vendor harness when available; otherwise one same-harness subagent. At most one follow-up verification round as described below.
DeepExplicit only: /deep-review, "run deep review", "full multi-agent review"Full orchestration: dimension review agents → pipelined verification → global consolidation → structured report → interactive fix flow.

Do not auto-escalate light to deep. Do not run deep mode for a casual "看看这个改动" — that is light mode.

When to suggest Deep

Deep still needs the user's go-ahead, but the agent must ask for it when the change is high-risk. Before a light review or before opening the PR, suggest a Deep run (one sentence naming the signal) when the diff:

  • touches money or entitlements: charging, billing, subscriptions, credits, payment webhooks;
  • touches auth, permissions, or user isolation;
  • adds or changes database queries, schema, migrations, or backfills, or deletes persisted data;
  • changes a contract shared across packages, repositories, or released clients;
  • is large enough that one reviewer cannot hold it (roughly 1,000+ non-test changed lines).

For example, a PR adding a payment-path model query with a mocked-only test qualifies. Run Deep only after the user agrees; otherwise continue with light. The Deep-mode budget below still applies.

Deep-mode budget

Within one logical requirement (the same requirement, PR, or branch), run Deep mode at most once by default. Follow-up reviews after fixes, CI work, rebases, cleanup, context compaction, or a resumed session use Light mode, even when they review the whole diff again. These events do not reset the budget, and the review/verify/consolidate waves inside one Deep run all count as that single run.

Run Deep again only when the user explicitly requests another Deep pass, or when a genuinely new logical requirement begins. A casual follow-up such as "review again", "复核一下", or "再看看" is a Light request, not implicit authorization for another Deep run.

Dimensions

Rules live in one place: references/dimensions/, one file per dimension. Both modes use the same files. The light reviewer reads the full Quick checklist section, including nested example subsections; deep-mode agents read the full dimension file plus only the rule sources and routed references applicable to the touched surface.

Dimensionid prefixCoversVerified?
ai-coding-bad-habitsainarrow special cases in generic code, partial refactors, redundant type guards/aliases, comment narration, and precedent-blind implementationyes
code-stylestylenaming, readability, dead code, comments, i18n hardcoding, UI-library and styling conventionsyes
logiclogiclogic correctness: edge cases, null, races, error handling, state machines, requirement deviation, test coverageyes
business-logicdesigndesign judgment: framework misuse, best-practice violations, solution-weight mismatch, self-inflicted complexityyes
new-featurefeaturenew-capability design: domain vocabulary and structure, durable data model and migration evidence, product analytics and operational observabilityyes
reuse-architecturereuseduplicate implementations, unused existing patterns, extensibility, architectural boundariesyes
performanceperfN+1, blocking calls, resource leaks, render-path waste, DB migration locking and idempotencyyes
release-riskriskship/no-ship gate: irreversible persisted state (incl. schemaless shape drift), dev-cycle migration residue, in-flight work & config at deploy time, irreversible outbound effects, prompt/tool-description behavior shifts, shared-surface and high-frequency-UI blast radius, PR purityyes + checks
securitysecinjection, auth bypass, secret/PII leakage, business-slot confidentialityyes
compatibilitycompatlight/dark theme, desktop app / web (desktop, mobile) / RN, released-client API compatibility, client vs server agent runtime (gateway on/off), Vercel vs Docker deploys, paired router configsyes
uxuxempty/loading/error states, async feedback, confirmation flows, design-value adherenceyes
observabilityobsdebug: unexplained fixes, uncommented hacks, silent catches, missing logs; product: analytics on qualifying new capabilities; perf: monitoring on high-frequency / high-traffic / polling pathsyes
workflowflowissue tracking state, PR description freshness, undocumented key decisions, CI / preview build statusno (objective state)
skill-freshnessskillagent skills invalidated by this diff, knowledge worth distilling into a new skillno (advisory)

Verified? no means findings from that dimension are objective state checks or advisories — they skip the verify pass and go straight to the report. yes + checks means the dimension's findings are verified normally, but it also emits a second, unverified output — release_checks, pre-deploy confirmation items about production state the repo cannot answer (see its dimension file).

Pruning table (deep mode)

Before spawning, the main agent prunes dimensions that cannot apply to the diff. List pruned dimensions and the one-line reason in the report header. When in doubt, run the dimension.

DimensionSkip when
ai-coding-bad-habits, code-style, logic, business-logic, reuse-architecturenever (skip only for docs/lockfile-only diffs)
new-featurediff does not introduce a new product, operator, or platform capability
performanceno server/db/loop/render-path code touched (e.g. docs, copy, pure type changes)
release-riskno DB schema/migration, no schemaless persisted payload, no queue/cron/config/outbound dependency, no prompt or tool-description text, no shared component or package public API, no high-frequency user surface, and the diff has one obvious purpose
securitylockfile/generated-only diff — docs and copy still run it (text is a leak vector: secrets, internal URLs, commercial details)
compatibilitydiff touches no UI theming/routing, no API contract, no deployment config, no runtime-branching code
uxno user-facing surface changed (components, styles, copy, interaction flows)
observabilityno error handling, async flow, server code, new user-facing capability, or perf-sensitive path touched
workflowlight: no PR/issue/CI context is available; deep: never (cheap external-state checks)
skill-freshnesslight: the diff neither changes agent instructions nor changes behavior/conventions covered by an existing skill; deep: never (cheap)

"Docs-only" means human-facing prose only. Files that are executable instructions for agents — .agents/skills/**, AGENTS.md / CLAUDE.md, prompt templates, orchestration manuals — count as code for pruning purposes: their "prose" carries control flow, contracts, and rules whose contradictions are exactly what logic / business-logic / reuse-architecture exist to catch. A diff touching them is never docs-only.

Light mode applies the same table to decide which Quick checklists to pass to the reviewer.

Extension packs

A wrapping repository (e.g. a private deployment that vendors this repo as a submodule) can extend the rule set without forking this skill: any sibling skill directory in the active skills root matching deep-review-* (for example .agents/skills/deep-review-cloud/) is an extension pack.

  • Extension packs contain dimensions/*.md files in the same format; a file named after a built-in dimension extends it (load both), a new name adds a dimension.
  • An extension file declaring extends: <name> where no such built-in dimension exists (typically because the wrapping repo pins an older submodule commit) falls back to standing on its own. Such a file must therefore carry its own id_prefix / verify / skip_when so it stays usable either way; when the built-in is present, the built-in's frontmatter wins.
  • Both modes must check for extension packs at startup and load whatever is present. Absence is normal — this skill is self-sufficient.
  • Extension packs may carry rules that must not live in this open-source repo; never copy their content into files under this directory.

Light mode procedure

If your user message is already an instantiated light-review prompt, you are the reviewer — follow that prompt and do not re-enter this procedure.

  1. Determine review scope exactly as deep mode step 0 does (see the environment manual's scope rules — three-dot diff from a base that does not lag the fork point, submodule diffs included), but skip the background-hunting extras when context already tells you what changed.
  2. Apply the pruning table; collect the surviving dimension files plus extension-pack counterparts. Do not read the checklists yourself.
  3. Instantiate references/light-review-prompt.md with the surviving {dimensions}, {dimension_files}, {scope_summary}, and {changes}. Dispatch exactly one independent reviewer, trying in this order:
    1. If this session can dispatch a self-contained task to a different vendor's coding-agent harness (not a same-harness subagent), use that. Prefer a preset whose job is independent code review when the dispatcher exposes one.
    2. Otherwise spawn one same-harness subagent. Disable context inheritance when the spawn API allows it.
    3. If the chosen path fails, try the next. If none work, stop and tell the user why. Do not review the diff yourself.
  4. Assess the findings against their evidence. In an authorized implementation task, fix accepted, safe, in-scope issues and run appropriate checks. To reject or downgrade a finding, send the counterevidence to the independent verification round below rather than overruling the reviewer yourself. A standalone review request does not authorize edits.
  5. Allow at most one follow-up verification round per review request, covering disputed findings and fixes together, regardless of dimension. Append the original findings and counterevidence to the light-review prompt and supply the current diff; ask the independent reviewer to check changed behavior and possible regressions. Correct or withdraw findings only with concrete evidence and state the reason. Fixes, new commits, and context compaction do not reset this budget. If verification still fails or leaves a finding unresolved, report that status honestly without further automatic review rounds. Necessary authorized repairs can continue, but do not claim a subsequent independent pass. A new explicit user request for review takes precedence over this automatic limit.
  6. Report the resulting findings and verification status in the environment's normal review format (not the deep report template). Keep pre-deploy confirmation items separate from defects.

Deep mode procedure

Before entering this procedure, check the logical requirement's Deep-mode budget above. If Deep has already run and the user did not explicitly request another Deep pass, use the Light procedure.

Pick the manual for the current environment and follow it end to end:

If the environment is not listed, tell the user deep mode does not support it yet and offer light mode instead. Do not improvise another environment's mechanics, and do not simulate deep in the main agent or as one packed reviewer (see principle 2).

Keeping this skill sharp

The skill-freshness dimension and the workflow_feedback channel in the subagent return schema exist to feed observations back into these files. When a review surfaces a rule gap, an outdated rule, or a recurring team preference, update the relevant dimension file in the same PR or a follow-up — that is how calibration stays current.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

acceptance

免费有简介

通过实际操作产品验证交付内容,记录用户可查看的证据,并发布验收报告。可检查已有验证计划或创建检查项,选择合适的操作界面,并使用 `lh` CLI 发布结果。

  • 实际检查更改后的产品行为
  • 收集截图或其他验证证据
  • 编写验证计划和报告
lobehub/lobehub8.4万2026年10月26日 更新

add-model-provider

免费有简介

本技能指导在 LobeHub 中接入 AI 模型提供商,涵盖运行时、模型信息、设置、品牌展示、文档和验收,并帮助判断新增模型是否需要新的提供商集成。

  • 为 LobeHub 接入新的 AI 模型提供商
  • 更新提供商设置说明或介绍
  • 判断添加模型是否需要新的提供商集成
lobehub/lobehub8.4万2026年10月26日 更新

add-setting-env

免费有简介

本技能指导如何用服务器端环境变量设置用户偏好默认值,涵盖变量校验、服务器配置、写入用户状态,以及更新 `.env.example` 和自托管文档。

  • 通过环境变量设置用户偏好默认值
  • 将设置接入服务器配置和用户状态
  • 更新环境变量示例及文档
lobehub/lobehub8.4万2026年10月26日 更新

agent-runtime-hooks

免费有简介

说明如何在智能体执行步骤、工具调用、人工审批、上下文压缩和子智能体调用时注册钩子。钩子可观察事件、模拟本地工具结果,也可通过 Webhook 按配置策略允许或拒绝工具调用。

  • 记录智能体步骤和错误
  • 测试时模拟工具结果
  • 通过 Webhook 允许或拒绝工具调用
lobehub/lobehub8.4万2026年10月26日 更新

agent-signal

免费有简介

此技能用于为智能体设计事件驱动的后台工作流,划分来源、信号、动作和策略的职责,并处理异步交接、去重、执行范围、完成记录与运行观测。

  • 添加事件触发的后台任务
  • 将工作移出对话请求
  • 防止动作重复执行
lobehub/lobehub8.4万2026年10月26日 更新

agent-testing-bot

免费有简介

本技能在 macOS 桌面聊天应用中测试机器人频道:打开应用、进入频道或联系人、发送消息、等待回复并截图。支持 Discord、Slack、Telegram、微信、飞书和 QQ;iMessage 使用 BlueBubbles 桥接。

  • 检查真实 Discord 频道中的机器人回复
  • 测试 Slack 或 Telegram 的对话流程
  • 记录 macOS 应用中的操作结果
lobehub/lobehub8.4万2026年10月26日 更新

查看 lobehub 的全部技能

报告此技能的问题