code-simplifier

code-simplifier is a skill for Claude Code, Codex from OpenHands/extensions. It costs 90 tokens per session (1,056 once invoked), scanned A, original, MIT.

A code-review skill that suggests clearer, more consistent, reusable, and maintainable code without changing its behavior.

In plain words
What is it for?
Use it to review selected files, folders, a whole project, or the changed files in a pull request or merge request.
Why use it?
It helps find duplicated logic, confusing names, unnecessary complexity, and inefficient work in recently changed code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions AGENTS.md.

Good fit Use it to review selected files, folders, a whole project, or the changed files in a pull request or merge request.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/openhands/extensions/code-simplifier/github.svg)](https://agentmods.dev/skills/openhands/extensions/code-simplifier)
Your own site
<a href="https://agentmods.dev/skills/openhands/extensions/code-simplifier"><img src="https://agentmods.dev/badge/skills/openhands/extensions/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/openhands/extensions/code-simplifier"><img src="https://agentmods.dev/badge/skills/openhands/extensions/code-simplifier.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,056 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 pass 7 Sept 2026
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.00090 $0.01056
Opus 5.5 $0.00036 $0.00422
Sonnet 5.5 $0.00018 $0.00211
Haiku 4.5 $0.00009 $0.00106

Measured 3mo ago against content hash ba5cfc2908e5, 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 3mo 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-simplifier/SKILL.md · 92 lines

How it starts

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

Code Simplifier

Analyze recently modified code and suggest refinements that improve clarity, consistency, and maintainability - without changing what the code does. The review covers three complementary aspects:

  1. Code Reuse - Eliminate duplication, consolidate shared logic, leverage existing utilities.
  2. Code Quality - Improve naming, reduce complexity, enforce project standards from AGENTS.md.
  3. Efficiency - Fix algorithmic issues, remove unnecessary work, optimize resource usage.

Review Process

Identify the Scope

By default, focus on recently modified code. Use git diff or the file list from the current PR/MR to determine the changed files. When the user specifies a different scope, follow their instruction:

  • Specific files: "simplify src/auth.py" - review only the named files
  • Directory: "simplify the utils/ folder" - review all files in that directory
  • Full repo: "simplify the whole project" - review the entire codebase
  • PR/MR: "simplify this PR" - review only files changed in the current PR/MR

Sub-Agent Delegation (Preferred)

When sub-agent capability is available, delegate each review aspect to a separate sub-agent for parallel, focused analysis:

  1. Code Reuse Review Agent - Read references/code-reuse-review.md and analyze the changed files for duplication and consolidation opportunities.
  2. Code Quality Review Agent - Read references/code-quality-review.md and analyze the changed files for clarity, naming, complexity, and standards compliance.
  3. Efficiency Review Agent - Read references/efficiency-review.md and analyze the changed files for performance and resource usage issues.

Each sub-agent should:

  • Read the corresponding reference document for detailed criteria and output format
  • Read AGENTS.md at the repository root for project-specific coding conventions
  • Analyze only the recently changed code (unless instructed otherwise)
  • Return findings in the format specified by its reference document

Read the full file on GitHub · 92 lines

Files

What ships with it

8 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. 3mo ago First seen · 92 lines · 90 tokens per session scan A ba5cfc2908e5

Subscribe to this mod's changes

code-simplifier is a skill published in the GitHub repository OpenHands/extensions (190 stars, last pushed today), licensed MIT. It adds 90 tokens to every session and 1,056 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-30.

Related

code-simplifier compared with skills from other repositories

code-simplifier next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-simplifierOpenHands/extensionsSkill190todayMITA90Claude Code, Codex
autoreviewopenclaw/clawhubSkill9.6ktodayMITA17Claude Code, Codex
omh-code-reviewrlaope/oh-my-hermesSkill6.2ktodayMITA18Claude Code
agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skillsSkill2.2k9d agoMITA115Claude Code, Codex
asplos-writing-stylebrycewang-stanford/Awesome-Journal-SkillsSkill1.5k2d agoMITA65Claude Code
revdiff-planumputun/revdiffSkill9742d agoMITA84Claude Code
re0-mergeLilMGenius/paperthinSkill1.5ktodayMITA51Claude Code, Codex