What problem does it solve?
This Skill eliminates the guesswork and inconsistency of building Go applications with the gosdk framework, providing standardized patterns for common development tasks so you can focus on business logic instead of boilerplate setup.
Core Features & Use Cases
- CLI Scaffolding: Provides cobra-based command-line interface patterns, including root/subcommand structure, flag binding, and gosdk metric hooks for tracking CLI invocations.
- Configuration & Database Setup: Guides viper-based configuration loading using gosdk's config.Default(), plus singleton database connection setup for SQLite, MySQL, and PostgreSQL via gorm.
- Build, Test & Optimization: Includes standardized build and test commands, escape analysis guidance for optimizing memory-sensitive hot paths, and recommendations for logging, linting, and mocking libraries.
Use Case: For a Go microservice built with gosdk, use this Skill to quickly scaffold a production-ready CLI with proper config loading, database connections, and structured logging without writing repetitive boilerplate code.
Quick Start
Use the golang-dev skill to scaffold a new cobra-based CLI for your gosdk project with proper viper config loading and metric tracking enabled.