pedronauck avatar

Refactoring Analysis

This runs a systematic code smell audit based on Martin Fowler's refactoring catalog, scanning for bloaters, duplicated code, high coupling, nested conditionals, and DRY violations. It produces a prioritized markdown report saved to docs/_refacs/ with concrete before/after sketches and effort estimates. The scope is surprisingly thorough: it gates SOLID analysis to domain-driven projects only (smart), maps coupling between modules, and includes a reference catalog of smells and techniques. Use this when prepping for a refactoring sprint or doing quarterly code health reviews. It won't catch performance issues or security problems, just structural debt. The priority scoring by impact, frequency, and effort is the most useful part, turning a laundry list into an actual work plan.

skills.sh installs
425
GitHub stars
652
last updated
Aug 21, 2026

Install

$ npx -y skills add pedronauck/skills --skill refactoring-analysis --agent claude-code

Installs into .claude/skills of the current project.

Files

Refactoring Analysis

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.

Sponsors

Details

Repository
github.com/pedronauck/skills
Categories
Security, Documentation, Code Review & Quality, Debugging, Productivity & Planning
First seen
Jun 3, 2026

More from pedronauck/skills

All 70

Recommended

More Security
1aj-geddes avatarazure-functionsaj-geddes/useful-ai-promptsCreate serverless functions on Azure with triggers, bindings, authentication, and monitoring. Use for event-driven computing without managing infrastructure.424skills.sh installs
2secondsky avatarapi-gateway-configurationsecondsky/claude-skillsConfigures API gateways for routing, authentication, rate limiting, and request transformation in microservice architectures. Use when setting up Kong, Nginx, A422skills.sh installs
3davila7 avatartelegram-mini-appdavila7/claude-code-templatesExpert in building Telegram Mini Apps (TWA) - web apps that run inside Telegram with native-like experience. Covers the TON ecosystem, Telegram Web App API, pay420skills.sh installs
4jezweb avatarclaude-agent-sdkjezweb/claude-skillsBuild autonomous AI agents with Claude Agent SDK. Structured outputs guarantee JSON schema validation, with plugins system and hooks for event-driven workflows.415skills.sh installs
5openfga avataropenfgaopenfga/agent-skillsOpenFGA authorization modeling best practices for defining types and relations, writing relationship tuples, deriving can_* permissions, applying type restricti412skills.sh installs
6terramate-io avatarterraform-best-practicesterramate-io/agent-skillsTerraform and Infrastructure as Code optimization guidelines from Terramate. This skill should be used when writing, reviewing, or refactoring Terraform/OpenTof410skills.sh installs