alef-generated-bindings

alef-generated-bindings is a skill for Claude Code, Codex from xberg-io/xberg. It costs 91 tokens per session (1,448 once invoked), scanned A, original, MIT.

A guide for Alef-generated bindings: code that connects Rust with other languages through an interface layer. It explains how to change the source, regenerate the output, and verify that generated files are current.

In plain words
What is it for?
Updating Alef configuration or Rust source, regenerating bindings, checking freshness, verifying JSON data passed through the interface, and running related end-to-end tests.
Why use it?
It prevents hand-editing files that will be overwritten and helps keep Rust sources, configuration, generated packages, and language bridges in sync.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Updating Alef configuration or Rust source, regenerating bindings, checking freshness, verifying JSON data passed through the interface, and running related end-to-end tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xberg-io/xberg/alef-generated-bindings
About the project

Xberg is a document-intelligence engine that reads files, URLs, archives, and source trees and extracts text, metadata, images, tables, and structured data, with additional code-language understanding. Developers use it through language bindings, a command-line tool, REST API, or MCP server, and the catalogue entries support those integrations.

xberg-io/xberg · 9,275 stars · on GitHub · docs.xberg.io

Install

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.

Any agent
npx skills add xberg-io/xberg --skill alef-generated-bindings
Clone the repo
git clone --depth 1 https://github.com/xberg-io/xberg

Made for: Claude Code, Codex.

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 alef-generated-bindings

README.md
[![agentmods](https://agentmods.dev/badge/skills/xberg-io/xberg/alef-generated-bindings/github.svg)](https://agentmods.dev/skills/xberg-io/xberg/alef-generated-bindings)
Your own site
<a href="https://agentmods.dev/skills/xberg-io/xberg/alef-generated-bindings"><img src="https://agentmods.dev/badge/skills/xberg-io/xberg/alef-generated-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.

agentmods 80×15 button for alef-generated-bindings

Your own site · 80×15
<a href="https://agentmods.dev/skills/xberg-io/xberg/alef-generated-bindings"><img src="https://agentmods.dev/badge/skills/xberg-io/xberg/alef-generated-bindings.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,448 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00091 $0.01448
Opus 5 $0.00046 $0.00724
Sonnet 5 $0.00018 $0.00290
Haiku 4.5 $0.00009 $0.00145

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

Security

Grade A, and why

alef-generated-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 9d 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.

.ai-rulez/skills/alef-generated-bindings/SKILL.md · 92 lines

How it starts

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

Alef-Generated Bindings

Files under packages/*/ and in the binding crates are generated by Alef — do not hand-edit.

Workflow

  1. Check alef.toml before touching anything in packages/*/ or a binding crate
  2. Modify the Rust source or alef.toml itself
  3. task alef:generatealef all --clean. This formats via poly as part of the run; there is no task alef:format
  4. task alef:verifyalef verify --exit-code
  5. task e2e:generate then task e2e:test (or task e2e:all) to verify behaviour
  6. Commit Rust source + alef.toml + regenerated output atomically

The alef:* namespace is exactly: generate, verify, build, sync, docs, verify:readme-paths, verify:ffi-formats. Formatting is poly fmt / poly lint.

Freshness check

task alef:verify. A hand-rolled git diff over packages/ is under-scoped — generated output also lands in crates/xberg-py/, crates/xberg-php/, crates/xberg-jni/, crates/xberg-node/, crates/xberg-wasm/, crates/xberg-ffi/, packages/dart/rust/, packages/swift/rust/, and e2e/.

Alef tracks both sides under .alef/: sources_hash.cache (input hashes over the parsed Rust sources) and .alef/hashes/xberg.<lang>.output_hashes (per-file output content hashes). Neither makes a generated file safe to hand-fix — a regen restores it. Fix alef.toml or the Rust source, then regenerate and re-verify.

Key alef.toml sections

  • [workspace], [workspace.sync] (version-sync extra_paths), [workspace.docs], [workspace.poly], [workspace.generate]
  • [[crates]] — the Rust source crate parsed for type/function extraction, plus [[crates.source_crates]]
  • [crates.<lang>] — one table per binding: python, node, ruby, php, elixir, wasm, ffi, go, java, dart, kotlin_android, jni, swift, csharp, zig (each carrying exclude_functions, target_dep_overrides, stubs, …)
  • [crates.e2e] — e2e generation (output = "e2e", [crates.e2e.call.overrides.<lang>])
  • [crates.readme] — README generation (template_dir = "templates/readme", [crates.readme.languages.<lang>])
  • [crates.exclude], [crates.output], [crates.custom_modules], [crates.publish]

Read the full file on GitHub · 92 lines

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. 9d ago First seen · 92 lines · 91 tokens per session scan A ec08fcd69a78

Subscribe to this mod's changes

alef-generated-bindings is a skill published in the GitHub repository xberg-io/xberg (9,275 stars, last pushed today), licensed MIT. It adds 91 tokens to every session and 1,448 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work.

browser-use/browser-use · 26 tokens

composio

Route and complete Composio work across Composio For You and Composio Platform. Use when the user mentions Composio; wants an agent to use apps such as Gmail, Slack, GitHub, Notion, Calendar, or Linear; needs first-time setup, an SDK or MCP integration, CLI operation, migration guidance, current documentation, or help…

ComposioHQ/composio · 84 tokens

live-tutorial

Create an annotated MP4 tutorial from a workflow demonstrated in the owner's actual application. Use when asked for a tutorial video, not merely to watch an action live.

leon-ai/leon · 36 tokens

docs-decisions

Work on Composio documentation content, Fumadocs configuration, changelogs, docs automation prompts, docs decisions, ADR-style records, and docs review guidance. Use for files under docs/, documentation workflows, or requests to record or update a docs decision. Do not use for SDK runtime changes unless docs are the…

ComposioHQ/composio · 72 tokens

repo-guidance

Navigate the Composio SDK monorepo, branch and PR workflow, repo layout, generated-file boundaries, changesets, and shared maintenance rules. Use when work spans multiple packages, when deciding where code belongs, when preparing a PR, or when the user asks about repository conventions rather than a specific SDK…

ComposioHQ/composio · 67 tokens

python-release

Handle Python SDK release, build, bump, packaging metadata, PyPI client pin, uv.lock, nox/build workflow, and publish verification changes. Use for Python release process work or dependency pin bumps; do not use for ordinary Python feature implementation.

ComposioHQ/composio · 53 tokens