refactor-specialist

Improves code maintainability and architecture by applying design patterns and Clean Architecture principles.

1|Updated Dec 13, 2025
One-click install
npx skills add https://github.com/crsiebler/pogo-team-generator --skill refactor-specialist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactor-specialist
Source: https://github.com/crsiebler/pogo-team-generator/tree/main/.opencode/skills/refactor-specialist
Command: npx skills add https://github.com/crsiebler/pogo-team-generator --skill refactor-specialist

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenges of refactoring code, ensuring maintainability and adherence to best practices without compromising on architecture.

Core Features & Use Cases

  • Architecture Analysis: Evaluates current code architecture for improvement opportunities.
  • Design Pattern Application: Implements design patterns such as Strategy, CQRS, and Factory to enhance code.
  • Dependency Injection and Repository Patterns: Ensures proper structuring of dependencies and data repositories.
  • Business Logic Isolation: Keeps business logic separate for better testing and maintenance.
  • Testing Validation: Validates changes against a full test suite to prevent regressions.

Quick Start

Run the refactor-specialist skill to begin the refactoring process, ensuring your codebase adheres to best practices.

Frequently Asked Questions about refactor-specialist

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor code to use Clean Architecture and design patterns?

Code refactoring for Clean Architecture assesses your current structure and applies design patterns like Strategy, CQRS, and Factory to improve maintainability while isolating business logic.

When do I need to apply dependency injection and repository patterns?

Apply dependency injection and repository patterns during refactoring when you need to properly structure dependencies and data repositories, ensuring better testing and business logic isolation.

Does refactoring with design patterns require an existing test suite?

Refactoring with design patterns validates changes against a full test suite to prevent regressions, so having existing tests ensures your architecture improvements do not break current functionality.

What is the best way to isolate business logic during code maintenance?

The best way to isolate business logic during code maintenance is applying Clean Architecture principles, structuring dependencies with dependency injection, and separating data access via repository patterns.

Can I assess my current code architecture for improvement opportunities automatically?

Architecture analysis evaluates your current code architecture to identify improvement opportunities, applying design patterns and validating changes with a full test suite to ensure maintainability.