simplify

simplify is a skill for Claude Code, Codex from EzraApple/skills-init. It costs 47 tokens per session (1,549 once invoked), scanned A, original, MIT.

A code-cleanup guide for making recently written or changed code smaller, clearer, and easier to maintain without changing what it does.

In plain words
What is it for?
Use it during refactoring, diff review, or a cleanup pass to simplify implementation while preserving needed compatibility, safety checks, and domain complexity.
Why use it?
It helps identify unnecessary wrappers, duplicate concepts, dead code, and indirection that make future changes harder to understand.

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/ezraapple/skills-init/simplify
Any agent
npx skills add EzraApple/skills-init --skill simplify
Clone the repo
git clone --depth 1 https://github.com/EzraApple/skills-init

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/ezraapple/skills-init/simplify.svg)](https://agentmods.dev/skills/ezraapple/skills-init/simplify)
Your own site
<a href="https://agentmods.dev/skills/ezraapple/skills-init/simplify"><img src="https://agentmods.dev/badge/skills/ezraapple/skills-init/simplify.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,549 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.00047 $0.01549
Opus 5 $0.00023 $0.00775
Sonnet 5 $0.00009 $0.00310
Haiku 4.5 $0.00005 $0.00155

Measured 4d ago against content hash f148330af721, 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 4d 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.

skills/simplify/SKILL.md · 228 lines

How it starts

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

Simplify

Use this skill to make code smaller, clearer, and easier to reason about. The default posture is deletion, but the goal is not the fewest lines at any cost. The goal is the simplest behavior-preserving shape that a future maintainer can trust.

Use And Near Misses

Use this when:

  • refining code you just wrote;
  • reviewing a PR or branch for avoidable complexity;
  • doing a cleanup pass;
  • a value changes names across layers;
  • helper functions, wrapper types, or translation objects do not earn their existence;
  • one concept has multiple code paths.

Do not use this as the controlling skill when:

  • the main task is a correctness, security, or data-loss fix;
  • adding tests or safety checks increases lines but reduces risk;
  • a public API needs a small adapter for compatibility;
  • a domain concept is complex because the domain is complex;
  • readability would get worse just to make git diff --stat smaller.

Line count is a signal, not a verdict. If simplification adds lines, explain why the resulting code is still simpler.

Core Questions

Ask these before proposing or accepting a shape:

  • Can't we just use the existing value, function, or type?
  • How many names does this concept have between source and use?
  • Does this layer own a real decision, or is it just passing data through?
  • Is this state derived from existing data?
  • Is this abstraction used enough to earn a name?
  • Would deleting this make the code harder to misuse?

Simplification Moves

Prefer The Direct Version

Before adding a service, helper, or abstraction, write the direct version. If the direct version works and stays readable, use it.

// Overbuilt: strategy object for one lookup.
const resolver = new PriceResolver(items);
const price = resolver.resolve(type);

// Direct.
const price = items.find((item) => item.type === type)?.price ?? null;

Inline Single-Use Helpers

Extract when a helper removes real duplication, names a non-obvious domain operation, or isolates a boundary. Inline when it only wraps a one-liner.

Read the full file on GitHub · 228 lines

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. 4d ago First seen · 228 lines · 47 tokens per session scan A f148330af721

Subscribe to this mod's changes

simplify is a skill published in the GitHub repository EzraApple/skills-init (2 stars, last pushed 1mo ago), licensed MIT. It adds 47 tokens to every session and 1,549 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

auth-web-cloudbase

CloudBase Web Authentication Quick Guide for frontend integration after auth-tool has already been checked. Provides concise and practical Web authentication solutions with multiple login methods and complete user management.

TencentCloudBase/CloudBase-AI-Toolkit · 38 tokens

browse-and-evaluate

Use when exploring the ai-agent-skills catalog to find, compare, and evaluate skills before installing. Always use --fields to limit output size and --dry-run before committing to an install.

MoizIbnYousaf/Ai-Agent-Skills · 43 tokens

loop-engineering

Shared loop-engineering reference for COG skills - the agent loop, deterministic verifiers, termination conditions, in-loop context management, and named patterns. Invoke when designing or debugging a skill that iterates (search-verify-retry, scan-until-dry, fetch-retry-gate).

huytieu/COG-second-brain · 63 tokens

telnyx-messaging-hosted-curl

Set up hosted SMS numbers, toll-free verification, and RCS messaging. Use when migrating numbers or enabling rich messaging features. This skill provides REST API (curl) examples.

team-telnyx/ai · 45 tokens

render-airdrop-carousel

Assemble a viral iOS "AirDrop" notification-carousel video ad (≈6–8s, 9:16) from a brand line plus 6–16 real product photos — a native AirDrop share-sheet card ("Brand would like to share a · Decline / Accept") springs up and its preview window CYCLES through the products, landing on a range/lineup payoff with an…

gooseworks-ai/goose-skills · 207 tokens

render-3d-product-showcase

Assemble a premium 3D product-showcase ad from a config — four beat clips (an orbiting hero rotation, a macro push-in, a physics reveal, a typographic close) normalized to the brand-color canvas, hard-concatenated in order, closed on a deterministic Playwright brand end card, and mixed under one instrumental bed at…

gooseworks-ai/goose-skills · 159 tokens