senior-go
Skill2 starsChanged 6 days agoMITView on GitHub
Use when designing, implementing, debugging, reviewing, or refactoring Go services, CLIs, or libraries, including packages and interfaces, error handling, context, goroutines and channels, concurrency, HTTP or gRPC servers, database access, modules, tests, benchmarks, or profiling.
In this repository50 other files it gives its agents.
- angular-standardSkill
- business-analyst-standardSkill
- execute-browser-verifySkill
- execute-build-testSkill
- execute-debug-evidenceSkill
- execute-implementationSkill
- jira-ba-dev-test-flowSkill
- nestjs-standardSkill
- professional-slidesSkill
- python-standardSkill
- senior-angularSkill
- senior-api-designSkill
- senior-backend-engineerSkill
- senior-business-analystSkill
- senior-cicdSkill
- senior-cloud-serverSkill
- senior-code-reviewSkill
- senior-delivery-orchestratorSkill
- senior-designSkill
- senior-dockerSkill
- senior-dotnetSkill
- senior-flutterSkill
- senior-frontend-engineerSkill
- senior-git-workflowSkill
- senior-java-springSkill
- senior-kubernetesSkill
- senior-manual-testingSkill
- senior-mongodbSkill
- senior-mysqlSkill
- senior-nestjsSkill
- senior-nextjsSkill
- senior-nodejsSkill
- senior-observabilitySkill
- senior-performanceSkill
- senior-postgresqlSkill
- senior-python-backendSkill
- senior-react-nativeSkill
- senior-reactSkill
- senior-redisSkill
- senior-refactoringSkill
- senior-securitySkill
- senior-sql-serverSkill
- senior-tech-leadSkill
- senior-technical-writingSkill
- senior-terraformSkill
- senior-test-automationSkill
- senior-test-engineerSkill
- senior-vueSkill
- solution-architect-standardSkill
- tester-standardSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Write idiomatic Go: small packages with clear APIs, explicit error handling, context-aware and leak-free concurrency, and code that go vet …
- Distinctive: line 16
Follow the existing structure.
- Very specific: line 22
Every goroutine needs a clear owner and exit path.
- Distinctive: line 25
Use parameterized queries, validate input, and never log secrets.
- Very specific: line 29
Run gofmt/goimports, go vet, the project's linter, and go test ./...
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Senior Go
Role
Write idiomatic Go: small packages with clear APIs, explicit error handling, context-aware and leak-free concurrency, and code that go vet and the race detector accept.
Before Editing
- Inspect Go version, module layout (
cmd/,internal/,pkg/), HTTP/gRPC framework, database layer (database/sql, sqlx, pgx, GORM, sqlc), configuration, logging (slog, zap, zerolog), linters (golangci-lint), and test conventions. - Trace the request or job from handler through context, validation, service logic, storage, and external calls.
- Follow the existing structure; do not add a framework, DI container, or abstraction layer for one change.
Implementation Rules
- Return errors, do not panic, in library and request paths. Wrap with context (
fmt.Errorf("load user %d: %w", id, err)) and check witherrors.Is/errors.As. Never ignore an error silently. - Accept
context.Contextas the first parameter for request-scoped work; respect cancellation and deadlines in I/O and loops. - Every goroutine needs a clear owner and exit path. Use
errgroup,sync.WaitGroup, or channels with defined close semantics; protect shared state with mutexes or confine it to one goroutine. - Define small interfaces where they are consumed, not where implemented. Keep exported API surface minimal and documented.
- Close resources (
defer rows.Close(), response bodies) and checkrows.Err(). Set timeouts on HTTP clients and servers. - Use parameterized queries, validate input, and never log secrets. Use structured logging consistent with the project.
Testing and Verification
Run gofmt/goimports, go vet, the project's linter, and go test ./... -race. Prefer table-driven tests; add benchmarks for performance-sensitive changes and use pprof for evidence.
Review Checklist
- Are all errors handled or deliberately returned with context?
- Can any goroutine leak, deadlock, or race?
- Is context propagated and honored for I/O?
- Are interfaces and packages small, and is the exported API intentional?
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
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.

