---
name: website-visual-inspector
description: 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").
allowed-tools: Bash, Read, Write
title: website-visual-inspector
canonical_url: https://skilld.dev/gh/kiln-skills/kiln/website-visual-inspector
last_updated: 2026-11-12T03:45:56.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [scripts/inspect_site.py](https://skilld.dev/api/skills-raw/kiln-skills/kiln/website-visual-inspector/scripts/inspect_site.py).
>
> If the user asked to install this Skill, run `npx skilld install kiln-skills/kiln/website-visual-inspector`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/website-visual-inspector`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/kiln-skills/kiln/website-visual-inspector) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/website-visual-inspector`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/website-visual-inspector --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/website-visual-inspector --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# 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)

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

## Workflow

1. **Run the inspection**
   ```bash
   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.
