refactor-dedupe-and-cleanup

Refactor: Dedupe and Cleanup

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "refactor-dedupe-and-cleanup" with this command: npx skills add cantagestudio/cosmicatlaspacker/cantagestudio-cosmicatlaspacker-refactor-dedupe-and-cleanup

Refactor: Dedupe and Cleanup

Eliminate redundancy and remove dead code.

Deduplication Patterns

  1. Extract Common Method

Move duplicated logic to shared function.

  1. Template Method Pattern

Abstract common structure, vary details.

  1. Consolidate Conditional Expression

Combine conditions with same result.

Dead Code Removal

Types to Remove

  • Unreachable code - after return/throw

  • Unused variables - declared but never read

  • Unused functions - never called

  • Commented code - use git history instead

  • Unused imports - clutters namespace

Safe Removal Process

  • Search for all references

  • Check for reflection/dynamic usage

  • Remove in small commits

  • Run full test suite

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

task-segmentation

No summary provided by upstream source.

Repository SourceNeeds Review
General

refactor-arch-hotspots

No summary provided by upstream source.

Repository SourceNeeds Review
General

flutter-performance-docs

No summary provided by upstream source.

Repository SourceNeeds Review
General

brain-organizer

No summary provided by upstream source.

Repository SourceNeeds Review