登录
code-review.md已公开
current skill~ /skills/code-review

code-review

Perform adversarial code review workflows and review-application workflows via the `mpcr` protocol CLI. Use when reviewing diffs/PRs, synthesizing structured review findings, applying review feedback, running full-cycle review→apply→re-review, or coordinating specialist subagents for security, correctness, complexity, and release readiness decisions.

downloads
3
updated
2026/04/22
author
Admin
visibility
已公开
downloads.trend.tsxlast 7 days

当前技能最近 7 天下载趋势

用和首页一致的趋势图,快速判断这个 skill 最近是否还在被持续下载和使用。

7d total
1
quickstart.shinstall
安装命令
npx skills add code-review
使用建议

先看趋势和左侧结构化信息,再决定是直接下载、复制安装命令,还是继续阅读原始 `SKILL.md`。

overview.tsdecision summary
- Unix path: - /tmp/skill-errors/code-review/<yyyy-mm-dd/<HH-MM-SSerrors.md - Windows path: - %TEMP%\\skill-errors\\code-review\\<yyyy-mm-dd\\<HH-MM-SSerrors.md
Log skill-caused friction only (documentation mismatches, bad role names, missing files, protocol contradictions, wrapper/CLI behavior mismatches). Do not log user-project build/test failures.
SKILL.md previewcollapsible

name
code-review
description
Perform adversarial code review workflows and review-application workflows via the `mpcr` protocol CLI. Use when reviewing diffs/PRs, synthesizing structured review findings, applying review feedback, running full-cycle review→apply→re-review, or coordinating specialist subagents for security, correctness, complexity, and release readiness decisions.
---
name: code-review
description: >-
  Perform adversarial code review workflows and review-application workflows via
  the `mpcr` protocol CLI. Use when reviewing diffs/PRs, synthesizing structured
  review findings, applying review feedback, running full-cycle review→apply→re-review,
  or coordinating specialist subagents for security, correctness, complexity, and
  release readiness decisions.
compatibility: >-
  Cross-platform. Primary entrypoint: `<skills-file-root>/scripts/mpcr` (POSIX) or
  `<skills-file-root>/scripts/mpcr.cmd` (Windows; falls back to
  `<skills-file-root>/scripts/mpcr.ps1`). Practical AGENTS compliance note: this skill
  currently ships source + wrappers but no committed prebuilt `mpcr` binary, so first-run
  may require a Rust toolchain to build `<skills-file-root>/scripts/mpcr-src`.
---

# Code Review

## Scope root
All skill-local paths resolve from `<skills-file-root>` (the directory containing this file).

## Invocation aliases
Recognize these as triggers (case-insensitive):
- `code-review reviewer [ctx]` or `code-review review [ctx]`
- `code-review applicator [ctx]` or `code-review apply [ctx]`
- `code-review full-cycle [ctx]`, `code-review full [ctx]`, or `code-review auto [ctx]`
- `code-review [ctx]` (infer via workflow selection guidance)

## Worker detection (highest precedence)
IF the prompt includes `## Proof Packet:`, `MPCR_DISPATCH_ROLE=`, or `MPCR_APPLICATOR_ROLE=`, you are a worker.
- STOP reading this file.
- Follow the dispatch prompt only.
- You MAY run `mpcr protocol <subcommand>` for phase guidance.

## Orchestrator bootstrap
When not in worker mode:
1. Run `mpcr protocol capabilities`
2. Run `mpcr protocol orchestrator`
3. Run `mpcr protocol domains`
4. IF capabilities include `mpcr protocol invocation-aliases`, run it.
5. IF capabilities include `mpcr protocol workflow-selection`, run it.
6. IF capabilities include `mpcr protocol scope-mapping`, run it.
7. IF capabilities include `mpcr protocol convergence-planning`, run it.
8. WHEN full-cycle applies, run `mpcr protocol fullcycle`

## Universal rules
- The orchestrator is coordinator-only. It SHALL NOT emit direct file:line findings; line-level findings come from dispatched reviewer/applicator workers.
- "Single-agent" review still means one dispatched worker, not direct orchestrator diff inspection.
- Do not paste raw diffs unless requested.
- Keep code excerpts <= 12 lines each and <= 3 excerpts total.
- Proof/report artifacts SHALL be TOML-first (`proof_packet.v2`) with JSON fallback only; YAML is forbidden.
- TOML-first applies to proof/report artifac

预览已截断。下载完整技能包可查看全部文件内容。

next-steps.mdrecommended flow

1. 先判断它是否匹配你的任务、运行环境和依赖边界。

2. 再结合最近 7 天下载趋势,决定是直接安装还是先下载完整包审阅。

3. 需要程序化集成时,再去 Docs 查看 API 和 OpenAPI 描述。