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 Pixel-Process-UG/superkit-agents --skill clean-codegit clone --depth 1 https://github.com/Pixel-Process-UG/superkit-agentsWrote 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/pixel-process-ug/superkit-agents/clean-code)<a href="https://agentmods.dev/skills/pixel-process-ug/superkit-agents/clean-code"><img src="https://agentmods.dev/badge/skills/pixel-process-ug/superkit-agents/clean-code/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/pixel-process-ug/superkit-agents/clean-code"><img src="https://agentmods.dev/badge/skills/pixel-process-ug/superkit-agents/clean-code.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.00055 | $0.02453 |
| Opus 5.5 | $0.00022 | $0.00981 |
| Sonnet 5.5 | $0.00011 | $0.00491 |
| Haiku 4.5 | $0.00006 | $0.00245 |
Grade A, and why
clean-code 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 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.
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 — 333 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Clean Code
Overview
Apply clean code principles to produce readable, maintainable, and testable software. This skill covers SOLID principles, DRY application, code smell identification, refactoring patterns, naming conventions, error handling, and complexity management. Based on the works of Robert C. Martin, Martin Fowler, and Kent Beck.
Announce at start: "I'm using the clean-code skill to improve code quality."
Phase 1: Analyze Current Code
Goal: Read and understand the code in full context before changing anything.
Actions
- Read the code in its full context (not just the snippet)
- Identify the code's responsibility and purpose
- Measure cyclomatic complexity
- Map coupling and dependencies
- Note any existing tests
STOP — Do NOT proceed to Phase 2 until:
- Code is read in full context
- Purpose and responsibility are understood
- Complexity hotspots are identified
- Existing test coverage is known
Phase 2: Identify Code Smells
Goal: Catalog all code smells using the reference tables below.
Bloaters
| Smell | Detection | Refactoring |
|---|---|---|
| Long Method | > 30 lines | Extract Method |
| Large Class | > 300 lines or > 5 responsibilities | Extract Class |
| Long Parameter List | > 3 parameters | Introduce Parameter Object |
| Data Clumps | Same params appear together | Extract Class |
| Primitive Obsession | Primitives instead of small objects | Replace with Value Object |
Object-Orientation Abusers
| Smell | Detection | Refactoring |
|---|---|---|
| Switch Statements | Switch on type | Replace with Polymorphism |
| Parallel Inheritance | Every subclass requires parallel subclass | Merge hierarchies |
| Refused Bequest | Subclass ignores inherited methods | Replace Inheritance with Delegation |
Change Preventers
| Smell | Detection | Refactoring |
|---|---|---|
| Divergent Change | One class changed for multiple reasons | Extract Class (SRP) |
| Shotgun Surgery | One change touches many classes | Move Method, Inline Class |
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.
- 2mo ago First seen · 333 lines · 55 tokens per session scan A 4cb40f8ddbb7
clean-code is a skill published in the GitHub repository Pixel-Process-UG/superkit-agents (4 stars, last pushed 8mo ago), licensed MIT. It adds 55 tokens to every session and 2,453 once invoked, about $0.0002 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-09-03.
clean-code compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| clean-codePixel-Process-UG/superkit-agents | Skill | 4 | 8mo ago | MIT | A | 55 | Claude Code, Codex |
| code-review-and-qualityaddyosmani/agent-skills | Skill | 122k | 7d ago | MIT | A | 81 | Claude Code |
| doubt-driven-developmentaddyosmani/agent-skills | Skill | 122k | 7d ago | MIT | A | 96 | Claude Code |
| code-simplificationaddyosmani/agent-skills | Skill | 122k | 7d ago | MIT | A | 87 | Claude Code |
| chinese-code-reviewjnMetaCode/superpowers-zh | Skill | 8.6k | 15d ago | MIT | A | 62 | Claude Code |
| receiving-code-reviewjnMetaCode/superpowers-zh | Skill | 8.6k | 15d ago | MIT | A | 50 | Claude Code |
| requesting-code-reviewjnMetaCode/superpowers-zh | Skill | 8.6k | 15d ago | MIT | A | 24 | Claude Code |