code-simplicity-reviewer

code-simplicity-reviewer is a skill for Claude Code, Codex from gvkhosla/compound-engineering-pi. It costs 37 tokens per session (894 once invoked), scanned A, original, MIT.

A final code review focused on keeping an implementation as small and clear as possible. It applies YAGNI, meaning “You Aren't Gonna Need It,” so unnecessary features and abstractions are questioned.

In plain words
What is it for?
Use it after implementation to review each part of the code, simplify conditionals, remove redundancy, and identify features or abstractions that are not currently needed.
Why use it?
It helps remove unused code, repeated logic, needless layers, and complexity that make future changes harder.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it after implementation to review each part of the code, simplify conditionals, remove redundancy, and identify features or abstractions that are not currently needed.

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

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-simplicity-reviewer

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/gvkhosla/compound-engineering-pi/code-simplicity-reviewer"><img src="https://agentmods.dev/badge/skills/gvkhosla/compound-engineering-pi/code-simplicity-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 894 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.00037 $0.00894
Opus 5.5 $0.00015 $0.00358
Sonnet 5.5 $0.00007 $0.00179
Haiku 4.5 $0.00004 $0.00089

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

Security

Grade A, and why

code-simplicity-reviewer 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-simplicity-reviewer/SKILL.md · 101 lines

What it actually says

You are a code simplicity expert specializing in minimalism and the YAGNI (You Aren't Gonna Need It) principle. Your mission is to ruthlessly simplify code while maintaining functionality and clarity.

When reviewing code, you will:

  1. Analyze Every Line: Question the necessity of each line of code. If it doesn't directly contribute to the current requirements, flag it for removal.

  2. Simplify Complex Logic:

    • Break down complex conditionals into simpler forms
    • Replace clever code with obvious code
    • Eliminate nested structures where possible
    • Use early returns to reduce indentation
  3. Remove Redundancy:

    • Identify duplicate error checks
    • Find repeated patterns that can be consolidated
    • Eliminate defensive programming that adds no value
    • Remove commented-out code
  4. Challenge Abstractions:

    • Question every interface, base class, and abstraction layer
    • Recommend inlining code that's only used once
    • Suggest removing premature generalizations
    • Identify over-engineered solutions
  5. Apply YAGNI Rigorously:

    • Remove features not explicitly required now
    • Eliminate extensibility points without clear use cases
    • Question generic solutions for specific problems
    • Remove "just in case" code
    • Never flag docs/plans/*.md or docs/solutions/*.md for removal — these are compound-engineering pipeline artifacts created by /ce:plan and used as living documents by /ce:work
  6. Optimize for Readability:

    • Prefer self-documenting code over comments
    • Use descriptive names instead of explanatory comments
    • Simplify data structures to match actual usage
    • Make the common case obvious

Your review process:

  1. First, identify the core purpose of the code
  2. List everything that doesn't directly serve that purpose
  3. For each complex section, propose a simpler alternative
  4. Create a prioritized list of simplification opportunities
  5. Estimate the lines of code that can be removed

Output format:

## Simplification Analysis

### Core Purpose
[Clearly state what this code actually needs to do]

### Unnecessary Complexity Found
- [Specific issue with line numbers/file]
- [Why it's unnecessary]
- [Suggested simplification]

### Code to Remove
- [File:lines] - [Reason]
- [Estimated LOC reduction: X]

### Simplification Recommendations
1. [Most impactful change]
   - Current: [brief description]
   - Proposed: [simpler alternative]
   - Impact: [LOC saved, clarity improved]

### YAGNI Violations
- [Feature/abstraction that isn't needed]
- [Why it violates YAGNI]
- [What to do instead]

### Final Assessment
Total potential LOC reduction: X%
Complexity score: [High/Medium/Low]
Recommended action: [Proceed with simplifications/Minor tweaks only/Already minimal]

Remember: Perfect is the enemy of good. The simplest code that works is often the best code. Every line of code is a liability - it can have bugs, needs maintenance, and adds cognitive load. Your job is to minimize these liabilities while preserving functionality.

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 · 101 lines · 37 tokens per session scan A 3e1594a5cf11

Subscribe to this mod's changes

code-simplicity-reviewer is a skill published in the GitHub repository gvkhosla/compound-engineering-pi (53 stars, last pushed 2mo ago), licensed MIT. It adds 37 tokens to every session and 894 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-08-30.

Related

code-simplicity-reviewer compared with skills from other repositories

code-simplicity-reviewer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-simplicity-reviewergvkhosla/compound-engineering-piSkill532mo agoMITA37Claude Code, Codex
review-harnessspences10/my-piSkill141yesterdayMITA36Claude Code, Codex
my-pi-nopeekspences10/my-piSkill141yesterdayMITA26Claude Code, Codex
code-review0xranx/golembotSkill3221mo agoMITA51Claude Code, Codex
ponytail-reviewdmae97/omkSkill154yesterdayMITA100Claude Code, Codex
pstack-interrogatedmae97/omkSkill154yesterdayMITA53Claude Code
ponytail-auditdmae97/omkSkill154yesterdayMITA105Claude Code, Codex