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 skills add Goldziher/ai-rulez --skill cgo-bindingsgit clone --depth 1 https://github.com/Goldziher/ai-rulezWrote 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/goldziher/ai-rulez/cgo-bindings)<a href="https://agentmods.dev/skills/goldziher/ai-rulez/cgo-bindings"><img src="https://agentmods.dev/badge/skills/goldziher/ai-rulez/cgo-bindings/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/goldziher/ai-rulez/cgo-bindings"><img src="https://agentmods.dev/badge/skills/goldziher/ai-rulez/cgo-bindings.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.00045 | $0.00367 |
| Opus 5.5 | $0.00018 | $0.00147 |
| Sonnet 5.5 | $0.00009 | $0.00073 |
| Haiku 4.5 | $0.00005 | $0.00037 |
Grade A, and why
cgo-bindings 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 yesterday.
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.
What it actually says
- Use
import "C"with// #cgo LDFLAGS:and// #cgo CFLAGS:directives for linking. - Declare C header functions in comment block immediately above
import "C"— no blank line between. - Type mapping:
C.int,C.long,C.char. UseC.CString()andC.GoString()for string conversion. - Memory:
C.CString()allocates — alwaysdefer C.free(unsafe.Pointer(cStr))immediately after creation. - Error handling: return error codes from C functions, convert to Go
errorvalues. Check all return values. - Link Rust static libraries:
// #cgo LDFLAGS: -L./target/release -lmylib. Build Rust withcrate-type = ["staticlib"]. - Thread safety: C functions called from Go may run on any OS thread. Use
runtime.LockOSThread()when needed. - Go pointer passing: use
runtime.Pinner(Go 1.21+) to pin Go memory passed to C. Never pass Go pointers without pinning. - Test with
go test(requiresCGO_ENABLED=1). Mock C layer for unit tests, use integration tests for real FFI. - Build:
CGO_ENABLED=1 go build. Cross-compilation requires appropriate C toolchain. - Anti-patterns: leaking
C.CStringmemory, passing unpinned Go pointers to C, ignoring C return codes.
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.
- yesterday Changed · -15 tokens per session 56f06afa180a
- 1mo ago First seen · 17 lines · 60 tokens per session scan A 66d96af0616d
cgo-bindings is a skill published in the GitHub repository Goldziher/ai-rulez (165 stars, last pushed yesterday), licensed MIT. It adds 45 tokens to every session and 367 once invoked, about $0.0002 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
memory-mine
Mine project files or conversations into the MemPalace memory system. Indexes source code and conversation history as searchable palace drawers with semantic embeddings and room assignment.
memory-status
Show MemPalace memory system status — drawer counts, wings, rooms, knowledge graph stats, and embedding model state.
printing-press
Set up a new integration, connector, or CLI binding for any API. Wrap or generate a ship-ready Go CLI from an OpenAPI, HAR, or Postman spec via the lean research -> generate -> build -> shipcheck loop. Use when the user says build a CLI, wrap this API, set up a new integration, add a connector, integrate with a…
octo-summary
Read, create, find, and cite Octo summaries through octo-cli. Use when an agent needs to create an owner-only summary from explicit channels, discover summaries visible to its bot owner, inspect one summary, retrieve its current body, or ground an answer in returned citation metadata. Load after octo-shared.
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…
go-127
What changed in Go 1.27 (released August 2026) and how it changes the way Go is written in pi-go. Use this skill when writing or reviewing Go that could use a 1.27 feature, when bumping the go directive in go.mod, when a build or test behaves differently after a toolchain upgrade, or when code-guidelines-go points…