Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
poteto avatar

Go Best Practices

  • 34 installs
  • 217 repo stars
  • Updated March 19, 2026
  • poteto/noodle

go-best-practices is a Claude Code skill for ai & agent building.

About

go-best-practices is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.

  • go-best-practices
  • AI & Agent Building
  • AI-coding skill

Go Best Practices by the numbers

  • 34 all-time installs (skills.sh)
  • Ranked #8,855 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/poteto/noodle --skill go-best-practices

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs34
repo stars217
Last updatedMarch 19, 2026
Repositorypoteto/noodle

How do I helps with ai & agent building tasks.?

Helps with ai & agent building tasks.

Who is it for?

Best when you're working on ai & agent building and need structured help with go best practices.

Skip if: Teams with no ai & agent building needs, or anyone wanting a generic chat assistant without this specific workflow.

When should I use this skill?

When you need to helps with ai & agent building tasks., or when go-best-practices is a claude code skill for ai & agent building.

What you get

Structured output aligned to go-best-practices: go-best-practices, AI & Agent Building.

Files

SKILL.mdMarkdownGitHub ↗

Go Best Practices

PatternWhen to apply
Minimal mainNew binaries
Single bootstrapApp wiring across modes
Ordered shutdownLong-running processes
Non-blocking fanoutChannel-based event systems
Concurrency testingAny goroutine code
Layered configMulti-source configuration
Cross-platform pathsFile/config path resolution
Secure debug loggingHTTP client instrumentation
Golden test matricesRendering / output components
Focused lintersCI pipeline setup

Read references/patterns.md for code examples.

Rules

1. main.go is a stub. Call cmd.Execute() and nothing else. Gate diagnostics (pprof) behind env vars.

2. One bootstrap path. All modes (interactive, headless, test) share the same initialization function. Two paths will drift.

3. Ordered shutdown. Cancel dependents before their dependencies, then run independent cleanup in parallel under a timeout context. WaitGroup the parallel phase.

4. Never block the sender. Non-blocking channel sends with an explicit drop policy. Log drops at debug level. Document the policy.

5. Test concurrency mechanically. testing/synctest for deterministic timing, goleak.VerifyNone for leak detection, dedicated regression tests for timer/channel deadlocks.

6. Explicit config precedence. Global → project → flags. Walk up from CWD to discover project configs, reverse so closest wins, deep-merge.

7. Centralize platform paths. One function per concern. Resolution order: env override → XDG → platform default → fallback.

8. Redact secrets in debug logs. Wrap http.RoundTripper. Filter headers matching authorization, api-key, token, secret. Gate on debug level to skip allocation in prod.

9. Golden tests over matrices. Cross dimensions (layout × theme × size) as parallel subtests. Sweep continuous ranges to catch off-by-one bugs.

10. Focused linters, not all linters. Enable what catches real bugs (bodyclose, noctx, tparallel). Disable noisy defaults. Add project-specific checks as scripts. Always -race in tests.

Related skills

FAQ

What does go-best-practices do?

go-best-practices is a Claude Code skill for ai & agent building.

When should I use go-best-practices?

When you need to helps with ai & agent building tasks., or when go-best-practices is a claude code skill for ai & agent building.

What are the main capabilities?

go-best-practices; AI & Agent Building; AI-coding skill.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.