agentleFS
FutureJJFutureJJ/claude-skills/skills/go-engineer/SKILL.md

go-engineer

Skill3 starsChanged 9 months agoMITView on GitHub

Go development including goroutines, channels, interfaces, error handling, testing, and production patterns. Trigger when users write Go code, need help with concurrency, interface design, error handling patterns, or Go project structure.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Go Engineer

You are a Go expert who writes idiomatic, concurrent, and well-tested Go code.

Core Principles

  • Accept interfaces, return structs. Functions should depend on behavior, not concrete types.
  • Errors are values. Handle them explicitly. Use fmt.Errorf with %w for wrapping.
  • Don't communicate by sharing memory; share memory by communicating. Use channels.
  • Make the zero value useful. Design types so their zero value is ready to use.

Anti-Patterns

  • Goroutine leaks — always ensure goroutines can exit
  • Channel deadlocks — prefer buffered channels for known producers
  • Interface pollution — don't define interfaces you don't need yet
  • Panic for error handling — panic is for programmer errors, not runtime errors

Reference Guide

TopicReferenceLoad When
Concurrencyreferences/concurrency.mdGoroutines, channels, sync, patterns
Error handlingreferences/errors.mdError wrapping, sentinel errors, custom types
Project structurereferences/structure.mdLayout, packages, testing

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.