go-stack

go-stack is a skill for Claude Code, Codex from fmind/dot. It costs 39 tokens per session (3,128 once invoked), scanned A, original, MIT.

A Go development guide for building applications, libraries, command-line tools, terminal interfaces, web apps, and agent backends using a consistent project structure and tool setup.

In plain words
What is it for?
Use it when starting or maintaining Go projects, including CLIs, TUIs, web applications, libraries, and Go-based agent services.
Why use it?
It removes guesswork about how to organise, format, test, lint, and run Go code across different project types.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/fmind/dot/go-stack.svg)](https://agentmods.dev/skills/fmind/dot/go-stack)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/go-stack"><img src="https://agentmods.dev/badge/skills/fmind/dot/go-stack.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,128 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.00039 $0.03128
Opus 5 $0.00019 $0.01564
Sonnet 5 $0.00008 $0.00626
Haiku 4.5 $0.00004 $0.00313

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

Security

Grade A, and why

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 today.

The scan reads SKILL.md. This mod also ships 2 executable files (references/app.js, references/user-card.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/go-stack/SKILL.md · 111 lines

How it starts

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

Go Stack Standard

Canonical Go development: scaffolding, libraries, CLI/TUI tools, GOTH web apps, and the Go API side of ADK agents. The agent workflow belongs to google-adk; content sites belong to hugo.

1. Core & Quality Stack

  • Go version: target latest stable; adopt current idioms mechanically with go fix ./... and gofumpt rather than hand-porting.
  • Tooling split: standalone CLIs (golangci-lint, gotestsum, air, esbuild) come from mise.toml; tool directives in go.mod hold templ, goimports, gofumpt, and govulncheck, run as go tool <name>.
  • Tasks and hooks: mise.toml (web) or mise-cli.toml (CLI/agent) per mise; lefthook.yml or lefthook-cli.yml per lefthook.
  • Linting and formatting: goimports + gofumpt format Go; golangci-lint (golangci.yml) enforces zero warnings; dprint keeps config and markup per dprint.
  • Testing: standard testing (starters stay dependency-free), stretchr/testify when richer assertions pay off, run through gotestsum.
  • Logging: log/slogTextHandler locally with a dynamic slog.LevelVar, JSONHandler in production with trace context.
  • Observability: OpenTelemetry for web and agents only; SetupOTel (telemetry.go) exports OTLP and stamps trace ids on logs when OTEL_EXPORTER_OTLP_ENDPOINT is set — see observability.
  • Security checks: govulncheck is check:vuln and gitleaks is check:leaks; SAST is opt-in per opengrep.
  • Runtime defaults: Go is container-aware (no automaxprocs); use json:",omitzero" instead of omitempty.

2. Project Scaffolding Workflow

  1. Information: define Slug, Import Path (e.g. github.com/username/slug), Package (a valid Go identifier, usually Slug without punctuation), and Holder/Year.
  2. Bootstrap: go mod init <import_path> records the active toolchain version in go.mod.
  3. Tasks and hooks by project type, saved as mise.toml and lefthook.yml:
  4. Config files:
    • .golangci.yml from golangci.yml — replace <import_path> there and in the format:go task so format and check agree.
    • dprint.json per dprint; .air.toml from air.toml (web only).
    • .env.example from env.example (uncomment what the project type uses), .gitignore from gitignore.
    • AGENTS.md from AGENTS.md (drop the (web) lines for CLI/agent); LICENSE per project-license.
  5. Toolchain: mise trust && mise install, then go get -tool golang.org/x/tools/cmd/goimports mvdan.cc/gofumpt golang.org/x/vuln/cmd/govulncheck (web adds github.com/a-h/templ/cmd/templ).
  6. Sources:
  7. Validate: git init --initial-branch=main, then mise run install, mise run format, mise run check, mise run test; before the first commit, check:leaks scans the working tree.
  8. Finish: keep this stack's AGENTS.md when running agent-project, write README.md per readme-agents, then git add . && git commit -m "chore: initial commit".

Read the full file on GitHub · 111 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. today Changed ca8f2150b4f6
  2. yesterday First seen · 111 lines · 39 tokens per session scan A a2170e301d70

Subscribe to this mod's changes

go-stack is a skill published in the GitHub repository fmind/dot (4 stars, last pushed today), licensed MIT. It adds 39 tokens to every session and 3,128 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-09-03.