new-usecase

Generate Go use cases, DTOs, and unit tests with TDD and clean architecture.

2|1|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/solrac97gr/marketplace-plugins --skill new-usecase
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-usecase
Source: https://github.com/solrac97gr/marketplace-plugins/tree/main/plugins/go-dev/skills/new-usecase
Command: npx skills add https://github.com/solrac97gr/marketplace-plugins --skill new-usecase

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of new application use cases, ensuring adherence to Test-Driven Development (TDD) principles and clean architecture.

Core Features & Use Cases

  • Scaffolds Use Case Structure: Generates Go files for use cases, DTOs, and unit tests.
  • Enforces TDD: Guides the user to write failing tests first, then implement the use case.
  • Promotes Clean Architecture: Adheres to application layer principles for maintainability.
  • Use Case: When starting a new feature in a Go backend project, use this Skill to quickly set up the necessary files and structure for a new use case, like CreateOrder.

Quick Start

Use the new-usecase skill to create a new use case named 'ProcessPayment' in the 'payment' domain.

Frequently Asked Questions about new-usecase

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

FAQPage Schema
How do I scaffold a new Go use case with TDD and clean architecture?

To scaffold a Go use case with TDD and clean architecture, this generator creates use case files, DTOs, and unit tests. It enforces dependency injection and statelessness within your specified domain context for maintainable application layers.

What files are generated when creating a new use case in Go backend development?

When creating a new use case in Go backend development, files for the use case logic, DTOs, and unit tests are generated. This structure enforces TDD principles by guiding you to write failing tests first before implementing the use case.

Does this use case generator enforce dependency injection for stateless components?

Yes, this use case generator enforces dependency injection for stateless components. It strictly adheres to clean architecture principles, ensuring your application layer components remain stateless and maintainable within your specified domain.

Why use TDD for scaffolding application use cases in Go?

Using TDD for scaffolding application use cases in Go ensures adherence to clean architecture and maintainability. It guides you to write failing unit tests first, then implement the use case logic, promoting robust backend development practices.

Can I generate a use case for a specific domain context in a Go backend?

Yes, you can generate a use case for a specific domain context in a Go backend. You specify the domain and use case name, and the tool scaffolds the appropriate Go files, DTOs, and unit tests within that domain context.