go-pedantry
CommunityMaster Go's idiomatic best practices.
Software Engineering#code quality#best practices#error handling#golang#go#interface design#idiomatic
Authoroborchers
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill enforces Go's idiomatic conventions and best practices, ensuring code consistency, maintainability, and adherence to community standards, thereby preventing common pitfalls and improving code quality.
Core Features & Use Cases
- Error Handling: Enforces correct error wrapping with
fmt.Errorfand%w, and proper sentinel error naming. - Interface Design: Guides users on creating small, focused interfaces, defining them at the consumer side, and adhering to the "accept interfaces, return structs" principle.
- Code Structure: Provides strict guidelines on package naming, struct field ordering, and receiver naming conventions.
- Tooling: Offers a recommended
golangci-lintconfiguration for automated code analysis. - Use Case: When writing a new Go service, use this Skill to ensure all error handling, interface definitions, and package structures align with Go's idiomatic style, making the codebase easier for other Go developers to understand and contribute to.
Quick Start
Use the go-pedantry skill to review the provided Go code for idiomatic correctness.
Dependency Matrix
Required Modules
None requiredComponents
referencesscripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: go-pedantry Download link: https://github.com/oborchers/fractional-cto/archive/main.zip#go-pedantry Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.