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 renky1025/agent-skills --skill clean-codegit clone --depth 1 https://github.com/renky1025/agent-skillsWrote 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/renky1025/agent-skills/clean-code)<a href="https://agentmods.dev/skills/renky1025/agent-skills/clean-code"><img src="https://agentmods.dev/badge/skills/renky1025/agent-skills/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/renky1025/agent-skills/clean-code"><img src="https://agentmods.dev/badge/skills/renky1025/agent-skills/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.00274 | $0.02107 |
| Opus 5.5 | $0.00110 | $0.00843 |
| Sonnet 5.5 | $0.00055 | $0.00421 |
| Haiku 4.5 | $0.00027 | $0.00211 |
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 1mo 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 — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Clean Code
Author: Robert C. Martin (Uncle Bob) | Pages: ~462 | Chapters: 17 | Generated: 2026-08-24
Purpose
A synthesised study aid for Clean Code: it maps every named framework, principle, anti-pattern, and heuristic in the book to a reference file, then routes a question or a review finding to the file that answers it. It produces grounded advice with chapter citations — not the book text, and not a linting tool.
When to Use
- Naming, functions, comments, formatting, objects vs data structures, error handling, boundaries, tests/TDD, classes/SRP, systems, concurrency, refactoring, code smells.
- A live review or cleanup where you must name why something is a smell and what to do.
- Studying the book, or asking "what does Uncle Bob say about X".
- Trigger phrases: 整洁代码, 重构, 代码质量, 命名, 函数设计, 注释, 代码味道, 反模式, 测试驱动; clean code, naming, TDD, error handling, code smell, code review, SRP.
When NOT to Use
- Review-and-fix of a diff ->
claude-simplifyruns the review and applies fixes; this skill only supplies the justification the review cites. - Beyond the book — design patterns, architecture, framework idioms -> say it is out of scope; do not extrapolate book positions.
- Untrusted third-party code safety ->
skill-security-check. - Language tooling (linters, formatters, rule configs) -> not covered.
Workflow
A. Look something up
- Classify the question into a topic in the Decision Rules table.
- Read that one file; preloading
references/defeats the routing table. - Follow a chapter's cross-reference only when the question actually needs it.
- Answer from the loaded content, citing chapter and heuristic ids (
Ch 3,G5,F1). - For a non-Java language, read
references/appendix-lang-map.mdand translate rather than quoting Java syntax.
B. Apply the book to a live code review
- Read
references/cheatsheet.md— it is the review lens. - Tag each diff finding with its C/E/F/G/J/N/T heuristic id; load
references/chapters/ch17-smells-and-heuristics.mdfor tags absent from the cheat sheet. - Name the fixing framework, then load the chapter that owns it via the routing table.
- Load
references/patterns.mdwhen the fix is a technique and you need its trade-offs. - Report each finding as: id -> why -> fix -> citation.
What ships with it
22 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.
- references/appendix-lang-map.md 5.6 KB
- references/chapters/ch01-clean-code.md 7.6 KB
- references/chapters/ch02-meaningful-names.md 9.0 KB
- references/chapters/ch03-functions.md 11 KB
- references/chapters/ch04-comments.md 9.0 KB
- references/chapters/ch05-formatting.md 5.9 KB
- references/chapters/ch06-objects-and-data-structures.md 6.6 KB
- references/chapters/ch07-error-handling.md 7.0 KB
- references/chapters/ch08-boundaries.md 4.7 KB
- references/chapters/ch09-unit-tests.md 5.2 KB
- references/chapters/ch10-classes.md 6.0 KB
- references/chapters/ch11-systems.md 7.9 KB
- references/chapters/ch12-emergence.md 6.3 KB
- references/chapters/ch13-concurrency.md 8.6 KB
- references/chapters/ch14-successive-refinement.md 10 KB
- references/chapters/ch15-junit-internals.md 9.3 KB
- references/chapters/ch16-refactoring-serialdate.md 8.0 KB
- references/chapters/ch17-smells-and-heuristics.md 13 KB
- references/cheatsheet.md 4.6 KB
- references/core-frameworks.md 5.7 KB
- references/glossary.md 4.7 KB
- references/patterns.md 4.8 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.
- 1mo ago Changed · -23 lines · +175 tokens per session ad718673dcc8
- 1mo ago First seen · 173 lines · 99 tokens per session scan A 5c75cf8bd2f4
clean-code is a skill published in the GitHub repository renky1025/agent-skills (11 stars, last pushed 15d ago), licensed MIT. It adds 274 tokens to every session and 2,107 once invoked, about $0.0011 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-08-31.
Other skills, from other repositories
mindos
MindOS: local knowledge assistant & shared KB. Keeps decisions, notes, SOPs, debugging lessons, research findings, preferences across sessions/agents. Core: save notes, search KB, organize files, run workflows, review, append CSV, hand off context, distill lessons. NOT for app source or paths outside KB. Triggers…
superlint
This skill describes the mandatory standard operating procedure for using our internal SuperLint tool. Use this when tasks require fixing code quality issues according to corporate standards.
api-design
Design public interfaces for libraries and tools that other people depend on. Use when designing or reviewing a public API surface, deciding what to export, naming functions and CLI flags, adding configuration options, planning deprecations, or when the user asks "is this a good API" or "how do I change this without…
code-review
Review a pull request the way a good open-source maintainer does. Use when reviewing an incoming PR, when the user asks "review this PR" or "is this ready to merge", when triaging a stale PR queue, or when writing review feedback to an external contributor. Covers what to check and in what order, severity levels…
refactor-safely
Restructure code that other people depend on without breaking them. Use when planning a large refactor or rewrite, splitting a monolith into packages, renaming or moving public symbols, changing internal architecture behind a stable API, or when the user says "I want to rewrite this" or "this code needs to be cleaned…
code_review
Comprehensive code review for quality, security, performance, and best practices across any language.