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.
npx agentmods add skills/florianbruniaux/ccboard/code-simplifiernpx skills add FlorianBruniaux/ccboard --skill code-simplifiergit clone --depth 1 https://github.com/FlorianBruniaux/ccboardWhat 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.
| Model | Per session | Once 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 |
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.
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 BaseEntityquand seulUserest 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
What ships with it
12 files 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.
- checklists/code-smells.md 5.6 KB
- checklists/post-simplify.md 3.0 KB
- checklists/pre-simplify.md 2.7 KB
- examples/anti-patterns.md 7.2 KB
- examples/good-refactoring.md 9.9 KB
- patterns/3-tier-cleanup.md 6.2 KB
- patterns/error-handling.md 6.4 KB
- patterns/react-components.md 6.8 KB
- patterns/typescript-aristote.md 5.2 KB
- principles/avoid-over-engineering.md 5.6 KB
- principles/clarity-over-brevity.md 4.8 KB
- principles/preserve-functionality.md 3.6 KB
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.
- 2d ago First seen · 243 lines · 0 tokens per session scan A 49d15fea0e3a
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.
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.
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…
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.
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.
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.
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.