golang

Develop Go REST APIs with Chi routing, PostgreSQL, and pgx.

3|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/endorphin-ai/claude-code-teams --skill golang-endorphin-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang
Source: https://github.com/endorphin-ai/claude-code-teams/tree/main/go-react-team/.claude/skills/golang
Command: npx skills add https://github.com/endorphin-ai/claude-code-teams --skill golang-endorphin-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a comprehensive framework and set of conventions for developing production-grade Go REST APIs, ensuring consistency, maintainability, and adherence to best practices.

Core Features & Use Cases

  • Layered Architecture: Enforces a clean separation of concerns (Handler -> Service -> Repository).
  • Standardized Routing: Utilizes the Chi router for efficient and idiomatic HTTP routing.
  • Database Integration: Supports PostgreSQL with pgx and golang-migrate for robust data persistence.
  • Error Handling & Validation: Implements consistent error mapping and request validation.
  • Use Case: Implement a new user management API with CRUD operations, authentication, and database persistence, following established project patterns.

Quick Start

Use the golang skill to implement a new REST API endpoint for managing user profiles.

Frequently Asked Questions about golang

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

FAQPage Schema
How do I structure a Go REST API with layered architecture and Chi routing?

Build a Go REST API using a standardized framework that enforces a layered architecture of Handler, Service, and Repository. It utilizes the Chi router for efficient HTTP routing and supports PostgreSQL integration with pgx for data persistence.

What's the best way to manage PostgreSQL schema migrations in a Go backend?

Manage PostgreSQL schema migrations in a Go backend by integrating golang-migrate. This framework supports golang-migrate alongside pgx for PostgreSQL to handle robust database schema management and data persistence.

Can I implement authentication and CRUD operations in a Go API using this framework?

Yes, you can implement authentication and CRUD operations in a Go API. The framework provides standardized conventions for developing production-grade backend services, directly supporting CRUD operations, authentication, and request validation.

How does error handling and request validation work in a Go REST API?

Error handling and request validation in this Go REST API framework work through consistent error mapping. It implements standardized error mapping and request validation across the Handler, Service, and Repository layers.

Does this Go API framework support structured logging for backend services?

Yes, this Go API framework supports structured logging for backend services. It provides a comprehensive framework and set of conventions for developing production-grade Go REST APIs, including structured logging for backend services.