code-simplification

code-simplification is a skill for Claude Code, Codex from iuliandita/skills. It costs 30 tokens per session (1,578 once invoked), scanned A, original, MIT.

A review of code for unnecessary complexity, duplicated or dead code, invented interfaces, stale patterns, and weak tests. It reports safe reductions and does not edit the code.

In plain words
What is it for?
Use it to review a cleanup or pull request, find safe deletions and redundant wrappers, and check whether a refactor lost fallbacks or useful tests.
Why use it?
It helps reduce maintenance cost without treating shorter code as automatically better. Each suggested removal is checked against behaviour, contracts, and reachable code paths.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review a cleanup or pull request, find safe deletions and redundant wrappers, and check whether a refactor lost fallbacks or useful tests.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/iuliandita/skills/code-simplification"><img src="https://agentmods.dev/badge/skills/iuliandita/skills/code-simplification.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,578 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.00030 $0.01578
Opus 5.5 $0.00012 $0.00631
Sonnet 5.5 $0.00006 $0.00316
Haiku 4.5 $0.00003 $0.00158

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

Security

Grade A, and why

code-simplification 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 5d 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/code-simplification/SKILL.md · 84 lines

How it starts

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

Code Simplification

Review code for unnecessary complexity, ungrounded implementation choices, and safe reductions. Preserve behavior and report evidence in maintainability or reduction mode.

  1. Maintainability: over-abstraction, generic naming, noisy comments, invented APIs or configuration, stale idioms, dependency creep, and weak tests.
  2. Safe reduction: dead or superseded code, orphan files, exact clones, redundant wrappers, inert defensive scaffolding, and comment walls.

Smaller code is not automatically better. A finding needs a concrete maintenance or correctness cost, an invariant, and evidence that the proposed change preserves contracts.

When to use

  • Review code or a PR for unnecessary complexity, AI-shaped code, grounded API use, and useful tests.
  • Find behavior-preserving reductions before a cleanup change.
  • Check a removal or refactor diff for lost behavior, fallbacks, or reachable entry points.

When NOT to use

  • Find logic bugs, races, or regressions: use code-review.
  • Find vulnerabilities or secrets: use security-audit.
  • Rewrite prose for voice: use anti-ai-prose.
  • Run a repository-wide multi-lens audit: use repo-audit.
  • Implement a cleanup: use the relevant language or framework skill.

Workflow

  1. Scope: prefer the named path or diff; otherwise inspect uncommitted changes, then the current branch against its confirmed integration base. Record generated, vendored, and unreviewed areas.
  2. Establish context: read instructions, manifests, runtime versions, public exports, registries, route/CLI/plugin discovery, and existing validation. For maintainability mode, load references/maintainability-patterns.md and each relevant language or infrastructure reference; for reduction mode, load references/patterns.md and references/reduction-patterns.md. Load references/research-sources.md only when citations help.
  3. Make a maintainability pass: inspect scripts and configuration before running any baseline tooling. Run only configured, non-mutating check commands; never use --fix, --write, apply, or an unknown script. Then inspect comments, naming, types, wrappers, error handling, dependencies, API/config claims, and tests (including test bloat, see Rules). Verify suspicious APIs with local types, schemas, lockfiles, --help, or primary documentation before calling them invented.
  4. Make a safe-reduction pass: search for dead and superseded code, leftovers, clones, one-literal-per-function copies, redundant parsers, thin wrappers, and inert catches. Read each candidate, a caller, and relevant tests.
  5. Prove or defer: search with rg -n (use grep -rn when command -v rg fails). A deletion needs no-reference proof that rules out public APIs, reflection, dynamic dispatch, DI, serialization, route/CLI/plugin registration, conditional builds, and test discovery. Preserve boundary guards, recoveries, retries, cleanup, observability, compatibility, and intentional provider divergence.
  6. Classify: use Do now only for mechanically proven, behavior-preserving reductions; Do with tests when focused validation is missing; Defer for broad, hot-path, or uncertain work; Leave alone when the current shape carries a contract. Also classify maintainability findings as Noise, Lies, or Soul and as Fix, Consider, or Fine (defined in references/maintainability-patterns.md); project conventions and framework idioms override generic style rules.
  7. Report: write an audit deliverable using references/report-templates.md. Group repeated examples into one finding and include location, evidence, invariant, proposed shape, tradeoff, and validation needed.

Read the full file on GitHub · 84 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. 5d ago Changed · +1 lines 24e29c3cf8c5
  2. 14d ago Changed · -1 lines c06470658f8c
  3. 23d ago Changed · +1 lines 5c20d5dce4f2
  4. 27d ago First seen · 83 lines · 30 tokens per session scan A 648831b264e2

Subscribe to this mod's changes

code-simplification is a skill published in the GitHub repository iuliandita/skills (7 stars, last pushed 3d ago), licensed MIT. It adds 30 tokens to every session and 1,578 once invoked, about $0.0001 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-09-21.

Related

Other skills, from other repositories

code-reviewer

Code review knowledge base: quality, security (OWASP Top 10), error-handling, performance, and test-coverage checklists with severity-ranked output format. Use when reviewing code changes, PRs, or before commits. Loaded automatically by the code-reviewer agent.

claude-world/director-mode-lite · 59 tokens

factory-ci

CI and pull-request review conventions. One canonical .github/workflows/ci.yml is the merge gate (typecheck, lint, test, build, claude-review); branch protection's required-checks list matches the job list 1:1; anthropics/claude-code-action@v1 reviews every PR against the factory-pitfalls.md checklist as a required…

nonlinear-xyz/factory-kit · 110 tokens

factory-code-reviewer

Use to review a PR, diff, or recently-written code against the factory's conventions. Read-only — outputs structured review, not diffs. Carries the full factory-pitfalls digest as a PR checklist plus the conventions from every other factory-.md skill. Flags anti-patterns, missing conventions, security risks, and…

nonlinear-xyz/factory-kit · 96 tokens

judge

Obtain an independent review of the approach and trade-offs in completed work.

JHostalek/dotclaude · 17 tokens

audit

Review code through focused dimensions, with one independent agent per dimension.

JHostalek/dotclaude · 15 tokens

code-review

Reviews code for design, correctness, performance, and test quality. Use when the user wants a code review of files, a diff or PR, or the whole project before shipping or merging.

kimon1230/claude_extensions · 41 tokens