# Code Review

> 跨平台静态代码审查与独立 reviewer 门禁。用于审查任务全量 diff、直接影响面、正确性、安全性、并发、数据与权限不变量、验证故事及回归风险；平台语言/API/工具链细节由对应平台 review extension 补充。本 Skill 只读，不直接修复或执行构建测试。

- **Type:** Skill
- **Install:** `agentstack add skill-choshimwy-agentdevelopmentskills-code-review`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [ChoshimWy](https://agentstack.voostack.com/s/choshimwy)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [ChoshimWy](https://github.com/ChoshimWy)
- **Source:** https://github.com/ChoshimWy/AgentDevelopmentSkills/tree/main/disciplines/review/skills/code-review

## Install

```sh
agentstack add skill-choshimwy-agentdevelopmentskills-code-review
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 独立代码审查

## Purpose

Perform evidence-based, read-only review across platforms while preserving reviewer independence, explicit scope, severity, and verification-story judgement.

## When to Use

- 审查工作区、提交、PR、公共合同或测试充分性。
- 实现链路进入最终独立 reviewer 门禁。
- 规则、Schema、安装或权限变更需要静态风险评估。

## When Not to Use

- 直接修改实现或测试。
- 运行时 crash、profiling、build/test 执行或发布操作。
- 用实现 Agent 的自审替代独立 reviewer。

## Agent Rules

- 实现链路必须由未参与实现的独立 reviewer subAgent 执行；无法确认独立性时报告 blocked。
- 默认覆盖 staged、unstaged、untracked 与任务基线后的相关提交；无法确定基线时说明 fallback。
- 先从调用方、状态写入点、持久化/缓存/输出路径提取业务不变量，再判断正确性。
- 同时审查正向触发与负向保护，不能只检查 happy path。
- 发现必须绑定文件和尽可能窄的行号；不得把推断写成已复现事实。
- 平台专属 API、并发模型、文件头、依赖与构建规则交给已解析的 `review..*` extension。
- 本 Skill 不修改文件，不运行构建测试，不伪造运行时证据。

## Review Priority

```text
正确性 → 安全性 → 数据/权限不变量 → 并发 → 性能 → 可维护性 → 一致性
```

## Inputs

```json
{
  "review_base_ref": "optional",
  "changed_files": [],
  "diff_scope": "working-tree",
  "validation_result": {},
  "platform_extensions": [],
  "reviewer_independence": "independent-subagent | pure-review | unavailable"
}
```

## Outputs

可见回复默认使用：`阻塞问题`、`非阻塞建议`、`审查范围`、`影响面`、`未审查变更`、`首个失败`、`验证故事`、`审查独立性`、`风险等级`、`下一步`。无阻塞项必须明确写 `阻塞问题：无`。

## Exit Conditions

- 审查独立性成立。
- 审查基线、范围、直接影响面和未覆盖部分明确。
- 验证故事已裁决。
- 无阻塞项时才允许 `下一步：complete`。

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [ChoshimWy](https://github.com/ChoshimWy)
- **Source:** [ChoshimWy/AgentDevelopmentSkills](https://github.com/ChoshimWy/AgentDevelopmentSkills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-choshimwy-agentdevelopmentskills-code-review
- Seller: https://agentstack.voostack.com/s/choshimwy
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
