leoyeai/openclaw-master-skills/wordpress-trade-site

Claude Code and agent skill by leoyeai/openclaw-master-skills

Trust tier 2
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Interactive guide to deploy a production-ready WordPress site for international trade businesses. Triggers on "build a trade website", "deploy wordpress trade site", "set up B2B website", or similar requests.

Install

npx vskill@latest install leoyeai/openclaw-master-skills/wordpress-trade-site

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as leoyeai/openclaw-master-skills/wordpress-trade-site.

WordPress Trade Site Builder

Deploy a production-ready WordPress trade site from scratch through 9 interactive phases. Based on the wordpress-trade-starter template.

Principle: Automate everything possible. Only pause when user decisions or information are required. When errors occur, diagnose and fix them proactively — don't tell the user to go fix things themselves.

Interaction: Use AskUserQuestion for all user-facing questions. Report progress after each phase, then continue to the next.

Data flow: Information collected in each phase (business info, SSH details, domain, etc.) is reused in subsequent phases. Key data is labeled with variable names for reference.


Phase 1: Collect Business Information

Before any technical work, understand the user's business needs.

AskUserQuestion (collect sequentially):

  1. Company name — "What is your company name? (Both local language and English)"
  • Example: TitanPuls Technology Co., Ltd.
  • Record as COMPANY_EN (and COMPANY_LOCAL if provided)
  1. Main products — "What products do you mainly sell? (Brief description)"
  • Example: Semi-trailers, construction machinery
  • Record as PRODUCTS
  1. Target markets — "Which markets do you primarily target?" (multiSelect)
  • Africa
  • Middle East
  • Southeast Asia
  • Latin America
  • Europe
  • North America
  • Record as TARGET_MARKETS
  1. Languages — "Which languages should your website support?" (multiSelect, recommend based on target markets)
  • English (Recommended)
  • Chinese
  • Russian
  • Spanish
  • French
  • Arabic
  • Record as LANGUAGES
  1. Contact info — "How should customers reach you?"
  • WhatsApp number (with country code)
  • Business email
  • Record as WHATSAPP and EMAIL

Summary confirmation: Display collected information and AskUserQuestion to confirm correctness.


Phase 2: Server Preparation

2a. Server status

AskUserQuestion: "Do you already have a Linux server?"

  • I have a server — Collect SSH details
  • I need guidance — Recommend datacenter locations and providers based on TARGET_MARKETS

Purchase guidance (if needed):

Recommend based on target market:

Target MarketRecommended DCRecommended Providers
Europe/AfricaGermany/NetherlandsContabo, Hetzner
North AmericaUS East/West CoastDigitalOcean, Vultr
Southeast AsiaSingaporeVultr, Alibaba Cloud
Middle EastDubai/BahrainAWS, Alibaba Cloud
Latin AmericaUS MiamiDigitalOcean

Recommended specs: 2 cores / 2GB RAM / 40GB SSD ($10-20/month). Tell user to continue after purchase.

2b. SSH connection

AskUserQuestion: "Please provide your server SSH details:"

  • IP address → SERVER_IP
  • SSH port (default 22) → SSH_PORT
  • Username (usually root) → SSH_USER
  • Authentication: password or SSH key

Verify connection:

bash
ssh -o ConnectTimeout=10 -o StrictHostKeyChecking=no -p ${SSH_PORT} ${SSH_USER}@${SERVER_IP} "echo CONNECTION_OK && uname -a && free -m && df -h /"
  • CONNECTION_OK → Continue
  • Connection failed → Check IP/port/credentials, prompt user to correct
2c. Server initialization

Execute via SSH:

bash
# System update
apt update && apt upgrade -y
# Set timezone
timedatectl set-timezone UTC
# Create swap (if RAM <= 2GB and no swap exists)
if [ $(free -m | awk '/^Mem:/{print $2}') -le 2048 ] && [ ! -f /swapfile ]; then
fallocate -l 2G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo '/swapfile none swap sw 0 0' >> /etc/fstab
fi
# Firewall
ufw allow 22/tcp
ufw allow 80/tcp
ufw allow 443/tcp
ufw --force enable
# Essential tools
apt install -y curl git unzip htop

Verify: ufw status shows 22/80/443 open.


Phase 3: Docker Deployment

3a. Install Docker
bash
if ! command -v docker &>/dev/null; then
curl -fsSL https://get.docker.com | sh
systemctl enable docker && systemctl start docker
fi
docker compose version || apt-get install -y docker-compose-plugin

Verify: docker compose version outputs a version number.

3b. Clone template
bash
cd /opt
git clone https://github.com/iPythoning/wordpress-trade-starter.git wordpress
cd /opt/wordpress
3c. Generate .env

AskUserQuestion: "Please provide the following:"

  • Domain name (e.g. example.com) → DOMAIN
  • MySQL root password (auto-generate recommended) → MYSQL_ROOT_PASSWORD
  • MySQL user password (auto-generate recommended) → MYSQL_PASSWORD

If user chooses auto-generation:

bash
MYSQL_ROOT_PASSWORD=$(openssl rand -base64 16)
MYSQL_PASSWORD=$(openssl rand -base64 16)

Write .env:

bash
cat > /opt/wordpress/.env << EOF
MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE=wordpress
MYSQL_USER=wordpress
MYSQL_PASSWORD=${MYSQL_PASSWORD}
DOMAIN=${DOMAIN}
EMAIL=${EMAIL}
EOF

Important: Display the generated passwords to the user and remind them to save securely.

3d. Configure Nginx
bash
sed -i "s/YOUR_DOMAIN/${DOMAIN}/g" /opt/wordpress/nginx.conf
3e. Start containers
bash
cd /opt/wordpress
docker compose up -d

Verify:

bash
docker compose ps
# Confirm all three containers (db, wordpress, nginx) are running/healthy

Wait for WordPress to be ready:

bash
for i in $(seq 1 30); do
curl -sf http://localhost > /dev/null 2>&1 && break
sleep 2
done
  • All 3 containers running → Continue
  • db unhealthy → Check docker compose logs db, common cause is password format issues
  • wordpress not starting → Check docker compose logs wordpress

Phase 4: SSL Certificate

4a. Choose method

AskUserQuestion: "Which SSL certificate method?"

  • Let's Encrypt (Recommended) — Free, auto-renewal, requires domain A record pointing to server IP
  • Cloudflare Origin Certificate — For users already using Cloudflare proxy
4b-A. Let's Encrypt

Prerequisite: Domain A records must point to SERVER_IP. If not configured, guide the user to add in their DNS panel:

  • DOMAIN → A → SERVER_IP
  • www.DOMAIN → A → SERVER_IP
bash
# Stop nginx to free port 80
cd /opt/wordpress && docker compose stop nginx
apt install -y certbot
certbot certonly --standalone -d ${DOMAIN} -d www.${DOMAIN} --email ${EMAIL} --agree-tos --non-interactive
mkdir -p /opt/wordpress/ssl
cp /etc/letsencrypt/live/${DOMAIN}/fullchain.pem /opt/wordpress/ssl/
cp /etc/letsencrypt/live/${DOMAIN}/privkey.pem /opt/wordpress/ssl/
# Auto-renewal cron
(crontab -l 2>/dev/null; echo "0 3 * * * certbot renew --quiet --pre-hook 'cd /opt/wordpress && docker compose stop nginx' --post-hook 'cp /etc/letsencrypt/live/${DOMAIN}/fullchain.pem /opt/wordpress/ssl/ && cp /etc/letsencrypt/live/${DOMAIN}/privkey.pem /opt/wordpress/ssl/ && cd /opt/wordpress && docker compose start nginx'") | crontab -
# Restart nginx
docker compose start nginx
4b-B. Cloudflare Origin Certificate

Guide the user through Cloudflare Dashboard:

  1. SSL/TLS → Origin Server → Create Certificate
  2. Choose RSA, 15-year validity
  3. Copy Certificate and Private Key
bash
mkdir -p /opt/wordpress/ssl
# User pastes certificate content
cat > /opt/wordpress/ssl/fullchain.pem << 'EOF'
<user pastes certificate here>
EOF
cat > /opt/wordpress/ssl/privkey.pem << 'EOF'
<user pastes private key here>
EOF
4c. Verify HTTPS
bash
docker compose restart nginx
curl -I https://${DOMAIN} 2>/dev/null | head -5
  • HTTP/2 200 → Success
  • Connection failed → Check DNS resolution, certificate paths, nginx logs

Phase 5: WordPress Initialization

5a. Setup wizard

Tell the user to open https://${DOMAIN}/wp-admin/install.php in their browser and fill in:

  • Site Title: COMPANY_EN
  • Username: suggest avoiding "admin" (security)
  • Password: strong password
  • Email: EMAIL

AskUserQuestion: "Have you completed the WordPress setup wizard?"

5b. Install WP-CLI
bash
docker compose exec wordpress bash -c '
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
mv wp-cli.phar /usr/local/bin/wp
'

Verify: docker compose exec wordpress wp --info --allow-root

5c. Base configuration
bash
docker compose exec wordpress wp --allow-root option update blogname "${COMPANY_EN}"
docker compose exec wordpress wp --allow-root option update blogdescription "${PRODUCTS} - ${COMPANY_EN}"
docker compose exec wordpress wp --allow-root option update timezone_string "UTC"
docker compose exec wordpress wp --allow-root option update date_format "Y-m-d"
docker compose exec wordpress wp --allow-root option update permalink_structure "/%postname%/"
# Delete default content
docker compose exec wordpress wp --allow-root post delete 1 2 --force
docker compose exec wordpress wp --allow-root widget reset --all

Phase 6: Theme & Plugin Installation

6a. Astra theme + Child Theme
bash
docker compose exec wordpress wp --allow-root theme install astra --activate
# Create Child Theme
docker compose exec wordpress bash -c '
mkdir -p /var/www/html/wp-content/themes/astra-child
cat > /var/www/html/wp-content/themes/astra-child/style.css << "CSS"
/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/
CSS
cat > /var/www/html/wp-content/themes/astra-child/functions.php << "PHP"
<?php
add_action("wp_enqueue_scripts", function() {
wp_enqueue_style("parent-style", get_template_directory_uri() . "/style.css");
});
PHP
'
docker compose exec wordpress wp --allow-root theme activate astra-child
6b. Batch install plugins

Install plugins one by one to track failures:

bash
PLUGINS="elementor seo-by-rank-math wp-super-cache imagify jetpack-boost polylang contact-form-7 chaty ecommerce-product-catalog"
for plugin in $PLUGINS; do
docker compose exec wordpress wp --allow-root plugin install $plugin --activate 2>&1 || echo "WARN: $plugin install failed, manual install needed"
done

Note: Some plugins may not be in the wordpress.org directory. For failed installs, inform the user to install manually from the admin panel (Plugins → Add New).

6c. Configure Imagify

AskUserQuestion: "Do you have an Imagify API key? (Free signup at imagify.io, 20MB/month free tier)"

  • Yes → Collect IMAGIFY_API_KEY
  • Skip for now → Remind user to configure later in Settings → Imagify
6d. Configure WP Super Cache
bash
docker compose exec wordpress wp --allow-root super-cache enable 2>/dev/null || true

If WP-CLI doesn't support it, tell the user to go to Settings → WP Super Cache:

  1. Enable Caching
  2. Advanced → Use mod_rewrite
6e. Jetpack Boost

Tell the user to enable in the admin panel:

  • Critical CSS generation
  • Lazy image loading
  • Concatenate JS/CSS

Phase 7: Multilingual + SEO

7a. Polylang configuration

Configure based on the LANGUAGES list from Phase 1:

bash
# Set English as default language
docker compose exec wordpress wp --allow-root pll lang create "English" en en_US

Add each selected language:

  • Chinese: wp pll lang create "Chinese" zh zh_CN
  • Russian: wp pll lang create "Russian" ru ru_RU
  • Spanish: wp pll lang create "Spanish" es es_ES
  • French: wp pll lang create "French" fr fr_FR
  • Arabic: wp pll lang create "Arabic" ar ar

Note: Polylang WP-CLI support may be limited. If commands fail, guide the user to add languages manually in Languages → Settings.

7b. Rank Math SEO configuration

Guide the user through the Rank Math setup wizard:

  1. Business Type → Select "Company"
  2. Company Name → COMPANY_EN
  3. Website URL → https://${DOMAIN}
  4. Social Profiles → If available
  5. Sitemap Settings → Enable XML Sitemap
  6. Schema → Organization
7c. Create base pages

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2,157
Repository forks
324
7-day trend score
43

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/leoyeai/openclaw-master-skills/wordpress-trade-site/badge)](https://verified-skill.com/skills/leoyeai/openclaw-master-skills/wordpress-trade-site)

Something wrong with this skill or its page? Tell us.