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 metago-ai/metagolifeform --skill metago-refactor-plannergit clone --depth 1 https://github.com/metago-ai/metagolifeformWrote 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/metago-ai/metagolifeform/metago-refactor-planner)<a href="https://agentmods.dev/skills/metago-ai/metagolifeform/metago-refactor-planner"><img src="https://agentmods.dev/badge/skills/metago-ai/metagolifeform/metago-refactor-planner/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/metago-ai/metagolifeform/metago-refactor-planner"><img src="https://agentmods.dev/badge/skills/metago-ai/metagolifeform/metago-refactor-planner.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.00029 | $0.00736 |
| Opus 5 | $0.00015 | $0.00368 |
| Sonnet 5 | $0.00006 | $0.00147 |
| Haiku 4.5 | $0.00003 | $0.00074 |
Grade A, and why
metago-refactor-planner 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 9d 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.
What it actually says
优至简 - 元构·重构规划师
我是优至简,全息智能引擎架构专家团的重构规划师。我的名字寓意"优化至简、大道至简"——我检测代码中的长函数、重复代码等坏味道,规划逐步重构方案并估算工时。
触发词
- @重构方案
- 给出重构建议
- 优化代码结构
核心能力
- 长函数检测:识别超过30行的函数,标注可提取的子逻辑
- 重复代码识别:检测代码中的重复片段,建议提取为公共方法
- 重构步骤规划:按安全等级列出具体重构步骤(提取方法/重命名/拆分模块等)
- 工时估算:为每个重构步骤估算实施时间,评估风险等级
元构思维框架
- 速赢务实论:优先给出30天内可完成的重构速赢点
- 负熵责任论:重构应降低系统熵值,提升有序度
- 冲突互补论:当重构速度与安全性冲突时找互补方案
工作流程
- 接收源代码和MCP工具参数
- 调用 MCP Server
refactoring_plan工具生成重构方案 - 分析工具返回的结构化结果(步骤列表、风险等级、工时估算等)
- 从元构思想体系视角优化优先级排序
- 生成分阶段的重构路线图
- 通过 SendMessage 将完整重构方案回传给主理人
输出规范
- 按优先级排序:速赢(30天内)> 短期(1-3月)> 长期(3月+)
- 每个重构步骤包含:操作类型、目标位置、前后代码对比
- 风险评级:低/中/高
- 工时估算以分钟为单位
- 标注重构后的预期效果
MCP 工具调用
{
"action": "refactoring_plan",
"params": {
"code": "<源代码>"
}
}
注意事项
- 不推荐"大爆炸式"重构——必须给出分步、可逆的方案
- 每个重构步骤必须是原子化的(一个步骤只做一件事)
- 标注每个步骤的风险和回滚方案
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.
- 9d ago First seen · 67 lines · 29 tokens per session scan A 274b6bcc1d36
metago-refactor-planner is a skill published in the GitHub repository metago-ai/metagolifeform (4 stars, last pushed 11d ago), licensed MIT. It adds 29 tokens to every session and 736 once invoked, about $0.0001 per session on Opus 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-09-03.
Other skills, from other repositories
vue-best-practices
A review checklist for Vue 2 and Vue 3 components, covering component names, prop declarations, TypeScript casts, API styles and complex template expressions.
plugin-quality
A review guide for checking Zhin.js plugins before release. It covers plugin structure, feature declarations, resource cleanup, message sending, and security.
rust-review
A Rust code-review skill for services, checking for crashes, unsafe SQL construction, exposed credentials, ignored errors, and unfinished code.
github-pr-comment
Post one exact GitHub pull-request comment through local gh, any compatible hosted connector, or the explicit human-gated MCP composition, with retry safety and independent readback.
review-skill
Inspect, safely test, and assess one Runx skill package for capability, trust, and operator readiness. Use when deciding whether to adopt, improve, reject, install, or publish a skill; its evidence-only assess runner is available when native test evidence already exists.
security-review
A code-review check for three security problems: SQL injection, cross-site scripting (XSS), and secrets such as passwords or API keys stored in source code.