extract

extract is a skill for Claude Code, Codex from runxhq/runx. It costs 30 tokens per session (993 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 993 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.00993
Opus 5.5 $0.00012 $0.00397
Sonnet 5.5 $0.00006 $0.00199
Haiku 4.5 $0.00003 $0.00099

Measured 20d ago against content hash 9f339e4e376b, 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 20d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (extract.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 method accepts content, source_id, schema and objective. Use it when web-fetch, an artifact reader or an upstream operation has already collected the text. source_id 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. 20d ago Changed 9f339e4e376b
  2. 1mo ago Changed 9e7c71dd5d93
  3. 1mo ago Changed · -69 lines · +12 tokens per session b737d7ae1350
  4. 1mo ago Changed · -1 lines 020f114d72bf
  5. 1mo ago Changed · -5 lines 19ab7cce7424
  6. 3mo 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 (106 stars, last pushed yesterday), licensed Apache-2.0. It adds 30 tokens to every session and 993 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.

Related

extract compared with skills from other repositories

extract next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
extractrunxhq/runxSkill106yesterdayApache-2.0A30Claude Code, Codex
feishuHmbown/CodeWhaleSkill41k4d agoMITA33Claude Code, Codex
pdfHmbown/CodeWhaleSkill41k4d agoMITA31Claude Code, Codex
docxHmbown/CodeWhaleSkill41k4d agoMITA16Claude Code, Codex
pptxHmbown/CodeWhaleSkill41k4d agoMITA16Claude Code, Codex
xlsxHmbown/CodeWhaleSkill41k4d agoMITA20Claude Code, Codex
spreadsheetsHmbown/CodeWhaleSkill41k4d agoMITA17Claude Code, Codex