Agent skill

Refactoring Analysis

by pedronauck in pedronauck/skills

Audit code quality and architectural health or plan refactoring using Fowler code smells and techniques; write prioritized findings to docs/refacs/.

No licenceAuto-check: warningsDevelopment

Install Refactoring Analysis

The automated check flagged lines worth reading first. See the safety section below.

skills CLI
$ npx skills add pedronauck/skills --skill refactoring-analysis -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pedronauck/skills refactoring-analysis --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pedronauck/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/mine/refactoring-analysis .claude/skills/refactoring-analysis && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
refactoring-analysis
GitHub stars
634
Used in
1 other repo
Token cost
~513 tokens
SKILL.md length
212 words
Files
7 (incl. scripts, references, assets)
Skills in repo
65
Repo updated
First seen
Licence
None found

At a glance

Audit code quality and architectural health or plan refactoring using Fowler code smells and techniques; write prioritized findings to docs/refacs/.

  • Works in 6 steps: Resolve the scope from the request and… → Read the relevant sections of… → Trace ownership, coupling, call sites,… → …
  • Tasks that involve Refactoring
  • Runs Python scripts from its folder

What it does

Refactoring Analysis is an agent skill from pedronauck/skills. Audit code quality and architectural health or plan refactoring using Fowler code smells and techniques; write prioritized findings to docs/refacs/. Excludes formatting, performance, and security audits.

Its SKILL.md is about 510 tokens, which your agent loads only when the skill is triggered. The skill folder holds 10 other files, including scripts, reference files and assets (for example `assets/refactoring-report-template.md`, `checklists/analysis-checklist.md` and `references/code-smells-catalog.md`).

It sits in Development, covering Refactoring. The repository describes itself as: My personal favorite skills.

When your agent uses it

  • Tasks that involve Refactoring

Example prompts

  • “/refactoring-analysis”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Resolve the scope from the request and active context. For a broad request, map the codebase and prioritize dependencies/hotspots; do not…
  2. Read the relevant sections of references/code-smells-catalog.md and references/refactoring-techniques.md for the candidates found. Catalog…
  3. Trace ownership, coupling, call sites, and public boundaries. Consult references/solid-ddd-context.md only for a domain-model question…
  4. Rank confirmed opportunities by user/maintenance impact, frequency, risk, and effort. For the highest-impact items, describe the…
  5. A requested report defaults to docs/_refacs/-.md. Adapt assets/refactoring-report-template.md; a narrow request can use a concise…
  6. If the user requested an audit only, report findings. If they already authorized refactoring, continue the selected work without asking…

What it can do on your machine

Read from SKILL.md and the folder at commit 0422940. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Refactoring Analysis loads about 513 tokens when it runs, and up to ~7k if it reads all its reference files. Until then it costs about 56 tokens; SKILL.md has 212 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~513
With references · SKILL.md plus every file in references/, read only if the agent opens them
~7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: warnings

The automated check found patterns that need a careful read before installing.

  • WarningTells the agent its actions are pre-authorized / not to stop for confirmationSKILL.md:15
    e and prioritize dependencies/hotspots; do not stop for confirmation merely because it exceeds 50 files. Disclose sample

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 212 words (~513 tokens).

“Find changes that reduce demonstrated maintenance cost while preserving behavior. Name the code smell, source evidence, and concrete improvement; a textbook category without a practical consequence is not a finding.”

— opening of SKILL.md by pedronauck
name
refactoring-analysis
disable-model-invocation
true
metadata.author
Pedro Nauck
metadata.github
https://github.com/pedronauck
metadata.repository
https://github.com/pedronauck/skills

Read the full SKILL.md on GitHub

Files

SKILL.md and 6 other files (scripts, references, assets) in skills/mine/refactoring-analysis of pedronauck/skills.

  • SKILL.md
  • assets/refactoring-report-template.md
  • checklists/analysis-checklist.md
  • references/code-smells-catalog.md
  • references/refactoring-techniques.md
  • references/solid-ddd-context.md
  • scripts/validate-metadata.py

Open the folder on GitHubat commit 0422940

Used in 2 other repositories

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in pedronauck/skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Refactoring Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Refactoring Analysis compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Refactoring Analysis this skillpedronauck/skills6341 repos~513Automated safety check: WarnNone
Guidelinesakash-network/node1.1k22 repos~577Automated safety check: PassMIT
Component Refactoringlangflow-ai/langflow156k—~3.5kAutomated safety check: PassMIT
Migrate Core Code to Submodulestinyhumansai/openhuman42k—~2.6kAutomated safety check: PassGPL-3.0
Systematic Code Refactoringluongnv89/claude-howto42k—~3kAutomated safety check: PassMIT
Codexskills-directory/skill-codex1.5k3 repos~1.8kAutomated safety check: PassMIT

Similar skills

  • Guidelines

    akash-network/node

    Behavioral guidelines to reduce common LLM coding mistakes. An agent skill from akash-network/node.

    1.1k GitHub starsUsed in 22 repos~577 tokens
    DevelopmentAuto-check passed
  • Component Refactoring

    langflow-ai/langflow

    Refactor high-complexity React components in Langflow frontend.

    156k GitHub stars~3.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Migrate Core Code to Submodules

    tinyhumansai/openhuman

    Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.

    42k GitHub stars~2.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Systematic Code Refactoring

    luongnv89/claude-howto

    Guides refactoring in phases based on Martin Fowler's method: research, test coverage check, planning and small tested steps, with your approval at each phase.

    42k GitHub stars~3k tokensUpdated 7 days ago
    DevelopmentAuto-check passed
  • Codex

    skills-directory/skill-codex

    A skill your agent uses when the user asks to run Codex CLI (codex exec, codex resume) or references OpenAI Codex for code analysis, refactoring, or automated editing

    1.5k GitHub starsUsed in 3 repos~1.8k tokens
    DevelopmentAuto-check passed
  • Ponytail

    DavidObando/gsharp

    Forces the laziest solution that actually works, simplest, shortest, most minimal.

    565 GitHub starsUsed in 8 repos~1.7k tokens
    DevelopmentAuto-check passed

More from pedronauck/skills

All 65 skills in this repo
  • Deep Review

    pedronauck/skills

    Review branch diffs, working trees, or PRs in depth with defect, polish and cross-contract coverage.

    634 GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed
  • Yc Apply

    pedronauck/skills

    Prepare, review, and package Y Combinator application answers and founder-video notes using the live form and verified founder facts.

    634 GitHub stars~1.3k tokensUpdated 23 days ago
    Auto-check passed
  • Guide technical communication for software developers. An agent skill from pedronauck/skills.

    634 GitHub starsUsed in 3 repos~2.3k tokens
    Auto-check passed
  • Tauri V2

    pedronauck/skills

    Tauri v2+ cross-platform app development with Rust backend. An agent skill from pedronauck/skills.

    634 GitHub starsUsed in 2 repos~4.1k tokens
    Auto-check passed
  • Hormozi Ad Factory

    pedronauck/skills

    Generates 150-750+ ad variations using Alex Hormozi's combinatorial Hook x Meat x CTA framework.

    634 GitHub stars~2.1k tokensUpdated 23 days ago
    Auto-check passed
  • Yt Master

    pedronauck/skills

    Plans and improves YouTube ideas, titles, thumbnail concepts, scripts, retention, channel strategy, and metric-based diagnosis.

    634 GitHub stars~736 tokensUpdated 23 days ago
    Auto-check passed

Categories

Questions about Refactoring Analysis

What does Refactoring Analysis do?

Audit code quality and architectural health or plan refactoring using Fowler code smells and techniques; write prioritized findings to docs/refacs/. Refactoring Analysis is an agent skill from pedronauck/skills. Audit code quality and architectural health or plan refactoring using Fowler code smells and techniques; write prioritized findings to docs/refacs/.

When should I use Refactoring Analysis?

Refactoring Analysis fits situations like: tasks that involve Refactoring.

How do I install Refactoring Analysis in Claude Code?

Run `npx skills add pedronauck/skills --skill refactoring-analysis -a claude-code`. Or copy the skill folder (skills/mine/refactoring-analysis in pedronauck/skills) into .claude/skills/refactoring-analysis in your project. Claude Code loads it when a task matches its description.

How do I install Refactoring Analysis in Codex?

Run `npx skills add pedronauck/skills --skill refactoring-analysis -a codex`. Or copy the skill folder (skills/mine/refactoring-analysis in pedronauck/skills) into .agents/skills/refactoring-analysis in your project. Codex loads it when a task matches its description.

Can I use Refactoring Analysis in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pedronauck/skills --skill refactoring-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/refactoring-analysis, .gemini/skills/refactoring-analysis, .github/skills/refactoring-analysis and .opencode/skills/refactoring-analysis in your project.

What does Refactoring Analysis need to run?

Going by SKILL.md and its folder, Refactoring Analysis needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Refactoring Analysis access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Refactoring Analysis safe to install?

Our automated static check of SKILL.md flagged 1 warning(s): tells the agent its actions are pre-authorized / not to stop for confirmation. Read the flagged lines before installing; the check is not a guarantee either way. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Refactoring Analysis use?

No licence was found for Refactoring Analysis or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Refactoring Analysis use?

About 513 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 6.4k tokens, read only when the agent opens those files.

What are the alternatives to Refactoring Analysis?

Skills that share tags, products or a category with Refactoring Analysis: Guidelines (akash-network/node, 1.1k stars), Component Refactoring (langflow-ai/langflow, 156k stars), Migrate Core Code to Submodules (tinyhumansai/openhuman, 42k stars) and Systematic Code Refactoring (luongnv89/claude-howto, 42k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Refactoring Analysis?

pedronauck (a GitHub user) maintains it in pedronauck/skills, which has 634 GitHub stars. The repository holds 65 skills in this directory. The repository was last updated on September 14, 2026.

Source: pedronauck/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.