refactoring-engine
Installation
SKILL.md
Refactoring Engine
This skill moves beyond line-by-line changes to perform systemic improvements to the code architecture.
Capabilities
1. Pattern Migration
- Migrates components to new design systems (e.g., from CSS modules to Tailwind, or to Atomic Design).
- Converts legacy syntax to modern standards (e.g., Class components to Functional components in React).
2. Dependency Decoupling
- Identifies and breaks circular dependencies.
- Extracts shared logic into centralized services or utilities.
Workflow
- Pinning Tests (Mandatory): Before changing any code, create tests that capture the current behavior (even if it's messy). This ensures no regression occurs.
- Architectural Analysis: Use
cognitive-load-auditorto identify high-complexity hotspots. - Pattern Migration: Apply clean code patterns (Guard Clauses, Strategy, etc.).
Knowledge Protocol
- This skill adheres to the
knowledge/orchestration/knowledge-protocol.md. It automatically integrates Public, Confidential (Company/Client), and Personal knowledge tiers, prioritizing the most specific secrets while ensuring no leaks to public outputs.
Related skills
More from famaoai-creator/gemini-skills
data-transformer
Convert between CSV, JSON, and YAML formats.
23pmo-governance-lead
Output file path
21completeness-scorer
Evaluate text completeness based on criteria.
21local-reviewer
Retrieves git diff of staged files for pre-commit AI code review.
21api-fetcher
Fetch data from REST/GraphQL APIs securely.
21prompt-optimizer
Optional output file path
21