plan-refactoring

plan-refactoring is a skill for Claude Code from panbanda/omen. It costs 11 tokens per session (318 once invoked), scanned A, original, Apache-2.0.

A refactoring-planning skill that finds code worth restructuring and ranks it by likely value. Refactoring means improving internal code structure without changing its intended behavior.

In plain words
What is it for?
Use it to inspect code structure, hotspots, clones, technical debt, and the impact of changing a symbol, then choose and sequence refactoring targets.
Why use it?
It helps focus limited engineering time on complex, frequently changed, duplicated, or already acknowledged problem areas.

Skill for Claude Code

Written for Claude Code: arguments in frontmatter.

Part of the omen-development plugin — 13 skills shipped together

Good fit Use it to inspect code structure, hotspots, clones, technical debt, and the impact of changing a symbol, then choose and sequence refactoring targets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/panbanda/omen/plan-refactoring
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add panbanda/omen --skill plan-refactoring
Clone the repo
git clone --depth 1 https://github.com/panbanda/omen

Made for: Claude Code.

Or install omen-development, the plugin that ships this one along with the rest of its 13 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for plan-refactoring

README.md
[![agentmods](https://agentmods.dev/badge/skills/panbanda/omen/plan-refactoring/github.svg)](https://agentmods.dev/skills/panbanda/omen/plan-refactoring)
Your own site
<a href="https://agentmods.dev/skills/panbanda/omen/plan-refactoring"><img src="https://agentmods.dev/badge/skills/panbanda/omen/plan-refactoring/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for plan-refactoring

Your own site · 80×15
<a href="https://agentmods.dev/skills/panbanda/omen/plan-refactoring"><img src="https://agentmods.dev/badge/skills/panbanda/omen/plan-refactoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 318 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00011 $0.00318
Opus 5.5 $0.00004 $0.00127
Sonnet 5.5 $0.00002 $0.00064
Haiku 4.5 $0.00001 $0.00032

Measured 20d ago against content hash 86d3e0b71767, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

plan-refactoring scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/development/skills/plan-refactoring/SKILL.md · 56 lines

What it actually says

Plan Refactoring Skill

Find the refactoring targets in: {{.paths}}

Quick Start

# Get a quick structural overview before deciding what to refactor
omen -f json outline --compact --top 50

# Find hotspots (high churn + complexity)
omen -f json hotspot --top 10

# Find code clones
omen -f json clones

# Find acknowledged debt
omen -f json satd | jq '.items[] | select(.category == "design")'

# Assess blast radius before refactoring a specific symbol
omen -f json impact <symbol-name> --depth 2

Priority Matrix

Finding Effort ROI
Hotspot with clones Medium High
God component High High
Isolated clone Low Medium
Low-churn debt Low Low

Effort Guide

  • Extract function: 30min - 2hr
  • Split class: 2hr - 1 day
  • Break cycle: 1-3 days
  • Extract module: 1-2 weeks

Sequencing

  1. Quick wins: hotspot and low complexity.
  2. Clone extraction.
  3. God components (a dedicated sprint).
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 20d ago Changed 86d3e0b71767
  2. 3mo ago First seen · 56 lines · 11 tokens per session scan A af85056b9e16

Subscribe to this mod's changes

plan-refactoring is a skill published in the GitHub repository panbanda/omen (25 stars, last pushed 2d ago), licensed Apache-2.0. It adds 11 tokens to every session and 318 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

plan-refactoring compared with skills from other repositories

plan-refactoring next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
plan-refactoringpanbanda/omenSkill252d agoApache-2.0A11Claude Code
openlore-execute-refactorclay-good/OpenLoreSkill372todayMITA41Claude Code, Codex
openlore-review-changesclay-good/OpenLoreSkill372todayMITA44Claude Code, Codex
github-review-prfeiskyer/claude-code-settingsSkill1.7k29d agoMITA90Claude Code
architecture-reviewludo-technologies/pyscnSkill1.1k2d agoMITA53Claude Code
openlore-analyze-codebaseclay-good/OpenLoreSkill372todayMITA48Claude Code, Codex
plan-eng-reviewGCWing/BitFunSkill2.1k3mo agoMITA116Claude Code, Codex