clean-coder

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 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/dexhorthy/slopfiles/clean-coder
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, Codex.

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. 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.00015 $0.00567
Opus 5 $0.00008 $0.00283
Sonnet 5 $0.00003 $0.00113
Haiku 4.5 $0.00002 $0.00057

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

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. 2d 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 (48 stars, last pushed 5mo ago), licensed MIT. It adds 15 tokens to every session and 567 once invoked, about $0.0001 per session on Opus 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

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

agent-host-chat-contributions

Build and review cross-cutting agent-host chat behavior through lifecycle contributions. Use when adding turn lifecycle side effects, prompt or context injection, restored-history transformation, protocol-action observation, or when reviewing changes that add code to AgentSideEffects or AgentService.

microsoft/vscode · 56 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens