software-design-patterns-and-refactoring

Solid

Use when architecture or backend work needs pre-code structural guidance from design patterns, or post-code cleanup guidance from refactoring and code-smell-driven improvement.

Code & Development 14 stars 3 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
39
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Design Patterns and Refactoring ## Overview This skill captures one practical truth: design-pattern thinking is useful before coding, and refactoring thinking is useful after coding — but both can improve the structure of the system when used with restraint. Its purpose is not to dump a giant catalog of pattern names. Its purpose is to help decide: - when a structural problem exists before coding - which pattern family is worth considering - when code smells indicate refactoring pressure - how to improve structure without turning the code into abstraction theater Core principle: **patterns are design tools, refactoring is structure repair, and both should serve clarity of responsibility rather than decorative cleverness.** ## When to Use Use when: - the team is deciding a class/module collaboration structure before coding - code review reveals repeated structure problems or code smells - a change is easier to express as a structural pattern decision than as ad hoc branching - implementation is becoming hard to extend, test, or reason about - you need one practical bridge between pre-code design and post-code cleanup Do not use when: - the problem is fundamentally domain-boundary or system-architecture design - the task is a trivial code change with no structural pressure - the user only wants pattern definitions without design judgment - the code is so small that introducing indirection would only make it worse ## Two Main Uses ### 1. Before-code structural guidanc...

Details

Author
xiaohei-info
Repository
xiaohei-info/oh-my-multica
Created
1 months ago
Last Updated
6 days ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Listed

patterns-and-refactoring

Use before designing or writing any non-trivial code, and before any refactor. Two entry paths — for new code, name the axis of change and pick the pattern that absorbs it (or prove none is needed); for existing code, name the smell and pick the refactoring that cures it. Covers the 22 Gang of Four patterns, 66 refactoring techniques, 22 code smells, enterprise (PoEAA), architectural, DDD, distributed/cloud, messaging, concurrency, functional and frontend patterns, plus pattern anti-patterns and the idioms your framework already provides. Triggers on designing a class/service/module/package, choosing an approach, "how should I structure this", refactoring, cleaning up, "this code is messy", legacy migration, and reviewing a design.

3 Updated 1 weeks ago
christianpasinrey
Code & Development Listed

code-design-refactor

Design-level refactoring rules — extraction, decoupling, SRP, encapsulation, primitive obsession. Language-agnostic. Sits between logic-cleaner (expression-level) and improve-codebase-architecture (system-level). Use when restructuring existing code at the module/class/function level.

3 Updated 1 weeks ago
ralvarezdev
Code & Development Featured

refactoring-patterns

Apply named refactoring transformations to improve code structure without changing behavior. Use when the user mentions "refactor this", "code smells", "extract method", "replace conditional", "technical debt", "move method", "inline variable", "decompose conditional", or "clean up this messy code". Also trigger when cleaning up legacy code, preparing code for new features by restructuring, or identifying which transformation fits a specific code smell. Covers smell-driven refactoring, safe transformation sequences, and testing guards. For code-quality foundations, see clean-code. For managing complexity, see software-design-philosophy.

1,980 Updated 1 weeks ago
wondelai