Xpersona
C

Code Review Cycle

CLAWHUB · Unverified

执行 Coding ↔ Review 循环。A 写代码 → B Review → A 修改(可选)。支持 codex/claude-code 作为 A 或 B。 Skill: Code Review Cycle Owner: raccoon-office Summary: 执行 Coding ↔ Review 循环。A 写代码 → B Review → A 修改(可选)。支持 codex/claude-code 作为 A 或 B。 Tags: latest:0.1.4 Version history: v0.1.4 | 2026-03-26T01:46:12.177Z | auto Version 0.1.4 - Major docs rework: greatly simplified SKILL.md, focusing on usage, roles, and workflow. - Added a new README.md file. - Updated default values and option details for --agent-b and --rounds p

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17ewn22qr2ece1jeppe1vw2nh83gmkv:code-review-cycle-skill
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-raccoon-office-code-review-cycle-skill/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

20,977 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: code-review-cycle
description: 执行 Coding ↔ Review 循环。A 写代码 → B Review → A 修改(可选)。支持 codex/claude-code 作为 A 或 B。
user-invocable: true
aliases: ["/cr", "/review-cycle", "/code-review"]
---

# Code Review Cycle

执行 A(编码) → B(Review) → 决策 的协作流程。

## 角色职责

| 角色 | 职责 | 权限 |
|------|------|------|
| **A (Coder)** | 写代码、改文件、实现功能 | ✅ 可写文件 |
| **B (Reviewer)** | Review 代码、提建议、做决策 | ❌ **只读,不写文件** |
| **主会话** | 调度 A/B、传递上下文、最终决策 | - |

## 触发方式

```
/cr <功能描述>
/cr --agent-a codex --agent-b claude-code <功能描述>
/cr --rounds 2 <功能描述>  # 最多自动循环 2 轮
```

## 参数

| 参数 | 默认值 | 说明 |
|------|--------|------|
| `--agent-a` | `codex` | 负责写代码的 agent (codex/claude-code) |
| `--agent-b` | `claude-code` | 负责 Review 的 agent |
| `--rounds` | `0` | 自动循环轮数(0=只执行 A→B,等你决定) |
| `--cwd` | 当前 workspace | 代码目录 |

## 流程

1. **Spawn A** → 写代码,输出 diff + 说明
2. **Spawn B** → **只读 Review**,输出:严重问题/建议优化/结论(**不写文件**)
3. **决策点**:
   - 如果 `--rounds > 0` 且 B 认为需要修改 → 自动回到步骤 1(最多 rounds 轮)
   - 否则 → 等你指令

## 输出格式约定

### A 的输出
```markdown
## [A-Code] 改动摘要
- 文件 1: ...

## [A-Code] 实现说明
...

## [A-Code] 待确认点
1. ...
```

### B 的输出(只读 Review)
```markdown
## [B-Review] 严重问题
- [ ] ...

## [B-Review] 建议优化
- [ ] ...

## [B-Review] 结论
□ 需要修改(具体问题:#1, #3)
□ 可以直接合并

---
[B 职责说明] 我只负责 Review,不修改任何文件。如需修改,请 A 执行。
```

## 示例

```
/cr 实现用户登录表单验证
/cr --agent-a claude-code --agent-b codex 添加暗色模式切换
/cr --rounds 2 重构 utils/date.ts 增加单元测试
```

## 注意事项

- 主会话作为调度器,保留所有历史便于追溯
- 每轮结束后会暂停等你确认(除非 rounds>1)
- A 和 B 的会话是临时的,用完即弃(不保留上下文)
- **B 只读不写** — Review 角色不修改任何文件

README.md

# Code Review Cycle

快捷命令:**`/cr <功能描述>`**

## 角色分工

| 角色 | 职责 | 权限 |
|------|------|------|
| **A (Coder)** | 写代码、改文件 | ✅ 可写 |
| **B (Reviewer)** | Review、提建议 | ❌ **只读** |

## 用法

### 基础用法(推荐)
```
/cr 实现用户登录表单验证
```
→ A=codex 写代码 → B=claude-code Review(只读) → 等你决定

### 指定 Agent
```
/cr --a claude --b codex 添加暗色模式
```

### 自动循环(最多 N 轮)
```
/cr --rounds 2 重构 utils/date.ts
```

## 输出格式

### A (编码)
```markdown
## [A-Code] 改动
- 文件 1: ...

## [A-Code] 说明
...
```

### B (Review - 只读)
```markdown
## [B-Review] 严重问题
- [ ] ...

## [B-Review] 建议
- [ ] ...

## [B-Review] 结论
□ 需要修改  □ 可以直接合并

---
[B 职责说明] 我只负责 Review,不修改任何文件。
```

## 后续操作

B Review 后,你可以说:
- `A,修改第 1、3 点` → 继续循环
- `可以了` / `结束` → 完成
- `B,再看一下 XXX` → 追加 Review(仍只读)

_meta.json

{
  "ownerId": "kn7fn7wqackqcpb9cn7zxdk5hn82n8cb",
  "slug": "code-review-cycle-skill",
  "version": "0.1.4",
  "publishedAt": 1774489572177
}

skill-card.md

## Description:

Coordinates a Coding to Review cycle where one agent implements code changes, another reviews them in read-only mode, and the user decides whether to continue.

This skill is ready for commercial/non-commercial use.

## Publisher:

[raccoon-office](https://clawhub.ai/user/raccoon-office)

### License/Terms of Use:

MIT-0

## Use Case:

Developers use this skill to coordinate a two-agent coding and review loop for code changes, keeping the reviewer read-only while the main session decides whether to request fixes or finish.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The coder role can modify files in the current workspace when the workflow is invoked.

Mitigation: Run the workflow from the intended workspace and review the coder output and reviewer findings before accepting changes.

Risk: Automatic rounds can repeat coding changes up to the requested round count.

Mitigation: Use a low round count for supervised work and inspect each review decision before continuing.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/raccoon-office/skills/code-review-cycle-skill)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, guidance]

**Output Format:** [Markdown with structured coder and reviewer sections, plus task prompts and JSON session invocation examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May include coder diffs, review findings, follow-up decisions, and optional automatic review cycles.]

## Skill Version(s):

0.1.4 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Code Review Cycle and adjacent AI workflows.