go-architect

go-architect is a skill for Claude Code, Codex from existential-birds/beagle. It costs 45 tokens per session (2,349 once invoked), scanned A, original, Apache-2.0.

A guide for designing Go applications, especially HTTP servers, project structure, shutdown handling, and dependency setup. Dependency injection means passing services such as databases into components instead of hiding them in global variables.

In plain words
What is it for?
Use it when building Go web servers, arranging a Go project, connecting services and databases, or designing testable application dependencies.
Why use it?
It helps keep application wiring visible and makes code easier to change and test. It also provides structure for shutting down servers safely and choosing between simple and modular layouts.

Skill for Claude CodeCodex

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

Good fit Use it when building Go web servers, arranging a Go project, connecting services and databases, or designing testable application dependencies.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/existential-birds/beagle/go-architect/github.svg)](https://agentmods.dev/skills/existential-birds/beagle/go-architect)
Your own site
<a href="https://agentmods.dev/skills/existential-birds/beagle/go-architect"><img src="https://agentmods.dev/badge/skills/existential-birds/beagle/go-architect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for go-architect

Your own site · 80×15
<a href="https://agentmods.dev/skills/existential-birds/beagle/go-architect"><img src="https://agentmods.dev/badge/skills/existential-birds/beagle/go-architect.svg" alt="Reviewed on agentmods" width="80" 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 2,349 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.
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.02349
Opus 5.5 $0.00018 $0.00940
Sonnet 5.5 $0.00009 $0.00470
Haiku 4.5 $0.00005 $0.00235

Measured 4d ago against content hash 79c15bcb6b67, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

go-architect 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.

skills/go-architect/SKILL.md · 259 lines

How it starts

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

Lead Go Architect

Quick Reference

Topic Reference
Flat vs modular project layout, migration signals references/project-structure.md
Graceful shutdown with signal handling references/graceful-shutdown.md
Dependency injection patterns, testing seams references/dependency-injection.md

Core Principles

  1. Standard library first -- Use net/http and the Go 1.22+ enhanced ServeMux for routing. Only reach for a framework (chi, echo, gin) when you have a concrete need the stdlib cannot satisfy (e.g., complex middleware chains, regex routes).
  2. Dependency injection over globals -- Pass databases, loggers, and services through struct fields and constructors, never package-level var.
  3. Explicit over magic -- No init() side effects, no framework auto-wiring. main.go is the composition root where everything is assembled visibly.
  4. Small interfaces, big structs -- Define interfaces at the consumer, keep them narrow (1-3 methods). Concrete types carry the implementation.

Hard gates

Use this sequence when implementing or reviewing work that claims to follow this skill. Do not skip ahead; each step has a pass condition you can answer with tooling or a concrete file path.

  1. Toolchain vs APIs — If the code uses Go 1.22+ ServeMux features (method+path patterns like "GET /x/{id}", r.PathValue, or {path...}), or Go 1.23+ r.Pattern / Go 1.24+ slog.DiscardHandler: run go version (or check go.mod) and pass only if the reported toolchain supports those APIs. If the project must stay on an older Go, pass only by not using those APIs and saying so in the review or PR.
  2. Composition root — Pass when main.go or cmd/.../main.go visibly constructs the server and injects shared dependencies (DB, logger, config). Fail if shared dependencies are wired in init() or package-level var instead of explicit construction in main (or a run() called from main).
  3. Production HTTP shutdown — For a long-lived HTTP service, pass only if shutdown uses http.Server.Shutdown with a bounded context (e.g. context.WithTimeout) after waiting on signal.NotifyContext (or equivalent). Cite the file path when reporting; see references/graceful-shutdown.md for the full pattern.
  4. No env/globals in handlers — Pass when handlers and domain code take dependencies via structs/arguments. Fail if handlers read os.Getenv for secrets or use package-level var for DB/clients (loading env in main or a dedicated config package is fine).

Read the full file on GitHub · 259 lines

Files

What ships with it

3 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. 4d ago Changed · +25 lines 79c15bcb6b67
  2. 2mo ago First seen · 234 lines · 45 tokens per session scan A a37b19fc9a40

Subscribe to this mod's changes

go-architect is a skill published in the GitHub repository existential-birds/beagle (91 stars, last pushed 4d ago), licensed Apache-2.0. It adds 45 tokens to every session and 2,349 once invoked, about $0.0002 per session on Opus 5.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-16.

Related

go-architect compared with skills from other repositories

go-architect next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
go-architectexistential-birds/beagleSkill914d agoApache-2.0A45Claude Code, Codex
python-servicesiliaal/whetstoneSkill37yesterdayMITA48Claude Code, Codex
functions-developmentCrowdStrike/foundry-skillsSkill3810d agoMITA195Claude Code
django-forgevikisingh23/neuraforge-aiSkill44d agoApache-2.0A22Claude Code
python-coreadonai-labs/agent-runwaySkill24d agoMITA76Claude Code, Codex
go-coreadonai-labs/agent-runwaySkill24d agoMITA76Claude Code, Codex
python-backend-expertmathisk2095/jko-claude-pluginsSkill31mo agoMITA183Claude Code