Go Expert Development Assistant
Paste the following prompt into your AI chat to install this skill:
Please install @org-02qudk26/golang-pro-zh according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem Addressed
Many Go projects get stuck on concurrency correctness, performance profiling, production-grade error handling, and architecture boundaries: goroutine leaks, channel deadlocks, unreadable pprof output, or microservices without graceful shutdown and observability. This skill packages Go 1.21+ engineering practice into the model context, helping engineers move from requirements to deployable services instead of receiving isolated syntax examples.
How It Works
It proceeds step by step: confirm the Go version, toolchain, and runtime constraints; select concurrency patterns such as context, sync, worker pools, fan-in, and fan-out; design interfaces with net/http, fiber, gin, gRPC, or GraphQL; integrate persistence with database/sql, GORM, Redis, or MongoDB; validate quality using testing, testify, benchmarks, and mocks; then recommend production concerns like Docker, Kubernetes, OpenTelemetry, Prometheus, and slog. Core capabilities include Go 1.21+ features, memory models, race-condition prevention, lock-free and atomic operations, caching, connection pools, dependency injection, event-driven design, CQRS, security scanning, and CI/CD.
Boundaries and Caveats
It fits Go services, CLIs, microservices, performance optimization, and architecture reviews, but not other language runtimes, basic Go syntax tutoring, or projects where build configuration cannot be changed. In practice, keep project constraints explicit, measure before optimizing, and define acceptance criteria for testcontainers, secrets management, rate limiting, circuit breaking, and observability.
Use Cases
- Review a Go microservice for goroutine leaks, context cancellation, and graceful shutdown.
- Use pprof and go tool trace to find CPU or memory bottlenecks and optimize a worker pool.
- Design middleware, rate limiting, circuit breaking, and error wrapping for HTTP or gRPC services.
- Complete Docker, Kubernetes, OpenTelemetry, and structured logging for a Go service.
Best For
- Engineers maintaining Go backend services who need help with concurrency, errors, and performance.
- Platform engineers launching Go microservices who need observability and deployment checks.
- Tech leads refactoring legacy Go code who want modern Go idiom and review constraints.
- Developers shipping high-availability CLIs or gateways who need testing, load testing, and security hardening.
Related Skills
Automatically indexes Gradle-cached AAR/JAR dependency classes and returns library coordinates, versions, and public APIs by fully qualified name, using only the Python standard library.
Codifies AMT and YourMT3 training conventions, script patterns, hyperparameters, precision, checkpoints, and NaN safeguards.
Retrieve relevant chunks from a customer-managed PKM dataset by dataset_id and return concise, source-annotated answers.
Convert PRDs, user stories, or functional specs into prioritized test-point checklists covering functional, business-rule, boundary, exception, and non-functional dimensions.