code-simplification

code-simplification is a skill for Claude Code from patrickdappollonio/claude-plugins. It costs 92 tokens per session (7,448 once invoked), scanned A, original, MIT.

A coding aid for making working code easier to read, maintain, test, and extend while keeping its behavior unchanged.

In plain words
What is it for?
Use it after a feature or code review to simplify complexity, improve naming, combine equivalent functions, and review comments.
Why use it?
It helps address deep nesting, long or tangled functions, duplicated logic, and dead code.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions subagents; mentions AGENTS.md.

Part of the code-simplification plugin — 1 skill shipped together

Good fit Use it after a feature or code review to simplify complexity, improve naming, combine equivalent functions, and review comments.

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

Made for: Claude Code.

Or install code-simplification, the plugin that ships this one along with the rest of its 1 skill.

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/patrickdappollonio/claude-plugins/code-simplification/github.svg)](https://agentmods.dev/skills/patrickdappollonio/claude-plugins/code-simplification)
Your own site
<a href="https://agentmods.dev/skills/patrickdappollonio/claude-plugins/code-simplification"><img src="https://agentmods.dev/badge/skills/patrickdappollonio/claude-plugins/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/patrickdappollonio/claude-plugins/code-simplification"><img src="https://agentmods.dev/badge/skills/patrickdappollonio/claude-plugins/code-simplification.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,448 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 382
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Excessive Agency · line 380
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Excessive Agency · line 387
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00092 $0.07448
Opus 5.5 $0.00037 $0.02979
Sonnet 5.5 $0.00018 $0.01490
Haiku 4.5 $0.00009 $0.00745

Measured yesterday against content hash b5298298d9ef, 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 yesterday.

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.

plugins/code-simplification/skills/code-simplification/SKILL.md · 362 lines

How it starts

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

Code Simplification

Overview

Simplify code by reducing complexity while preserving exact behavior. The goal is not fewer lines — it's code that is easier to read, understand, modify, and debug. Every simplification must pass one test: "Would a new team member understand this faster than the original?"

This skill is language-agnostic: it works on patterns (nesting, naming, duplication, dead code), not on any one language's idioms. Apply it using the idioms of whatever language and codebase you're in.

Read the Companion Files First

This skill ships in two layers. SKILL.md carries the rules and a short summary of each step; four files beside it carry the full procedures:

  • evidence-gathering.md — model-tier routing, handoff packets, verifying findings
  • cyclomatic-complexity.md — counting, tools, the split procedure
  • equivalent-functions.md — diff → callers → propose → merge
  • comments.md — the comment digest

The first time you use this skill in a session, read all four before doing anything else — before scoping, before reading the target code, before answering a question about it. The summaries in this file are reminders for a reader who has already seen the full text; they are not a substitute for it. Re-read the relevant file again at the step that names it. If the files are missing, say so — do not proceed as if the summaries were the whole skill.

When to Use

  • After a feature is working and tests pass, but the implementation feels heavier than it needs to be
  • During code review when readability or complexity issues are flagged
  • When you encounter deeply nested logic, long functions, or unclear names
  • When refactoring code written under time pressure
  • After merging changes that introduced duplication or inconsistency

When NOT to use:

  • Code is already clean and readable — don't simplify for the sake of it
  • You don't understand what the code does yet — comprehend before you simplify
  • The code is performance-critical and the "simpler" version would be measurably slower
  • The module is about to be rewritten — simplifying throwaway code wastes effort

Read the full file on GitHub · 362 lines

Files

What ships with it

4 files 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. yesterday Changed · +17 lines b5298298d9ef
  2. 17d ago Changed · +4 lines e151691110b9
  3. 18d ago Changed 8907ab206ba4
  4. 24d ago Changed · +5 lines c7c5a65fa59e
  5. 28d ago Changed · +2 lines 3c0fde94732b
  6. 1mo ago Changed · +11 lines 15be5191ed6e
  7. 1mo ago Changed · -93 lines d1156cc203e8
  8. 1mo ago Changed · +3 lines 5e830b1142c2
  9. 1mo ago Changed · +3 lines c41228848db9
  10. 2mo ago First seen · 410 lines · 92 tokens per session scan A 825eb1b52817

Subscribe to this mod's changes

code-simplification is a skill published in the GitHub repository patrickdappollonio/claude-plugins (9 stars, last pushed yesterday), licensed MIT. It adds 92 tokens to every session and 7,448 once invoked, about $0.0004 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

code-simplification compared with skills from other repositories

code-simplification next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-simplificationpatrickdappollonio/claude-pluginsSkill9yesterdayMITA92Claude Code
sync-bridgechromium/chromiumSkill25kyesterdayBSD-3-ClauseA109Claude Code, Codex
sync-model-processorchromium/chromiumSkill25kyesterdayBSD-3-ClauseA98Claude Code, Codex
adversarial-revieweremdash-cms/emdashSkill14kyesterdayMITA72Claude Code, Codex
gsd-ns-reviewopen-gsd/gsd-coreSkill11kyesterdayMITA16Claude Code
gitnexushashgraph-online/awesome-codex-pluginsSkill1.5kyesterdayApache-2.0A58Codex
issuejeremylongshore/tons-of-skills-marketplaceSkill2.9kyesterdayMITA115Claude Code