cbindgen-verify

cbindgen-verify is a skill for Claude Code from gertsylvest/meta-team. It costs 55 tokens per session (688 once invoked), scanned A, original, MIT.

A check that regenerates a C header, a file describing functions available to C or C++ code, from a Rust project and compares it with the committed version.

In plain words
What is it for?
Use it when a Rust library exposes a C interface to an audio driver, JUCE plugin, or Emscripten browser host.
Why use it?
It catches cases where Rust function signatures changed but the C header was not updated, before C code fails to link or uses mismatched declarations.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash verify.sh ./rust/audio-dsp ./include/audio_dsp.h.

Good fit Use it when a Rust library exposes a C interface to an audio driver, JUCE plugin, or Emscripten browser host.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/gertsylvest/meta-team
agentmods
npx agentmods add skills/gertsylvest/meta-team/cbindgen-verify

Made for: Claude Code.

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 cbindgen-verify

README.md
[![agentmods](https://agentmods.dev/badge/skills/gertsylvest/meta-team/cbindgen-verify/github.svg)](https://agentmods.dev/skills/gertsylvest/meta-team/cbindgen-verify)
Your own site
<a href="https://agentmods.dev/skills/gertsylvest/meta-team/cbindgen-verify"><img src="https://agentmods.dev/badge/skills/gertsylvest/meta-team/cbindgen-verify/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 cbindgen-verify

Your own site · 80×15
<a href="https://agentmods.dev/skills/gertsylvest/meta-team/cbindgen-verify"><img src="https://agentmods.dev/badge/skills/gertsylvest/meta-team/cbindgen-verify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 688 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.00055 $0.00688
Opus 5 $0.00028 $0.00344
Sonnet 5 $0.00011 $0.00138
Haiku 4.5 $0.00006 $0.00069

Measured 12d ago against content hash 8a4ded15fd34, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

cbindgen-verify 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 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (verify.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

library/skills/cbindgen-verify/SKILL.md · 59 lines

How it starts

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

cbindgen Verify

When a Rust crate exposes a C ABI for use by a C/C++ host (the audio driver, a JUCE plugin shell, an Emscripten-built worklet host), the C header is generated from the Rust source by cbindgen and committed to the repo so C consumers do not need Cargo installed.

This skill regenerates the header from the current Rust source and diffs it against the committed file. Any drift means the Rust ABI has been changed without updating the header — a class of bug that otherwise surfaces only when the C side fails to link or, worse, links against a stale header and produces UB at runtime.

Requirements

  • cbindgen — install via cargo install --force cbindgen.
  • A cbindgen.toml config file in the crate directory (cbindgen's standard convention).
  • The committed C header to compare against.

Instructions

The arguments are in $ARGUMENTS. Pass them directly to the verify script:

bash "$(dirname "$0")/verify.sh" $ARGUMENTS

Argument 1 is the crate directory (containing Cargo.toml and cbindgen.toml). Argument 2 is the path to the committed header.

Output sections

Section What it reports
CBINDGEN Whether cbindgen ran successfully
DIFF Unified diff between regenerated and committed headers, or PASS if identical

Typical usage

# Verify a single crate's header
bash verify.sh ./rust/audio-dsp ./include/audio_dsp.h

# As a pre-commit hook
bash verify.sh ./rust/audio-dsp ./include/audio_dsp.h || {
  echo "C header out of date — regenerate with: cbindgen --config rust/audio-dsp/cbindgen.toml --crate audio-dsp --output include/audio_dsp.h"
  exit 1
}

What to look for

  • DIFF showing added/removed functions — the Rust public ABI changed; either the change is intentional (regenerate and commit the new header, notify the c-audio-engineer) or accidental (revert the Rust change).
  • DIFF showing changed signatures — a parameter type, return type, or struct field changed. This is a breaking change for the C side regardless of whether the new layout is binary-compatible. Coordinate with the c-audio-engineer before regenerating.
  • DIFF showing only comment or whitespace changes — usually a cbindgen version mismatch between the developer who committed the header and the CI environment. Pin cbindgen's version in the project (e.g. cargo install --version X.Y.Z cbindgen) to eliminate the drift.

Read the full file on GitHub · 59 lines

Files

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.

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. 12d ago First seen · 59 lines · 55 tokens per session scan A 8a4ded15fd34

Subscribe to this mod's changes

cbindgen-verify is a skill published in the GitHub repository gertsylvest/meta-team (5 stars, last pushed 1mo ago), licensed MIT. It adds 55 tokens to every session and 688 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-31.

Related

Other skills, from other repositories

memory-safety-patterns

Implement memory-safe programming with RAII, ownership, smart pointers, and resource management across Rust, C++, and C. Use when writing safe systems code, managing resources, or preventing memory bugs.

rmyndharis/antigravity-skills · 45 tokens

compiler-frontend

Use when building a lexer, Pratt or recursive-descent parser, AST, symbol table, type checker, or LLVM IR emitter for a language or DSL. Not for optimizing IR: use llvm-passes.

OutlineDriven/outline-driven-development · 45 tokens

custom-allocators

Use when implementing pool/slab/arena allocators, tuning jemalloc/mimalloc/tcmalloc, writing a Rust GlobalAlloc, or benchmarking allocator performance and fragmentation.

OutlineDriven/outline-driven-development · 39 tokens

memory-safety-patterns

Implement memory-safe programming with RAII, ownership, smart pointers, and resource management across Rust, C++, and C. Use when writing safe systems code, managing resources, or preventing memory bugs.

RudyCity/superagent · 45 tokens

address-sanitizer

Use when building or running native code under AddressSanitizer, interpreting an existing ASan report, or debugging a memory-corruption failure. Not for remote or irreversible changes.

OutlineDriven/outline-driven-development · 40 tokens

memory-model

C++ and Rust memory model skill for concurrent programming. Use when understanding memory ordering, writing lock-free data structures, using std::atomic or Rust atomics, diagnosing data races, or selecting the correct memory order for atomic operations. Activates on queries about memory ordering, acquire-release…

mohitmishra786/low-level-dev-skills · 83 tokens