Zero Skills
AI-optimized knowledge base for building applications with go-zero
Installation
npx zero-skillsAsk AI about Zero Skills
Powered by Claude ยท Grounded in docs
I know everything about Zero Skills. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
go-zero Skills for AI Agents
English | ็ฎไฝไธญๆ
This is an Agent Skill containing structured knowledge and patterns for AI coding assistants to help developers work effectively with the go-zero framework.
What is a Skill?
Skills are folders of instructions, scripts, and resources that AI agents discover and load dynamically to perform better at specific tasks. This skill teaches AI agents how to generate production-ready go-zero microservices code.
Purpose
This skill enables AI agents (Claude, GitHub Copilot, Cursor, etc.) to:
- Generate accurate go-zero code following framework conventions
- Understand the three-layer architecture (Handler โ Logic โ Model)
- Apply best practices for microservices development
- Troubleshoot common issues efficiently
- Build production-ready applications
Quick Install
Just ask your AI agent:
Install zero-skills from https://github.com/zeromicro/zero-skills
Or manually:
# Project-level (recommended)
git clone https://github.com/zeromicro/zero-skills.git .claude/skills/zero-skills
# Personal-level (all projects)
git clone https://github.com/zeromicro/zero-skills.git ~/.claude/skills/zero-skills
Agent Skill Structure
Following the Agent Skills Spec and Claude Code skills documentation:
zero-skills/
โโโ SKILL.md # Entry point with YAML frontmatter
โโโ getting-started/ # Getting started guides
โ โโโ README.md # Tool comparison overview
โ โโโ claude-code-guide.md # Claude Code (recommended)
โ โโโ cursor-guide.md # Cursor IDE
โ โโโ copilot-guide.md # GitHub Copilot
โ โโโ windsurf-guide.md # Windsurf IDE
โโโ references/ # Detailed pattern documentation
โ โโโ rest-api-patterns.md # REST API development patterns
โ โโโ rpc-patterns.md # gRPC service patterns
โ โโโ database-patterns.md # Database operations
โ โโโ resilience-patterns.md # Resilience and fault tolerance
โโโ best-practices/ # Production recommendations
โโโ troubleshooting/ # Common issues and solutions
โโโ skill-patterns/ # Advanced skill examples (templates)
โ โโโ analyze-project.md # Explore agent example
โ โโโ generate-service.md # Argument passing example
โ โโโ plan-architecture.md # Plan agent example
โโโ examples/ # Demo projects and verification
Using This Skill
With Claude Code (Recommended)
Claude Code natively supports the Agent Skills specification. This skill is optimized for Claude Code with advanced features:
Project-Level Installation (Git Submodule)
Add zero-skills to your project for automatic discovery:
# Add as git submodule
git submodule add https://github.com/zeromicro/zero-skills.git .claude/skills/zero-skills
# Or clone directly
git clone https://github.com/zeromicro/zero-skills.git .claude/skills/zero-skills
Claude Code automatically discovers skills in .claude/skills/ directories.
Personal-Level Installation
To use across all your projects, install to your personal skills directory:
## Clone to personal skills directory
git clone https://github.com/zeromicro/zero-skills.git ~/.claude/skills/zero-skills
Usage in Claude Code
- Automatic: Claude loads the skill when you work with go-zero files (
.api,.proto,go.modwith go-zero) - Manual: Type
/zero-skillsto invoke directly for go-zero guidance - With arguments:
/zero-skills Create a user management APIfor specific tasks - Check availability: Ask "What skills are available?" to see if it's loaded
Advanced Features
- Dynamic context: Skills can execute shell commands to gather live project data
- Subagents: Use
context: forkfor isolated analysis or planning tasks - Tool restrictions:
allowed-toolsensures safe, read-only operations - See skill-patterns/ for advanced patterns and templates
With Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"zero-skills": {
"command": "node",
"args": ["/path/to/skill-server.js", "/path/to/zero-skills"]
}
}
}
With GitHub Copilot
See copilot-guide.md for detailed setup. Quick start:
git clone https://github.com/zeromicro/zero-skills.git .ai-context/zero-skills
Then create .github/copilot-instructions.md referencing the patterns.
With Cursor
See cursor-guide.md for detailed setup. Quick start:
git clone https://github.com/zeromicro/zero-skills.git .ai-context/zero-skills
Then create .cursorrules referencing the patterns.
With Windsurf
See windsurf-guide.md for detailed setup. Quick start:
git clone https://github.com/zeromicro/zero-skills.git .ai-context/zero-skills
Then create .windsurfrules referencing the patterns.
Integration with go-zero AI Ecosystem
zero-skills is part of a two-layer ecosystem for AI-assisted go-zero development:
| Tool | Purpose | Size | Best For |
|---|---|---|---|
| ai-context | Workflow instructions and decision trees | ~5KB | GitHub Copilot, Cursor, Windsurf |
| zero-skills (this repo) | Comprehensive knowledge base + goctl reference | ~45KB | All AI tools, deep learning, reference |
The AI runs goctl directly in the terminal for code generation โ no separate tools or servers needed. See references/goctl-commands.md for the complete command reference.
How They Work Together
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ AI Assistant โ
โ (Claude Code, GitHub Copilot, Cursor, Windsurf) โ
โโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โโ Workflow Layer โโโโโค
โ ai-context โ "What to do" - Quick decisions
โ (~5KB) โ Loaded for every interaction
โ โ
โโ Knowledge Layer โโโโ
zero-skills "How & Why" - Detailed patterns
(~45KB) + goctl command reference
Loaded when needed
Usage Scenarios
Scenario 1: Claude Code User (Best Experience)
- Uses:
zero-skills(this repo) as native skill - Benefits:
- Deep knowledge from pattern guides
- AI runs goctl commands directly in terminal
- Dynamic context with live project data
- Subagent workflows for complex tasks
- Invocation:
/zero-skillsor automatic when working with go-zero
Scenario 2: GitHub Copilot User
- Uses:
ai-context(loaded via.github/copilot-instructions.md) - Benefits: Quick inline suggestions, workflow guidance, goctl via terminal
Scenario 3: Cursor/Windsurf User
- Uses:
ai-context(in project rules) + links tozero-skills - Benefits: IDE-native experience with go-zero guidance, goctl via terminal
See Getting Started Guides for detailed integration instructions for each tool.
Quick Links
Skill Documentation:
- ๐ SKILL.md - Main skill entry point and navigation
- ๐ go-zero Quick Start - Official go-zero framework tutorial
- ๐ฏ Advanced Examples - Subagents, dynamic context, etc.
Getting Started Guides:
- ๐ก Claude Code - Full features, subagents (recommended)
- ๐ฑ๏ธ Cursor - IDE integration with .cursorrules
- ๐ค GitHub Copilot - VS Code inline suggestions
- ๐ Windsurf - Cascade AI integration
- ๐ Tool Comparison - Compare all tools
Contributing
Contributions are welcome! Please ensure:
- Examples are complete and tested
- Patterns follow official go-zero conventions
- Content is structured for AI consumption
- Include both correct (โ ) and incorrect (โ) examples
- Follow the Agent Skills specification
License
MIT License - Same as go-zero framework
