wp-clone

wp-clone is a command for Claude Code from yojahny55/claude-wp-builder. It costs 13 tokens per session (2,600 once invoked), scanned A, original, MIT.

A command for copying an existing WordPress site from a remote server or from exported files into a local development environment. It supports an automated SSH connection or a manual SQL database dump plus uploads archive.

In plain words
What is it for?
Use it to clone a site with an SSH source, or import a SQL dump and uploads archive into a specified local destination.
Why use it?
It saves developers from rebuilding a site locally by hand and provides a defined path for both connected and offline copies. A local clone lets the site be developed and tested without changing the remote installation.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the claude-wp-builder plugin — 15 skills, 28 commands, 15 agents shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add yojahny55/claude-wp-builder
Claude Code
/plugin install claude-wp-builder

Made for: Claude Code.

Or install claude-wp-builder, the plugin that ships this one along with the rest of its 15 skills, 28 commands, 15 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wp-clone

README.md
[![agentmods](https://agentmods.dev/badge/commands/yojahny55/claude-wp-builder/wp-clone.svg)](https://agentmods.dev/commands/yojahny55/claude-wp-builder/wp-clone)
Your own site
<a href="https://agentmods.dev/commands/yojahny55/claude-wp-builder/wp-clone"><img src="https://agentmods.dev/badge/commands/yojahny55/claude-wp-builder/wp-clone.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,600 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00013 $0.02600
Opus 5 $0.00006 $0.01300
Sonnet 5 $0.00003 $0.00520
Haiku 4.5 $0.00001 $0.00260

Measured 6d ago against content hash 45639136eadd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

wp-clone scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

bash -c "curl -sI -o /dev/null -w '%{http_code}' https://local-clone.local.com/ 2>/dev/null || echo 'Could not reach site'"
commands/wp-clone.md · 341 lines

How it starts

The opening of the file, as written. The whole thing — 341 lines — stays where its author put it; the contents beside it link to each section on GitHub.

WP Clone — Remote/Staging Site Cloning

Clone an existing WordPress site into a local development environment. Supports two paths: automated SSH-based cloning or manual import from SQL dump + uploads archive.

Step 0: Parse Arguments

Parse $ARGUMENTS for the following flags:

Flag Required Description
--from= Path A only SSH URL: ssh://user@host/path/to/wordpress
--to= Yes Local destination path (e.g., /var/www/html/local-clone)
--sql= Path B only Path to a SQL dump file (e.g., /tmp/dump.sql)
--uploads= Path B only Path to uploads zip/tar archive (e.g., /tmp/uploads.zip)

Parsing rules:

  • If --from= starts with ssh://, extract user, host, and remote_path from ssh://user@host/path.
  • If --to= is missing, ask the user for a local destination path.
  • If neither --from= nor --sql= is provided, ask the user which path they want:

    "How would you like to clone? A) SSH — automated pull from a remote server B) Manual — import from a SQL dump file + uploads archive"

Step 1: Determine Clone Path

Condition Path
--from=ssh://... is provided Path A — SSH Automated
--sql= is provided Path B — Manual Import
Neither provided Ask user (see Step 0)

Path A — SSH Automated Clone

A1: Check Prerequisites

Verify that ssh, scp, and rsync are available locally:

bash -c "command -v ssh && command -v scp && command -v rsync"

If any tool is missing, abort with a clear message:

"Missing required tool: <tool>. Install it before running SSH clone."

A2: Verify SSH Connectivity

Test that the SSH connection works and that the remote path exists:

bash -c "ssh -o ConnectTimeout=10 -o BatchMode=yes user@host 'test -d /remote/path && echo OK'"

If this fails, inform the user:

"Cannot connect via SSH. Check that:

  1. SSH key is configured for user@host
  2. The remote path exists
  3. The user has read access to the WordPress directory"

Read the full file on GitHub · 341 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 341 lines · 13 tokens per session scan A 45639136eadd

Subscribe to this mod's changes

wp-clone is a command published in the GitHub repository yojahny55/claude-wp-builder (6 stars, last pushed yesterday), licensed MIT. It adds 13 tokens to every session and 2,600 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.