code-simplify

code-simplify is a skill for Codex from grasscaograss/AwesomeWeldoneSkills. It costs 120 tokens per session (1,556 once invoked), scanned A, original, Apache-2.0.

A code-review workflow focused on making code shorter, clearer, and closer to the project's real needs. It checks for overdesign, unnecessary abstractions, confusing names, duplicated types, redundant code, and unused defensive logic.

In plain words
What is it for?
Use it to review uncommitted changes, simplify code, improve readability, remove obsolete code, and identify abstractions that are not genuinely reused or needed.
Why use it?
It helps remove complexity that does not solve a real project problem. This is especially useful when generated code has added extra layers or structures that are hard to understand.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: names the AskUserQuestion tool.

Good fit Use it to review uncommitted changes, simplify code, improve readability, remove obsolete code, and identify abstractions that are not genuinely reused or needed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/grasscaograss/awesomeweldoneskills/code-simplify
Install

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.

Any agent
npx skills add grasscaograss/AwesomeWeldoneSkills --skill code-simplify
Clone the repo
git clone --depth 1 https://github.com/grasscaograss/AwesomeWeldoneSkills

Made for: Codex.

Its marketplace also offers this one on its own, as the plugin code-simplify — /plugin install code-simplify after adding the marketplace above.

Wrote 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.

agentmods badge for code-simplify

README.md
[![agentmods](https://agentmods.dev/badge/skills/grasscaograss/awesomeweldoneskills/code-simplify/github.svg)](https://agentmods.dev/skills/grasscaograss/awesomeweldoneskills/code-simplify)
Your own site
<a href="https://agentmods.dev/skills/grasscaograss/awesomeweldoneskills/code-simplify"><img src="https://agentmods.dev/badge/skills/grasscaograss/awesomeweldoneskills/code-simplify/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.

agentmods 80×15 button for code-simplify

Your own site · 80×15
<a href="https://agentmods.dev/skills/grasscaograss/awesomeweldoneskills/code-simplify"><img src="https://agentmods.dev/badge/skills/grasscaograss/awesomeweldoneskills/code-simplify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,556 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00120 $0.01556
Opus 5.5 $0.00048 $0.00622
Sonnet 5.5 $0.00024 $0.00311
Haiku 4.5 $0.00012 $0.00156

Measured 1mo ago against content hash 2dd52b850a95, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 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.

code-simplify/SKILL.md · 76 lines

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):

  1. 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.
  2. 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.
  3. 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

  1. 默认审查当前工作区未提交改动,包含暂存、未暂存和未跟踪文件。
  2. 用户指定文件、目录、提交或 PR 时,以用户指定范围为准。
  3. 如果工作区没有改动,明确告知并请求用户提供范围。

Key Checks

  • 可读性与命名:必须检查文件职责是否过多、函数是否过长、嵌套是否过深、阅读跳转是否过多。文件名、目录名、函数名、参数名必须短、直白、贴近职责;不得使用过长、过虚、过抽象的命名。需要结合上下文猜含义,或名称明显长于职责本身时,必须判定为问题,并直接给出更短、更直白的替代建议。
  • 类型复杂度:必须检查重复 type/interface、类型链路过长、为少量数据引入过重泛型或条件类型。一个类型技巧如果没有明显提升安全性,必须优先建议简化、内联或就近定义。
  • 过度设计:必须检查单实现场景下的 adapter、factory、strategy、registry、状态机、插件化等结构。一个抽象只有一个实现,或一个配置层、工具层只是在转发参数或常量时,必须优先建议删除、合并、内联。
  • 防御代码:必须检查重复 fallback、重复校验,以及为极小概率情况保留的大量 silent fail 或 early return。一个 fallback 如果只是为了“以防万一”,不得默认保留;必须优先建议移除,只保留真实边界校验。
  • 冗余代码:必须检查废弃实现、临时兼容逻辑、相似代码散落、新旧实现并存。没有明确退场计划的兼容代码,必须优先建议删除或收敛。
  • 拆分失衡:必须检查只调用一次的函数、Hook、工具层、转发层。一个函数、Hook、类型只有一个使用方,且没有明显降低复杂度时,不得视为有效抽象;必须优先建议内联或合并。
  • 注释失衡:简单说明必须优先使用 // 单行注释,不得用长段注释解释简单逻辑。单文件的重要逻辑块、关键分支、边界处理,必须补 //。对外暴露函数、跨模块接口、复杂流程函数,必须使用 JSDoc。通用 type/interface 除了说明用途,关键字段也必须补充单行注释。
  • 保留复杂度的例外:仅当复杂度直接服务于安全边界、协议契约或核心业务约束,且删除后会明显降低正确性、可维护性或可测试性时,才允许保留。

Execution Flow

  1. 确定审查范围。
  2. 先给总体判断:偏简单、基本合理,还是明显过度设计。
  3. 按严重程度列问题,优先级使用“高 / 中 / 低”。
  4. 每条问题必须写清: 问题类型、文件位置、现象、影响、建议动作。
  5. 建议动作必须具体,如:删除、内联、合并、改名、缩短类型链路、减少 fallback、移除旧实现。
  6. 没有问题时,明确写“未发现明显可读性/复杂度问题”,并说明剩余风险或未覆盖范围。
  7. 输出报告后等待用户决定改部分还是全部,再动手修改。

Read the full file on GitHub · 76 lines

Files

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.

Changes

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.

  1. 1mo ago First seen · 76 lines · 120 tokens per session scan A 2dd52b850a95

Subscribe to this mod's changes

code-simplify is a skill published in the GitHub repository grasscaograss/AwesomeWeldoneSkills (2 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 120 tokens to every session and 1,556 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

openclaw/clawhub · 17 tokens

omh-code-review

This is an OMH code-review workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

rlaope/oh-my-hermes · 48 tokens

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"…

umputun/revdiff · 84 tokens

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…

LilMGenius/paperthin · 70 tokens

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…

dzhng/skills · 162 tokens

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…

brycewang-stanford/Awesome-Journal-Skills · 65 tokens