分享一个 Codeg 多智能体协同下的 skill 案例,在一个会话里跨 Agent 协同,效率拉满 - V2EX
molicloud

分享一个 Codeg 多智能体协同下的 skill 案例,在一个会话里跨 Agent 协同,效率拉满

  •  
  •   molicloud 59 mins ago 94 views

    使用 Github:Codeg (开启多智能体协同的情况下)在 claude code 进行开发,在一个会话里使用 skill 和不使用 skill 的区别效果: claude code

    使用 skill 后任务完成会由 codex 自动 review ,有问题直接修复,解决了我以前手动来回倒腾的问题。这是 skill 内容(如果使用其它子智能体 review 的话,可以把 skill 里面的 codex 替换一下),可以直接在 skills 管理里面添加,欢迎大佬们使用反馈,或者创作分享:


    name: sub-agent-review-loop description: Use when any task could modify code, tests, config, schemas, migrations, deps, build/deploy scripts, artifacts, or behavior before completion

    Sub-Agent Review Loop

    Overview

    Use Codex as an independent reviewer after work that can modify artifacts or behavior. Loop until the latest result is production-ready.

    Core principle: Work is not complete until Codex approves the latest fixed version as production-ready.

    Required Loop

    1. Finish the implementation and run the relevant local checks.
    2. Call Codeg MCP delegate_to_agent with agent_type: "codex", absolute working_dir, and a self-contained task containing the request, changed files or diff/SHAs, checks run, and constraints.
    3. Require this quality bar: production-ready; do not approve while in-scope correctness, security, reliability, data, API, UX, performance, test, or maintainability issues remain.
    4. Use receiving-code-review: verify claims, fix valid feedback, and push back with evidence on invalid or out-of-scope feedback.
    5. Run the relevant checks again after fixes.
    6. Send the updated result back to Codex for re-review.
    7. Repeat until Codex approves the latest version with no unresolved valid in-scope issues.

    Do not use an ordinary in-session Task/general-purpose reviewer as a substitute.

    If delegate_to_agent is missing, Codeg MCP is not injected/enabled, he call fails, or the Codex child session fails, tell the human and leave the task incomplete or blocked. Do not self-review instead.

    Codeg MCP Call

    { "agent_type": "codex", "working_dir": "<absolute current working directory>", "task": "<complete review prompt; child cannot see this conversation>" } 

    Codex Review Prompt

    Review these completed changes as Codex. Quality bar: production-ready. Do not approve while in-scope correctness, security, reliability, data, API, UX, performance, test, or maintainability issues remain. User request: <request> Changes to review: <diff, changed files, or BASE_SHA..HEAD_SHA> Verification already run: <commands and results> Return: - Verdict: APPROVED or CHANGES_REQUESTED - Critical / Important / Minor issues - Required verification 

    For re-review, add:

    Re-review the latest state after fixes against the same production-ready quality bar. Do not approve unless the current version is ready to ship. 

    Quick Reference

    Situation Required action
    Artifact/behavior-changing task is done Call delegate_to_agent before final response
    Codex finds valid issues Fix, verify, send back to Codex
    Feedback seems wrong Verify, push back with evidence
    Minor issues remain Fix valid ones unless they expand scope or risk
    Codex approves latest version Final response may be sent after checks pass

    Red Flags

    Rationalizations:

    • "The change is tiny."
    • "The user is waiting."
    • "Tests already passed."
    • "I reviewed my own diff."
    • "Codex only found nits."
    • "I fixed the issue, so another review is unnecessary."
    • "I used a generic reviewer subagent instead of Codeg MCP."

    Common Mistakes

    Mistake Fix
    Reviewing the original diff after fixes Ask Codex to review the latest state
    Blindly applying feedback Verify with codebase evidence first
    Stopping after fixes Re-dispatch Codex after changes
    Treating tests as a replacement for review Run tests and Codex review
    Using an in-session reviewer Use Codeg MCP delegate_to_agent

    Completion Gate

    Final response is allowed only after implementation and accepted fixes are done, relevant checks pass or limitations are stated, Codex approves the latest version, and no known valid production-readiness issue remains in scope.

    No Comments Yet
    About     Help     Advertise     Blog     API     FAQ     Solana     5353 Online   Highest 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 32ms UTC 07:06 PVG 15:06 LAX 00:06 JFK 03:06
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86