golang-design-patterns
CommunityRefactor Go code with design patterns.
Authorsaifoelloh
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses code complexity and maintainability issues in Go by identifying and refactoring code smells, and applying established design patterns to improve code structure and readability.
Core Features & Use Cases
- Code Smell Detection: Identifies anti-patterns like God Objects, long parameter lists, and primitive obsession.
- Refactoring Guidance: Provides specific refactoring strategies such as Extract Method, Introduce Parameter Object, and replacing type switches with the Strategy pattern.
- Design Pattern Application: Guides the application of patterns like Builder, Factory, and Decorator to enhance Go code.
- Use Case: You have a large, complex Go function that is difficult to understand and test. This Skill can help you break it down into smaller, more manageable methods and apply a suitable design pattern to improve its structure.
Quick Start
Use the golang-design-patterns skill to refactor the provided Go code for better maintainability.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 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: golang-design-patterns Download link: https://github.com/saifoelloh/golang-best-practices-skill/archive/main.zip#golang-design-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.