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 agents/kid-sid/codex-spellbook/go-service.agentsgit clone --depth 1 https://github.com/kid-sid/codex-spellbookWrote 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/agents/kid-sid/codex-spellbook/go-service.agents)<a href="https://agentmods.dev/agents/kid-sid/codex-spellbook/go-service.agents"><img src="https://agentmods.dev/badge/agents/kid-sid/codex-spellbook/go-service.agents.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.00000 | $0.00528 |
| Opus 5 | $0.00000 | $0.00264 |
| Sonnet 5 | $0.00000 | $0.00106 |
| Haiku 4.5 | $0.00000 | $0.00053 |
Grade A, and why
go-service.agents 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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Go Service Agent Template
Purpose
Use this template for Go services built around the standard library, explicit package boundaries, and operational simplicity.
Environment Setup
Run these commands before starting work:
set -euo pipefail
bash setup-scripts/go.sh
go version
golangci-lint --version
govulncheck -version || true
Working Style
- Prefer the standard library before adding frameworks.
- Keep handlers small and push logic into testable packages.
- Model dependencies through interfaces only where more than one implementation is plausible.
- Optimize for readability over cleverness.
Go Conventions
- Keep package names short, lowercase, and domain-driven.
- Return explicit errors and wrap with context.
- Use contexts consistently for cancellation and deadlines.
- Avoid global mutable state.
HTTP and Service Design
- Use
net/httpand explicit route wiring. - Keep request parsing, validation, and response writing close to the transport layer.
- Define stable JSON contracts and error envelopes.
- Add health and readiness endpoints.
Testing
- Use table-driven tests for input matrices.
- Add subtests where they improve failure isolation.
- Keep unit tests fast and deterministic.
- Add integration tests for persistence and HTTP seams when behavior matters.
Build and Tooling
- Expose
make build,make test, andmake lintwhen a Makefile exists. - Run
gofmtandgolangci-linton touched code. - Keep module dependencies minimal and review new additions critically.
Docker
- Use multi-stage builds with a separate builder image.
- Produce a minimal runtime image when possible.
- Run the container as non-root.
Git Workflow
- Use
feat/,fix/, andchore/branch prefixes. - Use conventional commits.
- Prefer squash merges for noisy branches and merge commits for meaningful multi-step history.
Security Baseline
- Never embed credentials in code or config committed to the repo.
- Validate external input at HTTP and queue boundaries.
- Use parameterized SQL with
database/sqlor query builders. - Run
govulncheckfor dependency and standard-library issues.
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.
- 3d ago First seen · 81 lines · 0 tokens per session scan A 017f5ad4a02f
go-service.agents is an agent published in the GitHub repository kid-sid/codex-spellbook (21 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 528 tokens. 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.
Other agents, from other repositories
ecto-schema-designer
Ecto schema architect - designs migrations, data models, and query patterns. Use proactively when planning database structure for new features.
frontend-dev
Frontend Developer (Aria Chen) - React, Next.js, TypeScript, accessibility, performance.
plinth-architect
Java architecture specialist. Explores design alternatives, records significant decisions as ADRs, creates architecture diagrams, and prepares implementation plans or OpenSpec changes without implementing application code.
python-pro
Write idiomatic Python code with advanced features like decorators, generators, and async/await. Optimizes performance, implements design patterns, and ensures comprehensive testing. Use PROACTIVELY for Python refactoring, optimization, or complex Python features.
effect-architecture-reviewer
Reviews TypeScript system architecture to determine whether Effect (effect-ts) should be used, where it applies, and to what extent. Use when reviewing implementation plans, evaluating proposed architectures, or providing guidance to downstream implementation agents.
aider
Aider reads CONVENTIONS.md, .aider.conf.yml, and files you add to context.