Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add addit-digital/addit-harness/plugin install addit-harnessWrote 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/addit-digital/addit-harness/go-conventions)<a href="https://agentmods.dev/skills/addit-digital/addit-harness/go-conventions"><img src="https://agentmods.dev/badge/skills/addit-digital/addit-harness/go-conventions/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.
<a href="https://agentmods.dev/skills/addit-digital/addit-harness/go-conventions"><img src="https://agentmods.dev/badge/skills/addit-digital/addit-harness/go-conventions.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00071 | $0.01319 |
| Opus 5 | $0.00036 | $0.00660 |
| Sonnet 5 | $0.00014 | $0.00264 |
| Haiku 4.5 | $0.00007 | $0.00132 |
Grade A, and why
go-conventions 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 8d 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 — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/go-conventions — generate per-project Go conventions
Scans the current Go module and produces .claude/go-conventions.md — a
lightweight, project-specific convention reference. rules/go.md reads this
file first on every session, so conventions load cheaply without re-scanning.
When to run
- First time in a Go repo — before any substantial code work.
--refresh— when conventions have evolved or a new area has been added. Merges new patterns into the existing file; preserves hand-edits.- Prompted by a gap — if you hit a pattern the file doesn't cover while coding, append the rule inline (don't re-run the full scan).
Procedure
1. Confirm context
Verify you're in a Go repo: check for go.mod. If absent, stop and say so.
2. Scan the repo
Read these artifacts in priority order:
a. Module identity
go.mod— module path, Go version, key direct dependencies (web framework, DB driver, logging, IDs, config)
b. Existing config (if any)
.golangci.yml/.golangci.toml— enabled linters and their settingsMakefile—build,test,lint,runtargets.cursor/rules/*.mdcor.github/copilot-instructions.md— any pre-existing convention docs
c. Project layout (just list, don't read all files yet)
- Top-level dirs:
cmd/,internal/,pkg/,api/,app/, etc.
d. Representative code — read 2-3 files from each category:
- Entry point:
cmd/*.goormain.go - Domain package: a
service.go+repository.go+model.gofrom the largest domain - HTTP/transport: a handler or controller file
- Error handling: look for custom error types
- Logging: find where logs are initialized and called
3. Derive conventions
From what you read, identify the established patterns for each section below.
Only document what you actually observed — don't invent from general knowledge.
If a section has no established pattern, omit it (leave a brief # TODO: note).
Sections to cover:
- Project layout — the actual top-level structure and what lives where
- Package / module structure — how domain packages are organized (which files, naming pattern for constructors, interfaces vs structs)
- Naming — types, functions, constants, files, packages
- Dependency injection — constructor pattern (Builder? functional options? plain params?)
- Model/DTO separation — where domain entities live vs API types; how they're mapped
- Error handling — custom error types, wrapping, sentinel errors, propagation
- Logging — library, how to acquire a logger, log levels used
- Data access — DB driver, query patterns, pagination, soft delete, collection naming
- HTTP layer — router framework, handler signature, request binding, error response
- Events / async — if an event bus exists: how events are defined, published, subscribed
- Context & auth — how user/auth context flows through the system
- Validation — library, where validation happens, custom validators
- Import order — observed ordering convention
- Key libraries — for each direct dep, one-line usage note (e.g. "uuid.New() for IDs")
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.
- 8d ago First seen · 121 lines · 71 tokens per session scan A 129776ddca09
go-conventions is a skill published in the GitHub repository addit-digital/addit-harness (3 stars, last pushed 16d ago), licensed MIT. It adds 71 tokens to every session and 1,319 once invoked, about $0.0004 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.
Other skills, from other repositories
use-modern-go
Use the Modern Go Guidelines CLI whenever writing, modifying, fixing, or refactoring Go code. Apply its version-specific guidance to generated changes.
gograph
Go repository intelligence for Claude Code. Use when reading, navigating, editing, reviewing, or refactoring a Go codebase. Exposes 64 query, analysis, and workflow capabilities through the local gograph MCP server, including bounded first-call exploration, AST-aware call graphs, blast-radius analysis, impact, and…
ring:verifying-code
Verifying a Go project: runs every quality check (lint, vet, imports, format, docs, unit, integration, E2E) and returns a single MERGEREADY or NEEDSFIX verdict. Report-only: never fixes anything. Use for a quick pre-merge or pre-PR check outside a full dev-cycle. Skip when not a Go project, when you want a single…
go
Use when writing, reviewing, testing, or shipping Go code and HTTP services: idioms, %w error wrapping, goroutine/context/errgroup concurrency, net/http 1.22 routing, log/slog, project layout, table-driven tests, Go hardening. NOT language-agnostic threat modeling (that is secure-coding), NOT Dockerfile/CI shipping…
go-expert
Expert-level Go development with Go 1.22+ features, concurrency, standard library, and production-grade best practices. Use when the user mentions concurrency, microservices, or backend, or when the task involves idiomatic Go, goroutines and channels, context-based cancellation, or writing an HTTP server.
go-dependency-audit
Go dependency audit specialist for CVE scanning (govulncheck), license risk triage, outdated dependency detection, upgrade impact analysis, and supply chain security. ALWAYS use when auditing go.mod dependencies, running govulncheck, checking license compatibility, planning dependency upgrades, or investigating supply…