be-go

Generate idiomatic Go backend code from OpenAPI contracts.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/MassimilianoPili/agent-framework --skill be-go
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: be-go
Source: https://github.com/MassimilianoPili/agent-framework/tree/main/.claude/agents/be-go
Command: npx skills add https://github.com/MassimilianoPili/agent-framework --skill be-go

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the creation and maintenance of backend services written in Go, ensuring idiomatic code, adherence to contracts, and robust testing.

Core Features & Use Cases

  • Contract-First Development: Implements backend APIs based on OpenAPI specifications.
  • Idiomatic Go Implementation: Generates code following Go best practices, including error handling, context propagation, and project structure.
  • Database Integration: Supports database interactions using sqlx.
  • Testing: Includes unit and integration tests with good coverage.
  • Use Case: Develop a new RESTful API for user management based on a provided OpenAPI contract, including handlers, services, repositories, and tests.

Quick Start

Use the be-go skill to implement the user registration endpoint defined in the contract.

Frequently Asked Questions about be-go

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

FAQPage Schema
How do I generate Go backend code from an OpenAPI contract?

Generate Go backend code from an OpenAPI contract by defining your API endpoints, schemas, and security requirements in the specification. The Skill outputs idiomatic Go HTTP handlers, service layers, and repository code that strictly adhere to the contract.

Can I use chi or gin for my Go HTTP API router?

Yes, you can use either chi or gin for your Go HTTP API router. The Skill supports both frameworks, allowing you to generate backend code that integrates with your preferred routing library while maintaining standard context propagation.

What is the best way to handle database access in Go with sqlx?

The best way to handle database access in Go with sqlx is to generate secure repository layers. The Skill creates code that enforces context propagation and safe database access patterns, ensuring your data persistence layers are robust and idiomatic.

Does this approach support contract-first development for RESTful APIs?

Yes, this approach fully supports contract-first development for RESTful APIs. By using an OpenAPI specification as the source of truth, it generates the necessary handlers, services, and repositories to implement the defined endpoints accurately.

How do I write tests for Go backend services generated from OpenAPI?

Tests for Go backend services are generated automatically alongside the implementation. The Skill includes comprehensive unit and integration testing strategies to ensure good coverage for the generated handlers, services, and database repositories.

Do I need Go 1.22+ to build backend APIs with this method?

Yes, you need Go 1.22+ to build backend APIs with this method. The generated code enforces Go 1.22+ conventions and best practices, ensuring your HTTP APIs and data persistence layers use the latest idiomatic Go features.