Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/dimetron/pi-gonpx agentmods add skills/dimetron/pi-go/code-guidelines-goWrote 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/dimetron/pi-go/code-guidelines-go)<a href="https://agentmods.dev/skills/dimetron/pi-go/code-guidelines-go"><img src="https://agentmods.dev/badge/skills/dimetron/pi-go/code-guidelines-go/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/dimetron/pi-go/code-guidelines-go"><img src="https://agentmods.dev/badge/skills/dimetron/pi-go/code-guidelines-go.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00124 | $0.06233 |
| Opus 5.5 | $0.00050 | $0.02493 |
| Sonnet 5.5 | $0.00025 | $0.01247 |
| Haiku 4.5 | $0.00012 | $0.00623 |
Grade A, and why
code-guidelines-go 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 1mo 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 — 697 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Go 1.24–1.27 Coding Guidelines — pi-go
Project: github.com/dimetron/pi-go — Go-native AI coding agent runtime
Layout: cmd/pi/ · internal/ · .pi-go/ · .vibe/compiled/ · scripts/
Min version: Go 1.24 (tool directive support) | Target: Go 1.27
For what Go 1.27 changed — generic methods, struct-literal field selectors,
encoding/json/v2, the stdlibuuidpackage, removals that break a build, and theGOEXPERIMENT=nonetrap on this machine — see thego-127skill.
1. Style & Naming
Packages
- Short, lowercase, singular, no underscores:
config✓agentUtils✗ - No stutter: package
agent→type Runner(notAgentRunner) - Never
util,common,types,helpers
Identifiers
- Receivers: 1–2 chars from type name, consistent across all methods, never
self/this - Acronyms full caps:
ID,URL,HTTP,LLM— enforced by staticcheck - Short names in small scopes (
i,ctx,err), descriptive in large scopes
// ✓ Correct
func (r *Runner) Execute(ctx context.Context) error { ... }
func (r *Runner) Stop() { ... }
// ✗ Wrong
func (self *Runner) Execute(ctx context.Context) error { ... }
func (runner *Runner) Stop() { ... }
Interfaces
- Define at the consumer, not producer
- 1–3 methods; single-method uses
-ersuffix (Reader,Handler,Closer) - Accept interfaces, return concrete structs
// consumer defines what it needs (internal/agent/)
type LLMClient interface {
Complete(ctx context.Context, prompt string) (string, error)
}
// producer returns concrete struct (internal/llm/)
func NewOpenAIClient(apiKey string) *OpenAIClient { ... }
Godoc
Every exported name starts its comment with the name itself:
// Package agent provides the core AI agent runtime for pi-go.
package agent
// Runner orchestrates tool calls and LLM interactions.
type Runner struct { ... }
// Execute runs the agent loop until completion or context cancellation.
func (r *Runner) Execute(ctx context.Context, task string) error { ... }
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.
- 1mo ago First seen · 697 lines · 124 tokens per session scan A 2988e1289657
code-guidelines-go is a skill published in the GitHub repository dimetron/pi-go (211 stars, last pushed 2d ago), licensed MIT. It adds 124 tokens to every session and 6,233 once invoked, about $0.0005 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-08-30.
Other skills, from other repositories
ci-orchestrator
Run a CI-like pipeline locally (format, lint, vet, static-analysis, tests) and summarize per-step results with remediation guidance.
code-review
Run a thorough self-review pass on the most recent change.
test-fix
Diagnose and minimally fix a failing test, then re-run.
go-conventions
Go code conventions covering Effective Go, error wrapping, golangci-lint, govulncheck, table-driven tests, interfaces, context usage, modules, and concurrency. Load when writing or reviewing Go code.
pixiv-cli-review
Review pixiv-cli working changes, commits, or pull requests for requested behavior, Go design, SDK/CLI/MCP contracts, security, native boundaries, and verification gaps. Use for independent review or pre-delivery self-review; review-only unless edits are authorized.
code-review-go
Deep Go-specific code review covering goroutine lifecycle, data races, error wrapping, domain modeling, and interface design. Applied in addition to the generic code-review skill when Go code is detected. Invoked when reviewing Go PRs, Go code changes, or performing Go-specific quality checks.