AIToday
AI Coding AssistantsHacker NewsPublished: Jun 25, 2026, 16:00 JST2 min read

AI agents auto-convert websites to Next.js code

AI agents auto-convert websites to Next.js code

Key takeaway

  • A new GitHub template automates website cloning by dispatching AI coding agents to inspect a live site, extract its design system and assets, and rebuild it as production-ready Next.js code.

  • The tool handles design token extraction, multi-state component specifications, and responsive layout reconstruction in parallel—useful for developers migrating from legacy platforms, recovering lost codebases, or studying how real production sites are built.

3 Key Points

  1. What happened

    A reusable template for AI coding agents (such as Claude Code with Opus 4.7) has been released that automates website cloning. Users point the agent at a URL, run the /clone-website command, and the agent inspects the site, extracts design tokens and assets, writes component specifications, and rebuilds every section using parallel builder agents.

  2. Why it matters

    This approach automates the reverse-engineering of live websites into clean, modern code—useful for platform migration from legacy systems like WordPress or Webflow, recovering lost source code when the developer or original repo is unavailable, or learning how production sites implement specific layouts and interactions by studying real code.

  3. What to watch

    The template supports multiple AI coding platforms including Claude Code (recommended), Codex CLI, OpenCode, GitHub Copilot, Cursor, Windsurf, Gemini CLI, Cline, Roo Code, Continue, Amazon Q, Augment Code, and Aider. The tech stack uses Next.js 16, React 19, TypeScript strict mode, shadcn/ui with Tailwind CSS v4, and Lucide React icons.

Ask the AI about this article →

FAQ

Which AI coding agents are supported?
Claude Code with Opus 4.7 is recommended, but the template also works with Codex CLI, OpenCode, GitHub Copilot, Cursor, Windsurf, Gemini CLI, Cline, Roo Code, Continue, Amazon Q, Augment Code, and Aider.
What does the /clone-website command do?
It runs a multi-phase pipeline: reconnaissance (screenshots, design token extraction, interaction testing), foundation (updating fonts, colors, downloading assets), component specs (writing detailed specification files with exact CSS values and behaviors), parallel build (dispatching builder agents to reconstruct each section), and assembly with visual diff verification against the original.
What are the stated use cases?
Platform migration (rebuilding sites from WordPress, Webflow, or Squarespace into modern Next.js), recovering lost source code when the repository is unavailable or the developer has left, and learning by deconstructing how production sites achieve specific layouts, animations, and responsive behavior.

Get the latest AI Coding Assistants news every morning

For example, today's edition would include:

  • OpenClaw 2.0 launches, targeting enterprise AI teamsVentureBeat AI · 11h ago
  • AI Coding Shifts from Prompts to Context to HarnessITmedia AI+ · 18h ago
  • Workday brings AI agents into Gmail, keeping ERP guardrailsSiliconANGLE AI · 20h ago

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · takes 30 seconds · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. Q&As are published on this page for other readers too.

Related Articles

Next articleFPT and Microsoft to train 20,000 AI developers in Asia