go-service

Generate Go service files with DTOs, port interfaces, and implementations.

Updated Jan 4, 2026
One-click install
npx skills add https://github.com/cristiano-pacheco/ai-tools --skill go-service
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-service
Source: https://github.com/cristiano-pacheco/ai-tools/tree/main/skills/go-service
Command: npx skills add https://github.com/cristiano-pacheco/ai-tools --skill go-service

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the creation of reusable, single-responsibility business or domain services within a Go modular architecture, ensuring consistency and adherence to best practices.

Core Features & Use Cases

  • Boilerplate Generation: Creates DTOs, port interfaces, and service implementations following a strict three-file pattern.
  • Dependency Management: Enforces dependency injection through interfaces and provides Fx wiring examples.
  • Use Case: When building a new feature that requires sending user notifications, use this skill to generate the NotificationService with its associated DTOs and ports, ensuring it integrates seamlessly with the existing architecture.

Quick Start

Generate a new Go service named 'EmailSender' for the 'notification' module.

Frequently Asked Questions about go-service

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

FAQPage Schema
How do I generate a Go service with modular architecture and dependency injection?

Generating a Go service with modular architecture and dependency injection is done by creating DTOs, port interfaces, and service implementations across a strict three-file pattern. This enforces best practices for single-responsibility domain services.

What is the best way to structure boilerplate for a new Go business service?

The best way to structure Go business service boilerplate is using a three-file pattern for DTOs, port interfaces, and service implementations. This enforces dependency injection, error handling, and tracing patterns.

Does this approach support multi-method service designs or only single-action services?

This approach supports both single-action and multi-method service designs in Go. It generates the necessary port interfaces and implementations to accommodate various service complexities while maintaining modular architecture.

Can I use Fx wiring for dependency injection in generated Go services?

Yes, you can use Fx wiring for dependency injection in generated Go services. The generation enforces dependency injection through interfaces and provides specific Fx wiring examples to ensure seamless integration.

Why does my generated Go service include separate files for DTOs and port interfaces?

Generated Go services include separate files for DTOs and port interfaces to enforce a strict modular architecture. This separation ensures single-responsibility, clean dependency management, and consistent error handling.