One-click install
npx skills add https://github.com/Integralist/agent-skills --skill refactor-integralist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactor
Source: https://github.com/Integralist/agent-skills/tree/main/.agents/skills/refactor
Command: npx skills add https://github.com/Integralist/agent-skills --skill refactor-integralist

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses the challenge of reducing complexity and fragmentation in existing codebases, providing a reimplementation plan for a feature or area.

Core Features & Use Cases

  • Strategic Refactoring: Analyze a feature and produce a reimplementation plan focused on reducing complexity.
  • Investigation Phase: Spawn a subagent to investigate the feature, identify complexity, and fragmentation.
  • Analysis & Plan Output: Synthesize findings into a coherent reimplementation strategy and output the plan using a shared template.
  • Use Case: If you have a feature in your codebase that has become complex and you want to understand how to refactor it for better maintainability.

Quick Start

Run the refactor skill with the feature you want to refactor, e.g., 'refactor my-feature'.

Frequently Asked Questions about refactor

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

FAQPage Schema
How do I analyze codebase complexity for refactoring?

To analyze codebase complexity for refactoring, the Skill investigates your feature's structure and dependencies. It identifies fragmentation points and produces a strategic reimplementation plan focused on reducing complexity and improving maintainability.

What is a reimplementation plan for codebase optimization?

A reimplementation plan for codebase optimization is a strategic document that synthesizes investigation findings into a coherent refactoring strategy. It details how to reduce feature complexity and fragmentation while maintaining functionality.

How do I refactor a feature with high fragmentation?

To refactor a feature with high fragmentation, spawn an investigation phase to identify complexity areas. The analysis then outputs a structured plan using a shared template to guide your reimplementation strategy for better maintainability.

When do I need strategic analysis for code refactoring?

You need strategic analysis for code refactoring when a feature in your codebase has become too complex to maintain easily. This Skill investigates the feature's structure and dependencies to produce a focused reimplementation plan.

Does codebase optimization work without external dependencies?

Yes, codebase optimization works without external dependencies. The Skill operates independently using its internal scripts and references to investigate your feature's structure and synthesize a reimplementation plan.