refactor

Community

Improve code quality while preserving behavior

Author0xjc65eth
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Improves code maintainability and readability by identifying and removing code smells, simplifying complex logic, and organizing responsibilities without altering external behavior.

Core Features & Use Cases

  • Guided Refactoring Workflow: Read all implicated files before making changes, identify duplication, long functions, and tight coupling, then apply incremental, safe refactors.
  • Safety and Verification: Emphasizes running tests after each significant change and preserving external behavior.
  • Practical Principles: Extract functions only for real duplication (3+ occurrences), prefer renames for clarity, simplify complex conditionals, remove dead code confidently, and move responsibilities to appropriate modules.
  • Use Case: Clean up duplicated utility code across multiple modules, simplify a complex UI component, or reorganize responsibilities between services while ensuring tests pass after each change.

Quick Start

Use the refactor skill to incrementally simplify and remove duplication in the file src/utils/parser.ts while preserving behavior and running tests after each significant change.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: refactor
Download link: https://github.com/0xjc65eth/CYPHER-V3/archive/main.zip#refactor

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.