simplify-code

simplify-code is a skill for Claude Code, Codex from olegvg/olegvg-skills. It costs 81 tokens per session (984 once invoked), scanned A, original, MIT.

A workflow for simplifying changed code while preserving its behavior. It reviews a diff—the set of changes between code versions—for reuse, duplication, complexity, efficiency, and design issues.

In plain words
What is it for?
Use it to simplify a current diff, file, branch, pull request, commit range, or pasted code, then apply safe cleanup changes.
Why use it?
It helps clean up implementation details without changing what the software is meant to do. It also identifies the relevant review scope and existing project checks.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: mentions subagents; mentions Claude Code.

Part of the core-dev plugin — 3 skills shipped together , and of olegvg-skills

Good fit Use it to simplify a current diff, file, branch, pull request, commit range, or pasted code, then apply safe cleanup changes.

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

Made for: Claude Code, Codex.

Or install core-dev, the plugin that ships this one along with the rest of its 3 skills.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/olegvg/olegvg-skills/simplify-code"><img src="https://agentmods.dev/badge/skills/olegvg/olegvg-skills/simplify-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 984 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.00081 $0.00984
Opus 5.5 $0.00032 $0.00394
Sonnet 5.5 $0.00016 $0.00197
Haiku 4.5 $0.00008 $0.00098

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

Security

Grade A, and why

simplify-code 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/simplify-code/SKILL.md · 88 lines

How it starts

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

simplify-code — Behavior-Preserving Cleanup

Overview

Review changed code for concrete cleanup opportunities, then apply only fixes that preserve intended behavior. This is a portable version of Claude Code's /simplify workflow: reuse, simplification, efficiency, and altitude review before edits.

Input

  • Optional target: current diff, file path, branch, PR, commit range, or pasted code.
  • Project instructions that govern the changed files.
  • Existing tests or verification commands, when discoverable.

Workflow

1. Establish Scope

Prefer the smallest review surface that matches the user's request.

  • If the user passed a path, range, branch, PR, or pasted code, use that as scope.
  • Otherwise review the current branch diff. Prefer git diff @{upstream}...HEAD, fall back to git diff main...HEAD or git diff HEAD~1.
  • If there are uncommitted changes, or the range diff is empty, also include git diff HEAD.
  • If the project is not git-backed, inspect the user-provided files or snippet.
  • Read applicable project instructions for changed files before judging conventions or scope.

2. Review Four Cleanup Angles

Run the four angles independently. If the runtime supports subagents, run one pass per angle in parallel. If it does not, do four labeled passes yourself and keep findings separate until deduplication.

Angle Flag Required evidence
Reuse New code reimplements something already present in the codebase. Name the existing helper, module, component, or pattern to reuse.
Simplification Redundant or derivable state, copy-paste variants, deep nesting, dead code, needless abstraction, or tangled control flow. Name the simpler form that preserves behavior.
Efficiency Repeated computation, repeated I/O, independent work serialized, blocking work added to startup or hot paths, or long-lived closures capturing more scope than needed. Name the cheaper alternative and the wasted work it removes.
Altitude A fix is placed at the wrong depth, such as a brittle special case layered on shared infrastructure. Name the underlying mechanism that should be generalized, or mark the improvement out of scope.

Read the full file on GitHub · 88 lines

Files

What ships with it

1 file 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 · 88 lines · 81 tokens per session scan A d9844a13a811

Subscribe to this mod's changes

simplify-code is a skill published in the GitHub repository olegvg/olegvg-skills (10 stars, last pushed 12d ago), licensed MIT. It adds 81 tokens to every session and 984 once invoked, about $0.0003 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

simplify-code compared with skills from other repositories

simplify-code next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
simplify-codeolegvg/olegvg-skillsSkill1012d agoMITA81Claude Code, Codex
sync-bridgechromium/chromiumSkill25ktodayBSD-3-ClauseA109Claude Code, Codex
sync-model-processorchromium/chromiumSkill25ktodayBSD-3-ClauseA98Claude Code, Codex
adversarial-revieweremdash-cms/emdashSkill15ktodayMITA72Claude Code, Codex
gsd-ns-reviewopen-gsd/gsd-coreSkill12kyesterdayMITA16Claude Code
gitnexushashgraph-online/awesome-codex-pluginsSkill1.6ktodayApache-2.0A58Codex
issuejeremylongshore/tons-of-skills-marketplaceSkill3.0ktodayMITA115Claude Code