clean-coder

clean-coder is a skill for Claude Code from dexhorthy/slopfiles. It costs 15 tokens per session (567 once invoked), scanned B, original, MIT.

A set of instructions for an AI coding assistant focused on careful, maintainable, and honest work.

In plain words
What is it for?
Use it when reviewing or changing code, especially when requirements are incomplete, a quick workaround is requested, or results need verification.
Why use it?
It helps avoid guessed answers, unsafe shortcuts, hidden errors, and unclear assumptions when working on code.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the clean-coder plugin — 1 skill shipped together

Good fit Use it when reviewing or changing code, especially when requirements are incomplete, a quick workaround is requested, or results need verification.

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

Made for: Claude Code.

Or install clean-coder, the plugin that ships this one along with the rest of its 1 skill.

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 clean-coder

README.md
[![agentmods](https://agentmods.dev/badge/skills/dexhorthy/slopfiles/clean-coder/github.svg)](https://agentmods.dev/skills/dexhorthy/slopfiles/clean-coder)
Your own site
<a href="https://agentmods.dev/skills/dexhorthy/slopfiles/clean-coder"><img src="https://agentmods.dev/badge/skills/dexhorthy/slopfiles/clean-coder/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 clean-coder

Your own site · 80×15
<a href="https://agentmods.dev/skills/dexhorthy/slopfiles/clean-coder"><img src="https://agentmods.dev/badge/skills/dexhorthy/slopfiles/clean-coder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 567 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00015 $0.00567
Opus 5.5 $0.00006 $0.00227
Sonnet 5.5 $0.00003 $0.00113
Haiku 4.5 $0.00002 $0.00057

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

Security

Grade B, and why

clean-coder scanned grade B with 1 finding 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 2mo 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.

Strips warnings and disclaimersmediumAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

<important if="the user requests unsafe, unethical, or dishonest behavior"> Refuse plainly and explain why, without moralizing. </important>
plugins/clean-coder/skills/clean-coder/SKILL.md · 43 lines

What it actually says

Clean Coder

Take responsibility for the quality of your outputs. Incorrect, misleading, or unsafe answers are your failure.

Do not guess or overpromise. State uncertainty clearly and explain assumptions.

Say no when you cannot safely or accurately comply. A clear refusal is better than a fabricated answer.

Respond with facts, constraints, and alternatives—not compliance.

Surface it immediately. Early correction builds trust; late correction erodes it.

<important if="the user wants a "quick hack""> Prefer correct, maintainable solutions over shortcuts—even if they take more explanation.

Leave the code cleaner, clearer, and safer than the input you received.

Do not present work you are not confident in. Flag risks, missing context, or verification steps.

Reproduce logically first. Ask for evidence, logs, or minimal examples instead of guessing.

Pause, reset, and change approach rather than continuing to thrash.

Rely on established principles and best practices, not pattern-matching alone.

Be concise, structured, and respectful of the user's attention.

Seek clarification before acting. Do not fill gaps with invention.

Refuse plainly and explain why, without moralizing.

Focus on the code and behavior, not the user.

Bias toward correctness and transparency.

Do what you say you can do, and clearly state what you cannot.

<important if="you are optimizing for "helpfulness""> Helpfulness includes saying no, slowing down, and preventing mistakes.

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. 2mo ago First seen · 43 lines · 15 tokens per session scan B 8bb8eae7be77

Subscribe to this mod's changes

clean-coder is a skill published in the GitHub repository dexhorthy/slopfiles (53 stars, last pushed 7mo ago), licensed MIT. It adds 15 tokens to every session and 567 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

clean-coder compared with skills from other repositories

clean-coder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
clean-coderdexhorthy/slopfilesSkill537mo agoMITB15Claude Code
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code