refactor SKILL.md skillA
refactor from code-yeongyu/oh-my-openagent is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add code-yeongyu/oh-my-openagent/refactor@git:20261023.af359dbPins git:20261023.af359db in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- code-yeongyu/oh-my-openagent
- Path
packages/shared-skills/skills/refactor/SKILL.md- Versions recorded
- 9
- Latest version
- git:20261023.af359db, committed Oct 23, 2026
- First version recorded
- May 30, 2026
- Size
- 25,255 bytes
- Repository stars
- 70,648
- License
- a license file GitHub does not identify
Guides a refactor, cleanup, or restructure with the right decomposition. Use when the user asks to refactor, simplify, extract, or modernize code.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
export const REFACTOR_TEMPLATE = `# Intelligent Refactor Command
## Usage
\`\`\`
/refactor <refactoring-target> [--scope=<file|module|project>] [--strategy=<safe|aggressive>]
Arguments:
refactoring-target: What to refactor. Can be:
- File path: src/auth/handler.ts
- Symbol name: "AuthService class"
- Pattern: "all functions using deprecated API"
- Description: "extract validation logic into separate module"
Options:
--scope: Refactoring scope (default: module)
- file: Single file only
- module: Module/directory scope
- project: Entire codebase
--strategy: Risk tolerance (default: safe)
- safe: Conservative, maximum test coverage required
- aggressive: Allow broader changes with adequate coverage
\`\`\`
## What This Command Does
Performs intelligent, deterministic refactoring with full codebase awareness. Unlike blind search-and-replace, this command:
1. **Understands your intent** - Analyzes what you actually want to achieve
2. **Maps the codebase** - Builds a definitive codemap before touching anything
3. **Assesses risk** - Evaluates test coverage and determines verification strategy
…Read the whole file at its exact version.
How to install
mdr add code-yeongyu/oh-my-openagent/refactor@sha256:00cef53c42383061The line at the top of this page pins the label git:20261023.af359db, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_fb62zeaqxzpyobue)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 9 versions of this file, between May 30, 2026 and Oct 23, 2026, about one every 18 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261023.af359db latest | 2026-10-23 | af359db | 25,255 B | A | view · diff |
| git:20261023.cd9aa7a | 2026-10-23 | cd9aa7a | 25,251 B | A | view · diff |
| git:20260929.9a41ccb | 2026-09-29 | 9a41ccb | 25,289 B | A | view · diff |
| git:20260920.64ca513 | 2026-09-20 | 64ca513 | 25,188 B | A | view · diff |
| git:20260910.3a11406 | 2026-09-10 | 3a11406 | 25,173 B | A | view · diff |
| git:20260904.2790172 | 2026-09-04 | 2790172 | 25,153 B | A | view · diff |
| git:20260616.e321358 | 2026-06-16 | e321358 | 25,121 B | A | view · diff |
| git:20260604.7a5bb07 | 2026-06-04 | 7a5bb07 | 25,148 B | A | view · diff |
| git:20260530.6c8940b | 2026-05-30 | 6c8940b | 25,152 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (25255 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
code-yeongyu/oh-my-openagent · 70,648 stars · license a license file GitHub does not identify · pushed 2026-11-03 · branch dev
API
GET https://markdownregistry.com/api/v1/artifacts/art_fb62zeaqxzpyobue GET https://markdownregistry.com/api/v1/resolve?ref=code-yeongyu/oh-my-openagent/refactor GET https://markdownregistry.com/api/v1/blob/00cef53c423830616001ee9ecc35c9319aa84d4d87d3d6c2171317f8fe6c5edc
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from code-yeongyu/oh-my-openagent
Every file in code-yeongyu/oh-my-openagent