clone-website

clone-website is a command for coding agents from JCodesMore/ai-website-cloner-template. It costs 13 tokens per session (8,336 once invoked), scanned A, original, MIT.

A command for rebuilding one or more websites as close visual replicas. You provide one or more URLs, and it examines the pages before constructing them.

In plain words
What is it for?
Use it when you want to copy a website's visible layout, styling, content, and page routes into a code project.
Why use it?
It gives a repeatable way to start a website-cloning task without manually organizing every page, asset, and route.

Command

About the project

AI Website Cloner Template is a starter project that lets an AI coding agent recreate a website from its URL as a Next.js application. It is intended for people using coding agents such as Claude Code, Codex, Cursor, or Gemini to generate website projects. Its catalogue add-ons define the instructions, command, skill, and rule used in that cloning workflow.

JCodesMore/ai-website-cloner-template · 33,841 stars · on GitHub

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.

agentmods
npx agentmods add commands/jcodesmore/ai-website-cloner-template/clone-website
Clone the repo
git clone --depth 1 https://github.com/JCodesMore/ai-website-cloner-template

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/commands/jcodesmore/ai-website-cloner-template/clone-website.svg)](https://agentmods.dev/commands/jcodesmore/ai-website-cloner-template/clone-website)
Your own site
<a href="https://agentmods.dev/commands/jcodesmore/ai-website-cloner-template/clone-website"><img src="https://agentmods.dev/badge/commands/jcodesmore/ai-website-cloner-template/clone-website.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,336 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00013 $0.08336
Opus 5 $0.00006 $0.04168
Sonnet 5 $0.00003 $0.01667
Haiku 4.5 $0.00001 $0.00834

Measured 5d ago against content hash ac78d867d55f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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.

.augment/commands/clone-website.md · 529 lines

How it starts

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

Clone Website

You are about to reverse-engineer and rebuild $ARGUMENTS as pixel-perfect clones.

When multiple URLs are provided, preserve every pathname as a distinct route and isolate each target's research, screenshots, components, and assets. URLs that differ only by query string or fragment share a pathname, so resolve their route and state behavior explicitly in the output plan. Parallelize page work only after the shared foundation and output plan are fixed so concurrent builders cannot overwrite one another.

This is not a two-phase process (inspect then build). You are a foreman walking the job site — as you inspect each section of the page, you write a detailed specification to a file, then hand that file to a specialist builder agent with everything they need. Extraction and construction happen in parallel, but extraction is meticulous and produces auditable artifacts.

Scope Defaults

The target is whatever page $ARGUMENTS resolves to. Clone exactly what's visible at that URL. Unless the user specifies otherwise, use these defaults:

  • Fidelity level: Pixel-perfect — exact match in colors, spacing, typography, animations
  • In scope: Visual layout and styling, component structure and interactions, responsive design, mock data for demo purposes
  • Out of scope: Real backend / database, authentication, real-time features, SEO optimization, accessibility audit
  • Customization: None — pure emulation

If the user provides additional instructions (specific fidelity level, customizations, extra context), honor those over the defaults.

Output Isolation and Route Preservation

Treat every target URL as durable project output, not as permission to replace whatever was built previously.

Choose an <app-root> before extraction. For a single application, <app-root> is the repository root (.). If different origins need separate applications, require the user to provide or approve a prepared Next.js project root for each origin; verify each root builds independently, and never write one origin's output into another root.

Read the full file on GitHub · 529 lines

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. 5d ago First seen · 529 lines · 13 tokens per session scan A ac78d867d55f

Subscribe to this mod's changes

clone-website is a command published in the GitHub repository JCodesMore/ai-website-cloner-template (33,841 stars, last pushed 21d ago), licensed MIT. It adds 13 tokens to every session and 8,336 once invoked, about $0.0001 per session on Opus 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.