go-services

go-services is a skill for Claude Code from alivirgo/Major-AI-Skills. It costs 38 tokens per session (2,360 once invoked), scanned A, original, MIT.

A guide for building web services in Go, a programming language known for small compiled programs and built-in concurrency support.

In plain words
What is it for?
Use it to structure Go modules, write REST or JSON endpoints, add middleware, fix leaked background tasks, and test services with Go's testing tools.
Why use it?
It helps keep HTTP services predictable by handling cancellation, errors, shutdown, timeouts, and tests consistently.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is go build -trimpath -ldflags="-s -w" -o bin/inventory-api ./cmd/inventory-api.

Part of the major-ai-skills plugin — 147 skills, 8 plugins shipped together

Good fit Use it to structure Go modules, write REST or JSON endpoints, add middleware, fix leaked background tasks, and test services with Go's testing tools.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/alivirgo/Major-AI-Skills
agentmods
npx agentmods add skills/alivirgo/major-ai-skills/go-services

Made for: Claude Code.

Or install major-ai-skills, the plugin that ships this one along with the rest of its 147 skills, 8 plugins.

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-services

README.md
[![agentmods](https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/go-services/github.svg)](https://agentmods.dev/skills/alivirgo/major-ai-skills/go-services)
Your own site
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/go-services"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/go-services/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-services

Your own site · 80×15
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/go-services"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/go-services.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,360 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.00038 $0.02360
Opus 5.5 $0.00015 $0.00944
Sonnet 5.5 $0.00008 $0.00472
Haiku 4.5 $0.00004 $0.00236

Measured 3d ago against content hash 0ccbb3615d7c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

go-services 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 3d 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.

skills/go-services/SKILL.md · 228 lines

How it starts

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

Go HTTP Services AI Skill Guide (Claude)

Overview & Engine Architecture

Go services ship as single static binaries: net/http (or a thin http.Handler router) accepts traffic, goroutines handle concurrency, and context.Context carries deadlines and cancellation into DB/HTTP clients. Since Go 1.22, stdlib ServeMux supports method + wildcard patterns (GET /items/{id}). Agents treat timeouts, context propagation, and deadline-bounded Shutdown as first-class contracts—not optional polish.

┌─────────────────────────────────────────────────────────────┐
│                 Go HTTP service path                          │
│                                                             │
│  main / cmd/<svc>                                           │
│  ├── signal.NotifyContext → cancel root ctx                 │
│  └── http.Server{ timeouts + Handler }                      │
│                                                             │
│  Handler stack                                              │
│  ├── middleware: recover / request-id / access log          │
│  ├── ServeMux: "METHOD /path/{id}" → handlers               │
│  └── handlers → services → stores (ctx first arg)           │
│                                                             │
│  Lifecycle                                                  │
│  ├── readiness flip → srv.Shutdown(fresh deadline ctx)      │
│  └── close pools / workers (reverse init order)             │
└─────────────────────────────────────────────────────────────┘

When to use / when not to

Use when

  • Building REST/JSON backends, workers fronted by HTTP, or internal APIs in Go.
  • Structuring cmd/ + internal/ modules, middleware, and table-driven go test.
  • Fixing leaked goroutines, ignored contexts, missing server timeouts, or broken graceful drain.

Do not use when

  • The product surface is GraphQL schema/resolvers → @graphql-apis (Go host still OK for transport).
  • You need managed PaaS Node stacks as the primary runtime → @nodejs / @express / @nextjs.
  • Someone asks to hardcode secrets, open 0.0.0.0 admin debug without auth, or disable TLS verification in prod → refuse; use env/secret stores and @docker/@vault patterns.

Read the full file on GitHub · 228 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago Changed · +105 lines · +17 tokens per session 0ccbb3615d7c
  2. 1mo ago Changed · -8 tokens per session 3e8eb5e05eb2
  3. 1mo ago First seen · 123 lines · 29 tokens per session scan A 36170b97572b

Subscribe to this mod's changes

go-services is a skill published in the GitHub repository alivirgo/Major-AI-Skills (2 stars, last pushed today), licensed MIT. It adds 38 tokens to every session and 2,360 once invoked, about $0.0002 per session on Opus 5.5. 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-09-05.

Related

Other skills, from other repositories

functions-development

Build serverless Go or Python functions for Falcon Foundry apps. TRIGGER when user asks to "create a function", "write a serverless function", "build backend logic", runs foundry functions create, or needs help with FDK handler patterns, function testing, or collection integration from functions. Also TRIGGER when…

CrowdStrike/foundry-skills · 195 tokens

Go Patterns

Use this skill when building Go services/CLIs and you want practical patterns for package layout, error handling, concurrency, and testing that keep code readable and reliable.

AmariahAK/atlarix-skills · 2 tokens

api-contract-testing

Design and review API contract tests across providers and consumers. Use for schema changes, compatibility regressions and client integration failures.

sickn33/agentic-awesome-skills · 28 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

telnyx-numbers-go

Search, order, and manage phone numbers by location, features, and coverage.

team-telnyx/ai · 23 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