Skip to content

Vatsov/config-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Page Config Generator

A Claude Code skill that generates PageConfig JSON for the browser-overlay extension by analyzing e-commerce HTML pages.

It works in two phases:

  1. HTML Analysis - Condenses the DOM and identifies product cards, IDs, images, and page type (PLP/PDP)
  2. Selectors Generation - Produces a selectors.json with overlay and PDP selectors ready to merge into a full config

Prerequisites

Installation

git clone git@github.com:Vatsov/config-generator.git
cd config-generator

Open Claude Code from within the cloned repo directory to start using the skill.

Usage

Step 1: Save the HTML of the target site

Open the e-commerce site you want to configure in a browser. Navigate to the product listing page (PLP) or product detail page (PDP), then save the full HTML:

  • Chrome/Edge: Ctrl+S (or Cmd+S on Mac) → Save as "Webpage, Complete" or "Webpage, HTML Only"
  • DevTools: Open DevTools (F12) → Elements tab → right-click on <html> → Copy → Copy outerHTML → paste into a .html file

Save the file somewhere accessible, e.g. ~/Downloads/site-plp.html.

Step 2: Run the skill

Open Claude Code from the repo directory and invoke the skill:

/page-config-generator ~/Downloads/site-plp.html

What happens next

Claude will:

  1. Run the DOM condenser on your HTML
  2. Present an HTML Analysis Report with detected products, IDs, and site hints
  3. After your confirmation, generate a selectors.json file
  4. Validate the output automatically

File Structure

├── SKILL.md                     # Skill instructions (used by Claude Code)
├── scripts/
│   ├── extract_html.py          # DOM condenser + site hints detection
│   └── pageconfig.py            # Init, validate, merge CLI tool
└── references/
    └── page-config-reference.md # Full PageConfig schema documentation

About

Claude Code skill for generating PageConfig JSON

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages