language-go
Go语言模式和最佳实践。当需要Go语言指导时使用。
📖 中文导读:Go语言模式和最佳实践。当需要Go语言指导时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: language-go description: Go language patterns and best practices. Use when language go guidance is required. allowed-tools: - Bash(go version) - Bash(golangci-lint)
Key Execution Capabilities
Code Validation
- Run
go buildfor compilation validation - Execute
golangci-lintfor comprehensive linting - Run tests with
go test - Validate module structure and dependencies
Tool Integration
- Use
golangci-lintfor multi-linter analysis - Leverage
go modfor dependency management - Apply
go fmtandgo vetfor formatting and validation - Execute
go testwith coverage for testing
Execution Context
- Process Go files from filesystem layer
- Generate structured reports with findings
- Create minimal, rule-compliant patches for violations
- Maintain separation between governance rules and execution tools
Error Handling
This skill provides execution-layer error handling for Go code analysis:
- Compilation errors or warnings
- Linting rule violations
- Missing dependencies or tools
- Test failures or coverage issues
Usage Notes
- Always delegate to governance rules for policy decisions
- Focus on concrete tool execution and result processing
- Provide deterministic, tool-first analysis results
- Maintain separation between rule definition and rule application