Agent Skill
Refactor skill
refactorcode-yeongyu/oh-my-openagentpackages/shared-skills/skills/refactor/SKILL.md
Guides a refactor, cleanup, or restructure with the right decomposition. Use when the user asks to refactor, simplify, extract, or modernize code.
always on
35 tokname + description
once used
6,413 tokSKILL.md body
bundled files
0
repo stars
70kGitHub
Install the Refactor skill
Skills CLI (Claude Code, Codex, Cursor and others)
npx skills add https://github.com/code-yeongyu/oh-my-openagent --skill refactor
Claude Code, by hand (all projects)
git clone --depth 1 https://github.com/code-yeongyu/oh-my-openagent.git /tmp/oh-my-openagent mkdir -p ~/.claude/skills cp -R /tmp/oh-my-openagent/packages/shared-skills/skills/refactor ~/.claude/skills/refactor
For one project only, copy the folder into .claude/skills/ in that project instead. The agent picks it up when a task matches its description.
What it costs your context
Agent Skills load in three steps. Tokens counted with the o200k tokenizer; your model's count will differ a little.
| When | What loads | Cost |
|---|---|---|
| Every session | Name and description | 35 tok |
| When the agent uses it | The SKILL.md instructions | 6,413 tok |
| Only if opened | No bundled files | — |
Until it is used, refactor costs about 39× less than the median MCP server we measured (1,362 tokens on every turn). Installing all 60 skills from code-yeongyu/oh-my-openagent would load 5,128 tokens of descriptions. Skills vs MCP study
Checks
- The instructions are over 5,000 tokens, the Agent Skills specification's guideline for SKILL.md.
- The instructions are over 500 lines; the specification suggests moving detail into reference files.
Checked 2026-10-22 · method
What's inside
The headings of its SKILL.md. Read the full file on GitHub.
- Usage
- What This Command Does
- PHASE 0: INTENT GATE (MANDATORY FIRST STEP)
- Step 0.1: Parse Request Type
- Step 0.2: Validate Understanding
- Step 0.3: Create Initial Todos
- PHASE 1: CODEBASE ANALYSIS (PARALLEL EXPLORATION)
- 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:
- Preview refactoring first
- Grep for Text Patterns:
- 1.3: Collect Background Results
- PHASE 2: BUILD CODEMAP (DEPENDENCY MAPPING)
- 2.1: Construct Definitive Codemap
- CODEMAP: [TARGET]
- Core Files (Direct Impact)
- Dependency Graph
- Impact Zones
- Established Patterns
- 2.2: Identify Refactoring Constraints
- PHASE 3: TEST ASSESSMENT (VERIFICATION STRATEGY)
- 3.1: Detect Test Infrastructure
More skills from code-yeongyu/oh-my-openagent
- ast-grepcode-yeongyu/oh-my-openagent
Searches and rewrites code by AST shape across 25 languages. Use when the target is a syntax pattern (every call/class/import shaped like X, a codemod, a YAML rule) rather than literal text; for plain strings, comments, or filenames, use rg.
70k560 tok idle · 3,466 in use - browsercode-yeongyu/oh-my-openagent
Drives a real browser through the omowright library from the js eval kernel: sites the user is already signed into, forms and clicks, JS-rendered pages, screenshots, web QA, extension popups, a human handoff for login, CAPTCHA or OTP, and a browser you own for scraping, bot-scored targets, network capture and QA traces. Use for any interactive browser task; not for a plain search or an unblocked static fetch.
70k493 tok idle · 1,970 in use - codex-qacode-yeongyu/oh-my-openagent
QA the omo Codex Light edition (lazycodex / packages/omo-codex) itself, in strict isolation so ONLY our plugin is exercised, never the user's real ~/.codex. The first-party method drives the real `codex app-server` against an isolated CODEX_HOME plus a LOCAL mock model (no real API call), and proves a plugin hook fired by asserting hook/started + hook/completed notifications. Also: isolated install verification, per-component hook probes, a tmux TUI smoke, and runtime log observation (RUST_LOG / logs SQLite / /debug-config). Ships tested helper scripts each with a --self-test. Use whenever someone changes anything under packages/omo-codex or wants to QA, smoke-test, verify, or debug the Codex plugin, its hooks/components, the installer/config.toml, the app-server flow, or the Codex TUI. Triggers: codex qa, qa codex, codex-qa, test codex plugin, verify codex hook, codex app-server, lazycodex qa, isolated CODEX_HOME, prove codex hook fired, codex tui test.
70k9239 tok idle · 1,789 in use - coding-agent-sessionscode-yeongyu/oh-my-openagent
Finds, reads, and reconstructs coding-agent sessions across Codex, Claude, OpenCode, OMO/Senpi, and other local agent logs. Use when asked to find or search past sessions, transcripts, or subagent runs, or to recover what an earlier session did.
70k2362 tok idle · 2,672 in use - comment-checkercode-yeongyu/oh-my-openagent
Use when Codex needs to understand or respond to automatic comment-checker feedback emitted after an edit-like PostToolUse hook.
70k29 tok idle · 104 in use - dag-librarycode-yeongyu/oh-my-openagent
Stores a DAG definition once and re-runs it by name, instead of pasting the definition into every run. Use when the user wants to save a DAG, run a saved one, or schedule the same multi-agent graph repeatedly.
70k50 tok idle · 1,055 in use - data-scientistcode-yeongyu/oh-my-openagent
Processes and analyzes data with resident-kernel engines (DuckDB, Polars) and one-shot tools. Use for CSV/parquet/JSON analysis, group-by/join/aggregation, time series, distributions, cleaning, or plotting a dataset.
70k554 tok idle · 1,278 in use - debuggingcode-yeongyu/oh-my-openagent
Runs a hypothesis-driven debugging loop across any language or binary, escalating to orthogonal oracle angles and locking the fix with a failing test. Use for crashes, silent failures, hangs, wrong responses, memory leaks, async misbehavior, or reverse engineering.
70k353 tok idle · 3,031 in use