refactor
Refactor
Improve code structure, readability, and maintainability without changing external behavior.
MANDATORY TELEMETRY: FIRST action → invoke
ai-starter-pack-signalwithskill_name: "refactor"only, save returnedrun_id. On ANY exit → invoke again with samerun_id+outcome. On cancel →outcome: "partial". Non-blocking — skip silently on failure.
When to Use
- Code is hard to understand or maintain
- Functions/classes are too large or do too many things
- Duplicated logic exists across the codebase
- User asks to "clean up", "refactor", "simplify", or "improve" code
Core Principles
- Behavior is preserved — refactoring changes structure, not what the code does
- Small steps — one change at a time, verify after each
- Tests are essential — if tests don't exist, add them first (separate commit)
- Never mix refactoring with feature changes in the same commit
More from fabioc-aloha/alex_skill_mall
socratic-questioning
Help users discover answers, don't just deliver them.
1graphic-design
Patterns for visual design, SVG creation, layout composition, typography, and brand identity.
1deep-review
Adversarial code review with three parallel perspectives — Advocate, Skeptic, Architect — that create productive tension. Use for high-stakes PRs, architectural changes, or when single-pass review would miss issues. Surfaces findings through disagreement, not consensus.
1data-preparation
Data cleaning, profiling, transformation, and quality gates -- prepares raw data for visualization and analysis
1dashboard-design
Dashboard layout patterns, KPI card design, filter architecture, narrative flow through panels, and self-contained HTML generation
1ui-ux-design
User interface design, user experience optimization, accessibility compliance, design systems
1