mpga-simplify

mpga-simplify is a skill for Claude Code from benrben/MPGA. It costs 28 tokens per session (1,399 once invoked), scanned A, original, MIT.

A code-cleanup workflow based on Kent Beck’s simple-design rules and Sandi Metz’s object-oriented guidance. It focuses on making existing code easier to understand while keeping its behaviour correct.

In plain words
What is it for?
It helps simplify code, reveal intent through clearer names and constants, remove duplication, and verify that the existing tests still pass.
Why use it?
It helps reduce unnecessary complexity, unclear names, duplicated logic, and hard-to-read structures without breaking tests.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the mpga plugin — 18 skills, 26 commands, 3 agents shipped together

Good fit It helps simplify code, reveal intent through clearer names and constants, remove duplication, and verify that the existing tests still pass.

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

Made for: Claude Code.

Or install mpga, the plugin that ships this one along with the rest of its 18 skills, 26 commands, 3 agents.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/benrben/mpga/simplify"><img src="https://agentmods.dev/badge/skills/benrben/mpga/simplify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,399 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.00028 $0.01399
Opus 5.5 $0.00011 $0.00560
Sonnet 5.5 $0.00006 $0.00280
Haiku 4.5 $0.00003 $0.00140

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

Security

Grade A, and why

mpga-simplify 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 2mo 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.

mpga-plugin/skills/simplify/SKILL.md · 119 lines

How it starts

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

simplify

Simplify code using Kent Beck's 4 Rules of Simple Design and Sandi Metz rules.

Trigger: User wants to improve code elegance, reduce complexity, or simplify code. Also triggered by: "simplify this", "too complex", "clean this up", "reduce complexity", "make this simpler".

Protocol

  1. Read target code — we need to see the MESS before we drain it:

    • If user specifies files, use those
    • If git diff has changes, examine the changed files
    • If no target specified, use the current scope's implementation files
  2. Apply Kent Beck's 4 Rules of Simple Design (in priority order — and the order MATTERS, folks, tremendous priority order):

    • Passes all tests — NON-NEGOTIABLE. The code must remain correct after every change.
    • Reveals intention — does the code clearly communicate what it does? If you can't read it and know what it does IMMEDIATELY, it's a DISASTER.
      • Look for: unclear variable names, magic numbers, opaque boolean params
      • Suggest: rename to reveal intent, extract explanatory variables, use named constants
    • No duplication — DRY, but not at the cost of clarity.
      • Look for: copy-pasted logic, similar functions that differ by one param, repeated conditionals
      • Suggest: extract shared functions, use polymorphism, apply template method pattern
    • Fewest elements — remove anything that doesn't serve the above three. If it doesn't EARN its place in the codebase, it's OUT. Less is MORE!
      • Look for: unnecessary abstractions, premature generalization, dead code, unused imports
      • Suggest: inline trivial wrappers, collapse unnecessary class hierarchies, delete dead code
  3. Apply Sandi Metz Rules for method/class size — these are the RULES OF DISCIPLINE, folks, and we LOVE discipline:

    • Classes should be no longer than 100 lines.
    • Methods should be no longer than 5 lines — FIVE. That's it. Short, powerful, BEAUTIFUL. Less is MORE.
    • Pass no more than 4 parameters to a method — four is PLENTY. If you need more, your design is a DISASTER.
    • Controllers should instantiate only one object — ONE. We're keeping it SIMPLE, people.
    • Flag violations with specific file:line references and severity

Read the full file on GitHub · 119 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. 2mo ago First seen · 119 lines · 28 tokens per session scan A 52b802b0e398

Subscribe to this mod's changes

mpga-simplify is a skill published in the GitHub repository benrben/MPGA (5 stars, last pushed 7mo ago), licensed MIT. It adds 28 tokens to every session and 1,399 once invoked, about $0.0001 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-09-03.

Related

mpga-simplify compared with skills from other repositories

mpga-simplify next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mpga-simplifybenrben/MPGASkill57mo agoMITA28Claude Code
autoreviewopenclaw/clawhubSkill9.6ktodayMITA17Claude Code, Codex
omh-code-reviewrlaope/oh-my-hermesSkill5.5ktodayMITA49Claude Code, Codex
agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skillsSkill2.2k6d agoMITA115Claude Code, Codex
revdiff-planumputun/revdiffSkill953todayMITA84Claude Code
re0-mergeLilMGenius/paperthinSkill1.4kyesterdayMITA51Claude Code, Codex
explore-unknownsdzhng/skillsSkill1.5ktodayMITA162Claude Code, Codex