CtrlK
BlogDocsLog inGet started
Tessl Logo

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.

76

Quality

93%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

87%

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body is concise, actionable, and well-structured, with concrete code patterns and non-obvious rationale. Its main gap is the absence of any build/size-verification checkpoint, which weakens workflow clarity for a constraints skill centered on size limits.

Suggestions

Add a verification checkpoint: after building, run `cargo build --target wasm32-unknown-unknown` and confirm the resulting .wasm stays under the 2 MB HTML limit and the jsDelivr 50 MB cap, so the size constraints are testable rather than only stated.

Provide a short sequenced checklist for the trigger task (implement SyncExtractor -> implement DocumentExtractor::as_sync_extractor returning Some -> feature-gate with #[cfg(target_arch = "wasm32")] -> build and verify size) so the implied workflow has explicit, ordered checkpoints.

Make the extract_from_bytes example self-consistent: `mime_type` is referenced but never derived from the inputs — either show how it is obtained or note it must be supplied, so the pattern snippet is fully copy-paste ready.

DimensionReasoningScore

Conciseness

The body is lean and assumes competence — it never explains what WASM or Tokio is. The one explanatory comment ("the 306-language grammar pack pushes the browser .wasm past jsDelivr's 50 MB per-file cap") is non-obvious rationale Claude would not know, so every token earns its place.

3 / 3

Actionability

Provides concrete, executable Rust/TOML snippets — the SyncExtractor and DocumentExtractor impls, MAX_HTML_SIZE constant, and Cargo [profile.release] config — that are specific and directly adaptable, matching the anchor for concrete code with specific examples.

3 / 3

Workflow Clarity

The Critical Rules itemize constraints (steps present) but offer no validation checkpoint, e.g. building for wasm32 and confirming the output respects the 2 MB HTML limit and 50 MB jsDelivr cap — a notable gap for a skill whose core concern is size compliance. This fits the anchor for steps listed with missing/implicit checkpoints rather than the level above, which requires explicit validation steps.

2 / 3

Progressive Disclosure

No bundle files are provided and none are needed; the single self-contained file is organized into clearly labeled sections (Overview, Feature Flags, Critical Constraints, Build Config, API Pattern, Critical Rules) with no nested references, matching the anchor for well-organized single-level content.

3 / 3

Total

11

/

12

Passed

Description

100%

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description is specific, complete, and well-triggered: it enumerates concrete constraints and provides an explicit "Load when" clause covering natural use cases. It is distinctive to a single crate's WASM build context.

DimensionReasoningScore

Specificity

Lists multiple concrete items — "the wasm-target feature set, no-tokio sync-only internal APIs, the mandatory SyncExtractor trait ... the 2 MB HTML size limit, size-optimized build config (opt-level="z"), and the async-wrapper/sync-internal API pattern" — with no vague language, matching the anchor for listing several specific concrete capabilities.

3 / 3

Completeness

It explicitly states what ("WASM build constraints for the crates/xberg-wasm crate — ...") and when ("Load when building for wasm32, ..."), satisfying the anchor for clearly answering both what and when with an explicit trigger.

3 / 3

Trigger Term Quality

The explicit trigger clause "Load when building for wasm32, adding or modifying a WASM-compatible extractor, or debugging WASM build/runtime failures" uses natural phrasing a developer on this project would actually say, giving good coverage of relevant trigger terms.

3 / 3

Distinctiveness Conflict Risk

Tightly scoped to "the crates/xberg-wasm crate" with WASM-specific triggers, giving it a clear niche unlikely to fire for unrelated skills.

3 / 3

Total

12

/

12

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
xberg-io/xberg
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.