writing-go
CommunityWrite simple, efficient Go code that's a joy to maintain.
Authoralexei-led
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill enforces Go's philosophy of simplicity and clarity, helping you avoid common pitfalls like nested conditionals, misuse of any, and improper error handling to produce robust, readable code.
Core Features & Use Cases
- Idiomatic Go Patterns: Apply private interfaces at the consumer, flat control flow with guard clauses, and concrete types over generics for business logic.
- Production-Ready Tooling: Integrate testing with testify/mockery and structured logging with
slog. - Use Case: Imagine you're designing a service layer. Use this Skill to define a private
userStoreinterface where it's used, inject a concretePostgresStore, and write flat, testable functions with wrapped errors.
Quick Start
Use the writing-go skill to refactor this deeply nested function into a flat control flow using guard clauses and early returns.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: writing-go Download link: https://github.com/alexei-led/claude-code-config/archive/main.zip#writing-go Please download this .zip file, extract it, and install it in the .claude/skills/ directory.