scrape-analyze-page
Installation
SKILL.md
This file is 134 lines long; read all of them.
SKILL_DIR below stands for the absolute path of the directory that contains this file.
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:
- 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. - Path to output file, e.g.
product1.json. When provided, this is where you will save the structured analysis. - Path to data-type spec.json. When provided, guides extraction using schema field names, descriptions, and examples.
- 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.
--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.