go-1-21-development-standards-continued

go-1-21-development-standards-continued is a cursor rule for Cursor from beettlle/pi-spine. It costs 0 tokens per session (4,191 once invoked), scanned A, original, MIT.

A set of Go programming standards covering formatting, style, anti-patterns, and testing. Go is a programming language designed for building software such as services and command-line tools.

In plain words
What is it for?
Use it when writing or reviewing Go code, including running gofmt, applying naming and style rules, and following the listed testing practices.
Why use it?
It gives the codebase consistent conventions and helps catch patterns that make Go code harder to read, maintain, or test.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when writing or reviewing Go code, including running gofmt, applying naming and style rules, and following the listed testing practices.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/beettlle/pi-spine/go-1-21-development-standards-continued
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.

Clone the repo
git clone --depth 1 https://github.com/beettlle/pi-spine

Made for: Cursor.

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-1-21-development-standards-continued

README.md
[![agentmods](https://agentmods.dev/badge/rules/beettlle/pi-spine/go-1-21-development-standards-continued/github.svg)](https://agentmods.dev/rules/beettlle/pi-spine/go-1-21-development-standards-continued)
Your own site
<a href="https://agentmods.dev/rules/beettlle/pi-spine/go-1-21-development-standards-continued"><img src="https://agentmods.dev/badge/rules/beettlle/pi-spine/go-1-21-development-standards-continued/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-1-21-development-standards-continued

Your own site · 80×15
<a href="https://agentmods.dev/rules/beettlle/pi-spine/go-1-21-development-standards-continued"><img src="https://agentmods.dev/badge/rules/beettlle/pi-spine/go-1-21-development-standards-continued.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 4,191 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.00000 $0.04191
Opus 5.5 $0.00000 $0.01676
Sonnet 5.5 $0.00000 $0.00838
Haiku 4.5 $0.00000 $0.00419

Measured 14d ago against content hash 04934d2d27a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

go-1-21-development-standards-continued 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 14d 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.

.cursor/rules/go-1-21-development-standards-continued.mdc · 371 lines

How it starts

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

Companion to go-1-21-development-standards.mdc (same globs). Section continuity below.

Go Development Standards (continued)

Style & Formatting

2.0 Formatting (CRIT)

CRITICAL: Always use gofmt for formatting; it enforces Go's standard style.

❌ Bad: Manual formatting, inconsistent indentation, spaces instead of tabs ✅ Good: Run gofmt -w . or go fmt ./... before committing ⚠️ Why: Consistent formatting improves readability; gofmt is the standard; all Go code uses it 🔧 Fix: Use gofmt or configure editor to format on save; never manually format 📍 See: Effective Go - Formatting Detect: Inconsistent indentation, spaces for indentation, manual alignment

Formatting Rules:

  • Indentation: Use tabs (gofmt emits tabs by default)
  • Line Length: No limit; wrap if too long and indent with extra tab
  • Parentheses: Go needs fewer parentheses; control structures don't use them

Uber Style & Idioms

2.1 Prefix Unexported Globals (Style)

CRITICAL: Top-level unexported variables must have a _ prefix to avoid scope confusion. Note: This is Uber-specific style; Effective Go doesn't require this.

❌ Bad: var defaultTimeout = 10 * time.Second ✅ Good: var _defaultTimeout = 10 * time.Second ⚠️ Why: Clearly distinguishes global scope from local scope; avoids collisions 🔧 Fix: Rename unexported globals with leading underscore Detect: Top-level unexported vars without _ prefix

2.1a Source File Naming (Guidance)

Lowercase; multiple words with underscores (http_client.go). Test files: *_test.go. 📍 See: Effective Go; general-llm-anti-patterns-10-12.mdc Category 12.

2.2 Mutex Grouping (Style)

CRITICAL: Place sync.Mutex directly above the fields it protects.

❌ Bad: Mutex field far from the fields it protects ✅ Good: mu sync.Mutex; // protects:; balance int ⚠️ Why: Documentation/clarity on what the lock covers; prevents locking errors 🔧 Fix: Move mutex field; add comment indicating guarded fields Detect: sync.Mutex field at top of struct with no comments

Read the full file on GitHub · 371 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. 14d ago First seen · 371 lines · 0 tokens per session scan A 04934d2d27a9

Subscribe to this mod's changes

go-1-21-development-standards-continued is a cursor rule published in the GitHub repository beettlle/pi-spine (3 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,191 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-11-17.

Related

go-1-21-development-standards-continued compared with cursor rules from other repositories

go-1-21-development-standards-continued next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
go-1-21-development-standards-continuedbeettlle/pi-spineCursor rule3todayMITA0Cursor
gonavi-goSyngnat/GoNaviCursor rule2.1kyesterdayApache-2.0A0Cursor
backend0xJacky/nginx-uiCursor rule12ktodayAGPL-3.0A441Cursor
code-stylecoddy-project/coddy-agentCursor rule215yesterdayMITA366Cursor
gosupertokens/create-supertokens-appCursor rule245d agoApache-2.0A0Cursor
go-stdlib-firsttacoda/keystoneCursor rule444d agoMITA0Cursor
gozapstore/zspCursor rule194d agoMITA0Cursor