go-design-principles
CommunityWrite idiomatic Go code with design principles.
Software Engineering#refactoring#go#design-principles#solid#code-review#idiomatic-go#type-driven-design
Authortrypanic
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill eliminates the risk of writing inconsistent, non-idiomatic Go code that violates core design principles, which leads to hard-to-maintain codebases, frequent bugs, and onboarding friction for team members.
Core Features & Use Cases
- SOLID Principles Reframed for Go: Adapts classic SOLID rules (SRP, OCP, LSP, ISP, DIP) to Go's composition and interface-first paradigm, avoiding unnecessary object-oriented ceremony.
- Idiomatic Design Guardrails: Enforces best practices including consumer-owned interfaces, forbidden generic package names (util/common/helpers), primitive type wrapping, immutability, and feature envy detection to keep code clear and maintainable.
- Type-Driven Design Guidance: Supports creation of sealed sum-type interfaces, state machine models, and validating constructors to make illegal states unrepresentable at compile time.
- Use Case: Use this Skill during Go code reviews, when designing new domain models or packages, or when refactoring legacy Go code to align with team design standards and reduce technical debt.
Quick Start
Request a design review of your Go package to identify violations of SOLID principles, generic naming, and feature envy, and get actionable refactoring guidance aligned with Go best practices.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: go-design-principles Download link: https://github.com/trypanic/skills/archive/main.zip#go-design-principles 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 536,000+ vetted skills library on demand.