agentleFS
CommsConnectgmbhCommsConnectgmbh/claude-starter-kit/skills/scrape/SKILL.md

scrape

Skill0 starsChanged 35 days agoMITView on GitHub

Pull structured data from a web page, read-only, and emit it as clean JSON. Given a one-line intent ('top stories on Hacker News', 'product names + prices on example.com/products'), fetch the page, find the data, parse it, return one JSON document on stdout. Use for one-shot data extraction the user wants as machine-readable output. Trigger phrases: 'scrape', 'zieh die daten von', 'extrahier von der seite', 'hol mir als JSON', 'pull data from', 'parse this page'. Read-only: refuses mutating intents (login, submit, post, order). For repeated scrapes, follow with /skillify to save it as a reusable scraper. NOT for multi-page crawls or auth flows.

31 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use freehire-search, ios-sync and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • arafat1023Skill

    freehire-search

    Use this skill to search live software / tech / data / engineering job listings across many countries and markets (and remote) via the freehire.dev aggregator's public API, or to look up a specific posting. It aggregates roles from ~50 ATS platforms into one schema, so a single skill covers many markets — but its faceted filtering (skills, category, seniority) is tuned tech-first, so scope triggers to technical roles. Trigger phrases: find a tech job, software job search, developer jobs, engineering vacancies, data/ML jobs, DevOps roles, remote developer jobs, "are there any <tech role> jobs in <place>", look up this freehire job posting.

    Also in 6 projects that use this

  • Saqlain-811Skill

    ios-sync

    Regenerate the iOS debug bridge against the latest upstream gstack templates. (gstack)

    Also in 6 projects that use this

  • ShreyRaviSkill

    setup-gbrain

    Set up gbrain for this coding agent: install the CLI, initialize a local PGLite or Supabase brain, register MCP, capture per-remote trust policy. One command from zero to "gbrain is running, and this agent can call it." Use when: "setup gbrain", "connect gbrain", "start gbrain", "install gbrain", "configure gbrain for this machine". (gstack)

    Also in 8 projects that use this

  • ShreyRaviSkill

    plan-tune

    Self-tuning question sensitivity + developer psychographic for gstack (v1: observational). Review which AskUserQuestion prompts fire across gstack skills, set per-question preferences (never-ask / always-ask / ask-only-for-one-way), inspect the dual-track profile (what you declared vs what your behavior suggests), and enable/disable question tuning. Conversational interface — no CLI syntax required.

    Also in 10 projects that use this

  • Saqlain-811Skill

    ios-clean

    Remove the DebugBridge SPM package and all #if DEBUG wiring from an iOS app. (gstack)

    Also in 5 projects that use this

  • arafat1023Skill

    linkedin-search

    Use this skill whenever the user wants to search for jobs in any location or market, find job listings, or look up a specific job posting — in any country, city, or remotely. Invoke for open positions, vacancies, and hiring across any sector or role (software, data, design, marketing, finance, legal, operations, etc.). The location is always supplied explicitly by the user. Trigger phrases: find a job, job search, search for jobs, job openings, vacancies, hiring, positions open, remote jobs, "are there any X jobs in <place>", look up this job posting.

    Also in 6 projects that use this

  • +3 more from ShreyRavi
  • +1 more from Saqlain-811

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 10 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 25 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the intent implies writes — *submit, post, send, log in, click X, fill the form, delete, create, order, book* — refuse:

    line 20
  2. Distinctive:

    Stop. Do not enter the prototype path.

    line 24
  3. Very specific:

    Look in scrapers/ (repo root) for a saved scraper whose intent/triggers match (written by /skillify).

    line 27
  4. Distinctive:

    A. Static HTML (default — try first): use the WebFetch tool on the URL with a prompt that asks for the specific data as JSON.

    line 37
  5. Distinctive:

    B. JS-rendered / WebFetch came back empty or partial: use Playwright via npx. Write a throwaway probe, iterate selectors against the real …

    line 40
  6. Distinctive:

    Write a throwaway probe, iterate selectors against the real HTML:

    line 41
  7. Very specific:

    Do not wrap it in prose in the chat reply (callers pipe to jq) unless the user asked for an explanation.

    line 61
  8. Distinctive:

    After a successful prototype, append exactly one line and nothing more:

    line 65
  9. Distinctive:

    If after 3–4 selector attempts no sensible JSON shape emerges:

    line 69
  10. Distinctive:

    Do NOT write a partial result and call it done.

    line 71
  11. Distinctive:

    Ask: (a) try a different selector, (b) different page, or (c) stop.

    line 72
  12. Distinctive:

    Never scrape anything behind a login the user hasn't authorized you to use.

    line 79

“Common” is measured: kept by at least 6 in 10 of the 25 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/scrape — Read-only web data extraction

One-line intent in, one JSON document out.

Step 1 — Determine intent

The text after /scrape is the intent. If absent, ask once: "What do you want to scrape? One line, e.g. 'top stories on Hacker News' or 'product names + prices on example.com/products'." Don't front-load clarifying questions — cheaper to refine while prototyping.

Step 2 — Refuse mutating intents

If the intent implies writes — submit, post, send, log in, click X, fill the form, delete, create, order, book — refuse:

"/scrape is read-only. For mutating flows, drive the page directly with Playwright or ask for a dedicated automation script." Stop. Do not enter the prototype path.

Step 3 — Check for an existing saved scraper

Look in scrapers/ (repo root) for a saved scraper whose intent/triggers match (written by /skillify). If scrapers/<name>.mjs exists and clearly covers this intent:

node scrapers/<name>.mjs   # prints the JSON directly

Emit its JSON and stop. If no confident match, fall through to the prototype path.

Step 4 — Prototype path

Pick the lightest tool that works:

A. Static HTML (default — try first): use the WebFetch tool on the URL with a prompt that asks for the specific data as JSON. Good for server-rendered pages.

B. JS-rendered / WebFetch came back empty or partial: use Playwright via npx. Write a throwaway probe, iterate selectors against the real HTML:

cat > /tmp/scrape-$$.mjs <<'EOF'
import { chromium } from 'playwright';
const url = process.argv[2];
const b = await chromium.launch();
const p = await b.newPage();
await p.goto(url, { waitUntil: 'networkidle', timeout: 30000 });
const html = await p.content();
await b.close();
process.stdout.write(html);
EOF
npx -y playwright@latest /tmp/scrape-$$.mjs "<url>" > /tmp/scrape-$$.html

Then read /tmp/scrape-$$.html, find the repeating structure (list rows, table cells, cards), and extract. For lists of links, pull a[href]. Iterate: try a selector, check the output, refine. (Run npx -y playwright@latest install chromium once if the browser is missing.)

Step 5 — Emit

One JSON document on stdout. Use a stable shape — typically { "items": [...], "count": N }. Do not wrap it in prose in the chat reply (callers pipe to jq) unless the user asked for an explanation. Logs and notes go in chat, not in the JSON.

Step 6 — Skillify nudge

After a successful prototype, append exactly one line and nothing more:

"Say /skillify to save this as a reusable scraper (instant on next call)."

When the prototype fails

If after 3–4 selector attempts no sensible JSON shape emerges:

  • Report what you tried, what came back, what's blocking (lazy-loaded, JS-gated, paywalled, bot-blocked).
  • Do NOT write a partial result and call it done. Do NOT suggest /skillify on a broken prototype.
  • Ask: (a) try a different selector, (b) different page, or (c) stop.

What this skill does NOT do

  • Mutating actions, auth/login flows, cookie import, multi-page crawls. One-shot, read-only, per call.

Respect & limits

  • Honor robots.txt intent and rate limits; this is for data the user is entitled to read.
  • Never scrape anything behind a login the user hasn't authorized you to use.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.