go-create-usecase
CommunityCreate Go use cases with ports-based DI.
Authorcristiano-pacheco
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Generates Go use-case implementations that depend on ports (interfaces) rather than concrete implementations, enabling consistent, maintainable orchestration of domain actions.
Core Features & Use Cases
- Produces a dedicated file per operation named <operation>_usecase.go under internal/modules/<module>/usecase/, following the standard naming conventions described in the skill.
- Enforces consistent use-case structure: input/output DTOs, a use-case struct, constructor, public Execute with metrics, and a private execute with tracing.
- Coordinates workflows through ports-based interfaces, repository/service orchestration, and optional instrumentation via OpenTelemetry tracing and metrics.
Quick Start
Provide the operation name and module path to generate a complete use case file named <operation>_usecase.go wired for Fx integration.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: go-create-usecase Download link: https://github.com/cristiano-pacheco/ai-rules/archive/main.zip#go-create-usecase Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.