An Agent Skill that teaches an AI agent to build ExtractHub extractors: it inspects the page you name, picks the cheapest fetch mode that works (plain HTML, embedded JSON, JSON API, JavaScript rendering, XHR capture, browser actions), writes the extractor definition, validates it, uploads it as a private draft, tests it and releases it when you say so. Ask your agent things like: - "Create an Extr
npx mdskills install extracthub-io/extracthub-extractor-builderRelated
An Agent Skill that teaches an AI agent to build ExtractHub extractors: it inspects the page you name, picks the cheapest fetch mode that works (plain HTML, embedded JSON, JSON API, JavaScript rendering, XHR capture, browser actions), writes the extractor definition, validates it, uploads it as a private draft, tests it and releases it when you say so.
Ask your agent things like:
For multi-step scrapes (a list page, then every detail page it links to) use it together with the extracthub-pipeline-builder skill, which chains released extractors into a pipeline.
extracthub-extractor-builder/
├── SKILL.md workflow the agent follows
├── references/
│ ├── config-reference.md field shapes, extract types, JSON paths, all transforms
│ ├── request-options.md proxy, JS rendering, browser actions, XHR, POST, price tiers, Studio import
│ ├── selectors-and-pitfalls.md supported selectors, stable selector strategy, engine pitfalls
│ ├── troubleshooting.md empty fields, blocked pages, JS-only content, API errors
│ └── releasing-and-versions.md draft, pins (@1, @1.2.3, @draft), semver, visibility
├── examples/ 6 complete definitions + notes
├── schema/extractor-definition.schema.json
├── scripts/check-config.mjs zero-dependency structure checker (Node 18+)
├── scripts/validate.mjs dry run on a saved sample file with the real engine (needs an API key)
└── LICENSE MIT
Clone the repository into your personal skills directory (all projects) or a project's .claude/skills/:
git clone https://github.com/extracthub-io/extracthub-extractor-builder.git ~/.claude/skills/extracthub-extractor-builder
Claude Code picks it up automatically; ask for an ExtractHub extractor and it loads the skill. Update later
with git -C ~/.claude/skills/extracthub-extractor-builder pull.
Download the repository as a ZIP (Code → Download ZIP) or zip a clone so that the zip contains one folder
with SKILL.md inside:
git clone https://github.com/extracthub-io/extracthub-extractor-builder.git
zip -r extracthub-extractor-builder.zip extracthub-extractor-builder -x "*.git*"
Upload it under Settings → Capabilities → Skills (code execution must be enabled). The local checker needs Node.js; where Node is unavailable the agent validates with the MCP server or by reading the HTML.
Agents that support the Agent Skills format load the folder from their skills directory. For any other
agent, point it at SKILL.md as instructions and keep the folder next to it so it can open the references.
With the MCP server the agent can validate against the real engine, upload, test and release by itself. Without it, the agent gives you the definition and a Studio import file instead.
https://api.extracthub.io/mcp, key as a Bearer token):Claude Code:
claude mcp add --transport http extracthub https://api.extracthub.io/mcp --header "Authorization: Bearer YOUR_EXTRACTHUB_API_KEY"
Claude Code, one key for both the MCP server and scripts/validate.mjs (recommended): put the key in
.claude/settings.local.json (keep it out of git) and reference it from the project's .mcp.json:
// .claude/settings.local.json
{ "env": { "EXTRACTHUB_API_KEY": "YOUR_EXTRACTHUB_API_KEY" }, "enabledMcpjsonServers": ["extracthub"] }
// .mcp.json
{ "mcpServers": { "extracthub": { "type": "http", "url": "https://api.extracthub.io/mcp",
"headers": { "Authorization": "Bearer ${EXTRACTHUB_API_KEY}" } } } }
Restart Claude Code; /mcp should list extracthub as connected.
Claude Desktop (claude_desktop_config.json, through the mcp-remote bridge):
{
"mcpServers": {
"extracthub": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://api.extracthub.io/mcp", "--header", "Authorization:${EXTRACTHUB_AUTH}"],
"env": { "EXTRACTHUB_AUTH": "Bearer YOUR_EXTRACTHUB_API_KEY" }
}
}
}
Other clients: URL https://api.extracthub.io/mcp, transport Streamable HTTP, header
Authorization: Bearer YOUR_EXTRACTHUB_API_KEY (or X-API-Key: YOUR_EXTRACTHUB_API_KEY). The server does
not offer OAuth yet, so clients that only support OAuth connectors cannot connect; use the skill without MCP
there.
More: https://extracthub.io/mcp
exth_test_...) are free and never fetch pages: extract calls return simulated results. Good
for wiring up a pipeline; useless for checking whether selectors work.Custom headers (the Cookie header included) are not sent when the request goes through the scraping proxy
(useProxy: true); they are only sent on direct requests (useProxy: false). Scraping providers manage headers
for ban avoidance. So a JSON API that needs auth headers must use useProxy: false. On direct requests the
headers are sent as they are: the agent only adds what the target needs and does not override User-Agent or
Accept* (that may get the request blocked). Details: references/request-options.md.
The agent writes my-extractor.json and converts it for the Studio:
node scripts/check-config.mjs my-extractor.json --studio-out my-extractor.studio.json
In ExtractHub open Extractor Studio → ⋮ menu → Import, pick the .studio.json file, check the preview, then
Save (and Release). Browser actions are not part of the import file; add them in the "Browser actions" panel
(use a wait_for_element action there instead of waitForSelector, which the Studio does not edit).
node scripts/check-config.mjs examples/*.json
node scripts/check-config.mjs --json my-extractor.json
Checks the definition against schema/extractor-definition.schema.json plus rules the schema cannot express
(option combinations, selectors the engine cannot run, missing attributeName, duplicate names ...). It
checks structure only; the ExtractHub validator (MCP validate_extractor_config, or the Studio preview) is
the authority.
export EXTRACTHUB_API_KEY=exth_... # test keys work for validation
node scripts/validate.mjs my-extractor.json --html samples/page.html --url https://site.example/page
node scripts/validate.mjs my-extractor.json --sample-json samples/response.json --out result.json
node scripts/validate.mjs --release @user/slug --html samples/page.html # release dry run (live key)
Runs the ExtractHub validator (MCP validate_extractor_config, or release_extractor with --release) on a
sample saved to disk, so a page never has to be pasted into a tool call. It prints errors, warnings and a
per-field summary of the dry run (array lengths, empty sub-fields); --strict makes warnings fail, --json
prints the full result. Free; nothing is fetched. It talks to the MCP endpoint directly, so it also works in
clients where the MCP server is not connected. --release ... --no-dry-run releases for real: the agent only
runs it after you agree.
MIT, see LICENSE.
Install via CLI
npx mdskills install extracthub-io/extracthub-extractor-builderExtractHub.io web scraping builder skill is a free, open-source AI agent skill. An Agent Skill that teaches an AI agent to build ExtractHub extractors: it inspects the page you name, picks the cheapest fetch mode that works (plain HTML, embedded JSON, JSON API, JavaScript rendering, XHR capture, browser actions), writes the extractor definition, validates it, uploads it as a private draft, tests it and releases it when you say so. Ask your agent things like: - "Create an Extr
Install ExtractHub.io web scraping builder skill with a single command:
npx mdskills install extracthub-io/extracthub-extractor-builderThis downloads the skill files into your project and your AI agent picks them up automatically.
ExtractHub.io web scraping builder skill works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Codex, Gemini Cli, Amp, Roo Code, Goose, Opencode, Trae, Qodo, Command Code. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.