go-conventions

go-conventions is a skill for Claude Code from addit-digital/addit-harness. It costs 71 tokens per session (1,319 once invoked), scanned A, original, MIT.

A skill that scans a Go repository and creates a project-specific file of coding conventions. Go is a programming language, and a repository is a project's code and related files.

In plain words
What is it for?
Use it when starting substantial work in a new Go project or refreshing conventions after the codebase changes; it requires a go.mod file.
Why use it?
The agent can load the saved conventions at the start of each session instead of scanning the whole project again.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions CLAUDE.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the addit-harness plugin — 6 skills, 6 commands, 14 agents, 1 hook shipped together

Good fit Use it when starting substantial work in a new Go project or refreshing conventions after the codebase changes; it requires a go.mod file.

Compare 6 skills from other repositories ↓
Install

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.

Claude Code
/plugin marketplace add addit-digital/addit-harness
Claude Code
/plugin install addit-harness

Made for: Claude Code.

Or install addit-harness, the plugin that ships this one along with the rest of its 6 skills, 6 commands, 14 agents, 1 hook.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/addit-digital/addit-harness/go-conventions/github.svg)](https://agentmods.dev/skills/addit-digital/addit-harness/go-conventions)
Your own site
<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.

agentmods 80×15 button for go-conventions

Your own site · 80×15
<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>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,319 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.00071 $0.01319
Opus 5 $0.00036 $0.00660
Sonnet 5 $0.00014 $0.00264
Haiku 4.5 $0.00007 $0.00132

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

Security

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.

skills/go-conventions/SKILL.md · 121 lines

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 settings
  • Makefilebuild, test, lint, run targets
  • .cursor/rules/*.mdc or .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/*.go or main.go
  • Domain package: a service.go + repository.go + model.go from 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:

  1. Project layout — the actual top-level structure and what lives where
  2. Package / module structure — how domain packages are organized (which files, naming pattern for constructors, interfaces vs structs)
  3. Naming — types, functions, constants, files, packages
  4. Dependency injection — constructor pattern (Builder? functional options? plain params?)
  5. Model/DTO separation — where domain entities live vs API types; how they're mapped
  6. Error handling — custom error types, wrapping, sentinel errors, propagation
  7. Logging — library, how to acquire a logger, log levels used
  8. Data access — DB driver, query patterns, pagination, soft delete, collection naming
  9. HTTP layer — router framework, handler signature, request binding, error response
  10. Events / async — if an event bus exists: how events are defined, published, subscribed
  11. Context & auth — how user/auth context flows through the system
  12. Validation — library, where validation happens, custom validators
  13. Import order — observed ordering convention
  14. Key libraries — for each direct dep, one-line usage note (e.g. "uuid.New() for IDs")

Read the full file on GitHub · 121 lines

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. 8d ago First seen · 121 lines · 71 tokens per session scan A 129776ddca09

Subscribe to this mod's changes

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.

Related

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.

JetBrains/go-modern-guidelines · 32 tokens

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…

ozgurcd/gograph · 69 tokens

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…

LerianStudio/ring · 101 tokens

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…

ericrisco/rsc-harness · 86 tokens

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.

personamanagmentlayer/pcl · 65 tokens

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…

johnqtcg/awesome-skills · 102 tokens