antislop-pixel
БесплатноЗапускает вложенные скриптыНе проверенReproduce a web UI 1:1 (Reference Website) or extract a measured Design System spec (design.md) from Screenshots (single or multi-state), Live Links, or…
от miqdadbadjuber★ 10 590 звёзд на GitHubОб этом скилле
antislop-pixel
Give an input (Screenshot(s), Live Link, or Screen Recording) and choose Reference Website (default) or
design.md. No manual DPI/zoom/OCR setup required.
1. Two Outputs × Three Input Modes
| Input Mode (auto-detected) | Output A: Reference Website (index.html + styles.css) |
Output B: design.md |
|---|---|---|
| Screenshot (1 or more PNG/JPG) | Inspect screenshots directly + optional lightweight shots.py (PREFLIGHT: WARN non-blocking) → build real HTML/CSS → visual + zoom verify (1-2 quick passes) |
Inspect screenshots directly (optional measure.py --json + spec.py) → refined design.md |
| Screen Recording (.mp4/.mov/.mkv) | record.py (Step 0 Preflight + adaptive scroll/state keyframes) → build scrolling HTML/CSS + motion → gate.py --batch |
record.py + measure.py → spec.py (includes scroll & motion specs) |
Live Link (https://...) |
capture.py (1×) → freeze.py --states (1×) → gate.py --link (max 3 passes/state) |
capture.py → spec.py (exact computed CSS tokens & interactive diffs) |
2. Non-Negotiable Rules & Hygiene
- One requested output only: produce only what the user asked for: Output A (Reference Website:
index.html+styles.css) or Output B (design.md). Never generate both outputs at once unless the user explicitly asks for both. - Step 0 Readiness & Confirmation Check:
- Tools & script paths: every helper script lives in the
scripts/folder next to thisSKILL.md(resolve<skill_dir>via${CLAUDE_SKILL_DIR}when available, or point directly at the installedantislop-pixelskill folder; usepython3on macOS/Linux andpythonon Windows). Run<skill_dir>/scripts/doctor.pyonce per machine to check local tools; if anything listed inrequirements.txtordoctor.pyis missing, show the missing items and get the user's approval before installing them. - Screenshot Mode (Human-first & Non-blocking): inspect all provided screenshots visually (
read_file) first;shots.pyis a lightweight helper that cleans OS scrollbars and emitsPASS/WARN(never blocking on scroll gaps).- Only
FAIL(corrupt/unreadable/tiny<320pximage) blocks execution. - Single or incomplete screenshot (e.g., Hero section only): if the user only provides one partial/uncaptured-footer screenshot, inform them clearly that the input only covers part of the page and ask if they want to add more screenshots or build just that visible section. If they proceed as-is (or ask specifically for that section), build strictly what is visible in the screenshot (never invent uncaptured sections) and explicitly state in the final delivery note that only that section was built because only one incomplete screenshot was attached.
- Multi-screenshot scroll gap (
WARN): describe simply in plain human words (NO file-index codes, NO pixel offsets, NO rename instructions) which visible section appears incomplete/gapped and the tradeoff if proceeding as-is, and ask once whether the user wants to add another screenshot OR proceed immediately (accepting that the small gap's vertical spacing/details will be estimated). If all page copy/sections are already clear (e.g. a minor photo gap inside the same card) or the user says go ahead, build directly!
- Only
- Heavy-Mode Time & Quota Warnings (Ask Before Running Unless Already Approved):
- Screen Recording (MAJOR TIME WARNING): before running Screen Recording automation (unless already explicitly approved in this turn), give a prominent warning in the user's chat language that full-scroll video extraction (
record.py), OCR/layout analysis, and multi-pass system checks run heavy local processing and typically take a very long time (30 minutes to 2 hours or more) plus moderate-to-high quota. Wait for confirmation before starting. - Live Link (Standard Heads-Up): before running Live Link automation (unless already explicitly approved in this turn), give a clear heads-up in the user's chat language that live DOM capture, freeze, and gate verification take a noticeable amount of time (~20-30 minutes) and moderate-to-high quota/limit usage, and wait for confirmation before starting.
- Screen Recording (MAJOR TIME WARNING): before running Screen Recording automation (unless already explicitly approved in this turn), give a prominent warning in the user's chat language that full-scroll video extraction (
- Screen Recording Preflight: always inspect
PREFLIGHT:printed byrecord.py(PASS-> proceed silently;FAILexit3-> stop cleanly before building and report which video segment is frozen/corrupt/skipped).
- Tools & script paths: every helper script lives in the
- Clean deliverables only: write ALL intermediate/debug files (
dom.html,dump.json,stylesheets.json,before.png,kf*.png,ref*.png,shots.json,recording.json,targets.json,out*.png,diff*.png,masks.json,spec_data.json) inside<target>/.antislop-pixel/. The target folder itself receives only:- Output A (Reference Website):
index.htmlandstyles.css - Output B (
design.md):design.md
- Output A (Reference Website):
- **No friction
Установить antislop-pixel в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditGlobGrepBashWebFetchВложенные файлы
FAQ
Что делает скилл antislop-pixel?
Reproduce a web UI 1:1 (Reference Website) or extract a measured Design System spec (design.md) from Screenshots (single or multi-state), Live Links, or Screen Recordings. Runs Step 0 preflight readiness checks first, adapts keyframes to cover long scrolls cleanly, keeps debug artifacts in .antislop-pixel/, and enforces calibrated pixel, structural, and zoom gates.
Как установить скилл antislop-pixel?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл antislop-pixel запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic