agentsclimarketplace

Solid go

Skill fusengine/agents/plugins/solid/skills/solid-go

SOLID principles for Go 1.23+. Files < 100 lines, interfaces separated, modular architecture. Modules MANDATORY. Use when: writing or refactoring Go code, structuring internal/modules/[feature]/ layers, or defining ports/ interfaces.From its SKILL.md

Install
npx -y skills add fusengine/agents --skill solid-go

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 22 stars22 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.9 KB, 790 tokens by cl100k_base, as published. Nobody here has run it

SOLID Go - Modular Architecture

Agent Workflow (MANDATORY)

Before ANY implementation, use TeamCreate to spawn 3 agents:

  1. fuse-ai-pilot:explore-codebase - Analyze existing architecture
  2. fuse-ai-pilot:research-expert - Verify Go docs via Context7
  3. fuse-ai-pilot:sniper - Post-implementation validation

DRY - Reuse Before Creating (MANDATORY)

Before writing ANY new code:

  1. Grep the codebase for similar interfaces, services, or logic
  2. Check shared locations: internal/core/services/, internal/core/ports/
  3. If similar code exists -> extend/reuse instead of duplicate
  4. If code will be used by 2+ features -> create it in internal/core/

Architecture (Modules MANDATORY)

LayerLocationMax Lines
Handlersinternal/modules/[feature]/handlers/50
Servicesinternal/modules/[feature]/services/100
Repositoriesinternal/modules/[feature]/repositories/100
Ports (interfaces)internal/modules/[feature]/ports/30
Modelsinternal/modules/[feature]/models/50
Sharedinternal/core/{services,ports,models}/-

NEVER use flat internal/ structure - always internal/modules/[feature]/


Critical Rules (MANDATORY)

RuleValue
File limit100 lines (split at 90)
Handlers< 50 lines, delegate to services
Interfacesports/ directory ONLY
GodocEvery exported function documented
Accept interfacesReturn structs
Small interfaces1-3 methods max (Go idiom)

Reference Guide

Concepts

TopicReferenceWhen to consult
SOLID Overviewsolid-principles.mdQuick reference
SRPsingle-responsibility.mdFat structs
OCPopen-closed.mdAdding providers
LSPliskov-substitution.mdContracts
ISPinterface-segregation.mdFat interfaces
DIPdependency-inversion.mdInjection
Architecturearchitecture-patterns.mdHex/modular

Templates

TemplateWhen to use
module.mdFeature module structure
service.mdBusiness logic service
interface.mdPort definition
handler.mdHTTP handler
error.mdCustom errors
test.mdTable-driven tests

Forbidden

Anti-PatternFix
Files > 100 linesSplit at 90
Interfaces in impl filesMove to ports/ directory
Fat interfaces (4+ methods)Split into small interfaces
Flat internal/ structureUse internal/modules/[feature]/
init() for dependency wiringUse constructor injection

What ships with it: 13 files

100.5 KB alongside SKILL.md

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.