golang-manual-di

golang-manual-di is a skill for Claude Code, Codex from soulcodex/agentic. It costs 97 tokens per session (3,316 once invoked), scanned A, original, MIT.

A guide to wiring dependencies manually in Go services. Dependency injection means constructing shared parts, such as databases and clients, and passing them to the code that needs them.

In plain words
What is it for?
Use it to assemble Go services, build infrastructure clients, start servers or workers, manage shutdown signals, register buses, and add tracing wrappers.
Why use it?
It provides consistent naming and startup patterns without code generation or a dependency-injection container, while making failure risks visible.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; mentions OpenCode.

Good fit Use it to assemble Go services, build infrastructure clients, start servers or workers, manage shutdown signals, register buses, and add tracing wrappers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/soulcodex/agentic/golang-manual-di
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 soulcodex/agentic --skill golang-manual-di
Clone the repo
git clone --depth 1 https://github.com/soulcodex/agentic

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 golang-manual-di

README.md
[![agentmods](https://agentmods.dev/badge/skills/soulcodex/agentic/golang-manual-di/github.svg)](https://agentmods.dev/skills/soulcodex/agentic/golang-manual-di)
Your own site
<a href="https://agentmods.dev/skills/soulcodex/agentic/golang-manual-di"><img src="https://agentmods.dev/badge/skills/soulcodex/agentic/golang-manual-di/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 golang-manual-di

Your own site · 80×15
<a href="https://agentmods.dev/skills/soulcodex/agentic/golang-manual-di"><img src="https://agentmods.dev/badge/skills/soulcodex/agentic/golang-manual-di.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,316 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00097 $0.03316
Opus 5 $0.00048 $0.01658
Sonnet 5 $0.00019 $0.00663
Haiku 4.5 $0.00010 $0.00332

Measured 12d ago against content hash ffeaf637505c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

golang-manual-di 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 12d 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/backend/golang-manual-di/SKILL.md · 330 lines

How it starts

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

Manual Dependency Injection for Go Services

This skill walks through the 7-step process for wiring a Go service by hand — no code generation, no reflection containers. Each step maps to patterns observed in production cmd/di/ packages.


Naming Convention Taxonomy

Every function in the DI layer follows one of three tiers that communicate risk to the reader:

Pattern Intent Risk
Provide…() / provide…() Returns a value, no possible failure None — safe to call anywhere
MustProvide…() / mustProvide…() Builds infra that can panic on misconfiguration Panics on bad config
Must…() / must…() Starts a long-running service/process Panics, process-level

Rules:

  • Provide tier — Use for infallible constructors. Functions that do no I/O and cannot fail. Example: provideLogger(cfg LogConfig) zerolog.Logger. Never use Must here.
  • MustProvide tier — Use for infrastructure builders that can panic (DB pools, cloud clients, OTEL init). The risk is confined to the init path — if it panics, the service never starts.
  • Must tier — Use for entrypoints that spin up goroutines running servers or workers. The risk is process-level — if it panics, the process terminates.

Decision flowchart:

  1. Does the function return a value? → If NO → skip to question 2. If YES → Go to question 3.
  2. Does it perform side-effectful bootstrap that wires a global? (e.g. OTEL SDK init) → If YES → use init… (the only valid use). If NO → error — every function must return a value or be a true bootstrap.
  3. Does the function do I/O or have a failure path? → If NO → Use Provide tier. If YES → Can it panic instead of returning an error? → If YES → Use MustProvide tier (for infra) or Must tier (for entrypoints). If NO → Return (T, error) instead.

Note on init…:

The init… prefix is reserved only for true one-shot side-effectful bootstrap that wires a global and does not return a usable value. Example: mustInitOTEL(ctx, cfg) wires the OTEL SDK as a global and returns nothing. Every other function that constructs and returns a dependency must use Provide… or MustProvide….

Read the full file on GitHub · 330 lines

Files

What ships with it

1 file 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. 12d ago First seen · 330 lines · 97 tokens per session scan A ffeaf637505c

Subscribe to this mod's changes

golang-manual-di is a skill published in the GitHub repository soulcodex/agentic (10 stars, last pushed 8d ago), licensed MIT. It adds 97 tokens to every session and 3,316 once invoked, about $0.0005 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-08-31.

Related

Other skills, from other repositories

printing-press-amend

Amend a published CLI from one of two input sources: (1) dogfood mode mines the active Claude Code session transcript for friction (missing flags, hand- rolled API payloads, silent-null returns); (2) direct-input mode accepts user-supplied asks (rename a command, add commands or feeds, fix a named bug, optionally…

mvanhorn/cli-printing-press · 222 tokens

printing-press

Set up a new integration, connector, or CLI binding for any API. Wrap or generate a ship-ready Go CLI from an OpenAPI, HAR, or Postman spec via the lean research -> generate -> build -> shipcheck loop. Use when the user says build a CLI, wrap this API, set up a new integration, add a connector, integrate with a…

mvanhorn/cli-printing-press · 86 tokens

scaffold-project

Scaffold a new app, API, backend, fullstack project, mobile app, polyglot service, monorepo, or starter with Better Fullstack. Use when the user wants to create, start, bootstrap, initialize, or generate a project from a stack description. Prefer the bundled Better Fullstack MCP server: guidance, schema…

Marve10s/Better-Fullstack · 80 tokens

write-microflows

Microflow syntax reference in MDL — every activity type, control flow, expressions, and the mistakes that fail mxcli check. Use before writing any CREATE MICROFLOW, and when debugging a microflow syntax error.

mendixlabs/mxcli · 49 tokens

json-structures-and-mappings

Create and manage JSON structures, import mappings and export mappings in MDL, plus the domain-model shapes they map onto. Use when turning a JSON payload into entities, mapping a REST or queue response, or exporting objects as JSON.

mendixlabs/mxcli · 53 tokens

database-connections

Connect a Mendix app to an external database over JDBC with the External Database Connector, and define the queries microflows run against it. Use when the app must read or write Oracle, PostgreSQL, MySQL or SQL Server directly from a microflow.

mendixlabs/mxcli · 55 tokens