extract

extract is a skill for Claude Code, Codex from runxhq/runx. It costs 30 tokens per session (996 once invoked), scanned A, original, Apache-2.0.

A tool that turns already-captured HTML or plain text into checked, structured JSON. HTML is the format used for most web pages.

In plain words
What is it for?
Use it to extract headings, useful paragraphs, and HTTP or API terms from approved document snapshots, fixtures, or captured web content.
Why use it?
It makes extraction reproducible and checks the result against a declared data shape, while leaving website fetching to another step.

Skill for Claude CodeCodex

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

Good fit Use it to extract headings, useful paragraphs, and HTTP or API terms from approved document snapshots, fixtures, or captured web content.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/runxhq/runx/extract
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 runxhq/runx --skill extract
Clone the repo
git clone --depth 1 https://github.com/runxhq/runx

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 extract

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/runxhq/runx/extract"><img src="https://agentmods.dev/badge/skills/runxhq/runx/extract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 996 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.00030 $0.00996
Opus 5.5 $0.00012 $0.00398
Sonnet 5.5 $0.00006 $0.00199
Haiku 4.5 $0.00003 $0.00100

Measured 2d ago against content hash b737d7ae1350, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

extract 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 2d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (extract.mjs, tools/structured/extract/run.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/extract/SKILL.md · 83 lines

How it starts

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

Extract

Turn already-collected HTML, markdown or plain text into the JSON your next operation actually needs. You choose the schema and extraction objective. The skill binds the result to the exact source bytes, validates it with Runx's native JSON Schema engine and keeps quotations for each populated field.

Use it for documents, captured pages, application forms or research material that needs a typed handoff. This is a semantic extraction task: the agent reads the supplied document and proposes a value. Validation and provenance checks are deterministic; the model's interpretation is not claimed to be deterministic.

Choose an input lane

The default extract runner accepts content, source_ref, schema and objective. Use it when web-fetch, an artifact reader or an upstream operation has already collected the text. source_ref identifies that document or capture; it does not trigger a network request or prove the URL is current.

from-file accepts the same fields except content, plus a workspace-relative path and optional repo_root, path_scope and max_bytes. The default root is the caller workspace; path_scope: skill selects the owning package root. It uses native artifact.admit and artifact.read under fs.read authority. It requires the complete document in one bounded UTF-8 page; a larger or partial page fails before extraction. Convert PDFs, images or audio through the selected document/OCR/transcription capability first. This skill does not add a file reader, scraper or provider client.

Text is bounded to one million characters for inline input and one million bytes for a file read. The schema is a self-contained JSON Schema 2020-12, at most 256 KiB. External schema retrieval is disabled. Standard JSON Schema format keywords are annotations; a format-specific business rule needs its own check.

Procedure and proof

  1. Compile the caller's schema before asking an agent to extract anything.
  2. Digest the exact text as UTF-8.
  3. Extract one JSON value to the supplied schema and objective. Record missing fields and source quotations using JSON Pointers into the proposed value.
  4. Validate the value through native data.validate, including nested arrays, string lengths, numeric bounds and local schema references.
  5. Check that every populated scalar has a quotation present in the exact input, and that each cited pointer names an actual populated field. JSON Pointer escapes use ~0 for ~ and ~1 for /.
  6. Return ready only when schema and quotation checks pass. Otherwise return held with value: null and the failed checks. The sealed receipt retains what was proposed; do not treat a held result as usable extracted data.

Read the full file on GitHub · 83 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. 2d ago Changed · -69 lines · +12 tokens per session b737d7ae1350
  2. 6d ago Changed · -1 lines 020f114d72bf
  3. 8d ago Changed · -5 lines 19ab7cce7424
  4. 1mo ago First seen · 158 lines · 18 tokens per session scan A 5e4b7c095b71

Subscribe to this mod's changes

extract is a skill published in the GitHub repository runxhq/runx (103 stars, last pushed today), licensed Apache-2.0. It adds 30 tokens to every session and 996 once invoked, about $0.0001 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-09-03.