alef-generated-bindings
Alef-managed generated bindings in packages/* and binding crates — the regeneration workflow (task alef:generate / alef:format), Go DocumentExtractor→Extractor rename mapping, the git-diff freshness check, and the key alef.toml sections. Load before editing anything under packages/* or a binding crate, or when regenerating, formatting, or verifying Alef output.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- alef-generated-bindings
- description
- Alef-managed generated bindings in packages/* and binding crates — the regeneration workflow (task alef:generate / alef:format), Go DocumentExtractor→Extractor rename mapping, the git-diff freshness check, and the key alef.toml sections. Load before editing anything under packages/* or a binding crate, or when regenerating, formatting, or verifying Alef output.
03 SKILL.md 正文
Alef-Generated Bindings
Stale — does not describe this repo.
packages/does not exist inhacienda-engine, and none ofcrates/xberg-node/,crates/xberg-wasm/,crates/xberg-ffi/below exist here either (this repo hascrates/hacienda-ragandcrates/hacienda-wasm— a hand-written WASM crate, not Alef-generated). This file appears to be carried over from the upstreamxbergrepo's own skill docs.alef.tomlexists and declares 15 binding targets, but generation has never been run —hacienda/src/has onlylib.rs, missing the source filesalef.tomlreferences. Treat everything below as an aspirational template, not current instructions, until someone actually runs the generation workflow and rewrites this to match what exists.
Files in packages/*/ and binding crates are generated by Alef — DO NOT manually edit.
Workflow
- Check
alef.tomlbefore editing anything inpackages/*/or binding crates - Modify Rust source files or
alef.tomlitself - Run
task alef:generateto regenerate all Alef-managed output without formatting (alef all --clean --format=false) - Run
task alef:formatexplicitly if Alef post-generation formatting is needed - Run
task e2e:testortask e2e:allto verify - Commit Rust source +
alef.toml+ regenerated bindings atomically
Rename Mappings (from alef.toml)
- Go:
DocumentExtractor→Extractor - All other languages: no renames
Freshness Check
task alef:generate && git diff --exit-code packages/ crates/xberg-node/ crates/xberg-wasm/ crates/xberg-ffi/
Key alef.toml Sections
[crate]— Rust source files parsed for type/function extraction[languages.*]— per-language output path, module name, rename mappings[e2e]— e2e test generation: fixtures dir, output dir, per-language call overrides[readme]— README template generation per language package
Canonical e2e tasks are task e2e:generate, task e2e:build, task e2e:test, and task e2e:all. Do not add legacy aliases.
04 同仓库更多 Skills
impeccable
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, and empty states. Handles UX review, visual hierarchy, information architecture, cognitive load, accessibility, performance, responsive behavior, theming, anti-patterns, typography, fonts, spacing, layout, alignment, color, motion, micro-interactions, UX copy, error states, edge cases, i18n, and reusable design systems or tokens. Also use for bland designs that need to become bolder or more delightful, loud designs that should become quieter, live browser iteration on UI elements, or ambitious visual effects that should feel technically extraordinary. Not for backend-only or non-UI tasks.
wasm-constraints
WASM build constraints for the crates/xberg-wasm crate — the wasm-target feature set, no-tokio sync-only internal APIs, the mandatory SyncExtractor trait for WASM-compatible extractors, the 2 MB HTML size limit, size-optimized build config (opt-level="z"), and the async-wrapper/sync-internal API pattern. Load when building for wasm32, adding or modifying a WASM-compatible extractor, or debugging WASM build/runtime failures.
release-versioning
How xberg versions are synced and released — Cargo.toml is the single source of truth, `task version:sync` propagates it to alef-managed binding manifests AND the integrations under integrations/, which are versioned and published in lockstep with core (including -rc.N). Load before bumping a version, editing the version-sync task, or touching an integration's version/xberg dependency.
plugin-architecture-patterns
Plugin architecture, registration, and trait patterns
mime-detection-routing
MIME type detection and extractor routing in core/mime.rs and core/extractor/bytes.rs — the extension→EXT_TO_MIME→validate→registry→extractor flow, key detection functions, the 118+ case-insensitive extension map, priority-based registry selection, wildcard MIME families, and how to add a new MIME type. Load when adding a format, wiring an extractor to a MIME type, or debugging why a file routes to the wrong (or no) extractor.
format-specific-extraction
Format-specific document extraction workflows