refactoring

refactoring is a skill for Claude Code from cdeust/ai-architect-mcp. It costs 0 tokens per session (173 once invoked), scanned A, original, MIT.

A guide for making broad code changes safely while tracking dependencies between files and symbols. It covers renaming, moving, extracting, and reorganizing code, then checking that the changes are complete.

In plain words
What is it for?
Use it to plan and verify symbol renames, module or class extraction, file moves, and changes intended to reduce coupling.
Why use it?
It helps prevent missed references and incomplete refactors when code is used in many places.

Skill for Claude Code

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

Part of the ai-codebase-intelligence plugin — 8 skills shipped together

Good fit Use it to plan and verify symbol renames, module or class extraction…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cdeust/ai-architect-mcp/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 cdeust/ai-architect-mcp --skill refactoring
Clone the repo
git clone --depth 1 https://github.com/cdeust/ai-architect-mcp

Made for: Claude Code.

Or install ai-codebase-intelligence, the plugin that ships this one along with the rest of its 8 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 refactoring

README.md
[![agentmods](https://agentmods.dev/badge/skills/cdeust/ai-architect-mcp/refactoring.svg)](https://agentmods.dev/skills/cdeust/ai-architect-mcp/refactoring)
Your own site
<a href="https://agentmods.dev/skills/cdeust/ai-architect-mcp/refactoring"><img src="https://agentmods.dev/badge/skills/cdeust/ai-architect-mcp/refactoring.svg" alt="Measured on agentmods" 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 173 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.00173
Opus 5 $0.00000 $0.00086
Sonnet 5 $0.00000 $0.00035
Haiku 4.5 $0.00000 $0.00017

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

Security

Grade A, and why

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 6d 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.

ai-codebase-intelligence/skills/refactoring/SKILL.md · 30 lines

What it actually says

Refactoring Skill

Purpose

Plan and execute safe refactoring operations with full dependency awareness.

When to Use

  • Renaming symbols across the codebase
  • Extracting modules or classes
  • Moving code between files
  • Reducing coupling between communities

Operations

  1. Analyze: Get context for the target symbol
  2. Impact: Full blast radius in both directions
  3. Plan: Generate refactoring steps ordered by dependency depth
  4. Verify: After changes, re-run detect_changes to confirm completeness
  5. Community: Check if refactoring improves community cohesion

Workflow

Context → Impact → Plan steps → Execute → Detect changes → Verify completeness

Output

  • Ordered list of files to modify
  • Expected impact on community cohesion
  • Verification checklist
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. 6d ago First seen · 30 lines · 0 tokens per session scan A 720c98369c6d

Subscribe to this mod's changes

refactoring is a skill published in the GitHub repository cdeust/ai-architect-mcp (1 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 173 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-08-31.

Related

Other skills, from other repositories

hive.slack-notifications-setup

Set up a Slack notification channel (Sentinel) for a colony by driving the browser — reuse or create the "Hive Sentinel" Slack app from a JSON manifest, install it, capture the bot + app tokens, create/select the channel via the Slack API, and turn Sentinel on so the colony can ping the user on Slack and accept…

aden-hive/hive · 136 tokens

hive.chart-creation-foundations

Required reading whenever any chart tool is available. Teaches the one-tool embedding contract (call chartrender → live chart appears in chat AND a downloadable PNG lands in the queen session dir), the ECharts (data viz) vs Mermaid (structural diagrams) decision, the BI/financial-grade aesthetic baseline (no…

aden-hive/hive · 133 tokens

browser-edge-cases

SOP for debugging browser automation failures on complex websites. Use when browser tools fail on specific sites like LinkedIn, Twitter/X, SPAs, or sites with Shadow DOM.

aden-hive/hive · 40 tokens

hive.pdf

Read, write, merge, split, rotate, watermark, encrypt, and OCR PDF files using Python (pypdf, pdfplumber, reportlab, pypdfium2) and command-line tools (poppler-utils, qpdf). Use when the user asks to extract text/tables/images from a PDF, create or modify a PDF, combine or split PDFs, OCR a scanned PDF…

aden-hive/hive · 98 tokens

hive.note-taking

Maintain a free-form scratchpad of decisions, extracted values, and open questions so context pruning doesn't lose anything you still need.

aden-hive/hive · 30 tokens

sdlc-accelerate

End-to-end SDLC ramp-up from idea to construction-ready with automated phase transitions.

jmagly/aiwg · 23 tokens