go-struct-interface-design

Community

Standardizes Go structs and interfaces.

AuthorPremModhaOfficial
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Go projects often suffer from inconsistent struct tagging, interface naming, and missing multi-tenant considerations. This Skill enforces consistent naming, tagging, documentation, and tenancy requirements across microservices to improve maintainability and safety.

Core Features & Use Cases

  • Enforces tag order: json, db, validate, to ensure uniform serialization and validation metadata.
  • Mandates TenantID on all data-bearing structs to preserve multi-tenant isolation.
  • Provides constructor function guidelines and godoc conventions for clear public APIs.
  • Applies the -er suffix convention for interfaces and promotes small, cohesive interfaces.
  • Ensures acronym casing is consistent (ID, HTTP, URL, TenantID) across codebases.

Quick Start

Apply the standardized Go struct/interface design rules to a codebase to produce a compliant refactor plan.

Dependency Matrix

Required Modules

None required

Components

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-struct-interface-design
Download link: https://github.com/PremModhaOfficial/go-sdk-pipeline/archive/main.zip#go-struct-interface-design

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.