What Kind of Data Does the AI Model Train On? Inside the AI Website Cloner Template

The AI Website Cloner Template processes live website HTML, CSS, downloaded assets, and design tokens as its input data—the AI agent reverse-engineers public websites in real-time rather than training on a static dataset.

The AI Website Cloner Template is a turnkey scaffold that lets an AI coding agent reverse-engineer any public website into a clean, modern Next.js 16 codebase. While the question asks what data the AI model trains on, this repository actually defines the input data stream that the agent analyzes during its cloning workflow. The system extracts design tokens, component structures, and assets from live target websites to generate production-ready React code.

Input Data: Live Websites, Not Static Training Sets

Unlike traditional machine learning pipelines that require pre-training on curated datasets, this template operates on live website data. The AI agent acts as a reverse-engineering tool, inspecting public websites through a five-stage pipeline defined in AGENTS.md and .claude/skills/clone-website/SKILL.md.

Target Website Assets

The primary data source consists of the live target website's DOM structure, CSS stylesheets, image assets, and font files. During the Reconnaissance phase, the agent downloads these resources into the public/ directory and analyzes them according to specifications in docs/research/INSPECTION_GUIDE.md. The agent captures the visual hierarchy, color palettes, and responsive behavior directly from the rendered site.

Design Tokens and Component Specifications

The agent extracts design tokens—specifically Oklch color values, typography scales, and spacing parameters—and writes structured component specifications to docs/research/. These artifacts serve as the blueprint for the Component Specs phase, where the AI translates visual elements into shadcn/ui primitives defined in src/components/ui/button.tsx and similar component files. The cn utility in src/lib/utils.ts composes Tailwind CSS v4 class strings to match the extracted design tokens.

The Five-Stage Data Processing Pipeline

The /clone-website skill orchestrates a workflow that transforms raw website data into a Next.js 16 App Router application:

  1. Reconnaissance – The agent inspects the target URL and catalogues HTML structure, CSS classes, and asset dependencies.
  2. Foundation – Establishes the base architecture using src/app/layout.tsx and configures Tailwind CSS v4 with Oklch design tokens from src/app/globals.css and postcss.config.mjs.
  3. Component Specs – Generates detailed specifications in docs/research/ mapping visual elements to React components.
  4. Parallel Build – Spawns builder agents in isolated Git worktrees to construct UI components using the cn utility from src/lib/utils.ts.
  5. Assembly & QA – Integrates components into src/app/page.tsx and validates against original design references.

Technical Implementation and Data Synchronization

Agent Skill Definitions

The cloning behavior is governed by AGENTS.md and platform-specific skill files like .claude/skills/clone-website/SKILL.md. These files define how the AI interprets website data and which coding patterns to apply when generating TypeScript React components for the Next.js 16 App Router.

Configuration Sync Scripts

The repository maintains data consistency across agent platforms through synchronization scripts. The bash scripts/sync-agent-rules.sh command propagates changes from AGENTS.md to all agent integrations, while node scripts/sync-skills.mjs updates skill definitions for Claude, Gemini, Cursor, and other compatible platforms.

Development Environment and Workflow

The template includes containerization via Dockerfile and docker-compose.yml for isolated development environments. The .github/workflows/ci.yml pipeline validates generated code through linting, type-checking, and build processes, ensuring that data extracted from target websites compiles correctly within the Next.js 16 framework.


# Clone the template (use the GitHub “Use this template” button recommended in the README)

git clone https://github.com/YOUR-USERNAME/YOUR-NEW-REPO.git
cd YOUR-NEW-REPO

# Install dependencies

npm install

# Start your AI agent (Claude Code is recommended)

claude --chrome

# Run the cloning skill – replace <target‑url> with the site you want to reverse‑engineer

/clone-website https://example.com

# Build & run the generated Next.js app

npm run dev   # dev server (http://localhost:3000)

npm run build # production build

Summary

  • The AI Website Cloner Template processes live website data (HTML, CSS, assets, design tokens) rather than training on static datasets.
  • The five-stage pipeline (Reconnaissance → Foundation → Component Specs → Parallel Build → Assembly & QA) transforms target websites into Next.js 16 code.
  • Design tokens and component specifications are stored in docs/research/ and public/ during the cloning process.
  • Configuration files (AGENTS.md, .claude/skills/clone-website/SKILL.md) and sync scripts (scripts/sync-agent-rules.sh, scripts/sync-skills.mjs) standardize how the AI agent interprets website data across platforms.

Frequently Asked Questions

Does the AI Website Cloner Template require pre-training on specific datasets?

No, the template does not involve model training. The AI agent analyzes live website data in real-time using the /clone-website skill defined in AGENTS.md and .claude/skills/clone-website/SKILL.md. The agent inspects the target URL's DOM, CSS, and assets during the Reconnaissance phase to understand the site's structure.

What file types does the agent extract from target websites?

The agent processes HTML markup, CSS stylesheets, image assets, and font files. These resources are downloaded to the public/ directory, while structured component specifications and design tokens are written to docs/research/. The agent also extracts Oklch color values and typography scales to configure src/app/globals.css and Tailwind CSS v4.

How does the template ensure design consistency with the original website?

Through the five-stage pipeline—specifically the Component Specs phase—which extracts design tokens and maps them to shadcn/ui components. The cn utility in src/lib/utils.ts composes Tailwind class strings to match the original site's visual hierarchy, ensuring the generated Next.js 16 application mirrors the target design.

Can the cloning skill work with any AI coding agent?

Yes, the template supports multiple agents through synchronization scripts. The scripts/sync-agent-rules.sh and scripts/sync-skills.mjs utilities ensure that instructions in AGENTS.md remain consistent across Claude, Gemini, Cursor, and other compatible platforms, allowing any supported agent to execute the /clone-website command.

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →