Index of every page on this site: llms.txt
All skills
kiln-skills avatar

/website-visual-inspector

@555d7ea
Run it yourself

See what a website looks like (desktop and mobile screenshots) and break down its background — colors, gradients, images, video, canvas, ::before/::after pseudo-elements, overlays, and the color palette. Use when the user says "look at this website", "check how it looks", "what's the background on this site", "clone/copy this design", "grab the colors/gradient from this site", or gives a URL and asks about its visuals (also in Indonesian, such as "lihat website ini", "cek tampilan", "background website apa", "tiru desain").

Use this Skill: https://skilld.dev/gh/kiln-skills/kiln/website-visual-inspector

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈139 tokens for metadata: the name and description. ≈871 when used: this file.

Description uses 7.0% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈556 characters, or 7.0%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Website Visual Inspector

This skill lets the agent see a website the way a person does (through screenshots) and read its background precisely (through computed CSS), then combine the two.

Setup (once)

pip install playwright        # add --break-system-packages if needed
python -m playwright install chromium

Workflow

  1. Run the inspection

    python3 scripts/inspect_site.py <URL> --out site-inspect

    Options: --dark (render in dark mode), --no-mobile, --no-download, --wait 3000 (for sites with heavy animation). The URL can also be a local file (./index.html) or a dev server (http://localhost:3000).

  2. Look at it — open the screenshots with Read (Read can display images):

    • site-inspect/viewport_desktop.png → first impression / hero section
    • site-inspect/screenshot_desktop.png → the whole page
    • site-inspect/screenshot_mobile.png → the mobile version A very tall full-page screenshot can look tiny; crop it first if you need detail: python3 -c "from PIL import Image; im=Image.open('site-inspect/screenshot_desktop.png'); im.crop((0,0,1440,1800)).save('site-inspect/crop_1.png')"
  3. Read the background data — start with site-inspect/report.md (short). Open backgrounds.json only for details on a specific element.

  4. Combine what you see in the screenshots with the CSS data. Example: the hero looks purple-blue → match it to the gradient in the report and give the exact selector and value.

What it detects

Kind Source
Solid colors background-color on every element plus html/body
Gradients linear/radial/conic-gradient, including stacked ones
Images url(...) in background-image (downloaded to backgrounds/)
Pseudo-elements ::before / ::after (often used for dark overlays or noise)
Background video <video> with autoplay/loop/muted, plus poster
Canvas large <canvas> (WebGL / particle animation — only visible in screenshots)
Img as background <img> with object-fit: cover + position: absolute/fixed
Effects background-attachment: fixed (parallax), blend-mode, filter, backdrop-filter (glassmorphism)
Design tokens color CSS variables on :root
Palette background colors ranked by area (palette.json)

When answering the user

  • Show the relevant screenshots (send the files if the user can't see the working folder).
  • Name the main background: exact color/gradient (hex and CSS), images and downloaded files, overlay layers.
  • If the user wants to recreate the design, write ready-to-use CSS that reproduces the background. Images and logos from another site belong to their owner; suggest replacing them with the user's own assets for anything public.
  • If there's a canvas or video, explain that it's an animation and describe it from the screenshots.
  • Reply in the user's language.

Common problems

  • Blank page / blocked as a bot → try --wait 5000; some sites (Cloudflare challenges) can't be inspected automatically. Don't try to get past a CAPTCHA.
  • Content appears on scroll → the script already auto-scrolls; add --wait if it's still empty.
  • Images fail to download → the URL is still recorded in the report; hotlink protection can refuse downloads.
  • Cross-origin stylesheets → CSS variables from CDN files may not be readable, but computed styles are still accurate.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning15d3 checks · Risk SAFE
  • Gen Agent Trust Hub15d

    This skill is a visual auditing tool that uses Playwright to capture screenshots and analyze CSS background properties of websites. It includes safe practices like skipping local file downloads for web-hosted pages and neutral handling of external media.

  • Socket15d

    No alerts

  • Snyk15d

    Risk: MEDIUM · 1 issue

Signed by skilld at 555d7ea. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 2 weeks ago
What it can do
Runs commands Reads files Edits files
All 3 allowed tools
BashReadWrite

README badge

README badge for kiln-skills/kiln/website-visual-inspector