refactor-planner

refactor-planner is a skill for Claude Code, Codex from conectlens/lenserfight. It costs 20 tokens per session (80 once invoked), scanned A, original, MIT.

A guide for planning changes to a messy part of a codebase. It breaks the work into safe steps and includes scope, tests, monitoring, and a rollback plan.

In plain words
What is it for?
Use it to define a refactor's boundaries, sequence commits, identify needed tests and observability, and prepare a way to undo the change.
Why use it?
It reduces the risk of making a large code cleanup that breaks existing behavior or becomes too broad to finish.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to define a refactor's boundaries, sequence commits, identify needed tests and observability, and prepare a way to undo the change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/conectlens/lenserfight/refactor-planner
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 conectlens/lenserfight --skill refactor-planner
Clone the repo
git clone --depth 1 https://github.com/conectlens/lenserfight

Made for: Claude Code, Codex.

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 refactor-planner

README.md
[![agentmods](https://agentmods.dev/badge/skills/conectlens/lenserfight/refactor-planner.svg)](https://agentmods.dev/skills/conectlens/lenserfight/refactor-planner)
Your own site
<a href="https://agentmods.dev/skills/conectlens/lenserfight/refactor-planner"><img src="https://agentmods.dev/badge/skills/conectlens/lenserfight/refactor-planner.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 80 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.
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.00020 $0.00080
Opus 5 $0.00010 $0.00040
Sonnet 5 $0.00004 $0.00016
Haiku 4.5 $0.00002 $0.00008

Measured 3d ago against content hash 3f91762300f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

refactor-planner 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 3d 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.

.lenserfight/lenses/refactor-planner/SKILL.md · 15 lines

What it actually says

Refactor Planner

For [[code_area]], produce:

  1. Current pain and evidence.
  2. In-scope and out-of-scope changes.
  3. Safe sequence of commits.
  4. Tests and observability needed.
  5. Rollback plan.
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. 3d ago First seen · 15 lines · 20 tokens per session scan A 3f91762300f6

Subscribe to this mod's changes

refactor-planner is a skill published in the GitHub repository conectlens/lenserfight (18 stars, last pushed 27d ago), licensed MIT. It adds 20 tokens to every session and 80 once invoked, about $0.0001 per session on Opus 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-09-03.

Related

Other skills, from other repositories

core-workflow

Detailed development workflow patterns, checklists, and standards. Auto-loads for complex tasks, planning, debugging, testing, or when explicit patterns are needed. Contains session protocols, git conventions, security checklists, testing strategy, and communication standards.

travisjneuman/.claude · 53 tokens

debug-systematic

Systematic 4-phase debugging methodology for complex, intermittent, or mysterious issues. Use when investigating bugs, race conditions, or unexplained failures.

travisjneuman/.claude · 33 tokens

history

In D&D, History recalls significant past events, legendary figures, and ancient knowledge. The real-world version is temporal investigation: git blame across the entire project, reading changelogs to understand why a decision was made, reconstructing the sequence of events that led to a production incident, or…

Hmbown/Wizards-of-the-Ghosts · 74 tokens

git-advanced-workflows

Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.

wshobson/agents · 54 tokens

security-pipeline

Use when security verification is needed - pre-commit security checks, vulnerability scanning, STRIDE threat analysis. Integrates with /handoff-verify --security and /commit-push-pr. CWE Top 25 based.

sangrokjung/claude-forge · 48 tokens

caveman-commit

Ultra-compressed commit message generator. Cuts noise from commit messages while preserving intent and reasoning. Conventional Commits format. Subject ≤50 chars, body only when "why" isn't obvious. Use when user says "write a commit", "commit message", "generate commit", "/commit", or invokes /caveman-commit.…

stevesolun/ctx · 79 tokens