Skip to content
Back to skills

Refactoring Analysis

ASecurity

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.

  • 2,785 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 5, 2026
code-qualitygorefactoringgitsecurityperformance

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 20, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Refactoring Analysis?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Refactoring Analysis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/compozy-refactoring-analysis/badge)](https://www.skillsdirectory.com/skills/compozy-refactoring-analysis)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: refactoring-analysis
description: "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."
disable-model-invocation: true
metadata:
  author: Pedro Nauck
  github: https://github.com/pedronauck
  repository: https://github.com/pedronauck/skills
---

# 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.

1. Resolve the scope from the request and active context. For a broad request, map the codebase and prioritize dependencies/hotspots; do not stop for confirmation merely because it exceeds 50 files. Disclose sampled or uninspected areas.
2. Read the relevant sections of `references/code-smells-catalog.md` and `references/refactoring-techniques.md` for the candidates found. Catalog thresholds are signals, not mandatory edits or a requirement to produce findings in every category.
3. Trace ownership, coupling, call sites, and public boundaries. Consult `references/solid-ddd-context.md` only for a domain-model question; ordinary code does not need a SOLID pass.
4. Rank confirmed opportunities by user/maintenance impact, frequency, risk, and effort. For the highest-impact items, describe the before/after behavior and owning verification. Reuse existing coverage; missing tests do not automatically require a new suite at every layer.
5. A requested report defaults to `docs/_refacs/<YYYYMMDD>-<slug>.md`. Adapt `assets/refactoring-report-template.md`; a narrow request can use a concise response. Check material citations and reasoning with `checklists/analysis-checklist.md` as applicable.
6. If the user requested an audit only, report findings. If they already authorized refactoring, continue the selected work without asking again. Preserve published compatibility and unrelated changes.

Files in this skill

  • SKILL.md7.7 KB
  • assets/refactoring-report-template.md6.3 KB
  • checklists/analysis-checklist.md3 KB
  • references/code-smells-catalog.md10.2 KB
  • references/refactoring-techniques.md9.5 KB
  • references/solid-ddd-context.md5.5 KB
  • scripts/validate-metadata.py2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…