go-zero-api-skill
CommunityShip Go-Zero REST APIs faster.
AuthorPenitence1992
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill helps Go developers build and extend REST APIs using the Go-Zero framework by automating boilerplate generation and wiring, enabling teams to ship features with consistent structure and reduced repetitive work.
Core Features & Use Cases
- API scaffolding: Create and maintain .api files from standard templates.
- Code generation: Generate handlers, logic, services, and routes from the API definitions using goctl.
- Logic implementation: Implement business logic in the generated logic files and connect it to services and contexts.
- Use Case: Add a new endpoint by creating api/user.api, generating code, and implementing the corresponding handler and logic.
Quick Start
Create or update an API file under api/, then run the code-generation command: goctl api go -api api/user.api -dir api/ -style gozero Then implement the business logic in internal/logic/..., and verify routes in internal/handler/routes.go.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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-zero-api-skill Download link: https://github.com/Penitence1992/go-zero-backend-skills/archive/main.zip#go-zero-api-skill 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.