원클릭으로
source-command-ccg-review
多模型代码审查:无参数时自动审查 git diff,双模型交叉验证
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
多模型代码审查:无参数时自动审查 git diff,双模型交叉验证
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
REST API design patterns including resource naming, status codes, pagination, filtering, error responses, versioning, and rate limiting for production APIs.
Django testing strategies with pytest-django, TDD methodology, factory_boy, mocking, coverage, and testing Django REST Framework APIs.
Spring Security best practices for authn/authz, validation, CSRF, secrets, headers, rate limiting, and dependency security in Java Spring Boot services.
为网页应用快速接入 OpenClaw 通道配置,自动输出可直接复制的 Webhook URL 与 Token。用于用户说“帮我配置 OpenClaw 通道”“给我 Webhook 和 Token”“一键生成接入参数”“OpenClaw 对话接入配置”这类场景,支持外部网页与本地网页两种模式,减少手工查配置和复制错误。
基于 AI 自动生成高质量 PPT 图片和视频,支持智能转场和交互式播放。
Enforce TDD workflow for Kotlin. Write Kotest tests first, then implement. Verify 80%+ coverage with Kover.
| name | source-command-ccg-review |
| description | 多模型代码审查:无参数时自动审查 git diff,双模型交叉验证 |
Use this skill when the user asks to run the migrated source command ccg-review.
双模型并行审查,交叉验证综合反馈。无参数时自动审查当前 git 变更。
/review [代码或描述]
git diff HEAD调用语法(并行用 run_in_background: true):
Bash({
command: "/Users/tangchunwu/.Codex/bin/codeagent-wrapper --backend <codex|gemini> - \"$PWD\" <<'EOF'
ROLE_FILE: <角色提示词路径>
<TASK>
审查以下代码变更:
<git diff 内容>
</TASK>
OUTPUT: 按 Critical/Major/Minor/Suggestion 分类列出问题
EOF",
run_in_background: true,
timeout: 3600000,
description: "简短描述"
})
角色提示词:
| 模型 | 提示词 |
|---|---|
| Codex | /Users/tangchunwu/.Codex/.ccg/prompts/codex/reviewer.md |
| Gemini | /Users/tangchunwu/.Codex/.ccg/prompts/gemini/reviewer.md |
并行调用:使用 run_in_background: true 启动,用 TaskOutput 等待结果。必须等所有模型返回后才能进入下一阶段。
等待后台任务(使用最大超时 600000ms = 10 分钟):
TaskOutput({ task_id: "<task_id>", block: true, timeout: 600000 })
重要:
timeout: 600000,否则默认只有 30 秒会导致提前超时。
如果 10 分钟后仍未完成,继续用 TaskOutput 轮询,绝对不要 Kill 进程。AskUserQuestion 工具询问用户选择继续等待还是 Kill Task。禁止直接 Kill Task。[模式:研究]
无参数时:执行 git diff HEAD 和 git status --short
有参数时:使用指定的代码/描述
调用 mcp__ace-tool__search_context 获取相关上下文。
[模式:审查]
⚠️ 必须发起两个并行 Bash 调用(参照上方调用规范):
Codex 后端审查:Bash({ command: "...--backend codex...", run_in_background: true })
/Users/tangchunwu/.Codex/.ccg/prompts/codex/reviewer.mdGemini 前端审查:Bash({ command: "...--backend gemini...", run_in_background: true })
/Users/tangchunwu/.Codex/.ccg/prompts/gemini/reviewer.md用 TaskOutput 等待两个模型的审查结果。必须等所有模型返回后才能进入下一阶段。
务必遵循上方 多模型调用规范 的 重要 指示
[模式:综合]
[模式:总结]
## 📋 代码审查报告
### 审查范围
- 变更文件:<数量> | 代码行数:+X / -Y
### 关键问题 (Critical)
> 必须修复才能合并
1. <问题描述> - [Codex/Gemini]
### 主要问题 (Major) / 次要问题 (Minor) / 建议 (Suggestions)
...
### 总体评价
- 代码质量:[优秀/良好/需改进]
- 是否可合并:[是/否/需修复后]