smithery/CANTAGESTUDIO

refactor-extract-and-isolate

[Code Quality] Extracts methods, classes, or modules to reduce complexity and improve isolation. Use when functions are too long, classes have too many responsibilities, or concerns are mixed.

Installation

$ npx skills add smithery/CANTAGESTUDIO --skill refactor-extract-and-isolate

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/CANTAGESTUDIO.

npx skills add smithery/CANTAGESTUDIO

Browse all from smithery/CANTAGESTUDIO

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 966 B
  • docs SUMMARY.md 228 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Refactor: Extract and Isolate

Break down complex code into focused, reusable units.

Extract Method

When to Extract

  • Function > 20 lines
  • Code block has a distinct purpose
  • Same logic repeated
  • Deep nesting (> 3 levels)

Extract Class

When to Extract

  • Class > 300 lines
  • Multiple distinct responsibilities
  • Group of related methods/properties
  • Feature envy

Extract Protocol/Interface

When to Extract

  • Multiple implementations possible
  • Testing requires mocking
  • Dependency inversion needed

Checklist

  1. Identify extraction boundary
  2. Choose good name for new unit
  3. Move code to new location
  4. Update references
  5. Add tests for new unit
  6. Verify original tests pass