/fuse-solid:solid-gofrom fuse-solid
Enforces SOLID modular architecture for Go 1.27+ with internal/modules/[feature]/ layers, small interfaces in ports/, mandatory DRY checks, and godoc comments. Use when writing or refactoring Go code.
Ships in fuse-solid. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Before writing any new code it requires a DRY check against internal/core/services and internal/core/ports. See solid-principles.md for the overview, the per-principle references for SRP/OCP/LSP/ISP/DIP detail, architecture-patterns.md for hexagonal/modular layout, and the templates for module/service/interface/handler/error/test scaffolding.
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
Before writing ANY new code:
internal/core/services/, internal/core/ports/internal/core/| Layer | Location |
|---|---|
| Handlers | internal/modules/[feature]/handlers/ |
| Services | internal/modules/[feature]/services/ |
| Repositories | internal/modules/[feature]/repositories/ |
| Ports (interfaces) | internal/modules/[feature]/ports/ |
| Models | internal/modules/[feature]/models/ |
| Shared | internal/core/{services,ports,models}/ |
NEVER use flat internal/ structure - always internal/modules/[feature]/
| Rule | Value |
|---|---|
| File limit | FUSE_SOLID_MAX_LINES |
| Handlers | Thin, delegate to services |
| Interfaces | ports/ directory ONLY |
| Godoc | Every exported function documented |
| Accept interfaces | Return structs |
| Small interfaces | 1-3 methods max (Go idiom) |
| Topic | Reference | When to consult |
|---|---|---|
| SOLID Overview | solid-principles.md | Quick reference |
| SRP | single-responsibility.md | Fat structs |
| OCP | open-closed.md | Adding providers |
| LSP | liskov-substitution.md | Contracts |
| ISP | interface-segregation.md | Fat interfaces |
| DIP | dependency-inversion.md | Injection |
| Architecture | architecture-patterns.md | Hex/modular |
| Template | When to use |
|---|---|
| module.md | Feature module structure |
| service.md | Business logic service |
| interface.md | Port definition |
| handler.md | HTTP handler |
| error.md | Custom errors |
| test.md | Table-driven tests |
| Anti-Pattern | Fix |
|---|---|
Files over FUSE_SOLID_MAX_LINES | Split by responsibility |
| Interfaces in impl files | Move to ports/ directory |
| Fat interfaces (4+ methods) | Split into small interfaces |
Flat internal/ structure | Use internal/modules/[feature]/ |
init() for dependency wiring | Use constructor injection |
references/architecture-patterns.md (opens in a new tab)references/dependency-inversion.md (opens in a new tab)references/interface-segregation.md (opens in a new tab)references/liskov-substitution.md (opens in a new tab)references/open-closed.md (opens in a new tab)references/single-responsibility.md (opens in a new tab)references/solid-principles.md (opens in a new tab)references/templates/error.md (opens in a new tab)references/templates/handler.md (opens in a new tab)references/templates/interface.md (opens in a new tab)references/templates/module.md (opens in a new tab)references/templates/service.md (opens in a new tab)references/templates/test.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fusengine/claude-plugins --plugin fuse-solid8 skills in this plugin
/solid-csharpUse when writing or refactoring C#/.NET code, structuring Modules/[Feature]/ layers, or defining Contracts/ interfaces (SOLID, files within FUSE_SOLID_MAX_LINES)./solid-detectionUse when determining which language-specific SOLID skill to load, detecting project type from config files, or resolving interface directory conventions./solid-genericUse when building CLI tools, libraries, scripts, hooks, or non-framework TypeScript code (Bun/Node.js -- SOLID, files within FUSE_SOLID_MAX_LINES, JSDoc mandatory).Other plugins' skills for the same job