crate-structure

crate-structure is a skill for Claude Code, Codex from xberg-io/html-to-markdown. It costs 95 tokens per session (424 once invoked), scanned A, original, MIT.

A map of the html-to-markdown workspace, including its Rust crates, language packages, conversion API, parser choices, and feature flags. A workspace is a code repository containing multiple related packages.

In plain words
What is it for?
Use it when navigating the project, choosing a crate or package, or working with conversion results, parsers, and API options.
Why use it?
It helps an agent find the right part of the repository and understand how the main conversion function and its language bindings fit together.

Skill for Claude CodeCodex

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

Good fit Use it when navigating the project, choosing a crate or package, or working with conversion results, parsers, and API options.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xberg-io/html-to-markdown/crate-structure
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/html-to-markdown --skill crate-structure
Clone the repo
git clone --depth 1 https://github.com/xberg-io/html-to-markdown

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 crate-structure

README.md
[![agentmods](https://agentmods.dev/badge/skills/xberg-io/html-to-markdown/crate-structure.svg)](https://agentmods.dev/skills/xberg-io/html-to-markdown/crate-structure)
Your own site
<a href="https://agentmods.dev/skills/xberg-io/html-to-markdown/crate-structure"><img src="https://agentmods.dev/badge/skills/xberg-io/html-to-markdown/crate-structure.svg" alt="Measured on agentmods" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 424 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.00095 $0.00424
Opus 5 $0.00048 $0.00212
Sonnet 5 $0.00019 $0.00085
Haiku 4.5 $0.00010 $0.00042

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

Security

Grade A, and why

crate-structure 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 8d 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/crate-structure/SKILL.md · 29 lines

What it actually says

Crate & Package Structure

Workspace crates (crates/)

  • html-to-markdown — core library, primary Rust API, unsafe_code = "forbid" at workspace level
  • html-to-markdown-cli — CLI binary (clap)
  • html-to-markdown-ffi — C FFI bridge, cbindgen headers, only crate that overrides unsafe_code lint
  • html-to-markdown-py — PyO3 Python binding
  • html-to-markdown-node — NAPI-RS Node/TypeScript binding
  • html-to-markdown-php — ext-php-rs PHP binding
  • html-to-markdown-wasm — wasm-bindgen WebAssembly binding

Out-of-workspace packages (packages/)

  • csharp/, elixir/, go/, java/, r/, ruby/ — language-native packages wrapping the FFI crate
  • php/, python/, typescript/, wasm/ — distribution packages

Primary API

  • convert(&str, Option<ConversionOptions>) -> Result<ConversionResult, ConversionError>
  • ConversionResult: content, warnings, optionally metadata and inline_images (feature-gated)
  • Feature flags: inline-images, metadata, visitor (custom traversal), serde
  • Dual parser: html5ever (spec-compliance) and astral-tl (performance), selectable via ConversionOptions
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. 8d ago First seen · 29 lines · 95 tokens per session scan A 448382b6f2f0

Subscribe to this mod's changes

crate-structure is a skill published in the GitHub repository xberg-io/html-to-markdown (864 stars, last pushed today), licensed MIT. It adds 95 tokens to every session and 424 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

rig

Guide for building LLM clients in Rust with rig (rig-core) — AgentBuilder, providers, tools, extractors, RAG, and streaming. Use when writing Rust LLM clients with rig or rig-core, building multi-provider or hybrid clients that mix Anthropic, OpenAI, Gemini, or local models, integrating ollama, LM Studio, or an…

vinnie357/claude-skills · 110 tokens

golem-add-llm-rust

Adding LLM and AI capabilities to a Rust Golem agent. Use when the user wants to add LLM chat, embeddings, web search, vector DB, graph DB, document search, video generation, speech-to-text, text-to-speech, or any AI provider integration.

golemcloud/golem · 65 tokens

dd-code-generation

Use pup CLI for immediate Datadog operations or generate code for integration into applications.

DataDog/pup · 16 tokens

omh-rust

This is a Hermes-native rust workflow skill.

rlaope/oh-my-hermes · 69 tokens

bevy-ecs

Structure a Bevy app around its Entity Component System: build the App with plugins, define Component/Resource types, write systems with Query/Res/Commands, filter and order systems, and use the Time resource for frame-rate-independent motion. Use when building or debugging a Bevy game in Rust — when the user mentions…

gamedev-skills/awesome-gamedev-agent-skills · 100 tokens

rust-project

Modern Rust project architecture guide for 2025. Use when creating Rust projects (CLI, web services, libraries). Covers workspace structure, error handling, async patterns, and idiomatic Rust best practices.

majiayu000/spellbook · 43 tokens