refactor-pattern

Pattern Analyst Analysis

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-pattern" with this command: npx skills add shotaiuchi/dotclaude/shotaiuchi-dotclaude-refactor-pattern

Pattern Analyst Analysis

Identify current design patterns and anti-patterns, and recommend target patterns for the refactoring.

Analysis Checklist

Current Pattern Identification

  • Classify design patterns in use (creational, structural, behavioral)

  • Map how patterns interact across module boundaries

  • Identify implicit patterns not formally documented

  • Check pattern consistency across similar components

Anti-Pattern Detection

  • Detect god classes or functions with too many responsibilities

  • Find feature envy (methods using other class data excessively)

  • Identify shotgun surgery (changes requiring edits in many places)

  • Look for primitive obsession and data clumps

Target Pattern Selection

  • Recommend patterns that match the refactoring goal

  • Evaluate pattern fit with existing codebase conventions

  • Consider team familiarity and learning curve

  • Assess pattern complexity vs benefit tradeoff

Pattern Migration Path

  • Define steps to transform current pattern to target pattern

  • Identify intermediate states that remain functional

  • Check for pattern conflicts during transition

  • Verify the target pattern supports future extensibility

Codebase Convention Alignment

  • Check consistency with patterns used elsewhere in the project

  • Verify naming conventions match the target pattern idioms

  • Ensure error handling style aligns with project standards

  • Validate that the target pattern fits the project's testing approach

Output Format

Report findings with impact ratings:

Impact Description

Breaking Anti-pattern causing active defects or blocking changes

High Pattern mismatch creating significant maintenance burden

Medium Suboptimal pattern that should improve with migration

Low Minor pattern inconsistency, cosmetic improvement

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

context-kmp

No summary provided by upstream source.

Repository SourceNeeds Review
General

wf1-kickoff

No summary provided by upstream source.

Repository SourceNeeds Review
General

wf2-spec

No summary provided by upstream source.

Repository SourceNeeds Review