refactor-rfc

refactor-rfc is a skill for Claude Code from uqeu/estelle-cli. It costs 0 tokens per session (297 once invoked), scanned A, original, Apache-2.0.

A written plan for improving messy or difficult-to-change code without replacing everything at once. It describes the current problem, the desired structure, and a sequence of small commits.

In plain words
What is it for?
Use it to plan refactors for duplication, tangled modules, or code that is hard to test. It includes tests for existing behavior and an ordered checklist that can be published as a request for comments.
Why use it?
Large rewrites can leave a project broken and make failures hard to isolate. Small, reversible steps keep the build working and make the riskier changes easier to review.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the estelle plugin — 26 skills, 4 agents, 9 hooks shipped together

Good fit Use it to plan refactors for duplication, tangled modules, or code that is hard to test. It includes tests for existing behavior and an ordered checklist that can be published as a request for comments.

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

Made for: Claude Code.

Or install estelle, the plugin that ships this one along with the rest of its 26 skills, 4 agents, 9 hooks.

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-rfc

README.md
[![agentmods](https://agentmods.dev/badge/skills/uqeu/estelle-cli/refactor-rfc/github.svg)](https://agentmods.dev/skills/uqeu/estelle-cli/refactor-rfc)
Your own site
<a href="https://agentmods.dev/skills/uqeu/estelle-cli/refactor-rfc"><img src="https://agentmods.dev/badge/skills/uqeu/estelle-cli/refactor-rfc/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 refactor-rfc

Your own site · 80×15
<a href="https://agentmods.dev/skills/uqeu/estelle-cli/refactor-rfc"><img src="https://agentmods.dev/badge/skills/uqeu/estelle-cli/refactor-rfc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 297 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.00000 $0.00297
Opus 5.5 $0.00000 $0.00119
Sonnet 5.5 $0.00000 $0.00059
Haiku 4.5 $0.00000 $0.00030

Measured 1mo ago against content hash 310b43c49378, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

refactor-rfc 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 1mo 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.

estelle-plugin/skills/refactor-rfc/SKILL.md · 20 lines

What it actually says

refactor-rfc

Estelle's debt-paydown planner. Big-bang rewrites are how refactors die; this files a plan of tiny, individually-safe commits that keep the build green the whole way.

Procedure

  1. Name the smell — the concrete pain (duplication, tangled module, untestable seam) and the cost of leaving it.
  2. Draw the target shape — what the code looks like after, grounded against the current repo structure so the endpoint is real.
  3. Sequence tiny commits — an ordered list where each step is small, reversible, and green on its own; no step leaves the tree broken.
  4. Guard with tests first — ensure characterization tests cover current behavior before moving code, so refactors stay behavior-preserving.
  5. Order for safety — front-load the low-risk mechanical steps; isolate the one genuinely risky change and flag it.
  6. File the RFC — publish to the tracker as an RFC; execute each commit through verify-gate.

Output

An RFC with the smell, the target shape, and an ordered checklist of small safe commits. Serves debt paydown incrementally, without big-bang risk.

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. 1mo ago First seen · 20 lines · 0 tokens per session scan A 310b43c49378

Subscribe to this mod's changes

refactor-rfc is a skill published in the GitHub repository uqeu/estelle-cli (0 stars, last pushed 14d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 297 tokens. 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-12.

Related

Other skills, from other repositories

cocosearch-commit

Use when committing changes — analyzes staged (or unstaged) diffs with CocoSearch semantic search and dependency impact to generate comprehensive Conventional Commit messages. Reviews changes thoroughly, then asks user to approve, edit, or abort the commit.

VioletCranberry/coco-search · 53 tokens

loop-gh-pr

A recipe for a scheduled GitHub pull-request watcher. It checks open pull requests for new activity and prepares read-only review drafts without posting comments or merging anything.

restarter/lets-workflow · 118 tokens

git-iris

Use this skill when generating commit messages, pull request descriptions, release notes, changelogs, or code reviews in a repository where git-iris is available. Activates on requests like "commit this", "write a commit message", "draft a PR", "generate release notes", "write a changelog", or "review my changes" when…

hyperb1iss/git-iris · 81 tokens

requesting-code-review

Use when implementation is done and you need a structured pre-PR review workflow. Triggers: 'ready for review', 'review my changes before PR', 'pre-merge check', 'is this ready', 'submit for review'. NOT for: post-merge review (use code-review) or deciding how to integrate (use finishing-a-development-branch).

axiomantic/spellbook · 77 tokens

fix

Read this repo's open issues, triage them, and open one pull request per issue that can be fixed without a judgement call. Issues that need a decision, or that look stale or superseded, are reported with a recommendation rather than guessed at.

Jebel-Quant/rhiza-claude · 51 tokens

git

This skill should be used when the user asks to "commit changes", "create a pull request", "rebase safely", or performs any git/GitHub operation.

dean0x/devflow · 36 tokens