mcpField
G
go

go

github.com/darknesskillerDevelopment0101 installsUpdated 3w ago
Repository

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

  1. 01Propagate request contexts
  2. 02Prefer explicit dependency injection
  3. 03Wrap errors with useful context
  4. 04Follow local code patterns
  5. 05Test new behavior

Use cases

  1. 01Implement a Go request handler
  2. 02Add behavior while preserving request context
  3. 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 go

After installing, type/goin Claude Code to confirm it loaded.

Bundled filesagents/openai.yaml

Details

From the project README

Go

  1. Propagate the existing request context through downstream work.
  2. Use context.Background() only at process bootstrap or intentionally detached workers.
  3. Prefer explicit code and constructor injection.
  4. Avoid package-level mutable state.
  5. Wrap errors with useful context. Never silently ignore them.
  6. Match existing project patterns before adding helpers.
  7. Add tests for new behaviour.
  8. 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