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 agentmods add skills/grasscaograss/awesomeweldoneskills/code-simplifynpx skills add grasscaograss/AwesomeWeldoneSkills --skill code-simplifygit clone --depth 1 https://github.com/grasscaograss/AwesomeWeldoneSkillsWrote 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/grasscaograss/awesomeweldoneskills/code-simplify)<a href="https://agentmods.dev/skills/grasscaograss/awesomeweldoneskills/code-simplify"><img src="https://agentmods.dev/badge/skills/grasscaograss/awesomeweldoneskills/code-simplify.svg" alt="Measured on agentmods" 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 | $0.00120 | $0.01556 |
| Opus 5 | $0.00060 | $0.00778 |
| Sonnet 5 | $0.00024 | $0.00311 |
| Haiku 4.5 | $0.00012 | $0.00156 |
Grade A, and why
code-simplify 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 3d 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 — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code Simplify
执行"以减法为先"的代码审查。目标不是补更多结构,而是让代码更短、更直白、更贴近当前项目规模。
User Input Tools
When this skill prompts the user, follow this tool-selection rule (priority order):
- Prefer built-in user-input tools exposed by the current agent runtime — e.g.,
AskUserQuestion,request_user_input,clarify,ask_user,questionnaire, or any equivalent. - Fallback: if no such tool exists, emit a numbered plain-text message and ask the user to reply with the chosen number/answer for each question.
- Batching: if the tool supports multiple questions per call, combine all applicable questions into a single call; if only single-question, ask them one at a time in priority order.
Concrete tool names above are examples — substitute the local equivalent in other runtimes.
Core Principles
- 先判断能不能删,再判断要不要改。
- 没有真实复用、真实约束、真实变化来源的抽象,默认可疑。
- 不为假想场景保留当前复杂度。
- 结论必须落到文件、位置、影响和建议动作。
Default Scope
- 默认审查当前工作区未提交改动,包含暂存、未暂存和未跟踪文件。
- 用户指定文件、目录、提交或 PR 时,以用户指定范围为准。
- 如果工作区没有改动,明确告知并请求用户提供范围。
Key Checks
- 可读性与命名:必须检查文件职责是否过多、函数是否过长、嵌套是否过深、阅读跳转是否过多。文件名、目录名、函数名、参数名必须短、直白、贴近职责;不得使用过长、过虚、过抽象的命名。需要结合上下文猜含义,或名称明显长于职责本身时,必须判定为问题,并直接给出更短、更直白的替代建议。
- 类型复杂度:必须检查重复 type/interface、类型链路过长、为少量数据引入过重泛型或条件类型。一个类型技巧如果没有明显提升安全性,必须优先建议简化、内联或就近定义。
- 过度设计:必须检查单实现场景下的 adapter、factory、strategy、registry、状态机、插件化等结构。一个抽象只有一个实现,或一个配置层、工具层只是在转发参数或常量时,必须优先建议删除、合并、内联。
- 防御代码:必须检查重复 fallback、重复校验,以及为极小概率情况保留的大量 silent fail 或 early return。一个 fallback 如果只是为了“以防万一”,不得默认保留;必须优先建议移除,只保留真实边界校验。
- 冗余代码:必须检查废弃实现、临时兼容逻辑、相似代码散落、新旧实现并存。没有明确退场计划的兼容代码,必须优先建议删除或收敛。
- 拆分失衡:必须检查只调用一次的函数、Hook、工具层、转发层。一个函数、Hook、类型只有一个使用方,且没有明显降低复杂度时,不得视为有效抽象;必须优先建议内联或合并。
- 注释失衡:简单说明必须优先使用
//单行注释,不得用长段注释解释简单逻辑。单文件的重要逻辑块、关键分支、边界处理,必须补//。对外暴露函数、跨模块接口、复杂流程函数,必须使用 JSDoc。通用type/interface除了说明用途,关键字段也必须补充单行注释。 - 保留复杂度的例外:仅当复杂度直接服务于安全边界、协议契约或核心业务约束,且删除后会明显降低正确性、可维护性或可测试性时,才允许保留。
Execution Flow
- 确定审查范围。
- 先给总体判断:偏简单、基本合理,还是明显过度设计。
- 按严重程度列问题,优先级使用“高 / 中 / 低”。
- 每条问题必须写清: 问题类型、文件位置、现象、影响、建议动作。
- 建议动作必须具体,如:删除、内联、合并、改名、缩短类型链路、减少 fallback、移除旧实现。
- 没有问题时,明确写“未发现明显可读性/复杂度问题”,并说明剩余风险或未覆盖范围。
- 输出报告后等待用户决定改部分还是全部,再动手修改。
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 3d ago First seen · 76 lines · 120 tokens per session scan A 2dd52b850a95
code-simplify is a skill published in the GitHub repository grasscaograss/AwesomeWeldoneSkills (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 120 tokens to every session and 1,556 once invoked, about $0.0006 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-08-31.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
auto-perf-optimize
Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.
chat-perf
Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…