ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 3/5

wp-to-static

Convert a WordPress website to a static site and deploy to Cloudflare Pages. Mirrors the rendered HTML via SSH, extracts only referenced assets (shrinks 1.5GB+ to ~25MB), fixes URLs, self-hosts fonts, strips WordPress cruft, and deploys. Use when migrating a WordPress site to static hosting.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/abhibavishi/wp-to-static
Or

What This Skill Does

The wp-to-static skill is a professional-grade migration tool designed to transform dynamic, resource-heavy WordPress installations into lean, high-performance static websites deployed via Cloudflare Pages. It automates the complex process of mirroring HTML, cleaning up legacy WordPress overhead, self-hosting fonts to resolve privacy concerns, and aggressively optimizing assets to shrink site footprints from gigabytes to mere megabytes. By moving to a static architecture, you eliminate the entire attack surface of your server and remove the need for database maintenance or plugin security patching, resulting in near-instant load times and zero hosting costs.

Installation

To integrate this capability into your agent, execute the following command in your terminal:

clawhub install openclaw/skills/skills/abhibavishi/wp-to-static

Ensure you have the necessary prerequisites installed, including git, gh, wrangler, and rsync. Prior to initialization, verify your environment variables (WP_SSH_HOST, WP_SSH_USER, WP_SSH_PORT, WP_SSH_KEY, WP_SITE_URL, WP_SITE_NAME) are correctly exported in your environment.

Use Cases

  • Security Hardening: Migrate a vulnerable or legacy WordPress site to a static environment to eliminate common SQL injection and credential-based attack vectors.
  • Cost Reduction: Retire expensive VPS or managed WordPress hosting plans by serving content via Cloudflare Pages global CDN.
  • Performance Optimization: Drastically improve Core Web Vitals by removing server-side processing delays and bloated database calls.
  • Archive Preservation: Take a snapshot of a sunsetted website and maintain its visual integrity indefinitely without running a live server.

Example Prompts

  1. "I need to migrate my production site at https://example.com to Cloudflare Pages. Please use the wp-to-static skill to mirror the site and deploy it."
  2. "My WordPress site is too slow and has 1.5GB of overhead. Use wp-to-static to shrink the site, clean up the assets, and push it to my Cloudflare account."
  3. "Convert my blog 'tech-notes' to static and deploy it as a private repository on GitHub."

Tips & Limitations

  • SSH Security: Always use ssh-agent to manage your keys. Never hardcode passphrases into configuration files or scripts.
  • Permissions: Ensure your identity file has strict chmod 600 permissions; otherwise, the SSH handshake will fail for security reasons.
  • Known Hosts: The agent performs strict SSH host key verification. Ensure you have successfully connected to your server at least once manually to avoid deployment interruptions.
  • Limitations: This skill is best suited for content-heavy sites. Highly dynamic, user-interactive WordPress plugins (like WooCommerce checkout flows or member portals) will not function post-migration as they require server-side PHP execution.

Metadata

Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-abhibavishi-wp-to-static": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#wordpress#migration#cloudflare#static-site#devops
Safety Score: 3/5

Flags: network-access, file-write, file-read, external-api, code-execution