simplify

A cleanup tool for recently changed code that looks for reuse, simpler structure, and obvious efficiency improvements without changing behavior.

In plain words
What is it for?
Use it on uncommitted changes or a specified scope to find existing helpers, remove dead or redundant code, apply minimal cleanups, and run tests.
Why use it?
It helps reduce duplication and unnecessary code after an implementation while keeping the original functionality intact.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/initxy/noeta/simplify
Any agent
npx skills add initxy/noeta --skill simplify
Clone the repo
git clone --depth 1 https://github.com/initxy/noeta

Made for: Claude Code, Codex.

Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 376 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00021 $0.00376
Opus 5 $0.00010 $0.00188
Sonnet 5 $0.00004 $0.00075
Haiku 4.5 $0.00002 $0.00038

Measured 2d ago against content hash 92b07778763e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

tests/_skills_builtin/simplify/SKILL.md · 36 lines

What it actually says

Simplify changes

Review the changed code purely for quality — reuse, simplification, and efficiency — and apply the cleanups. This is NOT a bug hunt; do not change behavior.

Take the scope from the conversation; with none given, work over the uncommitted changes.

Steps

  1. Read the change. Run git_status and git_diff to see what's in scope, then read the surrounding code for context.
  2. Look for, in order of value:
    • Reuse — duplicated logic that an existing helper / function already covers. grep the codebase for an existing utility before writing anything new.
    • Simplification — dead code, redundant branches, needless intermediate variables, over-abstraction, comments that restate the code.
    • Efficiency — obvious redundant work (repeated I/O, re-computation in a loop, unnecessary allocations) where the cleaner form is also faster.
  3. Apply each cleanup with replace_text or apply_patch, keeping diffs minimal and behavior identical. Match the surrounding code's existing style and conventions.
  4. After editing, re-run git_diff to confirm the result is genuinely smaller / clearer, and run the project's tests with shell_run to confirm behavior is unchanged.

Only touch code that's already in scope — do not opportunistically rewrite unrelated files. If a candidate cleanup would change behavior, skip it and note it instead of applying it. End with a short summary of what you simplified and why.

(fork agent: main)

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. 2d ago First seen · 36 lines · 21 tokens per session scan A 92b07778763e

Subscribe to this mod's changes

simplify is a skill published in the GitHub repository initxy/noeta (9 stars, last pushed 4d ago), licensed Apache-2.0. It adds 21 tokens to every session and 376 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-08-31.