go-api-playbook

go-api-playbook is a skill for Claude Code, Codex from toffyui/ccteams. It costs 45 tokens per session (3,268 once invoked), scanned A, original, MIT.

A working guide for building and fixing Go HTTP services. It focuses on the project’s existing routing and error style, correct handling of database resources and goroutines, and verification with race checks.

In plain words
What is it for?
Use it when changing Go API handlers, routing, middleware, database code, concurrency, or tests.
Why use it?
Go’s compiler does not catch every production problem, such as dropped errors, unfinished goroutines, unclosed database rows, or data races. The guide makes these checks part of the workflow.

Skill for Claude CodeCodex

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

Good fit Use it when changing Go API handlers, routing, middleware, database code, concurrency, or tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/toffyui/ccteams/go-api-playbook
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 toffyui/ccteams --skill go-api-playbook
Clone the repo
git clone --depth 1 https://github.com/toffyui/ccteams

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-api-playbook

README.md
[![agentmods](https://agentmods.dev/badge/skills/toffyui/ccteams/go-api-playbook.svg)](https://agentmods.dev/skills/toffyui/ccteams/go-api-playbook)
Your own site
<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>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,268 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00045 $0.03268
Opus 5 $0.00023 $0.01634
Sonnet 5 $0.00009 $0.00654
Haiku 4.5 $0.00005 $0.00327

Measured 8d ago against content hash 591559a68792, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

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.

teams/go-api/skills/go-api-playbook/SKILL.md · 207 lines

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

  1. Read go.mod before anything else. Note (a) the go directive — you may not use language features newer than it (loop-var semantics changed in 1.22, slices/maps packages need 1.21, generics need 1.18); (b) the dependency list — if chi/gin/echo/sqlx is there, the project uses it; if not, you use net/http and database/sql, never a new dependency on your own authority.
  2. 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? plain http.Error?), and middleware chaining style exactly. A "better" pattern that differs from the neighbors is a defect here.
  3. 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.
  4. 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.
  5. For every function you add, decide the ctx story out loud: I/O functions take ctx context.Context as the first parameter, received from the caller (r.Context() in handlers), never context.Background() mid-path.
  6. For every if err != nil you write, decide the wrap (see decision tree below) — the default is fmt.Errorf("what I was doing: %w", err).
  7. Run the verification recipe (below) and read your own diff line by line before handing off. Hunt specifically for _ =, missing return after error responses, and defer inside loops.

Read the full file on GitHub · 207 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. 8d ago First seen · 207 lines · 45 tokens per session scan A 591559a68792

Subscribe to this mod's changes

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.

Related

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…

Jeffallan/claude-skills · 95 tokens

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.

ardanlabs/service · 56 tokens

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.

samber/cc-skills-golang · 77 tokens

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…

samber/cc-skills-golang · 72 tokens

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…

samber/cc-skills-golang · 146 tokens

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.

hashgraph-online/awesome-codex-plugins · 40 tokens