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.
npx agentmods add skills/harehare/mq/web-scrapingnpx skills add harehare/mq --skill web-scrapinggit clone --depth 1 https://github.com/harehare/mqWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00089 | $0.01473 |
| Opus 5 | $0.00044 | $0.00737 |
| Sonnet 5 | $0.00018 | $0.00295 |
| Haiku 4.5 | $0.00009 | $0.00147 |
Grade A, and why
web-scraping scanned grade A with 1 finding 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.
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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
description: Fetches web pages and extracts structured data using mq's toolchain (mq-crawl for fetching/crawling/JS rendering, mq for HTML-to-Markdown selector-based extraction, http() for in-query requests). Use when th How it starts
The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Web Scraping with mq
Three tools — pick the smallest one that fits:
mq-crawl— fetch/crawl a URL to Markdown, with JS rendering, multi-page crawling, robots.txt handling.mq— filter/transform Markdown or HTML (-I html) with jq-like selectors. Full selector/function reference:processing-markdownskill.mq'shttp()builtin (--allow-net) — make the request inside a query, for casesmq-crawlcan't (POST, custom headers/auth).
mq-crawl sends logs/stats to stderr — redirect with 2>/dev/null when scripting.
Fetch & Extract
mq-crawl --depth 0 https://example.com 2>/dev/null # page as Markdown (--depth 0 = don't follow links)
mq-crawl --depth 0 -q '.h | to_text()' https://example.com 2>/dev/null # inline query, e.g. an outline
-q output is always Markdown/plain text, regardless of -f (which only formats the stats block on stderr, not content). For JSON/table/grep, skip -q and pipe the page into mq instead:
mq-crawl --depth 0 https://example.com 2>/dev/null | mq -F json 'select(.link)' # structured rows
mq-crawl --depth 0 https://example.com 2>/dev/null | mq -F json '.[][]' # table cells
mq-crawl --depth 0 https://example.com 2>/dev/null | mq -F grep --context 2 'select(contains("Pricing"))' # locate text
Filter with select(...) like jq: select(.h.level <= 2), select(.code.lang == "js"), select(contains("keyword")).
JS-Rendered Pages & Multi-Page Crawls
mq-crawl --depth 0 --headless --headless-network-idle https://spa.example.com 2>/dev/null
mq-crawl https://docs.example.com --depth 2 --allowed-domains docs.example.com \
--concurrency 4 -o ./crawled 2>/dev/null
--headlessneeds local Chrome (or--webdriver-urlfor a remote WebDriver).--allowed-domainsis an exact-match domain list, not a wildcard — list every subdomain you want crawled.-o DIRsaves one Markdown file per page instead of stdout; aggregate them withmq -I null --allow-read 'collection("./crawled") | map(self, fn(page): get(page, "title");)' /dev/null(collectionreads from disk, so it requires--allow-read).
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.
- 2d ago First seen · 91 lines · 89 tokens per session scan A 0807cafea37f
web-scraping is a skill published in the GitHub repository harehare/mq (1,023 stars, last pushed 2d ago), licensed MIT. It adds 89 tokens to every session and 1,473 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
qa-testing
Verify your work by actually operating the app or website you changed, instead of assuming it works. Strongly recommended whenever you build, modify, or debug a web app, website, or desktop GUI app. Drive real browsers with the agent-browser CLI and native desktop apps with the cua-driver CLI. These are installed on…
p5js
Production pipeline for interactive and generative visual art using p5.js. Creates browser-based sketches, generative art, data visualizations, interactive experiences, 3D scenes, audio-reactive visuals, and motion graphics — exported as HTML, PNG, GIF, MP4, or SVG. Covers: 2D/3D rendering, noise and particle systems…
verify
Drive an engine app headlessly in a pty, record a video of the whole verification, and open a summary page (video + timeline + checks) with pixel open.
firecrawl-build
Integrate Firecrawl into application code whenever a product, agent, or workflow needs web data inside the app — web search, live search results, page scraping, structured extraction, or browser interaction. Use when building any feature that needs data from the web in code, even if the user does not mention Firecrawl…
firecrawl-build-onboarding
Get Firecrawl credentials and SDK setup into a project. Use when an application needs FIRECRAWLAPIKEY, when an agent should add Firecrawl to .env, when the user wants to authenticate Firecrawl for app code, or when choosing the first SDK and docs for a new Firecrawl integration. This skill includes its own browser…
firecrawl-build-scrape
Integrate Firecrawl /scrape into product code for single-page extraction. Use when an app already has a URL and needs markdown, HTML, links, screenshots, metadata, or structured page output. Prefer this skill over broader crawl patterns when the feature is page-level.