| name | site-ripper |
| description | Site Ripper — estrai design system da qualsiasi sito web via Playwright (screenshot + CSS + asset) |
| argument-hint | [url] [pagine: /,/about,/pricing] |
| requires | {"capabilities":["playwright"]} |
Site Ripper
Input: $ARGUMENTS
Cosa fa
Prende un URL qualsiasi e ne estrae il design system via Playwright: screenshot a piu breakpoint, CSS extraction, download asset (logo, favicon, hero, OG image).
Requisiti
playwright installato (pip install playwright && playwright install chromium)
Wrapper
import sys; sys.path.insert(0, '${CLAUDE_SKILL_DIR}/scripts')
from site_ripper import SiteRipper
ripper = SiteRipper()
Uso
result = ripper.rip(
url,
output_dir=f"storage/figma/{slug}/",
pages=["/", "/about", "/contact"],
breakpoints=["desktop", "tablet", "mobile"],
)
ds = result["design_system"]
Output
🔍 **Site Ripper: {url}**
**Pagine:** {N} | **Breakpoint:** desktop, tablet, mobile
**Palette:** BG: {bg} | Text: {text} | Accent: {accent} ({theme} theme)
**Typography:** Heading: {heading_font} | Body: {body_font}
**Layout:** header {si/no} | hero {si/no} | footer {si/no}
**Asset:** {N} scaricati (logo, favicon, hero...)
**Screenshot:** {N} salvati
📁 Output: storage/figma/{slug}/
Regole
- Solo lettura — non modificare nulla sul sito
- Asset in storage/ — mai in public/
- Rate limiting — 1 secondo tra le pagine
- Playwright headless — sempre, mai mostrare il browser
- Se Playwright non installato — spiega:
pip install playwright && playwright install chromium