build-go-stack

build-go-stack is a skill for Claude Code, Codex from OlegHQ/agentpack. It costs 121 tokens per session (1,555 once invoked), scanned A, original, MIT.

A set of instructions for building and reviewing Go backend applications with Fiber, MongoDB, HTTP endpoints, and structured configuration and error handling.

In plain words
What is it for?
Use it when starting, refactoring, or reviewing Go services, APIs, persistence code, configuration, logging, and tests.
Why use it?
It gives a project a consistent approach to arranging backend code and connecting components without scattering infrastructure decisions across the codebase.

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/oleghq/agentpack/build-go-stack
Any agent
npx skills add OlegHQ/agentpack --skill build-go-stack
Clone the repo
git clone --depth 1 https://github.com/OlegHQ/agentpack

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 build-go-stack

README.md
[![agentmods](https://agentmods.dev/badge/skills/oleghq/agentpack/build-go-stack.svg)](https://agentmods.dev/skills/oleghq/agentpack/build-go-stack)
Your own site
<a href="https://agentmods.dev/skills/oleghq/agentpack/build-go-stack"><img src="https://agentmods.dev/badge/skills/oleghq/agentpack/build-go-stack.svg" alt="Measured on agentmods" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,555 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.00121 $0.01555
Opus 5 $0.00060 $0.00777
Sonnet 5 $0.00024 $0.00311
Haiku 4.5 $0.00012 $0.00155

Measured yesterday against content hash 1c075c6f6c60, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

build-go-stack 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.

.agents/skills/build-go-stack/SKILL.md · 119 lines

How it starts

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

Build Go Stack

Build an idiomatic Go backend around cmd/ and internal/. Keep repository instructions and the requested product architecture authoritative.

Start with discovery

  1. Inspect repository instructions, go.mod, build tooling, package layout, and established conventions before editing.
  2. Preserve compatible choices. Do not restructure unrelated code merely to match this skill.
  3. Read references/architecture.md before scaffolding, moving packages, selecting dependencies, or changing backend build composition.
  4. Read references/dependency-graph.md before adding component dependencies, service calls, repositories, or cross-component workflows.
  5. Read references/performance.md before changing Go tests, build targets, generation, CI caches, or developer feedback loops.
  6. Read references/configuration.md before adding configuration, environment variables, Vault, logging, startup, shutdown, or dependency construction.
  7. Read references/serialization.md before changing API types, JSON, database records, dynamic values, or layer transforms.
  8. Read references/errors.md before changing error handling, retries, HTTP responses, worker failures, cleanup, or logging.
  9. Read references/mcp.md before adding an MCP command, endpoint, transport, tool, resource, prompt, or protocol behavior.
  10. Confirm unclear behavior only when a reasonable assumption could materially change the result.

Use the standard backend layout

Use this target unless the repository has a compatible variation:

backend/
  cmd/
    api/
      main.go
      config.go
      logging.go
      bootstrap.go
      server.go
      routes/
      handlers/
      middleware/
      httpx/
      apijson/
    worker/
    mcp/
  internal/
    components/
      workspace/
      project/
      issue/
      auth/
      overview/
    infrastructure/
      mongodb/
      messages/
      queue/
  go.mod

Read the full file on GitHub · 119 lines

Files

What ships with it

8 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. yesterday First seen · 119 lines · 121 tokens per session scan A 1c075c6f6c60

Subscribe to this mod's changes

build-go-stack is a skill published in the GitHub repository OlegHQ/agentpack (14 stars, last pushed today), licensed MIT. It adds 121 tokens to every session and 1,555 once invoked, about $0.0006 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-04.