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 kreuzberg-dev/kreuzberg-lts --skill wasm-constraintsgit clone --depth 1 https://github.com/kreuzberg-dev/kreuzberg-ltsWrote 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/kreuzberg-dev/kreuzberg-lts/wasm-constraints)<a href="https://agentmods.dev/skills/kreuzberg-dev/kreuzberg-lts/wasm-constraints"><img src="https://agentmods.dev/badge/skills/kreuzberg-dev/kreuzberg-lts/wasm-constraints/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/kreuzberg-dev/kreuzberg-lts/wasm-constraints"><img src="https://agentmods.dev/badge/skills/kreuzberg-dev/kreuzberg-lts/wasm-constraints.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.00009 | $0.00656 |
| Opus 5.5 | $0.00004 | $0.00262 |
| Sonnet 5.5 | $0.00002 | $0.00131 |
| Haiku 4.5 | $0.00001 | $0.00066 |
Grade A, and why
wasm-constraints 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.
priority: high
WASM Build Constraints
Overview
WASM target in crates/kreuzberg-wasm/. Uses wasm-bindgen with sync-only internal APIs.
Feature Flags
[features]
wasm-target = ["pdf", "html", "xml", "email", "language-detection", "chunking", "quality", "office"]
wasm-threads = ["dep:wasm-bindgen-rayon"] # Optional
Critical Constraints
1. No Tokio Runtime
All operations must be synchronous internally. Use #[cfg(not(feature = "tokio-runtime"))] paths.
2. SyncExtractor Required
Every WASM-compatible extractor MUST implement SyncExtractor:
impl SyncExtractor for MyExtractor {
fn extract_sync(&self, content: &[u8], mime_type: &str, config: &ExtractionConfig)
-> Result<ExtractionResult> { /* sync implementation */ }
}
impl DocumentExtractor for MyExtractor {
fn as_sync_extractor(&self) -> Option<&dyn SyncExtractor> {
Some(self) // MUST return Some for WASM
}
}
3. HTML Size Limit
const MAX_HTML_SIZE: usize = 2 * 1024 * 1024; // 2MB - stack constraint
4. PDFium Initialization (from JS)
import init, { initialize_pdfium_render } from './kreuzberg_wasm.js';
const wasm = await init();
const pdfium = await pdfiumModule();
initialize_pdfium_render(pdfium, wasm, false); // REQUIRED for PDF
Build Config
[lib]
crate-type = ["cdylib", "rlib"]
[profile.release.package.kreuzberg-wasm]
opt-level = "z" # Size optimization
codegen-units = 1
API Pattern
#[wasm_bindgen]
pub async fn extract_from_bytes(content: Vec<u8>, config: JsValue) -> Result<JsValue, JsValue> {
let config: ExtractionConfig = serde_wasm_bindgen::from_value(config)?;
let result = extract_bytes_sync(&content, mime_type, &config)?;
Ok(serde_wasm_bindgen::to_value(&result)?)
}
Functions can be async for JS compatibility, but internal extraction is sync.
Critical Rules
- No tokio — all operations synchronous
- Implement SyncExtractor for all WASM-compatible extractors
- HTML limited to 2MB due to stack constraints
- PDFium requires manual JS initialization
- Size optimization via
opt-level = "z" - Feature gate with
#[cfg(target_arch = "wasm32")]
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.
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.
- 1mo ago Changed · +6 lines · +6 tokens per session 9b715952dbe9
- 3mo ago First seen · 92 lines · 3 tokens per session scan A e58f4bf58e5e
wasm-constraints is a skill published in the GitHub repository kreuzberg-dev/kreuzberg-lts (22 stars, last pushed 1mo ago), licensed MIT. It adds 9 tokens to every session and 656 once invoked, about $0.0000 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.
wasm-constraints compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| wasm-constraintskreuzberg-dev/kreuzberg-lts | Skill | 22 | 1mo ago | MIT | A | 9 | Claude Code, Codex |
| feature-flag-conventionsxberg-io/xberg | Skill | 9.6k | today | MIT | A | 17 | Claude Code |
| doc-readerJansenAnalytics/claudex | Skill | 5 | 5mo ago | MIT | B | 51 | Claude Code, Codex |
| rust-patternsaffaan-m/ECC | Skill | 313k | 7d ago | MIT | A | 28 | Claude Code, Kiro |
| omh-rustrlaope/oh-my-hermes | Skill | 6.2k | today | MIT | A | 19 | Claude Code |
| dd-code-generationDataDog/pup | Skill | 1.0k | today | Apache-2.0 | A | 16 | Claude Code |
| swiftidebosun-ai/swiftide | Skill | 805 | 2d ago | MIT | A | 43 | Claude Code, Codex |