# Refactor Clean (agent skill)

> 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.

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.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/dzhng/skills |
| Skill path | skills/engineering/refactor-clean/SKILL.md |
| Skill name | refactor-clean |
| GitHub stars | 1,383 |
| Installs on skills.sh | not listed |
| License | MIT |
| Skills in repo | 2 |
| Plugin marketplace | no |
| Official | no |
| Works with | Claude Code, Codex, Cursor, OpenCode |
| Category | Coding |
| Last commit | Oct 21, 2026 |

## 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"

## Add this skill

### Claude Code

```sh
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 project
```

In the Claude apps, zip the skill folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).

### ChatGPT / Codex

```sh
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 projects
```

### Cursor

```sh
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 projects
```

Sources (checked 2026-10-07): https://code.claude.com/docs/en/skills, https://support.claude.com/en/articles/12512180-using-skills-in-claude, https://learn.chatgpt.com/docs/build-skills, https://cursor.com/docs/context/skills

---

Canonical page: https://appsgit.com/skills/dzhng-refactor-clean
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed daily.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
