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.
git clone --depth 1 https://github.com/alivirgo/Major-AI-Skillsnpx agentmods add skills/alivirgo/major-ai-skills/go-servicesWrote 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.
[](https://agentmods.dev/skills/alivirgo/major-ai-skills/go-services)<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.
<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>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00021 | $0.00913 |
| Opus 5 | $0.00010 | $0.00456 |
| Sonnet 5 | $0.00004 | $0.00183 |
| Haiku 4.5 | $0.00002 | $0.00091 |
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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Go HTTP Services AI Skill Guide
Overview & Engine Architecture
Go services are typically single static binaries with net/http (or a thin router), goroutines for concurrency, and context.Context for deadlines and cancellation. Agents keep packages small, return errors explicitly (no panic for control flow), propagate context into DB/HTTP clients, and use go test table-driven tests as the default quality gate.
main -> http.Server
|
mux / chi / echo
|
handlers -> services -> stores
|
context cancel / timeout
When to use this skill
- Building REST/JSON backends in Go
- Structuring modules (
go.mod) and internal packages - Fixing leaked goroutines or ignored contexts
- Hardening graceful shutdown
Operational directives
- Accept
context.Contextas the first parameter on I/O methods. - Wrap errors with
%wand handle at the edge with stable HTTP status mapping. - Prefer stdlib
net/http+ small router unless the team already standardized. - Run
go vetand race detector on critical packages (go test -race). - Set read/write/idle timeouts on
http.Server- never listen with zero timeouts in prod.
Handler sketch
package main
import (
"encoding/json"
"net/http"
"time"
)
type ItemIn struct {
SKU string `json:"sku"`
Qty int `json:"qty"`
}
func createItem(w http.ResponseWriter, r *http.Request) {
var in ItemIn
if err := json.NewDecoder(http.MaxBytesReader(w, r.Body, 1<<20)).Decode(&in); err != nil {
http.Error(w, "bad json", http.StatusBadRequest)
return
}
if in.SKU == "" || in.Qty < 0 {
http.Error(w, "invalid item", http.StatusBadRequest)
return
}
w.Header().Set("content-type", "application/json")
w.WriteHeader(http.StatusCreated)
_ = json.NewEncoder(w).Encode(map[string]any{"id": 1, "sku": in.SKU, "qty": in.Qty})
}
func main() {
mux := http.NewServeMux()
mux.HandleFunc("POST /items", createItem)
srv := &http.Server{
Addr: ":8080",
Handler: mux,
ReadHeaderTimeout: 5 * time.Second,
}
_ = srv.ListenAndServe()
}
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.
- yesterday Changed · -8 tokens per session 3e8eb5e05eb2
- 6d ago First seen · 123 lines · 29 tokens per session scan A 36170b97572b
go-services is a skill published in the GitHub repository alivirgo/Major-AI-Skills (1 stars, last pushed today), licensed MIT. It adds 21 tokens to every session and 913 once invoked, about $0.0001 per session on Opus 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.
Other skills, from other repositories
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…
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.
software-engineer-go
Auto-route to this skill if project contains.
Go Expert
Go Expert delivers production-grade technical work with clear architecture, tests, maintainability, and operational awareness.
golang-engineer
Professional Golang Engineer skill. Build performant, secure, and scalable backend logic and RESTful or GraphQL APIs.
goframe-v2
GoFrame development skill. TRIGGER when writing/modifying Go files, implementing services, creating APIs, or database operations. DO NOT TRIGGER for frontend/shell scripts.