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 agentmods add skills/fmind/dot/go-stacknpx skills add fmind/dot --skill go-stackgit clone --depth 1 https://github.com/fmind/dotWrote 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/fmind/dot/go-stack)<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>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 | $0.00039 | $0.03128 |
| Opus 5 | $0.00019 | $0.01564 |
| Sonnet 5 | $0.00008 | $0.00626 |
| Haiku 4.5 | $0.00004 | $0.00313 |
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.
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 — 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 ./...andgofumptrather than hand-porting. - Tooling split: standalone CLIs (
golangci-lint,gotestsum,air,esbuild) come frommise.toml;tooldirectives ingo.modholdtempl,goimports,gofumpt, andgovulncheck, run asgo 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+gofumptformat Go;golangci-lint(golangci.yml) enforces zero warnings;dprintkeeps config and markup per dprint. - Testing: standard
testing(starters stay dependency-free),stretchr/testifywhen richer assertions pay off, run throughgotestsum. - Logging:
log/slog—TextHandlerlocally with a dynamicslog.LevelVar,JSONHandlerin production with trace context. - Observability: OpenTelemetry for web and agents only;
SetupOTel(telemetry.go) exports OTLP and stamps trace ids on logs whenOTEL_EXPORTER_OTLP_ENDPOINTis set — see observability. - Security checks:
govulncheckischeck:vulnandgitleaksischeck:leaks; SAST is opt-in per opengrep. - Runtime defaults: Go is container-aware (no
automaxprocs); usejson:",omitzero"instead ofomitempty.
2. Project Scaffolding Workflow
- Information: define
Slug,Import Path(e.g.github.com/username/slug),Package(a valid Go identifier, usuallySlugwithout punctuation), andHolder/Year. - Bootstrap:
go mod init <import_path>records the active toolchain version ingo.mod. - Tasks and hooks by project type, saved as
mise.tomlandlefthook.yml:- Web: mise.toml + lefthook.yml (templ, Tailwind, vendor, and watch tasks).
- CLI/agent: mise-cli.toml + lefthook-cli.yml (same vocabulary, no web tasks).
- Config files:
.golangci.ymlfrom golangci.yml — replace<import_path>there and in theformat:gotask soformatandcheckagree.dprint.jsonper dprint;.air.tomlfrom air.toml (web only)..env.examplefrom env.example (uncomment what the project type uses),.gitignorefrom gitignore.AGENTS.mdfrom AGENTS.md (drop the(web)lines for CLI/agent);LICENSEper project-license.
- Toolchain:
mise trust && mise install, thengo get -tool golang.org/x/tools/cmd/goimports mvdan.cc/gofumpt golang.org/x/vuln/cmd/govulncheck(web addsgithub.com/a-h/templ/cmd/templ). - Sources:
cmd/<slug>/main.gofrom main.go (web), cli.go (CLI), or agent.go (agent, plusgo get google.golang.org/adk/v2).<package>.gofrom lib.go with lib_test.go;config/config.gofrom config.go (CLI/agent may dropPort).- Web: server.go, server_test.go, middleware.go, telemetry.go.
- Web templates and assets: layout.templ, home.templ, styles.css, app.js, user-card.js.
- Web vendoring:
scripts/vendor.gofrom vendor.go, run once byinstall:vendor.
- Validate:
git init --initial-branch=main, thenmise run install,mise run format,mise run check,mise run test; before the first commit,check:leaksscans the working tree. - Finish: keep this stack's
AGENTS.mdwhen running agent-project, writeREADME.mdper readme-agents, thengit add . && git commit -m "chore: initial commit".
What ships with it
26 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.
- references/agent.go 4.2 KB
- references/AGENTS.md 2.8 KB
- references/air.toml 621 B
- references/app.js 941 B runs code
- references/cli.go 1.2 KB
- references/config.go 1.8 KB
- references/env.example 396 B
- references/gitignore 28 B
- references/golangci.yml 1.2 KB
- references/home.templ 3.3 KB
- references/layout.templ 2.4 KB
- references/layouts.md 2.3 KB
- references/lefthook-cli.yml 505 B
- references/lefthook.yml 636 B
- references/lib_test.go 305 B
- references/lib.go 738 B
- references/main.go 2.0 KB
- references/middleware.go 3.5 KB
- references/mise-cli.toml 3.4 KB
- references/mise.toml 5.5 KB
- references/server_test.go 561 B
- references/server.go 2.6 KB
- references/styles.css 221 B
- references/telemetry.go 2.8 KB
- references/user-card.js 361 B runs code
- references/vendor.go 2.7 KB
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.
- today Changed ca8f2150b4f6
- yesterday First seen · 111 lines · 39 tokens per session scan A a2170e301d70
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.
Other skills, from other repositories
go-stack
Build Go projects, libraries, CLIs, TUIs, web apps, or ADK agents with the standard package layout and pinned tooling.
python-stack
Build typed Python projects with uv, Ruff, ty, pytest, Litestar, and Typer. Use for packages, CLIs, web apps, tests, typing, or API verification.
k8s-local
Create and manage local Kubernetes clusters (k3d or kind) and deploy to them with kubectl, helm, helmfile, and skaffold. Use for local k8s cluster setup, dev loops, and debugging.
chezmoi
Manage chezmoi dotfiles: source naming, Go templates, age-encrypted secrets, and the edit-source then apply/diff workflow.
hugo
Canonical Hugo static-site stack with the Hextra docs theme — Hugo Modules, mise tasks, dprint, lefthook, and GitHub Pages deploy. Use for documentation sites, project docs, and static websites.
mise
Configure pinned mise tools and canonical install, format, check, test, build, and watch tasks shared by hooks and CI.