simplify-code

simplify-code is a skill for Claude Code, Codex from IT-HUSET/andthen. It costs 54 tokens per session (1,498 once invoked), scanned A, original, MIT.

A code-refactoring skill for making existing code clearer, less complex, more reusable, and more efficient while keeping its behavior unchanged.

In plain words
What is it for?
Use it when simplifying code, cleaning it up, or removing complexity.
Why use it?
It removes unnecessary structure and over-engineering without changing what the code does.

Skill for Claude CodeCodex

Written for Claude Code and Codex: argument-hint in frontmatter, but also agents/openai.yaml present. Also seen: mentions subagents.

Part of the andthen plugin — 21 skills shipped together

Good fit Use it when simplifying code, cleaning it up, or removing complexity.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/it-huset/andthen/simplify-code
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 IT-HUSET/andthen --skill simplify-code
Clone the repo
git clone --depth 1 https://github.com/IT-HUSET/andthen

Made for: Claude Code, Codex.

Or install andthen, the plugin that ships this one along with the rest of its 21 skills.

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 simplify-code

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/it-huset/andthen/simplify-code"><img src="https://agentmods.dev/badge/skills/it-huset/andthen/simplify-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,498 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.00054 $0.01498
Opus 5.5 $0.00022 $0.00599
Sonnet 5.5 $0.00011 $0.00300
Haiku 4.5 $0.00005 $0.00150

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

Security

Grade A, and why

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

plugin/skills/simplify-code/SKILL.md · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Simplify Code

Simplify the scope for clarity, reuse, and leanness, with behavior preserved exactly.

Input

$ARGUMENTS minus flags is the scope – paths, a description, or both; PATH_SCOPE is the paths it names, when it names any.

Every run reads verification-evidence.md.

Rules

  • Print each recommended skill invocation as a complete, paste-ready line in the host's syntax, including its target path or request and required arguments.

  • Scope stays the user's – this is Boy Scout cleanup inside the requested scope. Widening to an adjacent module mid-flow is the named failure mode; that module is a separate run.

  • Observable or exported removals are behavior-affecting: propose them, require explicit approval.

  • Architecture. A cleanup that would move code across a component boundary – checked against the Architecture document (Project Document Index) only when a candidate would – belongs in the andthen:architecture skill first, not in this run.

  • Intent anchor. When Step 1 read an Intent anchor, drop any cleanup it rejects – one contradicting a Non-Goal, implementing an outcome the artifact defers to a later story, or restructuring code the artifact chose a shape for – and record each in the completion summary as dropped: <anchor> in <FIS path>.

Workflow

1. Scope & Baseline

  1. Resolve scope in precedence order:

    1. PATH_SCOPE.
    2. Described files – analyze the codebase to identify matches.
    3. The current branch diff against its base/upstream (fall back to git diff HEAD).
    4. Files named or edited earlier in this conversation.

    In an unattended run, the diff/conversation fallback is defensible only when it yields a non-empty, cohesive set; otherwise stop rather than simplifying against noise.

  2. Use the check commands the invocation supplies, else resolve them per verification-evidence.md, for this baseline and Step 4. A green result supplied for this tree is the baseline; otherwise run them and record the result.

  3. The governing FIS is the Intent anchor: the one the arguments name, each FIS of a plan they name, else the one discoverable for the scope's paths. Read its What We're NOT Doing and Architecture Decision sections, and the PRD or Product document only where it cites them: the FIS already carries what binds from them. With none, record Intent Context: none discoverable in the completion summary.

Read the full file on GitHub · 99 lines

Files

What ships with it

1 file 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. 2d ago Changed · +13 lines · +7 tokens per session d0f9e06c0234
  2. 8d ago Changed 97b26679b2cb
  3. 24d ago Changed · +1 lines 7717c917429d
  4. 29d ago Changed · -59 lines · -12 tokens per session 3ea4c1ddcec9
  5. 3mo ago First seen · 144 lines · 59 tokens per session scan A 5e3c10563b98

Subscribe to this mod's changes

simplify-code is a skill published in the GitHub repository IT-HUSET/andthen (4 stars, last pushed today), licensed MIT. It adds 54 tokens to every session and 1,498 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.

Related

simplify-code compared with skills from other repositories

simplify-code next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
simplify-codeIT-HUSET/andthenSkill4todayMITA54Claude Code, Codex
autoreviewopenclaw/clawhubSkill9.6ktodayMITA17Claude Code, Codex
omh-code-reviewrlaope/oh-my-hermesSkill6.4ktodayMITA18Claude Code
agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skillsSkill2.2k13d agoMITA115Claude Code, Codex
asplos-writing-stylebrycewang-stanford/Awesome-Journal-SkillsSkill1.5k2d agoMITA65Claude Code
revdiff-planumputun/revdiffSkill9772d agoMITA84Claude Code
re0-mergeLilMGenius/paperthinSkill1.5ktodayMITA51Claude Code, Codex