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 $0.00000 $0.00272
Sonnet 5 $0.00000 $0.00109
Haiku 4.5 $0.00000 $0.00054

Measured 9d ago against content hash 1ae4345853b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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. 9d 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 5mo 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-polish

Polish a generated CLI to pass verification and become publish-ready. Runs diagnostics (dogfood, verify, scorecard, go vet, gosec), automatically fixes all issues (verify failures, static-analysis findings, dead code, descriptions, README, MCP tool quality), reports the before/after delta, and offers to publish. Use…

mvanhorn/cli-printing-press · 125 tokens

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

gograph

Go repository intelligence for Claude Code. Use when reading, navigating, editing, reviewing, or refactoring a Go codebase. Exposes 64 query, analysis, and workflow capabilities through the local gograph MCP server, including bounded first-call exploration, AST-aware call graphs, blast-radius analysis, impact, and…

ozgurcd/gograph · 69 tokens

swiftui-view-refactor

Refactor a SwiftUI view file for consistent property ordering, MV patterns, view model handling, and Observation usage; split an oversized body via same-file computed view properties or MARK-organized extensions. Use when asked to clean up a SwiftUI view's layout, reorder its properties, or standardize…

patrickserrano/lacquer · 103 tokens

watchos-development

Use when building or reviewing a watchOS app or WatchKit extension — app structure and independent-app configuration, Watch Connectivity / companion-app sync, complications and Smart Stack widgets, controls or Live Activities on watch, background refresh and networking limits, watchOS-specific SwiftUI design…

patrickserrano/lacquer · 71 tokens

softdev-loop

Go software-development loop — implement, test, vet; repeat until green.

rysh-ai/rysh-cli-code · 15 tokens