differential-feature-refactor

differential-feature-refactor is a skill for Claude Code, Codex from Arasz/ai-raccoon. It costs 95 tokens per session (2,874 once invoked), scanned A, original, MIT.

A planning document that compares a feature's current implementation with its intended future design before a refactor. A refactor changes internal code structure without being intended to change its behaviour.

In plain words
What is it for?
Use it to investigate duplicate implementations, suspected dead code, architecture drift, and unclear extension points before writing a refactor specification or implementation plan.
Why use it?
It prevents teams from deleting or changing code based only on how that code looks. It requires requirements, architecture decisions, and recorded rulings to establish what the system is meant to do.

Skill for Claude CodeCodex

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

Good fit Use it to investigate duplicate implementations, suspected dead code, architecture drift, and unclear extension points before writing a refactor specification or implementation plan.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arasz/ai-raccoon/differential-feature-refactor
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 Arasz/ai-raccoon --skill differential-feature-refactor
Clone the repo
git clone --depth 1 https://github.com/Arasz/ai-raccoon

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 differential-feature-refactor

README.md
[![agentmods](https://agentmods.dev/badge/skills/arasz/ai-raccoon/differential-feature-refactor/github.svg)](https://agentmods.dev/skills/arasz/ai-raccoon/differential-feature-refactor)
Your own site
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/differential-feature-refactor"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/differential-feature-refactor/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 differential-feature-refactor

Your own site · 80×15
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/differential-feature-refactor"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/differential-feature-refactor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,874 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.00095 $0.02874
Opus 5.5 $0.00038 $0.01150
Sonnet 5.5 $0.00019 $0.00575
Haiku 4.5 $0.00010 $0.00287

Measured yesterday against content hash d2c2850b1638, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

differential-feature-refactor 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 yesterday.

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.

.ai-badger/skills/differential-feature-refactor/SKILL.md · 209 lines

How it starts

The opening of the file, as written. The whole thing — 209 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Differential Feature Refactor

Produce a differential document — a side-by-side of what we have versus what we will have — that a human annotates, and that then becomes the input to a refactor specification and an implementation plan.

Why this exists. A ratified architecture — an interface with an ADR behind it — was reimplemented in parallel 36 minutes after it landed, with no ADR of its own. Five days later the original read as "dead code" and was nearly deleted, which would have destroyed both a live integration path and a requirement-level extension point. Twenty-plus documents described that architecture and at least one described it falsely. Nobody could tell design intent from accumulated cruft. This skill makes the difference legible before someone acts on it.

The one rule that matters

Never infer design intent from code shape.

Requirements (FR-/NFR-), ADRs, and recorded rulings are the only authority on intent. Code is evidence of what was built, never of what was meant. Review docs and plans are proposals, not authority.

Establish the authority set before reading any implementation. If a thing in the tree has no authorising decision, that is an undefined point for the human — not a finding you resolve.

Rationalizations — all of these mean STOP

Rationalization Reality
"No callers, so it's dead code." No callers is evidence about wiring, not intent. That exact reading nearly deleted a ratified extension point. Name the decision that authorised it before you call anything dead.
"The newer implementation is obviously the intended one." Recency is not authority. Two parallel implementations mean an unrecorded decision — an undefined point, not a finding.
"The improvement plan says the target is X." A plan is a proposal. Only an ADR, a requirement, or a ruling authorises a target state. Otherwise mark it [UNVERIFIED] and raise a UP.
"Twenty docs describe this; I'll synthesise them." At least one of them is false. Docs give candidate intent; the tree gives current state. Never the reverse.
"I cited 09-improvement-plan.md, that's grounded." A citation to another document is not a citation to the tree. Current-state claims need path:line.
"The open questions read better collected at the end." They get skimmed and lost there. Each one lives in the section it belongs to. The template has no Open Questions heading.

Read the full file on GitHub · 209 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 209 lines · 95 tokens per session scan A d2c2850b1638

Subscribe to this mod's changes

differential-feature-refactor is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 95 tokens to every session and 2,874 once invoked, about $0.0004 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-12-05.

Related

differential-feature-refactor compared with skills from other repositories

differential-feature-refactor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
differential-feature-refactorArasz/ai-raccoonSkill7todayMITA95Claude Code, Codex
cartographer-kb-createBeppeTemp/cartographerSkill74yesterdayApache-2.0A53Claude Code, Codex
cartographer-kb-importBeppeTemp/cartographerSkill74yesterdayApache-2.0A51Claude Code, Codex
cartographer-kb-source-authorBeppeTemp/cartographerSkill74yesterdayApache-2.0A106Claude Code, Codex
cartographer-feedbackBeppeTemp/cartographerSkill74yesterdayApache-2.0A83Claude Code, Codex
cartographer-cliBeppeTemp/cartographerSkill74yesterdayApache-2.0A37Claude Code, Codex
cartographer-kb-doctorBeppeTemp/cartographerSkill74yesterdayApache-2.0A91Claude Code, Codex