This directory contains examples demonstrating advanced Claude Code skills features for go-zero development.
These are example skill configurations showing how to leverage Claude Code's advanced capabilities:
- Dynamic context injection with
!command"` syntax - Subagent workflows with
context: fork - Argument passing with
$ARGUMENTS - Tool restrictions with
allowed-tools
These are not production-ready skills but templates you can adapt for your needs.
Use case: Automated project analysis and architecture validation
Features:
context: forkwith Explore agent for isolated analysis- Dynamic context with live file discovery
- Read-only tools for safe inspection
- Comprehensive reporting
When to use:
- Initial codebase audit
- Architecture compliance checking
- Onboarding new team members
- Code review automation
Use case: Generate go-zero services with proper structure
Features:
- Argument passing (
$0= service name,$1= port) disable-model-invocation: truefor manual control- Dynamic context showing existing services
- Integration with goctl commands
When to use:
- Creating new API services
- Avoiding service name conflicts
- Ensuring consistent project structure
- Manual control over code generation
Use case: Design microservices architecture before coding
Features:
context: forkwith Plan agent for architecture design- No execution tools (planning only)
- Multiple service coordination
- go-zero specific recommendations
When to use:
- Starting new projects
- Adding complex features
- Architecture reviews
- Team technical discussions
Copy an example to .claude/skills/ and customize:
# Create a new skill based on analyze-project
mkdir -p ~/.claude/skills/analyze-gozero
cp analyze-project.md ~/.claude/skills/analyze-gozero/SKILL.md
# Edit and customize
code ~/.claude/skills/analyze-gozero/SKILL.mdStudy these examples to understand:
- How to structure skill frontmatter
- When to use different agent types
- How dynamic context improves skills
- Best practices for argument handling
Create project-specific skills in .claude/skills/:
your-project/
└── .claude/
└── skills/
├── analyze-myproject/
│ └── SKILL.md # Based on analyze-project.md
└── deploy-myproject/
└── SKILL.md # Custom deployment workflow
Existing services: !`find . -name "*.api" -type f`- Executes before Claude sees the prompt
- Injects live project data
- Prevents stale or hardcoded information
context: fork
agent: Explore- Isolated execution (no conversation history)
- Specialized agent types (Explore, Plan)
- Clean separation of concerns
argument-hint: [service-name] [port]
Generate service: $0 on port $1$0,$1: Positional arguments$ARGUMENTS: All arguments${CLAUDE_SESSION_ID}: Session tracking
allowed-tools:
- Read
- Grep
- Glob- Limit Claude's capabilities for safety
- Prevent accidental modifications
- Enable auto-execution without approval
These advanced skills complement the main zero-skills knowledge base:
┌─────────────────────────────────────────────┐
│ Main Skill (zero-skills) │
│ - Comprehensive knowledge base │
│ - Pattern guides and best practices │
│ - Automatic loading for go-zero work │
└─────────────────┬───────────────────────────┘
│ References
┌─────────────────▼───────────────────────────┐
│ Advanced Skills (these examples) │
│ - Project analysis workflows │
│ - Service generation automation │
│ - Architecture planning │
└─────────────────────────────────────────────┘
Usage together:
zero-skillsprovides knowledge: "Here's how to build go-zero services"- Advanced skills provide automation: "Analyze my project structure"
- Both reference the same pattern guides
- Valid YAML frontmatter with
nameanddescription - Clear
argument-hintif arguments are expected - Appropriate
contextandagentfor the task -
allowed-toolsspecified for safety -
disable-model-invocation: truefor side-effect operations - References to supporting files (pattern guides, docs)
- Clear instructions for Claude to follow
- Dynamic context for live project data
- Example invocations and expected output
---
name: my-gozero-skill
description: Brief description of what this skill does and when to use it
argument-hint: [arg1] [arg2]
context: fork # Optional: run in subagent
agent: Explore # Optional: which agent type
disable-model-invocation: true # Optional: manual invoke only
user-invocable: true # Optional: show in /menu
allowed-tools: # Optional: tool restrictions
- Read
- Grep
---
# Your skill instructions here
## Context
- Project info: !`command to gather data`
## Task
1. Step one
2. Step two
3. Step three
## Output
Describe expected output format- Install: Place in
.claude/skills/your-skill/SKILL.md - Verify: Ask "What skills are available?"
- Invoke: Try
/your-skillor let Claude load automatically - Debug: Check if commands execute, arguments work, etc.
- Iterate: Refine based on actual usage
- Claude Code Skills Documentation
- Agent Skills Specification
- zero-skills Main Documentation
- Claude Code Guide
- go-zero Official Documentation
Have a useful skill pattern? Share it!
- Test thoroughly in your projects
- Document clearly with examples
- Submit a PR to zero-skills
- Help others build better skills
Remember: These are examples, not production skills. Adapt them to your specific needs and workflows.