Scrape Analyze Page logo

Scrape Analyze Page

Organization
zytedata
scrape-analyze-page

Extract structured data (all available fields with values) from a page saved locally as an HTML file, optionally following a schema. Do not invoke when the user provides a URL. When invoking, pass the user's full request verbatim as args — do not pre-parse file paths and don't rephrase it.

Overview

Publisherzytedata
Repositoryclaude-skills
Skill namescrape-analyze-page
Stars
33
Forks
5
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by zytedata on GitHub. Read the source before you install it.

Installation

Install the Scrape Analyze Page AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/zytedata/claude-skills/tree/main/skills/scrape-analyze-page
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zytedata/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/skills/scrape-analyze-page .claude/skills/scrape-analyze-page
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Scrape Analyze Page in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Scrape Analyze Page on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Scrape Analyze Page is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

This file is 133 lines long; read all of them.

You are extracting structured data from a page. Given saved HTML, identify all available fields and extract their values.

Input

This is the user prompt: $ARGUMENTS. You need to extract the following information from it:

  1. Path to the saved HTML file, e.g. product1.html. This is what you need to analyze. Don't proceed if it's not provided.
  2. Path to output file, e.g. product1.json. When provided, this is where you will save the structured analysis.
  3. Path to data-type spec.json. When provided, guides extraction using schema field names, descriptions, and examples.
  4. Whether to strictly extract only the fields listed in the schema, if the schema was provided. When asked for strict extraction, extract only schema fields — no extras.
  5. --list-mode: when present, the page is a listing page. Extract ALL repeated item instances (e.g., every product card) as an array rather than a single-item object.

Process

1. Clean and read the page

Only process this one page. Do not read or compare with other pages' analysis files.

.scrape/.work/ is shared with the orchestrator and other concurrently running agents. Never delete or "clean up" anything under it, at any point — leave your intermediate files in place when you finish.

Clean the HTML and extract metadata, saving outputs to the work directory. Use {page_id}.{html_variant} as the filename base to avoid collisions:

uv run --python 3.14 ${CLAUDE_SKILL_DIR}/scripts/clean_html.py PAGE.html -l1 -o .scrape/.work/analysis/{page_id}.{html_variant}.cleaned.html
uv run --python 3.14 ${CLAUDE_SKILL_DIR}/scripts/extract_metadata.py PAGE.html -u PAGE_URL -o .scrape/.work/analysis/{page_id}.{html_variant}.metadata.json

Read only the cleaned HTML (never the original) and the metadata JSON. The metadata may be empty {} if the page has no structured data.

2. Extract fields

IMPORTANT: Never read the original HTML file (PAGE.html), even partially, even via tools such as Bash. Only use the cleaned HTML output from step 1 as your HTML source.

Use both the cleaned HTML and the metadata as data sources. Metadata (especially JSON-LD) often has cleaner, more complete values than what's visible in the HTML — e.g., structured price/priceCurrency vs rendered "$29.99", aggregateRating with review count, brand as a structured object. Some fields may only exist in metadata (e.g., sku, gtin, @type).

Examine both sources and extract all meaningful data fields. Meaningful means describing the page's own subject: leave out the surrounding site, such as navigation, ads, and other items listed as related, recommended, or recently viewed. For each field, determine:

  • name: descriptive snake_case field name
  • type: JSON Schema type name — string, number, integer, boolean, array, or object
  • value: the extracted value

Four modes depending on arguments:

  • No schema (Stage 1 — discovery): Extract all meaningful fields from the page. Invent descriptive snake_case names.
  • Schema (Stage 2 — default): Extract schema fields using their exact names, descriptions, and examples for formatting. Also extract additional fields not in the schema — they may reveal data the user didn't know about.
  • Schema + strict (Stage 2 — re-analysis): Extract only the schema fields. No extras.
  • List mode (--list-mode): Identify the repeating container element on the page (e.g., article.product_pod, .search-result). Extract ALL item instances using schema field names. No extras — schema fields only. Produce an array.

In schema mode:

  • Extract every schema property that has a value and save it with the schema's exact field name.
  • For schema fields, follow the schema descriptions and examples first, preserve full values in the output file, and use the schema's JSON Schema type label (string, number, integer, array, object) when the schema provides one.
  • If a schema field has no value in the cleaned HTML or metadata, omit it without calling attention to the missing field in the final response.
  • Unless strict extraction was requested, also extract meaningful extra fields that are clearly present in metadata or cleaned content.
  • For extras that do not have schema types, use string, number, integer, boolean, array, or object.
  • For product media fields, prefer the displayed URL that matches the schema/example shape over canonical, thumbnail, zoom, or resized alternatives.
  • Meaningful extras include product breadcrumbs, complete variant/offer lists, and obvious derived counts such as tool_count from an extracted tools_included list.
  • If both a singular product image and an image list are available, save the singular best image field as well as the list when it is relevant.

3. Handle large values

For fields with large values (long text, HTML content, nested structures), extract the full value for the saved output and prepare a truncated version for the summary.

Truncating a value means keeping the beginning of it verbatim and stating how much was left out:

  • Long text: the first 100 characters exactly as saved, plus the total character count.
  • List or dict: the first entries exactly as saved, plus the total item count.

4. Save full output

If output_path is provided, save complete extraction to output_path, otherwise skip this step. If the user has asked for a specific format and structure, use that. Otherwise write a JSON file with the following structure.

Standard format (detail pages, no --list-mode):

json
{
  "fields": {
    "name": {"type": "string", "value": "Widget X"},
    "price": {"type": "string", "value": "$29.99"},
    "description": {"type": "string", "value": "Full long description..."}
  }
}

List mode format (--list-mode): an array of all extracted item instances:

json
{
  "url": "https://...",
  "values": [
    {"title": "A Light in the Attic", "price": "£51.77"},
    {"title": "Tipping the Velvet", "price": "£53.74"}
  ]
}

5. Return summary

Summarize the file you saved with:

uv run --python 3.14 ${CLAUDE_SKILL_DIR}/scripts/summarize.py OUTPUT_PATH

It reads the saved JSON or YAML and prints every field with its name, type, and value, truncating the long ones as described in step 3. Use its output as your final message, unchanged.

Only when no output_path was provided, write that summary yourself: every extracted field with its field name, type, and value, no field omitted or renamed, and no value described instead of quoted, as in "8 offers" or "24 spec values".

Example:

These fields were discovered:
  name (string): "Widget X"
  price (string): "$29.99"
  description (string): "Premium widget with advanced..." (2340 chars)
  rating (number): 4.5
The full report is saved to $output_path

List mode: report count and a sample:

list-1 (https://...), saved to $output_path:
  20 items extracted
  sample: title="A Light in the Attic", price="£51.77"

Truncating long values is what keeps the summary compact enough to load into the orchestrator's main context alongside summaries from other pages.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Scrape Analyze Page AI skill do?

Extract structured data (all available fields with values) from a page saved locally as an HTML file, optionally following a schema. Do not invoke when the user provides a URL. When invoking, pass the user's full request verbatim as args — do not pre-parse file paths and don't rephrase it.

Why use Scrape Analyze Page on TypingMind?

Because you install it once and use it with any model. Scrape Analyze Page is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Scrape Analyze Page in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zytedata/claude-skills/tree/main/skills/scrape-analyze-page. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Scrape Analyze Page?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Scrape Analyze Page?

As many as you like. As long as a model supports skills, you can use Scrape Analyze Page with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Scrape Analyze Page AI skill free?

It is published on GitHub by zytedata. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇