go-standards

Enforce layered Go service architecture with templates for types, database, client, service, and handler layers.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/kabradshaw1/go-standards --skill go-standards
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-standards
Source: https://github.com/kabradshaw1/go-standards/tree/main/skills/go-standards
Command: npx skills add https://github.com/kabradshaw1/go-standards --skill go-standards

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures adherence to a clean-architecture layered structure for Go services, eliminating inconsistencies and drift across development.

Core Features & Use Cases

  • Architecture Overview: Provides a comprehensive overview of the Go service architecture for cross-layer review.
  • Layer Implementation: Guides the implementation of each layer (types, database, client, service, handler) following best practices.
  • Build Order: Defines the strict build order for layers to ensure dependencies are met correctly.
  • Core Principles: Encourages dependency injection, interface-based development, and separation of concerns.
  • Testing: Offers guidance on unit, integration, and end-to-end testing for robustness.

Quick Start

Run the 'go-standards' skill to generate a new Go service with the required architecture.

Frequently Asked Questions about go-standards

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce clean architecture in my Go services?

To enforce clean architecture in Go services, you need a layered structure separating types, database, client, service, and handler layers. This approach uses dependency injection and interface-based development to eliminate inconsistencies and drift.

What is the correct build order for Go service layers?

The correct build order for Go service layers follows a strict dependency sequence: types, database, client, service, and handler. Following this specific build order ensures dependencies are met correctly before moving to the next layer.

How do I generate a new Go service with a layered architecture?

To generate a new Go service with a layered architecture, you run the 'go-standards' skill. This provides templates and guidelines for each layer to ensure your service adheres to clean architecture best practices from the start.

Does this Go service architecture guidance include testing strategies?

Yes, this Go service architecture guidance includes testing strategies. It offers specific guidance on unit, integration, and end-to-end testing to ensure the robustness of your implemented service layers.