♻️
QualityTypeScript

Refactor

by code-yeongyu

Refactor is a Quality skill for Claude Code, published by code-yeongyu in lazycodex.

3.2K stars201 forkson code-yeongyu/lazycodexAdded 2026/08/17+1% in starsRepository updated 2026/08/09
aiai-agentsclaudeclaude-codeclicodexdeveloper-toolslazylazycodexoh-my-openagentomoopenaiorchestrationtypescript
Install in seconds
Install Refactor
Copy Refactor into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/code-yeongyu/lazycodex/tree/main/plugins/omo/skills/refactor ~/.claude/skills/refactor

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/code-yeongyu/lazycodex.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
plugins/omo/skills/refactor/SKILL.md in code-yeongyu/lazycodex
Installs to
~/.claude/skills/refactor
Collection
One of 25 skills cataloged from this repository
Category
Quality1354 skills

What Refactor does

Refactor performs intelligent, deterministic refactoring with codebase awareness, mapping code, assessing risk, planning, and verifying each change. Use it to safely restructure files, modules, or projects by triggering /refactor and specifying a target, scope, and risk strategy.

Refactor is cataloged under Quality on DirSkills. Refactor comes from a repository tagged ai, ai-agents, claude, claude-code and cli.

Documentation

README

Codex Harness Tool Compatibility

This skill may include examples copied from the OpenCode harness. In Codex, do not call OpenCode-only tools such as call_omo_agent(...), task(...), background_output(...), or team_*(...) literally. Translate those examples to Codex native tools:

This is the opening of the README. Read the full README on GitHub.

Commands Refactor provides

Slash commands named in this skill’s SKILL.md, listed in the order they first appear.

  • /refactor

Frequently asked about Refactor

  • What else does code-yeongyu publish alongside Refactor?

    Refactor is one of 25 skills that DirSkills catalogs from code-yeongyu/lazycodex, the repository it ships in. Its siblings there include Ast-Grep, Bug Fix Contribution and Codex Rules. Each one is a separate skill with its own page in this directory, installs the same way Refactor does, and is maintained by code-yeongyu in that same repository. The rest of the collection is listed on the code-yeongyu/lazycodex page.

  • How does Refactor compare to other Quality skills?

    Refactor ranks #409 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Refactor against them. Open each page to compare what they document and how they install.

More from code-yeongyu/lazycodex

Refactor is one of 25 skills cataloged on DirSkills from code-yeongyu/lazycodex.

See all 25 skills
🔍
2w ago

Ast-Grep

Ast-Grep performs AST-aware code search and rewrite, letting you match code by structure rather than text. Use it for deterministic codemods like rewriting console.log to logger.info, stripping `as any`, or migrating require to import across a codebase.
Quality
3.2K201
🐛
2w ago

Bug Fix Contribution

Bug Fix Contribution debugs a concrete LazyCodex or Codex defect, implements the smallest tested fix in a fresh temporary workspace, and delivers it as a verified-fix issue for LazyCodex-owned repos or a fork PR for upstream openai/codex.
Quality
3.2K201
📜
2w ago

Codex Rules

Codex Rules injects static project instructions and file-specific rules into Codex sessions automatically. Use it to configure supported rule file locations, matching behavior, and environment variables for Codex.
AI Engineering
3.2K201
🔍
2w ago

Coding Agent Sessions

Coding Agent Sessions locates, reads, and reconstructs coding-agent sessions across products such as Codex, Claude, OpenCode, Senpi, and others. Use it when asked to find, search, or export local agent transcripts, session IDs, token usage, or subagent histories.
AI Engineering
3.2K201
💬
2w ago

Comment Checker

Comment Checker helps Codex understand and respond to automatic comment-checker feedback emitted after successful edit-like PostToolUse hooks. Use it when a patch triggers a warning and Codex must fix or explain the flagged comment before moving on.
AI Engineering
3.2K201
📊
2w ago

Data Scientist

Data Scientist processes and analyzes data files using DuckDB and Polars for high-performance workloads. Use it when you need to query, filter, join, aggregate, visualize, or clean CSV, Parquet, JSON, or DuckDB datasets.
Data
3.2K201