cm-clean-code

A code-cleanup process that looks for unused code, duplicated code, confusing names, and other code-quality problems.

In plain words
What is it for?
Use it after adding features, before opening a pull request, or during a focused effort to reduce technical debt. A pull request is a request to review and merge code changes.
Why use it?
It helps reduce clutter and inconsistencies that make a codebase harder to understand and maintain.

Skill for Claude CodeCodex

Part of the cm plugin — 58 skills shipped together

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/tody-agent/codymaster/cm-clean-code
Any agent
npx skills add tody-agent/codymaster --skill cm-clean-code
Clone the repo
git clone --depth 1 https://github.com/tody-agent/codymaster

Made for: Claude Code, Codex.

Or install cm, the plugin that ships this one along with the rest of its 58 skills.

Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,982 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00040 $0.02982
Opus 5 $0.00020 $0.01491
Sonnet 5 $0.00008 $0.00596
Haiku 4.5 $0.00004 $0.00298

Measured 3d ago against content hash 65d2a5668628, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cm-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 3d 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.

.agents/skills/cm-clean-code/SKILL.md · 321 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 3d ago First seen · 321 lines · 40 tokens per session scan A 65d2a5668628

Subscribe to this mod's changes

cm-clean-code is a skill published in the GitHub repository tody-agent/codymaster (52 stars, last pushed 8d ago), with no licence file. It adds 40 tokens to every session and 2,982 once invoked, about $0.0002 per session on Opus 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-30.

Related

Other skills, from other repositories

eduorchestrate

Use /eduorchestrate to onboard a learner, create an adaptive job-role plan with a 30-day minimum, research trends, send daily plan emails, log progress, load the prebuilt skill progression card, summarize weeks, recommend the next skill, and review progress.

haroontrailblazer/EduOrchestrate · 60 tokens

eduorchestrate

Universal EduOrchestrate adapter for openclaw. Use /eduorchestrate for learner onboarding, adaptive plans with a 30-day minimum, trend research, daily email plans, progress logging, prebuilt skill progression cards, weekly summaries, and next-skill recommendations.

haroontrailblazer/EduOrchestrate · 60 tokens

scale-to-millions

Use this skill whenever the user is designing, reviewing, debugging, or answering interview questions about system/software architecture and scalability — e.g. "scale my app", "how do I handle more traffic", "design a URL shortener / news feed / chat system", "my API is slow under load", "should I shard my database"…

Rudra-narayan-muduli-001/Scale-to-Millions · 130 tokens

wiki_ingest

Ingest new academic papers, notes, or web articles into the raw/ folder of your active topic wiki.

Misaka16384/magi · 26 tokens

magi_guide

Answer MAGI usage and troubleshooting questions from the installed manual: look up the exact error in magi guide --symptoms/--search, read the relevant chapter, verify the workspace state, and hand back the exact fix command. Use whenever a magi command errors or the user asks how to install, migrate, ingest, build…

Misaka16384/magi · 84 tokens

radar_review

Triage literature-radar digests: score each candidate paper against the local wiki, file bd survey issues for keepers, and queue selected PDFs for ingestion.

Misaka16384/magi · 36 tokens