code-simplification

code-simplification is a skill for Claude Code from charlieviettq/awesome-agent-skill. It costs 37 tokens per session (360 once invoked), scanned A, original, MIT.

A cleanup pass for working code that makes it easier to read while keeping its behavior unchanged.

In plain words
What is it for?
Use it to simplify a finished feature, reduce maintenance effort, and prepare a focused cleanup change.
Why use it?
It removes unnecessary code, duplication, deep nesting, and confusing abstractions after a feature is working.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to simplify a finished feature, reduce maintenance effort, and prepare a focused cleanup change.

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

Made for: Claude Code.

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/charlieviettq/awesome-agent-skill/code-simplification.svg)](https://agentmods.dev/skills/charlieviettq/awesome-agent-skill/code-simplification)
Your own site
<a href="https://agentmods.dev/skills/charlieviettq/awesome-agent-skill/code-simplification"><img src="https://agentmods.dev/badge/skills/charlieviettq/awesome-agent-skill/code-simplification.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 360 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.00037 $0.00360
Opus 5 $0.00018 $0.00180
Sonnet 5 $0.00007 $0.00072
Haiku 4.5 $0.00004 $0.00036

Measured 3d ago against content hash 0ed35d2f4d6e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 3d 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.

.claude/skills/code-simplification/SKILL.md · 49 lines

What it actually says

Code Simplification

Behavior-preserving simplification pass on code that already works. Distinct from design-smell-review (structural critique before change) and refactor-legacy-python-pr (scoped legacy cleanup PRs).

When to use

  • Feature is done and tested; complexity exceeds need
  • Review feedback says "over-engineered"
  • Preparing a focused hygiene PR

When not to use

  • Bug is still open (fix behavior first)
  • Large architectural rewrite (use incremental-implementation)
  • No tests and behavior is unclear (add tests or spike first)

Workflow

  1. Baseline — confirm tests pass or define minimal manual checks
  2. Inventory — list simplification targets (unused code, deep nesting, duplicate logic, premature abstraction)
  3. One change at a time — small commits; run tests after each
  4. Stop — when readability improves without expanding scope

Safe simplifications

  • Remove dead code and unused imports
  • Inline one-use helpers when they obscure flow
  • Replace cleverness with explicit steps
  • Consolidate duplicate validation or mapping
  • Narrow public API surface if callers allow

Avoid

  • Drive-by renames across unrelated files
  • Changing behavior "while you're here"
  • Removing abstractions that enable testing or extension without evidence

Verification

  • Same inputs → same outputs
  • No new linter/type errors
  • Diff stays reviewable (< ~300 lines unless agreed)
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. 3d ago First seen · 49 lines · 37 tokens per session scan A 0ed35d2f4d6e

Subscribe to this mod's changes

code-simplification is a skill published in the GitHub repository charlieviettq/awesome-agent-skill (25 stars, last pushed 1mo ago), licensed MIT. It adds 37 tokens to every session and 360 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-09-03.

Related

Other skills, from other repositories

review

Review code with parallel agents — tests, security, Ecto, LiveView, Oban. Use after implementation to catch bugs and anti-patterns before committing.

oliver-kriska/claude-elixir-phoenix · 34 tokens

audit

Project health audit and health check — architecture, performance, tests, dependencies, code quality. Use when assessing overall project health, before releases, or after refactors.

oliver-kriska/claude-elixir-phoenix · 35 tokens

pr-review

Address feedback left on a GitHub pull request: fetch unresolved review threads, make agreed Elixir/Phoenix code fixes, reply, and resolve. Use for a PR URL/number or reviewer comments. NOT for pre-PR review, findings triage, or CI monitoring.

oliver-kriska/claude-elixir-phoenix · 59 tokens

phx-pr-review

Address feedback left on a GitHub pull request: fetch unresolved review threads, make agreed Elixir/Phoenix code fixes, reply, and resolve. Use for a PR URL/number or reviewer comments. NOT for pre-PR review, findings triage, or CI monitoring.

oliver-kriska/claude-elixir-phoenix · 61 tokens

boundaries

Analyze Phoenix context boundaries and module coupling via mix xref. Use when checking cross-context calls, validating dependencies, before splitting modules, or reviewing architecture.

oliver-kriska/claude-elixir-phoenix · 33 tokens

challenge

Challenge mode reviews - rigorous questioning before approving changes. Use when you want thorough scrutiny of Ecto changes, LiveView events, OTP designs, or PR readiness.

oliver-kriska/claude-elixir-phoenix · 34 tokens