About go
A Go coding skill for developers working on Go code. It emphasizes context propagation, explicit dependencies, useful error handling, local project conventions, and focused tests.
Key features
- 01Propagate request contexts
- 02Prefer explicit dependency injection
- 03Wrap errors with useful context
- 04Follow local code patterns
- 05Test new behavior
Use cases
- 01Implement a Go request handler
- 02Add behavior while preserving request context
- 03Review changes for error handling and project conventions
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ darknesskiller/ skills --skill goAfter installing, type/goin Claude Code to confirm it loaded.
Bundled filesagents/openai.yaml
Details
From the project READMEGo
- Propagate the existing request context through downstream work.
- Use
context.Background()only at process bootstrap or intentionally detached workers. - Prefer explicit code and constructor injection.
- Avoid package-level mutable state.
- Wrap errors with useful context. Never silently ignore them.
- Match existing project patterns before adding helpers.
- Add tests for new behaviour.
- Avoid dependencies unless the standard library or installed packages fall short.
Completion: changed Go code preserves request context, has explicit dependencies and useful errors, follows local package patterns, and passes the narrowest relevant tests.
Comments
Markdown supported