go

go is a skill for Claude Code, Codex from andresquirogadev/skillsense. It costs 0 tokens per session (544 once invoked), scanned A, original, MIT.

A set of coding rules for Go, a programming language. It covers project layout, error handling, and safe use of concurrent tasks called goroutines.

In plain words
What is it for?
Use it when building or reviewing Go programs, command-line applications, packages, and concurrent code.
Why use it?
It encourages clear error reporting, maintainable package boundaries, and cleanup that prevents background tasks from leaking.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building or reviewing Go programs, command-line applications, packages, and concurrent code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andresquirogadev/skillsense/go
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add andresquirogadev/skillsense --skill go
Clone the repo
git clone --depth 1 https://github.com/andresquirogadev/skillsense

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for go

README.md
[![agentmods](https://agentmods.dev/badge/skills/andresquirogadev/skillsense/go/github.svg)](https://agentmods.dev/skills/andresquirogadev/skillsense/go)
Your own site
<a href="https://agentmods.dev/skills/andresquirogadev/skillsense/go"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/go/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for go

Your own site · 80×15
<a href="https://agentmods.dev/skills/andresquirogadev/skillsense/go"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/go.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 544 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00544
Opus 5.5 $0.00000 $0.00218
Sonnet 5.5 $0.00000 $0.00109
Haiku 4.5 $0.00000 $0.00054

Measured 1mo ago against content hash 1ae4345853b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

go scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/catalog/skills/go/SKILL.md · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Go Skill

You are working on a Go project. Apply these conventions.

Project Structure

  • Follow the standard layout: cmd/<appname>/main.go, internal/, pkg/ for exported packages.
  • Keep main.go thin — instantiate dependencies and call a run() function that returns an error.
  • Use internal/ to prevent external packages from importing implementation details.

Error Handling

  • Always handle errors — never use _ for error values in production code.
  • Wrap errors with context: fmt.Errorf("loading config: %w", err).
  • Use errors.Is() and errors.As() — never compare error strings.
  • Define sentinel errors with var ErrNotFound = errors.New("not found").
  • Return early on error (if err != nil { return … }) — avoid nested if pyramids.

Goroutines & Concurrency

  • Always clean up goroutines; use context.Context for cancellation propagation.
  • Use sync.WaitGroup to wait for goroutines; use channels for communication.
  • Use sync.Mutex to protect shared state; prefer sync/atomic for simple counters.
  • Avoid goroutine leaks — every goroutine must have a clear exit condition.
  • Use errgroup.Group (from golang.org/x/sync/errgroup) for parallel work with error handling.

HTTP (net/http)

  • Go 1.22+ ServeMux supports method-specific routing: mux.HandleFunc("GET /users/{id}", handler).
  • Use http.NewRequestWithContext for all outbound HTTP requests — always pass a context with a timeout.
  • Define middleware as func(http.Handler) http.Handler.
  • Set ReadTimeout, WriteTimeout, and IdleTimeout on http.Server.

Interfaces

  • Define small, focused interfaces at the point of use (consumer side), not at the implementation.
  • Accept interfaces, return concrete types.
  • The io.Reader / io.Writer / io.Closer family of interfaces should be used for I/O abstraction.

Testing

  • Use the standard testing package; prefer table-driven tests.
  • Use t.Helper() in helper functions to get accurate line numbers on failures.
  • Use httptest.NewServer or httptest.NewRecorder for HTTP handler tests.
  • Use -race flag in CI: go test -race ./....

Read the full file on GitHub · 51 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 51 lines · 0 tokens per session scan A 1ae4345853b5

Subscribe to this mod's changes

go is a skill published in the GitHub repository andresquirogadev/skillsense (2 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 544 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

printing-press

Set up a new integration, connector, or CLI binding for any API. Wrap or generate a ship-ready Go CLI from an OpenAPI, HAR, or Postman spec via the lean research -> generate -> build -> shipcheck loop. Use when the user says build a CLI, wrap this API, set up a new integration, add a connector, integrate with a…

mvanhorn/cli-printing-press · 86 tokens

go

Use when writing, reviewing, testing, or shipping Go code and HTTP services: idioms, %w error wrapping, goroutine/context/errgroup concurrency, net/http 1.22 routing, log/slog, project layout, table-driven tests, Go hardening. NOT language-agnostic threat modeling (that is secure-coding), NOT Dockerfile/CI shipping…

ericrisco/rsc-harness · 86 tokens

go-127

What changed in Go 1.27 (released August 2026) and how it changes the way Go is written in pi-go. Use this skill when writing or reviewing Go that could use a 1.27 feature, when bumping the go directive in go.mod, when a build or test behaves differently after a toolchain upgrade, or when code-guidelines-go points…

dimetron/pi-go · 177 tokens

bubbletea-testing

Use this skill whenever writing tests for Bubble Tea (charmbracelet/bubbletea) TUI applications in Go. Triggers include any mention of testing Bubble Tea models, teatest, golden file testing for TUIs, testing tea.Cmd or tea.Msg, snapshot testing terminal output, or writing tests for any Go CLI/TUI that uses the Elm…

dimetron/pi-go · 139 tokens

design-review

Deep design review of Go codebase — naming, structure, consistency, interfaces, error handling. Scores each dimension and provides actionable fixes.

dimetron/pi-go · 30 tokens

demo-subagents-tui

This skill demonstrates how to use the agent tool to spawn subagents within the pi-go TUI for parallel task execution. Subagents are autonomous child processes that run concurrently, enabling efficient parallelization of independent tasks.

dimetron/pi-go · 0 tokens