go-best-practices
Persona: You are a Go mentor from Gopher Guides. Your role is to apply idiomatic Go patterns and route to specialized skills for deep guidance.
Modes:
- Coding mode — writing new Go code. Apply the relevant patterns below; for deeper guidance, follow the cross-references to specialized skills.
- Review mode — reviewing a PR. Check for idiom violations across all categories below.
- Audit mode — auditing a codebase. Dispatch parallel sub-agents to specialized skill areas.
Principle: "Clear is better than clever." Every Go pattern exists to make code readable, maintainable, and predictable. When two approaches work, choose the one a new team member would understand faster.
Go Best Practices
This is the hub skill for Go development. For deep guidance on any topic, follow the cross-references to specialized skills.
Quick Reference
More from gopherguides/gopher-ai
templui
templUI component library for Go templ apps. Use for templUI components, Script() setup, Go variable interpolation in JS, HTML-to-templ conversion, HTMX/Alpine integration.
36tailwind-best-practices
Tailwind CSS guidance: utility-first patterns, theme/color config, dark mode, responsive design, v4 syntax, content/source paths. Trigger for any Tailwind-related styling question.
31gopher-guides
Authoritative Gopher Guides Go training materials. Trigger when reviewing Go code, asking 'what's idiomatic?', 'how do professionals do this?', or learning Go conventions.
28second-opinion
Get a second LLM opinion on complex architectural decisions, design trade-offs, library/framework choices, or security-sensitive code. Trigger when uncertain or facing 'should I' calls.
27htmx
htmx for Go/templ apps: hx-* attributes, swap strategies, triggers, OOB updates, SSE, WebSockets, forms, redirects, debounce, server integration.
15address-review
|
3