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.00060 | $0.00382 |
| Opus 5 | $0.00030 | $0.00191 |
| Sonnet 5 | $0.00012 | $0.00076 |
| Haiku 4.5 | $0.00006 | $0.00038 |
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 11d 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.
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.
- 11d 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 (141 stars, last pushed 3d ago), licensed MIT. It adds 60 tokens to every session and 382 once invoked, about $0.0003 per session on Opus 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-polish
Polish a generated CLI to pass verification and become publish-ready. Runs diagnostics (dogfood, verify, scorecard, go vet, gosec), automatically fixes all issues (verify failures, static-analysis findings, dead code, descriptions, README, MCP tool quality), reports the before/after delta, and offers to publish. Use…
dd-code-generation
Use pup CLI for immediate Datadog operations or generate code for integration into applications.
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.