Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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 this SKILL.md (resolve <skill_dir> via ${CLAUDE_SKILL_DIR} when available, or point directly at the installed antislop-pixel skill folder; use python3 on macOS/Linux and python on Windows). Run <skill_dir>/scripts/doctor.py once per machine to check local tools; if anything listed in requirements.txt or doctor.py is 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.py is a lightweight helper that cleans OS scrollbars and emits PASS / WARN (never blocking on scroll gaps).
      • Only FAIL (corrupt/unreadable/tiny <320px image) 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!
    • 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 Preflight: always inspect PREFLIGHT: printed by record.py (PASS -> proceed silently; FAIL exit 3 -> stop cleanly before building and report which video segment is frozen/corrupt/skipped).
  • 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.html and styles.css
    • Output B (design.md): design.md
  • **No friction
Полный SKILL.md на GitHub

Установить antislop-pixel в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Glob
Grep
Bash
WebFetch

Вложенные файлы

requirements.txtscripts/capture.pyscripts/diff.pyscripts/doctor.pyscripts/freeze.pyscripts/gate.pyscripts/measure.pyscripts/record.pyscripts/render.pyscripts/shots.pyscripts/spec.py

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить antislop-pixel с