Refactor Clean
Refactor Clean is an agent skill (a SKILL.md file) from dzhng/skills. Refactor cleanly instead of layering sediment. It works with Claude Code, Codex, Cursor and OpenCode and has 1,383 GitHub stars across a repository of 2 listed skills. Install it by copying the skill folder into your agent's skills directory.
github.com/dzhng/skills/skills/engineering/refactor-clean (opens in a new tab)
Data as of from the GitHub API; description from the skill's SKILL.md. Report an error
- Multi-skill repo
- Coding
- Maintained
Add this skill
Claude
Claude Code loads skills from ~/.claude/skills/ (all projects) or .claude/skills/ (one project):
git clone --depth 1 https://github.com/dzhng/skills.git
cp -r skills/skills/engineering/refactor-clean ~/.claude/skills/refactor-clean # personal, or .claude/skills in a projectIn the Claude apps, zip the refactor-clean folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).
ChatGPT / Codex
Codex reads skills from .agents/skills/ in a repo or ~/.agents/skills/ for every project:
git clone --depth 1 https://github.com/dzhng/skills.git
cp -r skills/skills/engineering/refactor-clean .agents/skills/refactor-clean # repo; ~/.agents/skills for all projectsStandalone skills also load in the ChatGPT desktop app.
Cursor
Cursor loads skills from .cursor/skills/ (or ~/.cursor/skills/) and also reads .claude/skills/:
git clone --depth 1 https://github.com/dzhng/skills.git
cp -r skills/skills/engineering/refactor-clean .cursor/skills/refactor-clean # project; ~/.cursor/skills for all projectsSource (checked Oct 7, 2026): code.claude.com/docs/en/skills (opens in a new tab), support.claude.com/en/articles/12512180-using-skills-in-claude (opens in a new tab), learn.chatgpt.com/docs/build-skills (opens in a new tab), cursor.com/docs/context/skills (opens in a new tab)
What this skill does
Refactor cleanly instead of layering sediment. Use for rename requests, stale or misleading names, legacy leftovers, changed scope, or when a change reveals duplicated concepts, local adapters, obsolete owners, redundant inputs or guards, compatibility wrappers, parallel abstractions, an over-large module that has accreted many responsibilities, or "just tack this on" pressure in any code area. Replace the old shape with the simpler shape the codebase would want if it were designed today.
When it triggers
- Use for rename requests, stale or misleading names, legacy leftovers, changed scope, or when a change reveals duplicated concepts, local adapters, obsolete owners, redundant inputs or guards, compatibility wrappers, parallel abstractions, a
- "just tack this on"
More skills in dzhng/skills
2 skills are listed from this repository.
Similar skills
More coding skills
Convex Backend
CloudAI-X/claude-workflow-v2
Convex backend development guidelines. Use when writing Convex functions, schemas, queries, mutations, actions, or any backend code in a Convex project.
Active · last commit Oct 2, 2026
CodingPythonLore
specstoryai/getspecstory
SpecStory Lore - mine your SpecStory coding histories (any agent - Claude Code, Codex, Cursor, Gemini, and more) into a persistent corpus, surface your reproducible workflows with corroborated…
Active · last commit Oct 26, 2026
OfficialCodingGoGpt Image Skill
feiskyer/claude-code-settings
Generate or edit images using OpenAI GPT Image API (gpt-image-2, gpt-image-1, etc).
Maintained · last commit Sep 27, 2026
CodingPythonOma DB
first-fluke/oh-my-agent
Design schemas and migrations, tune queries, or plan vector retrieval and database operations.
Active · last commit Oct 24, 2026
CodingTypeScriptAI Assisted Prototyping
RefoundAI/lenny-skills
Help users build functional product prototypes from natural language or visual mocks using AI coding tools.
Maintained · last commit Jul 15, 2026
CodingLLM Provider
caliber-ai-org/ai-setup
Adds a new LLM provider implementing LLMProvider interface with call() and stream() methods.
Active · last commit Sep 24, 2026
CodingTypeScript
How do I install the Refactor Clean skill?
Copy the refactor-clean folder (the one containing SKILL.md) into ~/.claude/skills/ for Claude Code, .agents/skills/ for Codex or .cursor/skills/ for Cursor. The agent picks it up automatically when a task matches its description.
Is the Refactor Clean skill free?
Yes. The repository is open source under the MIT license.
Is Refactor Clean maintained?
The repository's most recent commit was on Oct 21, 2026. appsgit only lists skills from repositories with a commit in the last six months.