cago

Generate Cago Go services with standard project structure and API conventions.

12|3|Updated Jul 3, 2022
One-click install
npx skills add https://github.com/cago-frame/cago --skill cago
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cago
Source: https://github.com/cago-frame/cago/tree/main/tools/skill
Command: npx skills add https://github.com/cago-frame/cago --skill cago

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Cago AI Skill helps AI systems learn and apply the Cago Go framework's project layout, API patterns (mux.Meta), and component conventions to generate accurate, production-ready code for Cago projects.

Core Features & Use Cases

  • Understand and apply the standard Cago directory layout (cmd/, internal/api/, controller/, service/, repository/, migrations) to generate consistent code.
  • Use API definition patterns with mux.Meta, binding tags, and custom validation to produce request/response payloads and routing scaffolds.
  • Follow the service, repository, and entity patterns to implement clean, testable business logic with proper database access and transaction handling.
  • Leverage optional components (OpenTelemetry, gRPC, broker, etcd, Redis, cache) and code examples to accelerate realistic project scaffolding.
  • Reuse provided references to explore complete end-to-end patterns, migrations, and test workflows.

Quick Start

Describe a complete Cago project skeleton and generate example code for a module following the defined patterns.

Frequently Asked Questions about cago

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

FAQPage Schema
How do I structure a production-grade Go service with standard routing and repository patterns?

Define Go API routes using mux.Meta to bind request and response payloads with custom validation tags. This pattern produces routing scaffolds and type-safe API definitions that standardize request handling across server components.

What is the standard project layout for a Go framework with service and repository layers?

Integrate OpenTelemetry, gRPC, broker, etcd, and Redis into Go services as optional components following the framework's provided code examples. These components accelerate realistic project scaffolding for distributed systems.

Can I use mux.Meta binding tags for custom validation in Go API definitions?

Yes, you can use mux.Meta binding tags to apply custom validation in Go API definitions. This approach produces request and response payloads with routing scaffolds that enforce data integrity at the API boundary.

How do I implement database migrations and testing workflows in a Go service?

Implement database migrations and testing workflows by following the framework's end-to-end patterns and provided references. These references demonstrate complete migration scripts and test workflows to ensure reliable database schema evolution.