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.
npx skills add toffyui/ccteams --skill go-api-playbookgit clone --depth 1 https://github.com/toffyui/ccteamsWrote 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/toffyui/ccteams/go-api-playbook)<a href="https://agentmods.dev/skills/toffyui/ccteams/go-api-playbook"><img src="https://agentmods.dev/badge/skills/toffyui/ccteams/go-api-playbook.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
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.00045 | $0.03268 |
| Opus 5 | $0.00023 | $0.01634 |
| Sonnet 5 | $0.00009 | $0.00654 |
| Haiku 4.5 | $0.00005 | $0.00327 |
Grade A, and why
go-api-playbook 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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Go API Playbook
This is the literal procedure a frontier model follows when building or fixing Go HTTP services. Follow it step by step; the order is the point. Go's compiler catches type errors but is silent about the mistakes that actually ship bugs — dropped errors, leaked goroutines, unclosed rows — so those checks are yours.
Operating loop
- Read
go.modbefore anything else. Note (a) thegodirective — you may not use language features newer than it (loop-var semantics changed in 1.22,slices/mapspackages need 1.21, generics need 1.18); (b) the dependency list — ifchi/gin/echo/sqlxis there, the project uses it; if not, you usenet/httpanddatabase/sql, never a new dependency on your own authority. - Find the local dialect and mirror it. Before writing a handler, read two
existing ones:
grep -rn "http.ResponseWriter" --include="*.go" .— copy the project's routing registration, error-response shape (JSON envelope? plainhttp.Error?), and middleware chaining style exactly. A "better" pattern that differs from the neighbors is a defect here. - Place code where the package layout says it goes. Match existing package
boundaries (
internal/,cmd/, handler vs service vs store layers). Do not invent a new package for one function. - Write the smallest coherent change, then immediately run
go build ./.... Build after every file, not at the end — Go's unused import/variable errors compound fast. - For every function you add, decide the ctx story out loud: I/O functions
take
ctx context.Contextas the first parameter, received from the caller (r.Context()in handlers), nevercontext.Background()mid-path. - For every
if err != nilyou write, decide the wrap (see decision tree below) — the default isfmt.Errorf("what I was doing: %w", err). - Run the verification recipe (below) and read your own diff line by line
before handing off. Hunt specifically for
_ =, missingreturnafter error responses, anddeferinside loops.
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.
- 8d ago First seen · 207 lines · 45 tokens per session scan A 591559a68792
go-api-playbook is a skill published in the GitHub repository toffyui/ccteams (47 stars, last pushed 7d ago), licensed MIT. It adds 45 tokens to every session and 3,268 once invoked, about $0.0002 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-08-30.
Other skills, from other repositories
golang-pro
Implements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST, optimizes Go application performance with pprof, and enforces idiomatic Go with generics, interfaces, and robust error handling. Use when building Go applications requiring concurrent programming…
layered-architecture-types
Enforce primitive-at-edges / strong-types-in-Business layering and the toBus/fromBusResponse/toDB converter pattern. Use when writing, editing, or auditing Go files under app/, business/domain/, or .../stores/db.
golang-graphql
Implements GraphQL APIs in Golang using gqlgen or graphql-go. Apply when building GraphQL servers, designing schemas, writing resolvers, handling subscriptions, or integrating GraphQL with existing Go HTTP services. Also apply when the codebase imports github.com/99designs/gqlgen or github.com/graph-gophers/graphql-go.
golang-grpc
Provides gRPC usage guidelines, protobuf organization, and production-ready patterns for Golang microservices. Use when implementing, reviewing, or debugging gRPC servers/clients, writing proto files, setting up interceptors, handling gRPC errors with status codes, configuring TLS/mTLS, testing with bufconn, or…
golang-swagger
Golang OpenAPI/Swagger documentation with swaggo/swag — annotation comments (@Summary, @Param, @Success, @Router, @Security), swag init code generation, framework integrations (gin, echo, fiber, chi, net/http), security definitions (Bearer/JWT, OAuth2, API key), and struct tags (swaggertype, enums, example…
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.