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.
npx agentmods add rules/madebyaris/rakitui-ai/go-developmentgit clone --depth 1 https://github.com/madebyaris/rakitui-aiWhat 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 | $0.00000 | $0.03385 |
| Opus 5 | $0.00000 | $0.01692 |
| Sonnet 5 | $0.00000 | $0.00677 |
| Haiku 4.5 | $0.00000 | $0.00338 |
Grade A, and why
go-development 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 2d 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 — 693 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Go Development Patterns
Idiomatic Go patterns focusing on simplicity, clarity, and concurrency.
CRITICAL: Agentic-First Go Development
Pre-Development Verification (MANDATORY)
Before writing ANY Go code:
1. CHECK GO INSTALLATION
→ run_terminal_cmd("go version")
2. VERIFY CURRENT GO VERSION (use web_search)
→ web_search("Go golang stable version December 2024")
→ Ensure go.mod uses correct version
3. CHECK EXISTING PROJECT
→ Does go.mod exist? Read it first!
→ What Go version is specified?
→ Are dependencies already present?
4. FOR NEW PROJECTS - USE go mod init
→ NEVER manually create go.mod
→ run_terminal_cmd("go mod init github.com/org/project")
CLI-First Go Development
ALWAYS use Go CLI tools:
# Project initialization (NEVER manually create go.mod)
go mod init github.com/myorg/myproject
# Add dependencies (NEVER manually edit go.mod)
go get github.com/gin-gonic/gin@latest
go get github.com/lib/[email protected]
# Verify and tidy
go mod tidy
go mod verify
# Build and test
go build ./...
go test ./...
go vet ./...
# Format (ALWAYS before committing)
go fmt ./...
gofmt -s -w .
Post-Edit Verification
After ANY Go code changes, ALWAYS run:
# Verify compilation
go build ./...
# Check for issues
go vet ./...
# Run tests
go test ./...
# Ensure dependencies are correct
go mod tidy
Common Go Syntax Traps (Avoid These!)
// WRONG: Missing error check
result, _ := doSomething() // Never ignore errors!
// CORRECT: Always handle errors
result, err := doSomething()
if err != nil {
return fmt.Errorf("doSomething failed: %w", err)
}
// WRONG: Range loop variable capture
for _, item := range items {
go func() {
process(item) // Bug! Captures loop variable
}()
}
// CORRECT: Pass as parameter
for _, item := range items {
go func(i Item) {
process(i)
}(item)
}
// WRONG: Nil map write
var m map[string]int
m["key"] = 1 // Panic!
// CORRECT: Initialize map
m := make(map[string]int)
m["key"] = 1
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.
- 2d ago First seen · 693 lines · 0 tokens per session scan A 07550177f87f
go-development is a cursor rule published in the GitHub repository madebyaris/rakitui-ai (5 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,385 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-08-31.
Other cursor rules, from other repositories
go
Cursor rule "go" from tomasz-tomczyk/crit, covering go code rules (semantic — linters handle syntax/style), struct & state integrity, code organization, git operations and daemon/server.
zz_generated.go-llm-rules
Go language-specific development guidelines and patterns.
rules-test-requirements
globs: "internal/transformer//.go,internal/runner//.go,internal/writer//.go,internal/parser//.go" description: 改 transformer / runner / writer / parser 必带 test.go 防回归.
go
Cursor rule "go" from ItamarZand88/awesome-agent-conventions, covering go language rules, error handling, naming, interfaces and concurrency.
go-backend-scalability-cursorrules-prompt-file
description: "Cursor rules for Go development with backend scalability." globs: / alwaysApply: false.
cursorrules
You are an expert Go developer working on a Model Context Protocol (MCP) server for Quip integration. Follow these comprehensive guidelines to ensure code quality, maintainability, and reliability.