cross-modal-review
它能做什么
这项技能在你确定完成的工作之前,把它发送给另一个 AI 模型进行审阅。如果某个模型拒绝审阅,它会切换到下一个备选模型。
适用场景
- ✓当一项改动涉及大量文件或包含对安全敏感的代码时。
- ✓当你的智能体陷入困境,想对其方法进行全新审阅时。
- ✓当你想在定稿前对工作进行独立检查时。
技能链接
https://github.com/garrytan/gbrain/blob/master/plugin/skills/cross-modal-review/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在我们定稿这项改动之前,请让另一个 AI 模型就安全风险给我第二意见。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会把工作内容连同原始任务的承诺一起交给第二个模型。它会报告两个模型一致与分歧的地方,最终决定由你做出。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Cross-Modal Review
Convention: see conventions/cross-modal.yaml for the review pairs and refusal routing chain.
Relationship to
gbrain eval cross-modal: This skill is the manual mid-flow gate (one model reviews work product before commit, with refusal routing). Thegbrain eval cross-modalcommand (v0.27.x) is a sibling surface: 3 different-provider frontier models score-and-iterate on a documented dimension list before tests cement behavior. Use this skill for ad-hoc second opinions; usegbrain eval cross-modalfor the skillify Phase 3 quality gate. The two are complementary, not redundant.
Contract
This skill guarantees:
- Work product is reviewed by a different model before finalizing.
- The review is graded against the originating skill's Contract section (what was promised), not vibes.
- Agreement and disagreement are reported transparently.
- Refusal from one model triggers a silent switch to the next in chain.
- The user always makes the final decision (user sovereignty).
When to invoke (v0.25.1 gating)
Invoke this skill when:
- Significant code changes — any commit touching 5+ files or 100+ lines. Architecture decisions, refactors, API changes.
- Security-sensitive changes — auth flows, brain-write trust boundaries, webhook transforms, cross-skill data passing.
- Stuck or churning — 2+ iterations on the same problem without progress.
- Pre-bulk-operation — before running batch enrichment, migrations, or bulk writes (see conventions/test-before-bulk.md).
- Skill creation / modification — new or rewritten skills that affect operational behavior.
- Brain-page quality concerns — when brain writes need validation against the originating skill's Contract.
Do NOT invoke for:
- Simple memory writes or brain-page updates
- Single-file typo fixes
- Routine cron output or heartbeat operations
- Git commit / push of already-reviewed work
Phases
- Capture the work product. The brain page, analysis, code diff, or decision to be reviewed.
- Load the Contract. Read the originating skill's Contract section (what was promised).
- Spawn review model. Send the work + Contract to a different model. Use conventions/model-routing.md for model selection.
- Grade. Model evaluates: did the output follow the Contract? Pass / fail with specific citations.
- Report. Present agreement / disagreement to the user. Never auto-apply the reviewer's suggestions.
Code-review handoff (v0.25.1 extension)
For diff review specifically, gstack ships a /codex skill that wraps
the OpenAI Codex CLI. Two modes:
Codex Review
Independent diff review from a different AI system. The user invokes
/codex review (gstack-shipped); cross-modal-review's job is to
RECOGNIZE when this is the right tool and recommend it explicitly.
When to recommend /codex review:
- After a substantive diff lands and before merge
- When the user wants a second opinion that's NOT another Claude
Output framing (when cross-modal-review surfaces Codex output):
CODEX REVIEW (independent second opinion):
══════════════════════════════════════════
<full codex output, verbatim>
══════════════════════════════════════════
CROSS-MODEL ANALYSIS:
Both found: [overlapping findings]
Only Codex: [findings unique to Codex]
Only Claude: [findings unique to my analysis]
Agreement: X% (N/M findings overlap)
User decides what to act on. Cross-model agreement is signal, not permission.
Adversarial Challenge
Same shape, different prompt. Used on security-sensitive changes: the reviewer is asked to find injection vectors, race conditions, auth bypasses, data leaks, privilege escalation paths.
Output adds an exploitability rating (CRITICAL / HIGH / MEDIUM / LOW) and recommended mitigations.
Refusal routing
If the primary review model refuses:
- Switch silently to the next model in the chain (see
conventions/cross-modal.yaml). - Don't show the refusal to the user.
- Don't announce the switch.
- If ALL models in the chain refuse, escalate to the user.
Output format
Standard review
Cross-Modal Review
==================
Reviewer: {model name}
Contract: {originating skill}
Verdict: PASS | ISSUES FOUND
Findings:
- {finding with evidence}
Agreement with primary: {X}%
常见问题
第二个模型会做最终决定吗?
不会。最终决定始终由你做出,审阅只是一个建议。
如果一个模型拒绝审阅怎么办?
技能会悄悄切换到其备选链中的下一个模型。
它与 eval 命令有什么不同?
这是临时的第二意见,而 eval 命令是包含多个模型的正式质量关卡。
详情
作者的原始描述
Quality gate via second model. Spawn a different AI model to review work before committing. Includes refusal routing: if one model refuses, switch silently to the next. Extended in v0.25.1 with structured review-mode gating (when to invoke vs not) and a Codex code-review handoff for the diff-review case.
repo: garrytan/gbrain
热度
- GitHub 星标
- 31k
- 排名
- #9298
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …