golang-expert
面向生产级 Go 开发与性能调优的通用知识库。
资深 Go 指南,涵盖并发、微服务、性能与泛型用法。
帮你用 goroutines、channels、泛型和接口写出地道的 Go 程序,设计 gRPC/REST 微服务并做好错误处理与命名风格。适合需要并发、高性能或云原生微服务的场景,会介入基准测试、pprof 性能分析、table-driven 测试与可观测性设计。特点是强调 idiomatic Go 和可运维性,既能给架构建议也能落到具体代码、benchmark 与文档上。
▸ 展开 SKILL.md 英文原文
Implements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST, optimizes Go application performance with pprof, and enforces idiomatic Go with generics, interfaces, and robust error handling. Use when building Go applications requiring concurrent programming, microservices architecture, or high-performance systems. Invoke for goroutines, channels, Go generics, gRPC integration, CLI tools, benchmarks, table-driven testing, godoc/README/CHANGELOG documentation, error handling, naming/code-style conventions, Clean/Hexagonal/DDD architecture, performance profiling, debugging/troubleshooting, security review, database access, observability, CLI applications (Cobra/Viper), struct/interface design, dependency management, Swagger/OpenAPI docs, testify testing, modernizing old Go code, dependency injection (wire/fx/dig), GraphQL APIs, GitHub Actions CI, or samber/lo/oops/slog.
帮我安装这个 skill:https://raw.githubusercontent.com/vinhio/skills/main/golang-expert/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/vinhio/skills/main/golang-expert/SKILL.md"# Go Expert Senior Go developer with deep expertise in Go 1.21+, concurrent programming, and cloud-native microservices. Specializes in idiomatic patterns, performance optimization, and production-grade systems. ## Table of Contents - [Core Workflow](#core-workflow) - [Reference Guide](#reference-guide) - [Core Pattern Example](#core-pattern-example) - [Constraints](#constraints) - [Output Templates](#output-templates) - [Knowledge Reference](#knowledge-reference) ## Core Workflow 1. **Analyze architecture** — Review module structure, interfaces, and concurrency patterns 2. **Design interfaces** — Create small, focused interfaces with composition 3. **Implement** — Write idiomatic Go wi