code-simplifier

A French-language assistant for making code clearer and easier to maintain while preserving its exact behavior. It looks for deeply nested logic, duplication, unclear names, unnecessary abstractions, and other complexity patterns.

In plain words
What is it for?
Use it to review code for unnecessary complexity, suggest smaller refactorings, improve names and structure, remove duplication, and identify abstractions that add little value.
Why use it?
It helps reduce code that is hard to read or change without altering what the software does. It also distinguishes genuine simplification opportunities from intentional structures such as a three-layer application design.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/florianbruniaux/ccboard/code-simplifier
Any agent
npx skills add FlorianBruniaux/ccboard --skill code-simplifier
Clone the repo
git clone --depth 1 https://github.com/FlorianBruniaux/ccboard

Made for: Claude Code, Codex.

Per session 4 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,678 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00004 $0.01678
Opus 5 $0.00002 $0.00839
Sonnet 5 $0.00001 $0.00336
Haiku 4.5 $0.00000 $0.00168

Measured 2d ago against content hash 49d15fea0e3a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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.

.claude/skills/code-simplifier/SKILL.md · 243 lines

How it starts

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

Code Simplifier - Méthode Aristote

Tu es un spécialiste expert en simplification de code, focalisé sur l'amélioration de la clarté, de la cohérence et de la maintenabilité du code tout en préservant la fonctionnalité exacte.

Mode d'Activation

Invocation Explicite

/code-simplifier

Auto-Suggestion (Proactif)

Suggère /code-simplifier quand tu détectes:

  • Imbrication > 3 niveaux (if/for/while imbriqués)
  • Fonctions > 50 lignes sans découpage logique
  • Ternaires imbriqués (a ? b ? c : d : e)
  • Code dupliqué (violation DRY)
  • Noms de variables non explicites (data, item, result, temp)
  • Abstractions inutiles (wrapper sans valeur ajoutée)
  • Violation des conventions projet (function keyword, enums TypeScript, etc.)
  • Pattern IA : abstractions servant un seul appelant (interface + classe pour un cas unique)
    • Exception : séparations Router/Service/Repository = architecture 3-tier voulue, PAS de l'overengineering
  • Pattern IA : error handling pour des chemins impossibles (try/catch autour de code synchrone pur)
  • Pattern IA : types génériques inutilement (T extends BaseEntity quand seul User est utilisé)
  • Pattern IA : wrapper functions sans valeur ajoutée (function qui ne fait que transférer les arguments)

Format de suggestion:

Ce code pourrait être simplifié. Veux-tu que j'utilise /code-simplifier ?
Détecté: [raison spécifique avec localisation]

Principes Fondamentaux

1. Préserver la Fonctionnalité (NON-NÉGOCIABLE)

  • Ne JAMAIS modifier CE QUE le code fait, seulement COMMENT il le fait
  • Tous les comportements, sorties et effets de bord doivent rester IDENTIQUES
  • En cas de doute sur l'impact → NE PAS MODIFIER

2. Conventions Méthode Aristote (OBLIGATOIRE)

// TOUJOURS
const myFunction = () => {}; // Arrow functions
const MyComponent = () => {}; // Composants React
import type { User } from "~/types"; // import type séparé
UserRoleSchema.Values.ADMIN; // Zod schemas > enums

// JAMAIS
function myFunction() {} // function keyword
enum UserRole {
  ADMIN,
} // enums TypeScript
import { User } from "~/types"; // types avec import normal

Read the full file on GitHub · 243 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. 2d ago First seen · 243 lines · 0 tokens per session scan A 49d15fea0e3a

Subscribe to this mod's changes

code-simplifier is a skill published in the GitHub repository FlorianBruniaux/ccboard (94 stars, last pushed 22d ago), licensed MIT. It adds 4 tokens to every session and 1,678 once invoked, about $0.0000 per session on Opus 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

Other skills, from other repositories

sentry-triage

Triage WorldMonitor Sentry issues — classify unresolved events as noise, already-fixed, product bugs, or needs-human; optionally ship a tested fix. Use when the user says triage Sentry, pastes a WORLDMONITOR- ID or sentry.io URL, or asks to investigate production errors.

koala73/worldmonitor · 69 tokens

verify-worldmonitor

Launch and drive the WorldMonitor browser dashboard (Vite app at /dashboard) to prove user-facing behavior with screenshots and transcripts. Use when a change needs proof in the real app rather than only unit tests — panels, map layers, settings, search, country briefs, boot — or when asked to run, screenshot, or…

koala73/worldmonitor · 73 tokens

assess-energy-shock

Model oil or gas supply shock exposure for a country and chokepoint. Use when the user asks how an energy disruption could affect fuel supply, strategic cover, or product deficits.

koala73/worldmonitor · 42 tokens

check-forecast-signals

Retrieve probabilistic forecasts and their scorecard context. Use when the user asks what World Monitor is forecasting, how probabilities shifted, or how calibrated the forecasts are.

koala73/worldmonitor · 38 tokens

fetch-news-digest

Retrieve the pre-aggregated digest of World Monitor's curated news feeds, bucketed by category, with per-article threat classification and alert flags. Use when the user asks what's in the news right now, wants headlines by topic, or needs a current-events sweep.

koala73/worldmonitor · 59 tokens

monitor-webcams

Discover live webcams in a map viewport and resolve thumbnails or player URLs. Use when the user asks for visual context near a location, route, border, port, or city.

koala73/worldmonitor · 39 tokens