moh4696/open-3d-skills

site-check

Verifies a 3D or animated web page in real headless browsers before anyone else sees it.

Zobacz źródło

Jak używać

  1. Skopiuj polecenie instalacji i sprawdź źródła przed instalacją we własnym środowisku agenta.
  2. W oryginale sprawdź wymagane narzędzia, dane dostępowe i obsługiwane środowiska.
  3. Opisz dane wejściowe i oczekiwany rezultat; porównaj wynik ze źródłami.
npx skills add https://github.com/moh4696/open-3d-skills --skill site-check

Przed rozpoczęciem

  • Instalacja nie obejmuje subskrypcji modelu, limitu API ani uprawnień do plików.
  • Gwiazdki i instalacje pokazują aktywność, a nie niezależny test jakości lub bezpieczeństwa.
Oryginalny dokument Skill

Treść z repozytorium z zachowaniem nagłówków, przykładów, kodu, tabel, linków i obrazów.

Site check

An animated page can look perfect in the one browser tab it was built in and fail everywhere else: a blank canvas in Safari, a crop on phones, a seam in a scroll film, a 40 ms frame on a laptop. This skill looks at the page the way visitors will, in several real browsers at several sizes, and reports what broke with pictures.

Tool

scripts/check.py drives headless Chromium (on the real GPU) and WebKit through Playwright.

bash
python3 scripts/check.py http://127.0.0.1:8000/ --out shots \
  --widths 1440,768,390 --browser both \
  --query "view=front" "view=aerial&light=night" \
  --scroll-steps 6 --ready "window.__ready === true"
OptionMeaning
--queryQuery strings appended to the URL, each shot at every width. Give pages deep links (?view=, ?light=, ?step=) so every state is reachable
--widths1440 (laptop), 768 (tablet), 390 (phone, emulated with touch and DPR 2)
--browserchromium, webkit (Safari's engine) or both
--scroll-steps NAlso shoots N evenly spaced scroll positions, for scroll-driven pages
--readyJS expression that is true once the page has rendered for real
--waitSeconds to let things settle before measuring

Output: one PNG per shot, report.json, and sheet.jpg with every shot labelled; problem shots are labelled in red. The script exits 1 if any shot had a page error, a failed or 4xx/5xx request, a blank canvas or horizontal overflow. Each shot also gets a reduced-motion pass at the widest width.

Needs Python 3.9+, pip install playwright pillow, and python3 -m playwright install chromium webkit. Serve the page over HTTP (ES modules and video seeking need it) with scripts/serve.py DIR --port 8000; it answers Range requests, which python3 -m http.server does not.

Reading the report

  • ms per frame is measured over 60 real frames. Under 16.7 is 60 fps; headless on a laptop GPU should sit near 16.7 (vsync), so a higher number means real cost. Compare runs with each other. If the report says the renderer is SwiftShader or llvmpipe, the GPU was not used and frame times mean nothing.
  • calls / triangles come from window.__app.renderer (three.js), counted for a whole frame including every post-processing pass. Expose the renderer there so the check can see it.
  • ready_s is how long the page took to set its ready flag. Over 3 s on a fast machine means the loader is visible for too long on a phone.
  • blank canvas means a visible canvas was one flat colour: a WebGL context that failed, a shader that did not compile in that browser, or a frame drawn before assets loaded.

Then look

The numbers catch breakage; your eyes catch ugliness. Open sheet.jpg and check each shot for:

  • The subject cropped or tiny on the phone shot. 3D scenes should widen their vertical field of view on portrait screens; layouts should restack.
  • Text over busy imagery without contrast.
  • UI covering the subject, or sitting under the phone's home indicator.
  • Lighting states that crush to black or clip to white.
  • WebKit shots that differ from Chromium: colour (Safari ignores some colour-space hints), missing transparency (VP9 alpha video does not play in Safari), fonts.

Checks the script cannot do alone

Run these by hand or with frame-capture at a low frame rate (--fps 8), which is fast and exact:

  • Seams and loops. Scrub every scroll film up and down fast; watch each join and the wrap of every loop. scroll-film/scripts/prep.py seams scores joins numerically.
  • Pins release. At the end of every pinned section the page must scroll on without a jump.
  • Long sessions. Leave the page running for a minute, switch light presets back and forth, resize the window a few times; frame time should not creep up (leaked geometries and textures show in report.json as rising counts).
  • Throttled first load. With network throttling, the first paint should be the hero's poster or first frame, not a blank page.
  • Interaction. Orbit, zoom, hover states, keyboard focus on every control, and touch on a phone.

Environment traps

  • An embedded browser preview that is hidden, or a background tab, throttles or freezes requestAnimationFrame. A page that "does not animate" there may be fine. Headless browsers do not have this problem.
  • python3 -m http.server ignores Range requests, so videos cannot seek and scroll-scrubbed video freezes. Use a server that answers them.
  • A missing Playwright browser build after an upgrade: the script falls back to any Chromium in the Playwright cache; CHROME_PATH overrides it.

Report back

Lead with what is broken, ranked by how many visitors it hits: errors and blank canvases first, then phone layout, then Safari differences, then performance, then polish. Attach the contact sheet. Say what was not checked (no real phone, no Windows GPU, no slow network) rather than implying it was.

z tego samego repozytorium

Więcej Skills

Wszystkie Skills
moh4696
Społeczność

alpha-cutout

Turns an AI-generated (or filmed) clip of a character or product into a transparent, web-ready animation by shooting it on a flat chroma plate and keying it with per-frame plate measurement and edge unmixing. Delivers stacked-alpha MP4 that plays with transparency in every browser including Safari, VP9 alpha WebM, or keyed WebP frame sequences for scroll scrubbing. Use when an animated subject has to sit over page content, between layers of type, or over a 3D scene, when someone asks for "transp

Instalacje / 1h
2
GitHub Stars
30
Aktualizacja
31 paź
moh4696
Społeczność

cursor-rig

Makes a painted or illustrated character turn its head to follow the visitor's cursor, looking like one continuous painting that moves, without a 3D model or face tracking. Generates head-pose keyframes with an image-editing model and head-turn clips with an image-to-video model, then builds a pose grid on one fixed body (selected by measured head position, aligned, masked, with optical-flow in-betweens) and plays it with a spring-driven canvas player that also blinks. Use when someone wants a h

Instalacje / 1h
2
GitHub Stars
30
Aktualizacja
31 paź
moh4696
Społeczność

exploded-view

Builds interactive 3D explainers of how a machine or product works, in three.js, with a staged exploded view driven by a slider or scroll, x-ray shells, a section cut through the casing, labels pinned to parts with leader lines that never cover the model, and hover or click to pick parts. Works on code-built models and loaded GLB files. Use for "show how it works", teardown or cutaway pages, product anatomy, engine, motor, gearbox, camera, phone or vehicle internals, technical education pages, o

Instalacje / 1h
2
GitHub Stars
30
Aktualizacja
31 paź
moh4696
Społeczność

frame-capture

Records any web page (three.js, WebGL, canvas, GSAP, CSS animation, scroll-driven video) to a perfectly smooth 60 fps MP4 by running the page on a virtual clock, one exact frame at a time, and puts two recordings against each other as a labelled stacked or side-by-side comparison. Use when someone wants a video of a site, a demo clip for X or YouTube, a scroll-through, a showcase reel of a 3D scene, or a "model A vs model B" comparison video. Also use when a screen recording of an animated page

Instalacje / 1h
2
GitHub Stars
30
Aktualizacja
31 paź