Borrowing it
Nothing to install: this file belongs to PascaleBeier/hitkeep. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/PascaleBeier/hitkeep/main/.agents/skills/go/SKILL.mdgit clone --depth 1 https://github.com/PascaleBeier/hitkeepWrote 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/pascalebeier/hitkeep/go)<a href="https://agentmods.dev/skills/pascalebeier/hitkeep/go"><img src="https://agentmods.dev/badge/skills/pascalebeier/hitkeep/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/pascalebeier/hitkeep/go"><img src="https://agentmods.dev/badge/skills/pascalebeier/hitkeep/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.00113 | $0.06969 |
| Opus 5.5 | $0.00045 | $0.02788 |
| Sonnet 5.5 | $0.00023 | $0.01394 |
| Haiku 4.5 | $0.00011 | $0.00697 |
Grade A, and why
go scanned grade A with 1 finding 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 3mo 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
return fetch(ctx, url) This is a copy
86% identical to go — 670 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 802 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Idiomatic Go: The Go Way
Idiomatic Go patterns and best practices for building robust, efficient, and maintainable applications.
When to Activate
- Writing new Go code
- Reviewing or auditing existing Go code
- Refactoring Go code (especially code that looks like Java/Spring Boot patterns in Go)
- Designing Go packages, modules, or APIs
- Choosing between stdlib and third-party libraries
- Any question about Go project structure, error handling, concurrency, or testing
Core Principles
1. Clear is Better than Clever
Go favors readability and simplicity over abstraction and cleverness. Code should be obvious. If you have to read a function three times to understand its control flow, it needs to be rewritten.
// Idiomatic: Direct, linear control flow. Note: no "Get" prefix — Go omits it.
func LookupUser(id string) (*User, error) {
user, err := db.FindUser(id)
if err != nil {
return nil, fmt.Errorf("finding user %s: %w", id, err)
}
return user, nil
}
2. Make the Zero Value Useful
Design types so their zero value is immediately usable without initialization. This eliminates boilerplate constructors. sync.Mutex and bytes.Buffer are the gold standard for this.
// Idiomatic: Ready to use immediately
type Counter struct {
mu sync.Mutex
count int
}
func (c *Counter) Inc() {
c.mu.Lock()
c.count++
c.mu.Unlock()
}
3. Return Early, Keep the Happy Path Left
Handle errors and edge cases immediately and return. Do not use else blocks for the main logic. The "happy path" of your function should never be indented.
Package Organization: Flat by Default
Anti-Pattern: Using deeply nested directory trees or relying heavily on an internal/ folder by default to artificially enforce "Clean Architecture" layers. This leads to circular dependencies and difficult navigation.
1. The Single-Package Default
Start flat. If you are building a microservice or a simple tool, put everything in the root directory (or alongside your main.go). Only create a new package when you truly need a new namespace to clarify the code, or when you need to decouple a strictly independent domain.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 3mo ago First seen · 802 lines · 113 tokens per session scan A fcf420856bc3
go is a skill published in the GitHub repository PascaleBeier/hitkeep (98 stars, last pushed 1mo ago), licensed MIT. It adds 113 tokens to every session and 6,969 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 86% identical to go, differing in 670 lines, and is treated as a copy.
go compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| goPascaleBeier/hitkeep | Skill | 98 | 1mo ago | MIT | A | 113 | Claude Code |
| pi-loop-forensicsdimetron/pi-go | Skill | 232 | 6d ago | MIT | A | 65 | Claude Code, Codex |
| nightly-session-watchdimetron/pi-go | Skill | 232 | 6d ago | MIT | A | 78 | Claude Code, Codex |
| lsp-implementblackwell-systems/agent-lsp | Skill | 186 | today | MIT | A | 39 | Claude Code |
| lsp-cross-repoblackwell-systems/agent-lsp | Skill | 186 | today | MIT | A | 41 | Claude Code |
| kessoku-dimazrean/kessoku | Skill | 142 | yesterday | MIT | A | 52 | Claude Code, Codex |
| functions-developmentCrowdStrike/foundry-skills | Skill | 38 | 9d ago | MIT | A | 195 | Claude Code |