什么是 golang-base-practices?
Go 语言最佳实践指南涵盖框架 (Gin/Go-Kratos)、ORM (GORM)、数据库迁移 (Goose)、DDD 项目结构、错误处理、并发模式、测试(99% 覆盖率目标)和 Lint 工具。在编写、审查或重构 Go 代码时应使用此技能,以确保遵循最佳实践。触发 Go 项目开发、代码审查、性能优化或架构设计。 来源:cexll/golang-base-practices-skills。
Go 语言最佳实践指南涵盖框架 (Gin/Go-Kratos)、ORM (GORM)、数据库迁移 (Goose)、DDD 项目结构、错误处理、并发模式、测试(99% 覆盖率目标)和 Lint 工具。在编写、审查或重构 Go 代码时应使用此技能,以确保遵循最佳实践。触发 Go 项目开发、代码审查、性能优化或架构设计。
通过命令行快速安装 golang-base-practices AI 技能到你的开发环境
来源:cexll/golang-base-practices-skills。
Comprehensive Go development best practices guide, organized by priority for code generation, review, and refactoring. Contains 53 rules referenced from Effective Go, Google Go Style Guide, Uber Go Style Guide, and Go Code Review Comments.
| 1 | Framework Selection | CRITICAL | framework- | | 2 | Database & ORM | CRITICAL | db- | | 3 | DDD Project Structure | HIGH | ddd- | | 4 | Error Handling | HIGH | error- | | 5 | Concurrency Patterns | HIGH | concurrency- | | 6 | Idiomatic Go | MEDIUM | idiomatic- | | 7 | Testing Practices | CRITICAL | testing- |
| 8 | Performance Optimization | MEDIUM | performance- | | 9 | Lint & Toolchain | MEDIUM | lint- |
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/cexll/golang-base-practices-skills --skill golang-base-practicesGo 语言最佳实践指南涵盖框架 (Gin/Go-Kratos)、ORM (GORM)、数据库迁移 (Goose)、DDD 项目结构、错误处理、并发模式、测试(99% 覆盖率目标)和 Lint 工具。在编写、审查或重构 Go 代码时应使用此技能,以确保遵循最佳实践。触发 Go 项目开发、代码审查、性能优化或架构设计。 来源:cexll/golang-base-practices-skills。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/cexll/golang-base-practices-skills --skill golang-base-practices 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/cexll/golang-base-practices-skills