1. Habit
  2. Skills
  3. Golang Pro skill
Jeffallan · 19K installs

Golang Pro skill
Runs by itself, PR changes Go files.

Go changes that pass every gate.

Install the Golang Pro skill and make it a habit: follow https://gethabit.dev/skills/jeffallan/golang-pro.md

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

19K installs12K starsMIT licenceSource on GitHub ↗

Golang Pro

by Jeffallan · 19K installs

The skill

The golang pro skill helps agents write idiomatic Go: concurrency with goroutines and channels, gRPC or REST microservices, generics, error handling, pprof profiling and table-driven tests.

Only when you ask.

The habit

Go changes that pass every gate.

↻ Runs by itselfPR changes Go files

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleStops after one pull request and at most 2 fix retries.

  1. 01

    Read the log

    The agent reads which issues came up in earlier runs.

  2. 02

    Review the design

    It checks module structure, small interfaces and goroutine lifecycles with the matching reference file.

  3. 03

    Check the rules

    It checks context on blocking calls, explicit error handling with %w and docs on exported names.

  4. 04

    Vet and lint

    It runs go vet ./... and golangci-lint run and fixes every issue.

  5. 05

    Test with race

    It runs table-driven tests with -race and checks coverage.

  6. 06

    Write the log

    It records fixes and open points in the run log.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the Golang Pro skill helps.

Use it when

  • ✓ You build concurrent Go services
  • ✓ You write table-driven tests and benchmarks
  • ✓ You design gRPC microservices in Go

Skip it when

  • – Your project is not in Go
  • – You need only a quick script

Questions

Golang Pro skill, answered.

Which Go version does it assume?

Go 1.21 or newer.

Does it profile every change?

No. Profiling with pprof and benchmarks fit performance work, not every pull request.

How do I install the Golang Pro skill?

Copy the prompt at the top into your agent. It installs the skill from Jeffallan/claude-skills and sets up the habit. Or run npx skills add Jeffallan/claude-skills --skill golang-pro.

Is the Golang Pro skill free?

Yes. It is published under MIT. Habit is free too.

Golang Pro. Now as a habit.

Install the Golang Pro skill and make it a habit: follow https://gethabit.dev/skills/jeffallan/golang-pro.md

  • Free
  • No account
  • Undo in one line

All Jeffallan skills →More code skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by Jeffallan, published under MIT. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.