Site Cloner for Openclaw

A powerful utility to mirror any live website into a dependency-free, standalone HTML file with automated VPS and GitHub deployment options.

michelle447
v1.0.0
Apr 5, 2026
0
783
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install site-cloner

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install site-cloner using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Site Cloner?

Site Cloner is a sophisticated tool within the Openclaw Skills ecosystem designed to replicate any live website into a self-contained environment. Unlike simple scrapers, it handles modern JavaScript frameworks like React, Vue, and Angular by deep-mining JS bundles for UI copy, image paths, and theme variables. This ensures that the cloned version remains high-fidelity and functional without external dependencies.

The skill goes beyond simple local cloning by offering integrated DevOps workflows. It can automatically provision nginx configurations on a VPS, handle port allocation, and push the resulting code to a private GitHub repository, making it an essential asset for developers needing to mirror or migrate web content quickly.

Site Cloner Use Cases

  • Replicating a live website for local development or testing without needing access to the original source code.
  • Migrating static content from complex SPAs into a clean, single-file HTML format.
  • Archiving websites into a private GitHub repository for version control and safe keeping.
  • Instantly deploying cloned mirrors to a VPS for staging or demonstration purposes.

How Site Cloner Works

  1. The skill fetches the target URL's raw HTML and analyzes script and stylesheet dependencies.
  2. It detects if the site is a static page or a modern SPA (Single Page Application) by inspecting the DOM structure.
  3. For SPAs, it performs regex-based extraction on JS bundles to recover text content, image paths, and CSS variables.
  4. All discovered images and assets are downloaded to a local workspace directory.
  5. A standalone index.html is generated, inlining all CSS and vanilla JS logic for animations and interactivity.
  6. Optionally, the skill handles VPS deployment by uploading files, generating nginx configs, and reloading the server.
  7. Finally, it can initialize a Git repository and push the clone to a private GitHub repo.

Site Cloner Setup

To use this within your Openclaw Skills environment, ensure you have the GitHub CLI (gh) and SSH access configured for your VPS. Commands are executed via PowerShell:

# Ensure your workspace directory exists
mkdir -p $HOME/.openclaw/workspace/

# The skill utilizes standard Windows tools and SSH
# No additional npm installations are required for the clone itself

Site Cloner Data Schema & Taxonomy

The skill organizes cloned data in a structured hierarchy within the Openclaw workspace.

File/Folder Description
index.html The primary, self-contained HTML file with inlined CSS.
/images/ Directory containing all scraped and preserved image assets.
nginx-site.conf Generated server configuration for VPS deployment.
.git/ Local version control metadata (if GitHub push is enabled).

Site Cloner Advanced Features

  • SPA Bundle Mining: Uses advanced regex to extract content from minified React, Vue, and Angular bundles.
  • Automated Port Allocation: Intelligently assigns the next available port for nginx deployments on shared VPS environments.
  • Zero-Dependency Output: Produces clean, vanilla HTML/JS that requires no build tools or runtime environments.
  • Secure Configuration: Avoids shell escaping issues by generating configuration files locally before secure transfer via SCP.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*