# website-preview

website-preview enables AI agents to render local Jekyll sites, run ChromeDriver, and capture UI screenshots across viewports and color themes.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · ★ 6222 repo stars
- Author: missing-semester
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/missing-semester/missing-semester/tree/HEAD/.claude/skills/website-preview/SKILL.md
- Updated: 2026-10-08
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/website-preview

## What it does

This skill guides the coding agent through automated UI checks for Jekyll projects. It queries the local development port at `http://localhost:4000/` and triggers `./browser.sh` to locate Google Chrome and spawn ChromeDriver on an open port.

The automation helper switches viewports between phone and desktop scales, toggles dark mode, and writes image captures to `/tmp/preview.png`. When precise layout auditing is needed, the agent runs DOM evaluations like `getBoundingClientRect()` via `./browser.sh js`.

Running this tool requires a working Google Chrome installation alongside Ruby bundler; without ChromeDriver in place, preview generation fails immediately.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add missing-semester/missing-semester --skill website-preview -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/website-preview/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/website-preview/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add missing-semester/missing-semester --skill website-preview -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/website-preview/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add missing-semester/missing-semester --skill website-preview -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/website-preview/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install missing-semester/missing-semester .claude/skills/website-preview
```

2. **Manually: put the files in place**
- File: `.github/skills/website-preview/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add missing-semester/missing-semester --skill website-preview -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/missing-semester/missing-semester --path .claude/skills/website-preview
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/website-preview/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add missing-semester/missing-semester --skill website-preview -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/missing-semester/missing-semester/tree/HEAD/.claude/skills/website-preview/SKILL.md

## When to use it
- capture rendered Jekyll pages across mobile and desktop breakpoints
- verify style tweaks visually after editing SCSS or layout templates
- audit layout elements using in-browser JavaScript evaluation
- inspect page appearance under light and dark color schemes

## Example prompts
- Check my layout updates and capture a mobile screenshot of the homepage
- Switch to dark mode in browser.sh and inspect the course shell page
- Verify the latest CSS changes by taking a preview screenshot at localhost:4000

## Similar
- [om-auto-qa-pr](https://affpapa.org/en/nevibecode/skills/om-auto-qa-pr.md) — skill · 4200 installs
- [uisight](https://affpapa.org/en/nevibecode/mcp/uisight.md) — MCP server · ★ 130 repo stars
- [clone-website](https://affpapa.org/en/nevibecode/skills/coco-research-clone-website.md) — skill · ★ 328 repo stars
- [pixelpact](https://affpapa.org/en/nevibecode/mcp/pixelpact.md) — MCP server · ★ 11 repo stars
- [visual-review](https://affpapa.org/en/nevibecode/skills/visual-review.md) — skill · ★ 137 repo stars
- [playwright-interactive](https://affpapa.org/en/nevibecode/skills/playwright-interactive.md) — skill · 5900 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
