Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add HuangYuan360/code-worker-mcp --skill code-worker-governancegit clone --depth 1 https://github.com/HuangYuan360/code-worker-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/huangyuan360/code-worker-mcp/code-worker-governance)<a href="https://agentmods.dev/skills/huangyuan360/code-worker-mcp/code-worker-governance"><img src="https://agentmods.dev/badge/skills/huangyuan360/code-worker-mcp/code-worker-governance/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/huangyuan360/code-worker-mcp/code-worker-governance"><img src="https://agentmods.dev/badge/skills/huangyuan360/code-worker-mcp/code-worker-governance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00045 | $0.02716 |
| Opus 5.5 | $0.00018 | $0.01086 |
| Sonnet 5.5 | $0.00009 | $0.00543 |
| Haiku 4.5 | $0.00005 | $0.00272 |
Grade A, and why
code-worker-governance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 261 lines — stays where its author put it; the contents beside it link to each section on GitHub.
使用方式
- 当用户想使用
code-worker MCP,或当前任务明显适合交给code-worker时启用。 - 进入本 skill 后,先让用户只选一次执行档位:
1. 快速2. 思考3. 自动
- 先做场景判定,再决定是否真的下发 worker;不要把它当成默认执行器。
- 主线程默认只读紧凑结果,不默认读全量日志、events、diff。
- 默认先单 worker 探路;只有共享抽象稳定、改动面低重叠时才开并行 worker。
- 长任务默认进入静默治理:主线程少说、少读、少轮询。
- 这个 skill 只负责“本次动作如何使用 code-worker”;安装、配置、预览安装说明放 README,不在这里展开。
执行档位
- 选项映射:
1. 快速->execution_tier=fast2. 思考->execution_tier=think3. 自动->execution_tier=auto
- 主线程与用户沟通时,只说
快速/思考/自动,不默认展开底层模型名。 - 真正下发单个 worker 前,主线程必须让该 worker 落成明确档位:
fastthink
auto只允许存在于“用户选择”和“主线程编排”阶段,不作为多子任务最终汇总的展示值。- 如果底层 MCP 返回了短标签,展示优先级:
快速(flash)思考(pro)- 若无短标签,仅展示
快速/思考
自动分配规则
- 当用户选择
3. 自动:- 先拆子任务,再给每个子任务单独分档
- 不要把整个需求统一粗暴下发成一种档位
- 默认分到
快速:- 单文件小改
- 小范围机械补丁
- 胶水代码
- 测试补齐
- 低风险脚手架
- 默认分到
思考:- 多文件实现
- 调试闭环
- 跨层调用链修改
- 共享抽象收敛
- 命名/契约/状态流转敏感改动
- 大范围链路梳理或复杂失败分析
- 如果任务先被判定为
纯读大范围且决定起 worker:- 默认
思考
- 默认
- 如果主线程无法稳定判断:
- 默认上调到
思考
- 默认上调到
快速判定
- 推荐使用:
- 多文件实现
- 调试闭环:读错误、定位、修复、复跑
- 大范围代码扫描:链路梳理、审计、模式搜索
- 长时间后台任务:慢检查、慢构建、长推理
- 默认不用:
- 单文件阅读
- 单文件小改
- 纯解释代码
- 需求澄清、方案讨论
- 高频碎片 follow-up
决策流程
- 先把任务归类为:
纯读小范围纯读大范围小范围改单文件多文件实现调试闭环长时间后台任务
- 如果属于
纯读小范围或小范围改单文件:- 主线程直接做
- 不起 worker
- 如果属于
纯读大范围:- 只在主线程自己读会明显吃上下文时才用 worker
- 用
review倾向的 task,接受completed_no_changes
- 如果属于
多文件实现或调试闭环:- 优先用 worker
- 优先把目标收窄为一个清楚子任务
- 默认先做一轮串行探路,不把并行当起手式
- 如果属于
长时间后台任务:- 用异步 worker
- 主线程不要频繁拉日志
拆分与并行规则
- 默认拆到“可独立验收的业务边界”,不要按文件数或函数数机械拆分。
- 如果多个子任务会同时改这些共享定义,禁止直接并行:
- 公共枚举
- 公共 DTO / VO
- 核心 resolver / router / orchestrator
- 核心 service 入口
- schema / migration / prompt 路由核心类
- 如果两个模块存在潜在共享抽象,但抽象还没稳定:
- 先创建一个“抽象收敛任务”
- 用单 worker 串行完成公共接口、枚举、命名、默认行为
- 收敛后再拆模块实现
- 只有同时满足下面条件,才允许并行 worker:
- 共享底座已稳定
- 任务之间改动面低重叠
- 每个子任务都能独立验收
- 失败后不会连锁回滚另一个子任务
- 并行 worker 完成后,不要逐个重 CR:
- 先做一次复用性 CR,检查重复抽象、命名漂移、默认值冲突
- 再做一次统一最终 CR
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 261 lines · 45 tokens per session scan A fe95d278c0ec
code-worker-governance is a skill published in the GitHub repository HuangYuan360/code-worker-mcp (0 stars, last pushed 4mo ago), licensed MIT. It adds 45 tokens to every session and 2,716 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
autoreview
Structured code review through the shared OpenClaw agent-skills installation.
omh-code-review
This is an OMH code-review workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
revdiff-plan
Review the last Codex assistant message (plan, analysis, or proposal) with inline annotations in a TUI overlay. Extracts the most recent response from Codex rollout files and opens it in revdiff for review and annotation. Activates on "revdiff-plan", "review plan with revdiff", "annotate plan", "review last response"…
asplos-writing-style
Use when drafting or revising ASPLOS prose — engineering the first two pages that rapid review actually reads, stating the cross-layer insight as one quotable sentence, structuring per-layer mechanism sections, writing bounded claims, and fitting everything into 11 self-contained pages that include figures and…
explore-unknowns
Guide the user through a quadrant walk that maps the unknowns of a task — open by listing the known knowns, then work through known unknowns, unknown knowns, and unknown unknowns one stage at a time, ending with a complete four-quadrant map in the user's hands. Use when a request is ambiguous or underspecified, the…
re0-merge
Review and land an external contribution the way this suite does: gate it against the thesis, land it with the author's credit intact, complete a new skill rather than merging it raw, then approve, credit, and explain before closing. Use when reviewing a pull request, as any collaborator or maintainer, not only the…