By cskwork
Refactor legacy code for readability without changing behavior. Use when cleaning up or reducing technical debt.
npx claudepluginhub cskwork/clean-codeRefactor legacy code for readability without changing behavior. Use when cleaning up or reducing technical debt.

A repository-aware agent skill for refactoring legacy code without casually changing its behavior.
Its enforced sequence is:
The skill deliberately prioritizes precise naming and locality. It does not equate clean code with more files, smaller methods, interfaces, patterns, or abstraction layers.
Copy the folder to:
<repository>/.agents/skills/clean-code/
Copy the folder to:
$HOME/.agents/skills/clean-code/
Place the complete clean-code directory in the client's configured skills directory. Keep SKILL.md at the root of the skill folder.
Explicit invocation in Codex:
$clean-code Refactor the legacy order-pricing module without changing behavior.
The description also supports implicit routing for requests about legacy cleanup, maintainability, naming, technical debt, and behavior-preserving refactoring.
clean-code/
├── SKILL.md
├── README.md
├── REFERENCES.md
├── LICENSE
├── agents/
│ └── openai.yaml
├── references/
│ ├── api-versioning.md
│ ├── characterization-tests.md
│ ├── refactoring-heuristics.md
│ └── verification-and-reporting.md
├── evals/
│ ├── evals.json
│ └── trigger-queries.json
└── scripts/
└── validate_skill.py
SKILL.md contains the mandatory workflow. Supporting references are loaded only when their step is reached, keeping the primary instructions focused.
From the skill directory:
python3 scripts/validate_skill.py
The validator checks frontmatter, naming, required files, local links, evaluation fixtures, and OpenAI metadata without third-party packages.
This skill is not primarily for:
See REFERENCES.md for the source material that informed the workflow.
7-day visitors to each marketplace page
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.