go-backend-developer

Generate Go backend services with layered architecture templates and testing patterns.

4|Updated Jan 18, 2026
One-click install
npx skills add https://github.com/alesbrelih/praigmatic --skill go-backend-developer
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: go-backend-developer
Source: https://github.com/alesbrelih/praigmatic/tree/main/.opencode/skills/go-backend-developer
Command: npx skills add https://github.com/alesbrelih/praigmatic --skill go-backend-developer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

This Skill provides a comprehensive set of patterns and templates for building reliable, maintainable, and observable Go backend applications, reducing boilerplate and enforcing best practices.

Core Features & Use Cases

  • Standardized Architecture: Implements a Handler → Service → Repository layer architecture.
  • Testing & Mocking: Integrates table-driven tests, mockery v3 for dependency mocking, and sqlmock for database testing.
  • Observability: Includes patterns for context propagation, structured logging, tracing, and metrics.
  • Database Operations: Demonstrates safe transaction management and parameterized queries.
  • HTTP Middleware: Provides templates for common middleware like RequestID, Logging, Recovery, and Authentication.
  • Use Case: Develop a new microservice by leveraging the provided templates for handlers, services, and repositories, ensuring consistent error handling, testing, and observability from the start.

Quick Start

Use the go-backend-developer skill to generate a new Go backend service following the standard layer architecture.

Frequently Asked Questions about go-backend-developer

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

FAQPage Schema
How do I structure a Go backend microservice for maintainability?▼

To structure a Go backend microservice, use a layered Handler → Service → Repository architecture. This pattern enforces consistent error handling and context propagation, making the application robust and maintainable.

What is the best way to mock database queries in Go testing?▼

The best way to mock database queries in Go testing is using sqlmock. It allows you to assert parameterized queries and safe transaction management within table-driven tests without needing a real database connection.

How do I implement observability and tracing in a Go microservice?▼

Implement observability and tracing in a Go microservice through context propagation. Apply structured logging, tracing, and metrics patterns alongside HTTP middleware like RequestID to monitor service behavior.

Can I use mockery v3 for dependency mocking in Golang?▼

Yes, you can use mockery v3 for dependency mocking in Golang. It integrates seamlessly with table-driven tests to generate mocks for your service and repository interfaces, ensuring comprehensive test coverage.

What HTTP middleware patterns should I use for Go backend APIs?▼

Go backend APIs should use standard HTTP middleware patterns for RequestID, Logging, Recovery, and Authentication. These templates handle cross-cutting concerns safely before requests reach your core service logic.

Does this approach support safe transaction management in Golang?▼

Yes, this approach supports safe transaction management in Golang. It provides templates demonstrating parameterized queries and secure database interactions to ensure your repository layer handles data safely.