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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/abhibavishi/wp-to-staticWhat 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
- "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."
- "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."
- "Convert my blog 'tech-notes' to static and deploy it as a private repository on GitHub."
Tips & Limitations
- SSH Security: Always use
ssh-agentto manage your keys. Never hardcode passphrases into configuration files or scripts. - Permissions: Ensure your identity file has strict
chmod 600permissions; 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
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-abhibavishi-wp-to-static": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-write, file-read, external-api, code-execution
Related Skills
azure-image-gen
Generate images using Azure OpenAI DALL-E. Supports batch generation, custom prompts, and outputs a gallery.
verk
Manage tasks, projects, and workflows in Verk — AI-powered task management. Create, update, assign, and track tasks. Add comments, change status, list automation flows.
LinkedIn Content Creation Skill by Reepl
Manage your LinkedIn presence with Reepl -- create drafts, publish and schedule posts, manage contacts and collections, generate AI images, create carousels, post to Twitter/X, and maintain your voice profile. Requires a Reepl account (reepl.io).