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 skills add lukas-grigis/ralphctl --skill ralphctl-code-simplificationgit clone --depth 1 https://github.com/lukas-grigis/ralphctlWrote 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.
[](https://agentmods.dev/skills/lukas-grigis/ralphctl/ralphctl-code-simplification)<a href="https://agentmods.dev/skills/lukas-grigis/ralphctl/ralphctl-code-simplification"><img src="https://agentmods.dev/badge/skills/lukas-grigis/ralphctl/ralphctl-code-simplification/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.
<a href="https://agentmods.dev/skills/lukas-grigis/ralphctl/ralphctl-code-simplification"><img src="https://agentmods.dev/badge/skills/lukas-grigis/ralphctl/ralphctl-code-simplification.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00115 | $0.01268 |
| Opus 5.5 | $0.00046 | $0.00507 |
| Sonnet 5.5 | $0.00023 | $0.00254 |
| Haiku 4.5 | $0.00012 | $0.00127 |
Grade A, and why
ralphctl-code-simplification 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 6d 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 — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code Simplification
Adapted from addyosmani/agent-skills — "Code Simplification" (MIT). Adapted for ralphctl's harness contract.
Simplify by reducing complexity while preserving behaviour exactly. The goal is not fewer lines — it is code a new reader understands faster than the original. Every simplification passes one test: would someone new to this code follow the result more easily?
When this applies
- Execute — when the task asks for a refactor or cleanup, simplify the task's own new code before the
completion checks, never as a separate pass after them — unless the task is itself a refactor. Simplification outside the task's scope is a finding to surface, not an edit to make —
record it in a
notesignal when the prompt's output-contract section lists it; otherwise fold it into the required signal's own fields.
When not to use: the code is already clear; you do not yet understand what it does; the simpler form is measurably slower on a hot path; the module is about to be replaced.
Principles
- Preserve behaviour exactly. Same outputs for every input, same errors, same side effects and their order. The existing tests pass without modification. If you are not sure a change preserves behaviour, do not make it.
- Follow the project's conventions. Read the project's context file when present and the neighbouring code; simplification that breaks local consistency is churn.
- Clarity over cleverness. A chain of nested conditional expressions becomes early returns or a lookup; a dense chained transform with inline logic becomes a named intermediate step.
- Keep the balance. Do not inline a helper that gives a concept its name, merge unrelated logic into one function, or remove an abstraction that exists for testability. Line count is not the measure.
- Scope to what changed. Default to the code the task touched.
The process
1. Understand before touching (Chesterton's fence)
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.
- 6d ago Changed · -1 tokens per session f46859380320
- 1mo ago First seen · 101 lines · 116 tokens per session scan A f1b9f4166b79
ralphctl-code-simplification is a skill published in the GitHub repository lukas-grigis/ralphctl (24 stars, last pushed today), licensed MIT. It adds 115 tokens to every session and 1,268 once invoked, about $0.0005 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-10-18.
ralphctl-code-simplification compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ralphctl-code-simplificationlukas-grigis/ralphctl | Skill | 24 | today | MIT | A | 115 | Claude Code, Codex |
| atomic-debugdamusix/atomic-claude | Skill | 117 | yesterday | MIT | A | 114 | Claude Code, Codex |
| sipcode-regressAnuj7411/sipcode | Skill | 47 | 1mo ago | MIT | A | 105 | Claude Code |
| debug-my-harnesszernie/vigiles | Skill | 18 | today | MIT | A | 114 | Claude Code |
| linter-docszernie/vigiles | Skill | 18 | today | MIT | A | 125 | Claude Code |
| sonar-manage-findingsNick2bad4u/SonarCloud-Skill | Skill | 2 | yesterday | Unlicense | A | 46 | Codex |
| troubleshoot-tervaterva-sh/terva | Skill | 5 | yesterday | MIT | A | 83 | Claude Code, Codex |