code-simplifier

code-simplifier is a skill for Claude Code, Codex from yeisonrestrepo/code-conductor. It costs 38 tokens per session (844 once invoked), scanned A, original, MIT.

A set of rules for writing simpler code, such as giving each function one job, avoiding unnecessary layers, and using clear names. It applies these rules whenever code is written or reviewed.

In plain words
What is it for?
Use it to simplify implementations, review code structure, keep functions small, and decide whether an abstraction or interface is actually needed.
Why use it?
It helps prevent code from becoming harder to understand through speculative features, needless abstractions, and deeply nested logic. The rules focus changes on current needs rather than hypothetical ones.

Skill for Claude CodeCodex

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

Good fit Use it to simplify implementations, review code structure, keep functions small, and decide whether an abstraction or interface is actually needed.

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

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/yeisonrestrepo/code-conductor/code-simplifier/github.svg)](https://agentmods.dev/skills/yeisonrestrepo/code-conductor/code-simplifier)
Your own site
<a href="https://agentmods.dev/skills/yeisonrestrepo/code-conductor/code-simplifier"><img src="https://agentmods.dev/badge/skills/yeisonrestrepo/code-conductor/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/yeisonrestrepo/code-conductor/code-simplifier"><img src="https://agentmods.dev/badge/skills/yeisonrestrepo/code-conductor/code-simplifier.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 844 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.00038 $0.00844
Opus 5.5 $0.00015 $0.00338
Sonnet 5.5 $0.00008 $0.00169
Haiku 4.5 $0.00004 $0.00084

Measured 1mo ago against content hash 5d51d76b4aa0, 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 1mo 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 · 131 lines

How it starts

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

Code Simplifier

Always active. Apply these rules to every piece of code written or reviewed.

Rules

1. No Speculative Abstractions

Solve today's problem. Do not build for hypothetical future requirements.

❌ Bad:

interface DataProcessor<T, R> {
  process(data: T): R;
  validate(data: T): boolean;
}

✅ Good:

function parseUserInput(raw: string): User { ... }

2. No Premature Layers

Add a layer only when it carries real logic — not to "separate concerns" theoretically.

❌ Bad:

class UserRepository {
  constructor(private db: UserDataAccessLayer) {}
  findById(id: string) { return this.db.findById(id); }
}

✅ Good:

async function getUserById(db: Database, id: string): Promise<User> {
  return db.query('SELECT * FROM users WHERE id = ?', [id]);
}

3. No Single-Implementation Interfaces

Don't create an interface for a type that will only ever have one implementation.

❌ Bad: interface Logger { log(msg: string): void } ✅ Good: Use the class directly, or a plain function.

4. Functions Do One Thing (Max 30 Lines)

If a function needs a comment to describe what a section does, that section should be its own function.

5. No Defensive Code for Impossible Cases

Don't validate inputs that can't be wrong (internal calls, typed parameters, framework guarantees).

❌ Bad:

function add(a: number, b: number): number {
  if (typeof a !== 'number') throw new Error('a must be a number');
  return a + b;
}

✅ Good:

function add(a: number, b: number): number {
  return a + b;
}

6. No Design Patterns by Default

Use a pattern only when it solves a specific pain you have today.

7. Flat Over Nested

Use guard clauses and early returns instead of nesting.

❌ Bad:

function process(user: User | null) {
  if (user) {
    if (user.isActive) {
      if (user.hasPermission) {
        doWork(user);
      }
    }
  }
}

✅ Good:

function process(user: User | null) {
  if (!user) return;
  if (!user.isActive) return;
  if (!user.hasPermission) return;
  doWork(user);
}

Read the full file on GitHub · 131 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. 1mo ago First seen · 131 lines · 38 tokens per session scan A 5d51d76b4aa0

Subscribe to this mod's changes

code-simplifier is a skill published in the GitHub repository yeisonrestrepo/code-conductor (18 stars, last pushed today), licensed MIT. It adds 38 tokens to every session and 844 once invoked, about $0.0002 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-23.

Related

code-simplifier compared with skills from other repositories

code-simplifier next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-simplifieryeisonrestrepo/code-conductorSkill18todayMITA38Claude Code, Codex
reviewowainlewis/blueprintSkill4324d agoMITA58Claude Code, Codex
architecture-reviewowainlewis/blueprintSkill4324d agoMITA50Claude Code, Codex
code-reviewerMageByte-Zero/spec-superflowSkill89013d agoMITA35Claude Code
vanity-engineering-reviewbencium/bencium-marketplaceSkill4991mo agoMITA181Claude Code
task-to-prowainlewis/blueprintSkill4324d agoMITA40Claude Code, Codex
improveowainlewis/blueprintSkill4324d agoMITA33Claude Code, Codex