go-chi-router

Generate Chi router implementations with route registration and Fx wiring for Go backends.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the generation of Chi router implementations for Go backend HTTP transport layers, streamlining the process of registering routes and integrating with dependency injection frameworks like Fx.

Core Features & Use Cases

  • Route Registration: Define and register HTTP routes for modules, supporting CRUD operations, custom endpoints, and versioned APIs.
  • Route Grouping: Organize routes with middleware for specific subsets of endpoints.
  • Dependency Injection: Seamlessly integrate generated routers into Fx-based applications.
  • Use Case: Quickly set up all the necessary routes for a new 'user' module in your Go application, including GET, POST, PUT, and DELETE endpoints, ensuring they are correctly wired with Fx.

Quick Start

Generate a Chi router for the 'product' resource, including CRUD routes and Fx wiring.

Frequently Asked Questions about go-chi-router

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

FAQPage Schema
How do I generate a Chi router with Fx wiring for a Go backend?

Generating a Chi router with Fx wiring involves defining your module's HTTP routes and CRUD operations, which produces a router implementation automatically integrated with Fx dependency injection for your Go backend.

Can I set up route groups with middleware in a Chi router using this approach?

Yes, organizing routes with middleware for specific subsets of endpoints is fully supported, allowing you to create route groups that apply targeted middleware within your modular Go architecture.

Does this support versioned APIs in a Go HTTP transport layer?

Yes, the tool supports versioned APIs within modular Go architectures, allowing you to register specific HTTP routes for different API versions while adhering to required URL path conventions.

What is needed to map HTTP methods to CRUD operations in a Go router?

Mapping HTTP methods to CRUD operations requires adherence to specific URL path conventions and HTTP method mappings, ensuring endpoints like GET, POST, PUT, and DELETE are correctly registered in the Chi router.

How do I register custom endpoints alongside standard CRUD routes in Go?

You can register custom endpoints alongside standard CRUD routes by defining them within your module setup, allowing the generated Chi router to handle both standard resource operations and specialized HTTP endpoints.