Overview
refactor is an open-source frontend skill for Claude Code and compatible agents, published by code-yeongyu. Its author describes it as: “Guides a refactor, cleanup, or restructure with the right decomposition. Use when the user asks to refactor, simplify, extract, or modernize code.”. The project has 69k stars on GitHub and ships custom license terms, so review them before reuse. Add it to your setup with `git clone https://github.com/code-yeongyu/oh-my-openagent ~/.claude/skills/refactor`.
What refactor does
export const REFACTOR_TEMPLATE = `# Intelligent Refactor Command
What’s inside
The SKILL.md for refactor is organised into these sections:
- Usage
- What This Command Does
- Step 0.1: Parse Request Type
- Step 0.2: Validate Understanding
- Step 0.3: Create Initial Todos
- 1.1: Launch Parallel Explore Agents (BACKGROUND)
- 1.2: Direct Tool Exploration (WHILE AGENTS RUN)
- LSP Tools for Precise Analysis:
- AST-Grep Skill for Pattern Analysis:
- Grep for Text Patterns:
- 1.3: Collect Background Results
- 2.1: Construct Definitive Codemap
Installation
Add refactor to your agent with:
git clone https://github.com/code-yeongyu/oh-my-openagent ~/.claude/skills/refactor Review a skill’s source before installing it — skills can instruct your agent to run commands. This command comes from the skill’s public repository, which is the source of truth for setup steps. New to skills? Read how to install Claude Code skills.
Supported agents
- Codex — declared in the repository topics
- Cursor — declared in the repository topics
- OpenCode — declared in the repository topics
License
code-yeongyu has not declared a standard open-source license for this repository (Other). Confirm the terms with the author before reusing it.
Strengths
- Ships in code-yeongyu/oh-my-openagent, an established project with 69,248 GitHub stars
- Works with Codex, Cursor, OpenCode
- Actively maintained — repository updated in the last 30 days
- Its repository gained 2,357 GitHub stars over the last 52 days
Things to check
- No license declared — confirm terms with the author before reuse
Author
Topics
Frequently asked questions
- What does refactor do?
- Guides a refactor, cleanup, or restructure with the right decomposition. Use when the user asks to refactor, simplify, extract, or modernize code.
- How do I install refactor?
- Run git clone https://github.com/code-yeongyu/oh-my-openagent ~/.claude/skills/refactor in your agent, then reload your skills. Review the source at https://github.com/code-yeongyu/oh-my-openagent before installing.
- Is refactor free to use?
- refactor is publicly available on GitHub, but code-yeongyu has not declared a standard open-source license (Other). Confirm the terms with the author before reusing it.
- Which agents does refactor work with?
- refactor lists Codex, Cursor, and OpenCode — named in its SKILL.md, its plugin marketplace or its repository topics. Skills use the portable SKILL.md format, so other agents that read that format may load it too.
- Where does refactor come from?
- refactor ships inside code-yeongyu/oh-my-openagent, a repository that contains 49 catalogued skills in total. The repository's 69,248 GitHub stars apply to that whole collection, not to this skill on its own.