Skills / golang best practices skill
golang best practices skill
Production-ready Go code review skill for AI agents based on authoritative sources
Installation
Compatibility
Description
Golang Fullstack Best Practices Skill
Comprehensive Go + GORM + PostgreSQL review skill for AI agents based on authoritative sources
v3.0.0: The "Ultimate Merger" release. Unified 89 rules across 9 specialized domains, covering everything from Go concurrency and architecture to deep PostgreSQL performance and migration safety.
π Overview
This meta-skill provides a complete code review solution for Go fullstack backend services. It combines general Go language best practices (v2.1.0) with specialized GORM & PostgreSQL expertise (v1.0.0).
π Available Skills
| Domain | Rules | Focus | |---|---|---| | Concurrency Safety | 12 | Goroutines, channels, race conditions | | Clean Architecture | 9 | Layered architecture, gRPC, dependency inversion | | Error Handling (Unified) | 14 | Go error chains + Postgres error codes/retries | | Design Patterns | 13 | Code smells, refactoring, GoF patterns | | Idiomatic Go | 7 | Go conventions, interface design, pointers | | GORM Query Patterns | 11 | ORM queries, transactions, context | | PostgreSQL Syntax | 10 | Raw SQL, Postgres-specific features | | Query Performance | 7 | N+1 detection, indexing, EXPLAIN | | Migration Safety | 6 | Zero-downtime schema changes, rollbacks |
Priority Distribution:
- 20 CRITICAL β Data loss, SQL injection, crashes, production bugs
- 30 HIGH β Reliability, performance, architecture
- 34 MEDIUM β Code quality, idiomatic patterns
- 5 ARCHITECTURE β Structural compliance
π Quick Start
Usage
Full Audit:
"Review this Go project for all language and database anti-patterns"
Targeted Reviews:
"Check for race conditions" β Concurrency Safety
"Audit architecture" β Clean Architecture
"Review GORM queries for N+1" β GORM Patterns / Query Performance
"Debug this 23505 Postgres error" β Error Handling
"Is this migration safe for production?" β Migration Safety
ποΈ Structure
golang-fullstack-best-practices/
βββ SKILL.md # Meta-skill coordinator (v3.0.0)
βββ metadata.json # Full rule manifest
β
βββ concurrency-safety/ # Go-specific
βββ clean-architecture/ # Architecture
βββ design-patterns/ # Quality & Smells
βββ idiomatic-go/ # Conventions
β
βββ gorm-query-patterns/ # GORM ORM
βββ postgresql-syntax/ # Raw SQL
βββ query-performance/ # Optimization
βββ migration-safety/ # DB Schema changes
β
βββ error-handling/ # Unified Go & DB
βββ shared/ # Rule templates & categories
βββ references/ # Deep-dive guides
β¨ Features
- End-to-End Coverage: From Go syntax to PostgreSQL index optimization.
- Unified Routing: High-accuracy targeting using meta-skill coordination.
- Evidence-Based: Rules cite 8+ authoritative sources (Jon Bodner, Martin Fowler, Robert Martin, PostgreSQL Docs, etc.).
- Production-Ready: Focused on zero-downtime, safe operations, and debugging real-world failures.
π€ Author
saifoelloh
- GitHub: @saifoelloh
- Repository: golang-best-practices-skill
Built with β€οΈ for bulletproof Go systems.
Related Skills
last30days skill
AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
frontend slides
Create beautiful slides on the web using Claude's frontend skills
context mode
Context window optimization for AI coding agents. Sandboxes tool output, 98% reduction. 14 platforms
claude seo
Universal SEO skill for Claude Code. 19 sub-skills, 12 subagents, 3 extensions (DataForSEO, Firecrawl, Banana). Technical SEO, E-E-A-T, schema, GEO/AEO, backlinks, local SEO, maps intelligence, Google APIs, and PDF/Excel reporting.
claude ads
Comprehensive paid advertising audit & optimization skill for Claude Code. 250+ checks across Google, Meta, YouTube, LinkedIn, TikTok, Microsoft & Apple Ads with weighted scoring, parallel agents, industry templates, and AI creative generation.
claude obsidian
Claude + Obsidian knowledge companion. Persistent, compounding wiki vault based on Karpathy's LLM Wiki pattern. /wiki /save /autoresearch