clone-website

clone-website is a skill for Claude Code from coco-research/coco. It costs 83 tokens per session (2,390 once invoked), scanned A, original, Apache-2.0.

A skill that copies a website into a self-contained HTML prototype, matching its appearance and interactions. It examines the site's assets, styling, content, and browser behavior, then places the result in one file.

In plain words
What is it for?
Use it to study an existing website, create a visual prototype, reproduce a page for testing, or inject sample data into a replica.
Why use it?
It provides a working reference or starting point without requiring the original site's full codebase.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions subagents.

Good fit Use it to study an existing website, create a visual prototype, reproduce a page for testing, or inject sample data into a replica.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/coco-research/coco/clone-website
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add coco-research/coco --skill clone-website
Clone the repo
git clone --depth 1 https://github.com/coco-research/coco

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for clone-website

README.md
[![agentmods](https://agentmods.dev/badge/skills/coco-research/coco/clone-website/github.svg)](https://agentmods.dev/skills/coco-research/coco/clone-website)
Your own site
<a href="https://agentmods.dev/skills/coco-research/coco/clone-website"><img src="https://agentmods.dev/badge/skills/coco-research/coco/clone-website/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for clone-website

Your own site · 80×15
<a href="https://agentmods.dev/skills/coco-research/coco/clone-website"><img src="https://agentmods.dev/badge/skills/coco-research/coco/clone-website.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,390 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00083 $0.02390
Opus 5.5 $0.00033 $0.00956
Sonnet 5.5 $0.00017 $0.00478
Haiku 4.5 $0.00008 $0.00239

Measured 3mo ago against content hash fdf3fec957ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

clone-website scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/clone-website/SKILL.md · 267 lines

How it starts

The opening of the file, as written. The whole thing — 267 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Clone Website --- Single-File HTML Prototype Builder

You are about to reverse-engineer $ARGUMENTS into a pixel-perfect single-file HTML prototype.

This is adapted from the ai-website-cloner-template approach but optimized for rapid prototyping workflows: single self-contained HTML files (no build system, no CDN dependencies, opens directly in a browser).

Output Format

Unlike the original repo (Next.js + shadcn/ui), our output is:

  • One HTML file with <style> + <body> + <script> sections
  • Zero external dependencies --- all CSS inline, all JS inline, all assets base64-encoded or SVG inline
  • Real data injection --- not lorem ipsum, but actual data from project Excel files, meeting notes, and brain DB
  • Project design system when available --- use tokens from a design-system.json colocated with the project

Pre-Flight

  1. Playwright is required. Verify: npx playwright --version. If not installed, ask the user to run npm i -D playwright.
  2. Parse $ARGUMENTS as one or more URLs. Validate each is accessible.
  3. Create output directory: {project}/Screenshots-clone/ for captured assets.
  4. Determine clone mode:
    • Full clone (default): pixel-perfect reproduction of the entire page
    • Design extraction only (--extract): capture design tokens, screenshots, and component specs without building
    • Selective clone (--sections "header,table,sidebar"): clone only named sections

Phase 1: Reconnaissance (Playwright)

1.1 Screenshots

Use Playwright to capture:

import { chromium } from 'playwright';
const browser = await chromium.launch();
const page = await browser.newPage({ viewport: { width: 1440, height: 900 } });
await page.goto(URL);

// Full page screenshot
await page.screenshot({ path: 'full-desktop.png', fullPage: true });

// Viewport screenshot
await page.screenshot({ path: 'viewport-desktop.png' });

// Mobile
await page.setViewportSize({ width: 390, height: 844 });
await page.screenshot({ path: 'viewport-mobile.png', fullPage: true });

Read the full file on GitHub · 267 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 267 lines · 83 tokens per session scan A fdf3fec957ba

Subscribe to this mod's changes

clone-website is a skill published in the GitHub repository coco-research/coco (323 stars, last pushed yesterday), licensed Apache-2.0. It adds 83 tokens to every session and 2,390 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

clone-website compared with skills from other repositories

clone-website next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
clone-websitecoco-research/cocoSkill323yesterdayApache-2.0A83Claude Code
unslopmxyhi/ok-skillsSkill51810d agoApache-2.0A152Codex
nothing-designmarcusquinn/aidevopsSkill476todayMITA50Claude Code
custom-brand-designKbWen/agentic-osSkill2472d agoMITA23Claude Code, Codex
architectural-civil-drafterwonsukchoi/domain-expertsSkill30todayMITA82Claude Code, Codex
hk-mobile-app-ui-validationdeepklarity/harness-kitSkill10820d agoMITA93Claude Code
hk-surface-designdeepklarity/harness-kitSkill10820d agoMITA88Claude Code