simple-go-api

simple-go-api is a skill for Claude Code, Codex from bg-vc/vc-gin-api. It costs 87 tokens per session (443 once invoked), scanned A, original, MIT.

A teaching and review guide for a small Go web API built with Gin. It follows the request path from router to handler, service, and database access layer.

In plain words
What is it for?
Use it to learn how requests flow through the project, add an endpoint or field, review the code for overengineering, or complete a guided Go backend exercise.
Why use it?
It makes the existing code easier to understand and helps keep new changes small instead of adding unnecessary structure.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/bg-vc/vc-gin-api/simple-go-api
Any agent
npx skills add bg-vc/vc-gin-api --skill simple-go-api
Clone the repo
git clone --depth 1 https://github.com/bg-vc/vc-gin-api

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 simple-go-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/bg-vc/vc-gin-api/simple-go-api.svg)](https://agentmods.dev/skills/bg-vc/vc-gin-api/simple-go-api)
Your own site
<a href="https://agentmods.dev/skills/bg-vc/vc-gin-api/simple-go-api"><img src="https://agentmods.dev/badge/skills/bg-vc/vc-gin-api/simple-go-api.svg" alt="Measured on agentmods" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 443 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00087 $0.00443
Opus 5 $0.00044 $0.00221
Sonnet 5 $0.00017 $0.00089
Haiku 4.5 $0.00009 $0.00044

Measured 4d ago against content hash 76c26f14f999, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

simple-go-api 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 4d 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.

.agents/skills/simple-go-api/SKILL.md · 42 lines

What it actually says

Work with the SIMPLE Go API

Understand the request

  1. Read AGENTS.md and the relevant README language.
  2. Locate the route, handler, service, DAO, model, and focused tests involved.
  3. Explain the current request path in five short steps before proposing a structural change.

Teach an existing flow

  1. Start at the route and follow real function calls; do not explain from generic Gin knowledge alone.
  2. Show where HTTP input becomes a model, where business decisions happen, and where SQL executes.
  3. Point out one Go concept at a time, using repository code as the example.
  4. End with one small exercise the learner can complete in under 30 minutes.

Extend the API

  1. Implement the smallest complete vertical slice through the existing layers.
  2. Reuse concrete constructors and existing response/error conventions.
  3. Keep SQL parameterized and keep secrets out of logs and tracked files.
  4. Avoid new packages and interfaces unless two existing implementations already need them.
  5. Keep Redis optional and outside the account/user request path unless the user explicitly changes that rule.
  6. Add a focused test for the changed behavior.

Check simplicity

Reject or simplify a change that introduces speculative layers, generic repositories, generated CRUD, a DI framework, runtime Codex dependencies, or infrastructure unrelated to the learning goal. Explain the concrete cost in files, concepts, or startup steps.

Verify and hand off

Run gofmt, go vet ./..., go test ./..., and govulncheck ./.... Report:

  • the request path that changed;
  • the behavior a learner can now observe;
  • the tests that passed;
  • one short next exercise.
Files

What ships with it

1 file 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. 4d ago First seen · 42 lines · 87 tokens per session scan A 76c26f14f999

Subscribe to this mod's changes

simple-go-api is a skill published in the GitHub repository bg-vc/vc-gin-api (24 stars, last pushed 23d ago), licensed MIT. It adds 87 tokens to every session and 443 once invoked, about $0.0004 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

ddd-go-backend

Build production-ready Go backend services following DDD-layered architecture. Covers project scaffolding, config (Viper), database (GORM + MySQL/PostgreSQL), object storage (S3/MinIO), OAuth2 + JWT auth, OpenTelemetry tracing + Jaeger visualization, Zap logging, middleware patterns, and API routing. Use when creating…

LSTM-Kirigaya/jinhui-skills · 98 tokens

jwx-guide-v4

Guide for developing Go applications with github.com/lestrrat-go/jwx v4 — parse/sign JWTs, work with JWS/JWE/JWK, pick algorithms, and avoid the common footguns. For developers using jwx, not for developing the library itself.

lestrrat-go/jwx · 61 tokens

jwx-companion-bulk

Apply bulk operations across all jwx companion modules. Args.

lestrrat-go/jwx · 0 tokens

human-writing

Use when writing or editing any prose in this repository - the book's preface, its chapters and epilogue, the brand kit notes, the agent skill documents, the changelog, and the root README. Also use when editing a doc comment in a .go file here. Strips the tells of AI-drafted prose (em dashes as clause separators…

kataras/jwt · 159 tokens

jwt

Development guide for the jwt JSON Web Token library for Go (github.com/kataras/jwt). Use this skill when signing or verifying JWTs, choosing a signing algorithm (HMAC, RSA, RSA-PSS, ECDSA, EdDSA), reading or validating standard or custom claims, setting expiry and clock-skew tolerance, rotating keys with a kid-based…

kataras/jwt · 107 tokens

lsp-docs

Three-tier documentation lookup for any symbol — hover → offline toolchain doc → source definition. Use when hover text is absent, insufficient, or the symbol is in an unindexed dependency.

blackwell-systems/agent-lsp · 42 tokens