refactor
Use when restructuring code without changing its behavior, such as extracting a module or migrating off an API.
Skill by UtsavBalar1231
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/utsavbalar1231-refactor
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/refactor
What's inside
- Skill name
refactor- Description
- Use when restructuring code without changing its behavior, such as extracting a module or migrating off an API. Maps the affected code, plans the steps, and runs the tests after each change.
- License
- MIT
- Instructions
- 19 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Refactor Preserve behavior while restructuring the requested target. Establish scope and intent before editing; ask about materially different interpretations. Accept a file, symbol, or pattern, such as "all functions using deprecated API". Default to module scope and a safe strategy; honor `--scope=file|module|project` and `--strategy=safe|aggressive` without treating aggressive as permission to change behavior. Map definitions, callers, imports, and tests. Run a baseline; if behavior lacks coverage, propose characterization tests before restructuring and refuse aggressive changes until that coverage exists. For project-wide investigations, delegate independent search areas only if the current role permits it. Leaf workers search directly. Plan small, independently verifiable steps in dependency order, with file targets and a way to undo each step. Use `ast_search` for structural references and preview `ast_replace` with `dry_run` before applying. Read version-matched documentation for a requested API migration. Run affected tests and typechecks after each step. Do not continue past a failure, suppress type errors, or weaken tests to get green. Undo only your failing step without discarding others' work, then diagnose from the recorded failure. Finish with the project's relevant build, lint, and regression checks. Record every run with `evidence_log` and its real exit code; report any unverified behavior. ## Deprecated Code & Library Migration Do not upgrade dependencies or migrate APIs unasked. For a requested migration, consult official documentation or `oh-my-claudeagent:researcher` for the supported alternative before editing. ## Claude Code If owner decisions require an interview, ask the user to run `/oh-my-claudeagent:plan`. Do not spawn a planner child that cannot ask the user questions.
From UtsavBalar1231/oh-my-claudeagent, MIT.
More from UtsavBalar1231/oh-my-claudeagent
- 0.604score
consolidate-memory
UtsavBalar1231
Use when a plan finishes or agent memories have piled up.
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
debugging
UtsavBalar1231
Use for runtime bugs: crashes, wrong output, intermittent or silent failures, flaky tests, code that works locally but not in prod.
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
github-triage
UtsavBalar1231
Use to triage open GitHub issues and PRs in parallel, read-only, one executor per item ("triage issues", "review open PRs").
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
init-deep
UtsavBalar1231
Use to generate or refresh hierarchical AGENTS.md files for a new, unfamiliar or restructured codebase ("init deep", "generate AGENTS.md").
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
remove-ai-slops
UtsavBalar1231
Use to strip AI slop from changed files (double guards, dead fallbacks, narrating comments, premature abstraction) while keeping load-bearing validation and…
SkillAFreshness: A★ 3Claude Code +9 - 0.599score
build-fixer
UtsavBalar1231
Use when a build, type check or dependency install fails, or the user pastes a compiler error or says "fix build".
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
plan
UtsavBalar1231
Create a strategic work plan via a planner-style interview and structured plan drafting.
SkillAFreshness: A★ 3Claude Code +9 - 0.596score
reviewer
UtsavBalar1231
Rigorous plan review via the reviewer.
SkillAFreshness: A★ 3Claude Code +9 - 0.596score
omca-setup
UtsavBalar1231
Use to install, check, repair or uninstall oh-my-claudeagent's setup in ~/.claude/ (dependencies, runtime, status line), or when the user says "setup omca".
SkillAFreshness: A★ 3Claude Code +9 - 0.593score
analyzer
UtsavBalar1231
Pre-planning analysis via the analyzer.
SkillAFreshness: A★ 3Claude Code +9 - 0.589score
handoff
UtsavBalar1231
Write a self-contained context summary that a new session can continue from.
SkillAFreshness: A★ 3Claude Code +9 - 0.586score
start-work
UtsavBalar1231
Start a work session from a planner-generated plan.
SkillAFreshness: A★ 3Claude Code +9
Signals
- Stars
- 3
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 15, 2026 (13 days ago)
- Last release
- Oct 20, 2026 (9 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from UtsavBalar1231
- 0.604score
consolidate-memory
UtsavBalar1231
Use when a plan finishes or agent memories have piled up.
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
debugging
UtsavBalar1231
Use for runtime bugs: crashes, wrong output, intermittent or silent failures, flaky tests, code that works locally but not in prod.
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
github-triage
UtsavBalar1231
Use to triage open GitHub issues and PRs in parallel, read-only, one executor per item ("triage issues", "review open PRs").
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
init-deep
UtsavBalar1231
Use to generate or refresh hierarchical AGENTS.md files for a new, unfamiliar or restructured codebase ("init deep", "generate AGENTS.md").
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
remove-ai-slops
UtsavBalar1231
Use to strip AI slop from changed files (double guards, dead fallbacks, narrating comments, premature abstraction) while keeping load-bearing validation and…
SkillAFreshness: A★ 3Claude Code +9 - 0.599score
build-fixer
UtsavBalar1231
Use when a build, type check or dependency install fails, or the user pastes a compiler error or says "fix build".
SkillAFreshness: A★ 3Claude Code +9
Cite this page
refactor skill. Agent Mart. https://agentmart.dev/skills/utsavbalar1231-refactor (last updated 2026-10-24)