backend-guidelines

Standardize Go backend development conventions across architecture layers and modules.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/asadbek21coder/sinfim --skill backend-guidelines-asadbek21coder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend-guidelines
Source: https://github.com/asadbek21coder/sinfim/tree/main/backend-go/.claude/skills/backend-guidelines
Command: npx skills add https://github.com/asadbek21coder/sinfim --skill backend-guidelines-asadbek21coder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Use when implementing any backend feature, writing use cases, creating controllers, working with repositories (repogen), handling errors (errx), managing transactions (UOW), writing system tests, creating migrations (goose), fixing bugs, or making any code changes to the codebase.

Core Features & Use Cases

Reference guide for all backend development conventions in the Go enterprise blueprint project. Contains architecture rules, layer responsibilities, API design, coding standards, and implementation patterns. Every concept from the project's 16 guideline files is condensed here.

Core principle: Document first, implement layer-by-layer (bottom-up), test everything, never violate layer boundaries or cross-module import rules.

Quick Start

Review this guide before starting any backend task to ensure compliant design and implementation.

Frequently Asked Questions about backend-guidelines

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

FAQPage Schema
How do I structure a Go backend project with repositories and UOW transactions?

A Go backend project should use layered architecture with repositories and Unit of Work (UOW) transactions. You implement features bottom-up, defining repository interfaces and use cases while ensuring layer boundaries and cross-module import rules are never violated.

What are the Go backend guidelines for writing use cases and controllers?

Guidelines for writing use cases and controllers specify strict layer responsibilities, API design standards, and coding conventions. You document first, implement the logic layer-by-layer, and test everything to maintain enterprise blueprint compliance.

How do I handle errors in a Go backend using the errx pattern?

To handle errors using the errx pattern, you apply standardized error handling conventions defined for your Go backend. This ensures consistent error wrapping and responses across all internal modules without violating architectural layer rules.

How do I write system tests and migrations for Go enterprise applications?

You write system tests and migrations for Go applications by following standardized conventions. Migrations are handled using goose, while system tests must cover all implemented features, ensuring every layer is tested before deployment.

Can I use repogen for repository creation in a layered Go backend?

Yes, repogen is used for repository creation within the Go backend architecture. You apply the repogen pattern alongside UOW transaction management to standardize data access layers while keeping module imports strictly separated.

What should I do before making code changes to a Go backend codebase?

Before making code changes to a Go backend codebase, you should review the project's architecture rules, API design, and coding standards. Documenting first and implementing bottom-up ensures compliant design and prevents layer boundary violations.