code-simplifier

code-simplifier is a skill for Claude Code from cyanheads/devops-status-mcp-server. It costs 160 tokens per session (6,253 once invoked), scanned A, a copy of code-simplifier, Apache-2.0.

A review guide for cleaning up code changes in a working tree, meaning the files currently changed in a project.

In plain words
What is it for?
Use it after a substantial coding session to inspect the diff, understand affected files, simplify the implementation, and improve consistency without needless refactoring.
Why use it?
It helps identify unnecessary complexity, duplicated logic, inefficient code, and changes that do not fit the surrounding codebase.

Skill for Claude Code

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

Part of the devops-status-mcp-server plugin — 35 skills, 1 MCP server shipped together

Good fit Use it after a substantial coding session to inspect the diff, understand affected files, simplify the implementation, and improve consistency without needless refactoring.

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

Made for: Claude Code.

Or install devops-status-mcp-server, the plugin that ships this one along with the rest of its 35 skills, 1 MCP server.

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-simplifier

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cyanheads/devops-status-mcp-server/code-simplifier"><img src="https://agentmods.dev/badge/skills/cyanheads/devops-status-mcp-server/code-simplifier.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 160 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,253 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 100% copy Near-identical to another mod 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.00160 $0.06253
Opus 5.5 $0.00064 $0.02501
Sonnet 5.5 $0.00032 $0.01251
Haiku 4.5 $0.00016 $0.00625

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

Security

Grade A, and why

code-simplifier 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 19d 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.

Origin

This is a copy

100% identical to code-simplifier — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

framework-skills/code-simplifier/SKILL.md · 183 lines

How it starts

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

Code Simplifier

Cleanup pass over a session's changes or a named target. Reviews the code in scope, understands how it fits the existing codebase, and makes targeted improvements — modernizing syntax, removing unnecessary complexity, consolidating duplicated logic, catching efficiency issues. Prioritizes codebase cohesion over local perfection.

Core philosophy

Every change must earn its keep. A simplification that doesn't meaningfully improve clarity, correctness, or cohesion is noise. Don't refactor for refactoring's sake. Don't create new files, abstractions, or utilities unless they solve a demonstrated problem. If the existing code works and is readable, leave it alone. The goal is a cohesive codebase, not a pristine one.

Procedure

Phase 1: Set the scope

Two scopes; the caller's wording picks one, and the diff is the default.

  • Diff (nothing named): run git status to see the shape of the working tree, then git diff HEAD for all uncommitted changes (staged and unstaged). Untracked files never appear in the diff — list them with git ls-files --others --exclude-standard (git status collapses a new directory to one line) and read them directly. If the diff is empty and there are no untracked files, review the last commit (git show HEAD, which also works on a repo's first commit); if there is none, say the tree is clean and stop. Don't go hunting through the codebase for files to improve.
    • The tree may hold more than one writer's work. When the caller names the files this session touched, scope to those. Otherwise, changes you don't recognize that were modified in the last few minutes (check mtimes) are another writer's work in progress: leave them out and list them in the summary.
  • Target (a named path, module, or "the whole codebase"): the named files are the scope, whatever their git state. Work one module or directory at a time and re-run the gate after each, so a large scan never becomes one unverifiable diff. Take the target as named — don't rank or narrow it by commit history.

Read the full file on GitHub · 183 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. 19d ago Changed · +6 lines ceef5412e80b
  2. 1mo ago Changed · +13 lines · +19 tokens per session e52938014509
  3. 2mo ago Changed · +33 lines · +17 tokens per session be774f3b313c
  4. 3mo ago First seen · 131 lines · 124 tokens per session scan A b61d1bb9bf8f

Subscribe to this mod's changes

code-simplifier is a skill published in the GitHub repository cyanheads/devops-status-mcp-server (3 stars, last pushed 8d ago), licensed Apache-2.0. It adds 160 tokens to every session and 6,253 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to code-simplifier, differing in 0 lines, and is treated as a copy.

Related

code-simplifier compared with skills from other repositories

code-simplifier next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-simplifiercyanheads/devops-status-mcp-serverSkill38d agoApache-2.0A160Claude Code
api-lintercyanheads/oecd-mcp-serverSkill58d agoApache-2.0A86Claude Code
release-pr-reviewcyanheads/oecd-mcp-serverSkill58d agoApache-2.0A136Claude Code
release-pr-reviewcyanheads/internet-archive-mcp-serverSkill46d agoApache-2.0A136Claude Code
release-pr-reviewcyanheads/osv-advisory-mcp-serverSkill22d agoApache-2.0A136Claude Code
release-pr-reviewcyanheads/usgs-water-mcp-serverSkill312d agoApache-2.0A136Claude Code
release-pr-reviewcyanheads/tmdb-mcp-serverSkill315d agoApache-2.0A136Claude Code