go-create-chi-handler

Community

Auto-create Chi HTTP handlers for Go apps.

Authorcristiano-pacheco
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Generate Chi HTTP handlers following GO modular architechture conventions (request/response DTOs, use case orchestration, error handling, swagger annotations, Fx DI). Use when creating HTTP endpoint handlers in internal/modules/<module>/http/chi/handler/ for REST operations (List, Create, Update, Delete, Get) that need to decode requests, call use cases, map responses, and handle errors with proper logging and tracing.

Core Features & Use Cases

  • Scaffold a Chi-based HTTP handler structure aligned with a modular Go architecture, including request decoding, use-case orchestration, response mapping, and error handling.
  • Enforce separation between HTTP DTOs and domain/use-case inputs/outputs, along with Swagger annotations and Fx DI wiring.
  • Provide a consistent pattern for List, Create, Update, Delete, and Get endpoints with standardized logging and tracing hooks.

Quick Start

Create a new Chi handler for a module by wiring use cases, decoding requests, and returning mapped responses.

Dependency Matrix

Required Modules

None required

Components

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-chi-handler
Download link: https://github.com/cristiano-pacheco/ai-rules/archive/main.zip#go-create-chi-handler

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.