Skip to content

Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.

feat: add WordPress plugin with content management and Elementor skills

Jez8795d3ac5b3c
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index 56626190..d5ad98e1 100644
--- a/.claude-plugin/marketplace.json
+++ b/.claude-plugin/marketplace.json
@@ -54,6 +54,12 @@
"description": "Manage Shopify stores: product creation, bulk imports, content pages, blog posts, and SEO metadata.",
"source": "./plugins/shopify",
"category": "productivity"
+ },
+ {
+ "name": "wordpress",
+ "description": "Manage WordPress sites: content creation, blog posts, media, Elementor page editing, and WP-CLI workflows.",
+ "source": "./plugins/wordpress",
+ "category": "productivity"
}
]
}
diff --git a/CLAUDE.md b/CLAUDE.md
index 2720cd08..ddcc2b39 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -15,7 +15,7 @@ Production workflow skills for Claude Code CLI. Each skill guides Claude through
```
claude-skills/
-├── plugins/ # 8 installable plugins (27 skills)
+├── plugins/ # 9 installable plugins (30 skills)
│ ├── cloudflare/ # Cloudflare Workers, Hono, D1/Drizzle, Vite
│ │ └── skills/
│ │ ├── cloudflare-worker-builder/
@@ -56,6 +56,11 @@ claude-skills/
│ │ ├── shopify-setup/
│ │ ├── shopify-products/
│ │ └── shopify-content/
+│ ├── wordpress/ # WordPress content & Elementor
+│ │ └── skills/
+│ │ ├── wordpress-setup/
+│ │ ├── wordpress-content/
+│ │ └── wordpress-elementor/
│ └── writing/ # Australian business English
│ └── skills/
│ └── aussie-business-english/
diff --git a/README.md b/README.md
index 0023b4bc..8cc6c869 100644
--- a/README.md
+++ b/README.md
@@ -15,6 +15,7 @@ Workflow skills for [Claude Code](https://claude.com/claude-code) that produce t
| **integrations** | google-chat-messages, google-apps-script, elevenlabs-agents, mcp-builder | Google Chat webhooks, Apps Script, ElevenLabs agents, MCP servers |
| **dev-tools** | skill-creator, context-manager, dev-session, github-release, gemini-peer-review, claude-capabilities, ux-audit | Skill creation, context audits, session tracking, releases, peer review, UX audits |
| **shopify** | shopify-setup, shopify-products, shopify-content | Shopify API setup, product management, content pages, blog posts |
+| **wordpress** | wordpress-setup, wordpress-content, wordpress-elementor | WordPress WP-CLI access, content management, Elementor page editing |
| **writing** | aussie-business-english | Australian business English writing style |
## Install
@@ -31,6 +32,7 @@ Workflow skills for [Claude Code](https://claude.com/claude-code) that produce t
/plugin install design-assets@jezweb-skills
/plugin install integrations@jezweb-skills
/plugin install shopify@jezweb-skills
+/plugin install wordpress@jezweb-skills
/plugin install writing@jezweb-skills
```
diff --git a/plugins/wordpress/.claude-plugin/plugin.json b/plugins/wordpress/.claude-plugin/plugin.json
new file mode 100644
index 00000000..e4978522
--- /dev/null
+++ b/plugins/wordpress/.claude-plugin/plugin.json
@@ -0,0 +1,8 @@
+{
+ "name": "wordpress",
+ "description": "Manage WordPress sites: content creation, blog posts, media, Elementor page editing, and WP-CLI workflows.",
+ "author": {
+ "name": "Jeremy Dawes / Jezweb",
+ "email": "[email protected]"
+ }
+}
diff --git a/plugins/wordpress/skills/wordpress-content/SKILL.md b/plugins/wordpress/skills/wordpress-content/SKILL.md
new file mode 100644
index 00000000..7cae934f
--- /dev/null
+++ b/plugins/wordpress/skills/wordpress-content/SKILL.md
@@ -0,0 +1,247 @@
+---
+name: wordpress-content
+description: >
+ Create and manage WordPress posts, pages, media, categories, and menus.
+ Workflow: determine content type, choose method (WP-CLI or REST API), execute, verify.
+ Use when creating blog posts, updating pages, uploading media, managing categories
+ and tags, updating menus, or doing bulk content operations on WordPress sites.
+compatibility: claude-code-only
+---
+
+# WordPress Content
+
+Create, update, and manage WordPress content — posts, pages, media, categories, tags, and menus. Produces live content on the site via WP-CLI or the REST API.
+
+## Prerequisites
+
+- Working WP-CLI SSH connection or REST API credentials (use **wordpress-setup** skill)
+- Site config from `wordpress.config.json` or `wp-cli.yml`
+
+## Workflow
+
+### Step 1: Determine the Operation
+
+| Task | Best Method |
+|------|-------------|
+| Create/edit single post or page | WP-CLI `wp post create/update` |
+| Bulk create posts | WP-CLI loop or REST API batch |
+| Upload images/media | WP-CLI `wp media import` |
+| Manage categories/tags | WP-CLI `wp term` |
+| Update navigation menus | WP-CLI `wp menu` |
+| Scheduled posts | WP-CLI with `--post_date` |
+| Complex HTML content | Write to temp file, pass to WP-CLI |
+
+### Step 2: Create Content
+
+#### Blog Posts
+
+```bash
+# Simple post
+wp @site post create \
+ --post_type=post \
+ --post_title="My New Blog Post" \
+ --post_content="<p>Post content here.</p>" \
+ --post_status=draft \
+ --post_category=3,5
+
+# Post from HTML file (better for long content)
+wp @site post create ./post-content.html \
+ --post_type=post \
+ --post_title="My New Blog Post" \
+ --post_status=draft \
+ --post_excerpt="A brief summary of the post." \
+ --post_category=3,5 \
+ --tags_input="tag1,tag2"
+```
+
+**Post statuses**: `draft`, `publish`, `pending`, `future` (use with `--post_date`)
+
+#### Pages
+
+```bash
+wp @site post create \
+ --post_type=page \
+ --post_title="About Us" \
+ --post_content="<h2>Our Story</h2><p>Content here...</p>" \
+ --post_status=publish \
+ --post_parent=0 \
+ --menu_order=10
+```
+
+#### Scheduled Posts
+
+```bash
+wp @site post create \
+ --post_type=post \
+ --post_title="Scheduled Post" \
+ --post_content="<p>This goes live tomorrow.</p>" \
+ --post_status=future \
+ --post_date="2026-02-23 09:00:00"
+```
+
+### Step 3: Upload Media
+
+```bash
+# Upload from URL
+wp @site media import "https://example.com/image.jpg" \
+ --title="Product Photo" \
+ --alt="Product front view" \
+ --caption="Our latest product"
+
+# Upload from local file (requires SCP first for remote sites)
+scp ./image.jpg user@host:/tmp/image.jpg
+wp @site media import /tmp/image.jpg --title="Local Upload"
+```
+
+**Set featured image on a post**:
+
+```bash
+# Get the attachment ID from the import output, then:
+wp @site post meta update {post_id} _thumbnail_id {attachment_id}
+```
+
+### Step 4: Manage Taxonomy
+
+#### Categories
+
+```bash
+# List categories
+wp @site term list category --fields=term_id,name,slug,count
+
+# Create category
+wp @site term create category "News" --slug=news --description="Company news and updates"
+
+# Create child category
+wp @site term create category "Product News" --slug=product-news --parent=5
+
+# Assign category to post
+wp @site post term add {post_id} category news
+```
+
+#### Tags
+
+```bash
+# Add tags during post creation
+wp @site post create --post_title="..." --tags_input="seo,marketing,tips"
+
+# Add tags to existing post
+wp @site post term add {post_id} post_tag seo marketing tips
+```
+
+### Step 5: Manage Menus
+
+```bash
+# List menus
+wp @site menu list --fields=term_id,name,slug,count
+
+# List items in a menu
+wp @site menu item list main-menu --fields=db_id,type,title,link
+
+# Add page to menu
+wp @site menu item add-post main-menu {page_id} --title="About Us"
+
+# Add custom link
+wp @site menu item add-custom main-menu "Contact" "https://example.com/contact/"
+
+# Reorder (set position)
+wp @site menu item update {item_id} --position=3
+```
+
+### Step 6: Update Existing Content
+
+```bash
+# Update post title and content
+wp @site post update {post_id} \
+ --post_title="Updated Title" \
+ --post_content="<p>New content.</p>"
+
+# Update from file
+wp @site post update {post_id} ./updated-content.html
+
+# Bulk update status
+wp @site post list --post_type=post --post_status=draft --field=ID | \
+ xargs -I {} wp @site post update {} --post_status=publish
+```
+
+### Step 7: Verify
+
+```bash
+# Check the post
+wp @site post get {post_id} --fields=ID,post_title,post_status,guid
+
+# Get the live URL
+wp @site post get {post_id} --field=guid
+
+# List recent posts
+wp @site post list --post_type=post --posts_per_page=5 --fields=ID,post_title,post_status,post_date
+```
+
+Provide the admin URL and live URL:
+- Admin: `https://example.com/wp-admin/post.php?post={id}&action=edit`
+- Live: `https://example.com/{slug}/`
+
+---
+
+## Critical Patterns
+
+### HTML Content in WP-CLI
+
+For anything beyond a sentence, write HTML to a temp file and pass it:
+
+```bash
+cat > /tmp/post-content.html << 'EOF'
+<h2>Section Heading</h2>
+<p>Paragraph content with <strong>bold</strong> and <a href="/link">links</a>.</p>
+<ul>
+ <li>List item one</li>
+ <li>List item two</li>
+</ul>
+EOF
+
+wp @site post create /tmp/post-content.html --post_title="My Post" --post_status=draft
+```
+
+Shell quoting in `--post_content` is fragile for complex HTML.
+
+### Bulk Operations
+
+For creating many posts, use a loop with verification:
+
+```bash
+while IFS=, read -r title slug content_file category; do
+ wp @site post create "$content_file" \
+ --post_type=post \
+ --post_title="$title" \
+ --post_name="$slug" \
+ --post_category="$category" \
+ --post_status=draft
+ sleep 0.5
+done < posts.csv
+```
+
+Always create as `draft` first, review, then bulk-publish.
+
+### ACF Custom Fields
+
+If Advanced Custom Fields is installed:
+
+```bash
+# Set ACF field
+wp @site post meta update {post_id} field_name "value"
+
+# Get ACF field
+wp @site post meta get {post_id} field_name
+```
+
+ACF stores fields with both the field value and a reference key (`_field_name` → `field_abc123`).
+
+### REST API Alternative
+
+When WP-CLI isn't available, use the REST API. See `references/rest-api-endpoints.md` for patterns.
+
+---
+
+## Reference Files
+
+- `references/rest-api-endpoints.md` — REST API endpoints with authentication examples
+- `references/wp-cli-content.md` — WP-CLI content management command reference
diff --git a/plugins/wordpress/skills/wordpress-content/references/rest-api-endpoints.md b/plugins/wordpress/skills/wordpress-content/references/rest-api-endpoints.md
new file mode 100644
index 00000000..abc6a65b
--- /dev/null
+++ b/plugins/wordpress/skills/wordpress-content/references/rest-api-endpoints.md
@@ -0,0 +1,101 @@
+# WordPress REST API Endpoints
+
+## Authentication
+
+All write operations require authentication via Application Password:
+
+```bash
+# Base64 encode credentials
+AUTH=$(echo -n "username:xxxx xxxx xxxx xxxx xxxx xxxx" | base64)
+
+# Use in requests
+curl -s https://example.com/wp-json/wp/v2/posts \
+ -H "Authorization: Basic $AUTH" \
+ -H "Content-Type: application/json"
+```
+
+## Posts
+
+| Operation | Method | Endpoint |
+|-----------|--------|----------|
+| List posts | GET | `/wp-json/wp/v2/posts` |
+| Get single post | GET | `/wp-json/wp/v2/posts/{id}` |
+| Create post | POST | `/wp-json/wp/v2/posts` |
+| Update post | PUT | `/wp-json/wp/v2/posts/{id}` |
+| Delete post | DELETE | `/wp-json/wp/v2/posts/{id}` |
+
+Create example:
+
+```bash
+curl -s https://example.com/wp-json/wp/v2/posts \
+ -H "Authorization: Basic $AUTH" \
+ -H "Content-Type: application/json" \
+ -d '{
+ "title": "My New Post",
+ "content": "<p>Post content here.</p>",
+ "status": "draft",
+ "categories": [3, 5],
+ "tags": [10, 12],
+ "excerpt": "Brief summary",
+ "featured_media": 456
+ }' | jq '{id, link, status}'
+```
+
+## Pages
+
+Same pattern as posts but at `/wp-json/wp/v2/pages`:
+
+```bash
+curl -s https://example.com/wp-json/wp/v2/pages \
+ -H "Authorization: Basic $AUTH" \
+ -H "Content-Type: application/json" \
+ -d '{
+ "title": "About Us",
+ "content": "<h2>Our Story</h2><p>Content...</p>",
+ "status": "publish",
+ "parent": 0
+ }'
+```
+
+## Media
+
+```bash
+# Upload image
+curl -s https://example.com/wp-json/wp/v2/media \
+ -H "Authorization: Basic $AUTH" \
+ -H "Content-Disposition: attachment; filename=photo.jpg" \
+ -H "Content-Type: image/jpeg" \
+ --data-binary @photo.jpg | jq '{id, source_url}'
+```
+
+## Categories & Tags
+
+| Resource | Endpoint |
+|----------|----------|
+| Categories | `/wp-json/wp/v2/categories` |
+| Tags | `/wp-json/wp/v2/tags` |
+
+```bash
+# Create category
+curl -s https://example.com/wp-json/wp/v2/categories \
+ -H "Authorization: Basic $AUTH" \
+ -H "Content-Type: application/json" \
+ -d '{"name": "News", "slug": "news", "description": "Company updates"}'
+```
+
+## Useful Query Parameters
+
+| Parameter | Purpose | Example |
+|-----------|---------|---------|
+| `per_page` | Results per page (max 100) | `?per_page=50` |
+| `page` | Pagination | `?page=2` |
+| `search` | Search term | `?search=keyword` |
+| `status` | Filter by status | `?status=draft` |
+| `categories` | Filter by category ID | `?categories=3` |
+| `orderby` | Sort field | `?orderby=date` |
+| `order` | Sort direction | `?order=desc` |
+| `_fields` | Limit response fields | `?_fields=id,title,link` |
+
+## Menus (requires plugin or WP 5.9+)
+
+Navigation menus have limited REST API support. The `/wp-json/wp/v2/navigation` endpoint exists for block-based navigation in FSE themes. For classic menus, use WP-CLI or browser automation.
diff --git a/plugins/wordpress/skills/wordpress-content/references/wp-cli-content.md b/plugins/wordpress/skills/wordpress-content/references/wp-cli-content.md
new file mode 100644
index 00000000..71844352
--- /dev/null
+++ b/plugins/wordpress/skills/wordpress-content/references/wp-cli-content.md
@@ -0,0 +1,157 @@
+# WP-CLI Content Management Reference
+
+## Posts
+
+```bash
+# Create
+wp @site post create --post_type=post --post_title="Title" --post_content="<p>Content</p>" --post_status=draft
+
+# Create from file
+wp @site post create ./content.html --post_title="Title" --post_status=draft
+
+# Update
+wp @site post update {id} --post_title="New Title" --post_content="<p>Updated</p>"
+
+# List
+wp @site post list --post_type=post --posts_per_page=20 --fields=ID,post_title,post_status,post_date
+
+# Get single post
+wp @site post get {id} --fields=ID,post_title,post_status,post_content
+
+# Delete (trash)
+wp @site post delete {id}
+
+# Delete permanently
+wp @site post delete {id} --force
+
+# Search
+wp @site post list --s="search term" --fields=ID,post_title
+```
+
+## Pages
+
+Same as posts with `--post_type=page`:
+
+```bash
+wp @site post create --post_type=page --post_title="About" --post_status=publish --post_parent=0 --menu_order=5
+wp @site post list --post_type=page --fields=ID,post_title,post_parent,menu_order
+```
+
+## Media
+
+```bash
+# Import from URL
+wp @site media import "https://example.com/image.jpg" --title="Photo" --alt="Description"
+
+# Import from local path (on server)
+wp @site media import /path/to/image.jpg --title="Upload" --featured_image --post_id={id}
+
+# List media
+wp @site post list --post_type=attachment --fields=ID,post_title,guid
+
+# Set featured image
+wp @site post meta update {post_id} _thumbnail_id {attachment_id}
+
+# Regenerate thumbnails
+wp @site media regenerate --yes
+```
+
+## Categories
+
+```bash
+# List
+wp @site term list category --fields=term_id,name,slug,count
+
+# Create
+wp @site term create category "News" --slug=news --description="Updates"
+
+# Create child
+wp @site term create category "Tech News" --parent={parent_id}
+
+# Update
+wp @site term update category {term_id} --name="Updated Name"
+
+# Assign to post
+wp @site post term add {post_id} category {slug_or_id}
+```
+
+## Tags
+
+```bash
+wp @site term list post_tag --fields=term_id,name,slug,count
+wp @site term create post_tag "new-tag"
+wp @site post term add {post_id} post_tag tag1 tag2 tag3
+```
+
+## Menus
+
+```bash
+# List menus
+wp @site menu list --fields=term_id,name,slug
+
+# List menu items
+wp @site menu item list {menu_name} --fields=db_id,type,title,link,position
+
+# Add page to menu
+wp @site menu item add-post {menu_name} {page_id} --title="Page Title"
+
+# Add custom link
+wp @site menu item add-custom {menu_name} "External" "https://example.com"
+
+# Add category archive
+wp @site menu item add-term {menu_name} category {term_id}
+
+# Update item position
+wp @site menu item update {item_id} --position=3
+
+# Delete item
+wp @site menu item delete {item_id}
+```
+
+## Post Meta / Custom Fields
+
+```bash
+# Get all meta
+wp @site post meta list {post_id} --fields=meta_key,meta_value
+
+# Get specific meta
+wp @site post meta get {post_id} meta_key
+
+# Set meta
+wp @site post meta update {post_id} meta_key "meta_value"
+
+# Add meta (allows duplicates)
+wp @site post meta add {post_id} meta_key "meta_value"
+
+# Delete meta
+wp @site post meta delete {post_id} meta_key
+```
+
+## Search and Replace
+
+```bash
+# Dry run first
+wp @site search-replace "old text" "new text" --dry-run
+
+# Execute
+wp @site search-replace "old text" "new text" --precise
+
+# Limit to specific table
+wp @site search-replace "old" "new" wp_posts --precise
+
+# Limit to specific column
+wp @site search-replace "old" "new" wp_posts post_content --precise
+```
+
+## Export / Import
+
+```bash
+# Export all content
+wp @site export --dir=/tmp/
+
+# Export specific post type
+wp @site export --post_type=post --dir=/tmp/
+
+# Import
+wp @site import /path/to/file.xml --authors=mapping.csv
+```
diff --git a/plugins/wordpress/skills/wordpress-elementor/SKILL.md b/plugins/wordpress/skills/wordpress-elementor/SKILL.md
new file mode 100644
index 00000000..b7476605
--- /dev/null
+++ b/plugins/wordpress/skills/wordpress-elementor/SKILL.md
@@ -0,0 +1,220 @@
+---
+name: wordpress-elementor
+description: >
+ Edit Elementor pages and manage templates on WordPress sites.
+ Workflow: identify page, choose editing method (browser or WP-CLI), execute, verify.
+ Use when editing Elementor pages, updating text in Elementor widgets,
+ applying or managing Elementor templates, or making content changes
+ to pages built with Elementor page builder.
+compatibility: claude-code-only
+---
+
+# WordPress Elementor
+
+Edit Elementor pages and manage templates on existing WordPress sites. Produces updated page content via browser automation (for visual/structural changes) or WP-CLI (for safe text replacements).
+
+## Prerequisites
+
+- Working WP-CLI connection or admin access (use **wordpress-setup** skill)
+- Elementor installed and active: `wp @site plugin status elementor`
+
+## Workflow
+
+### Step 1: Identify the Page
+
+Find the page to edit:
+
+```bash
+# List Elementor pages (pages with _elementor_data meta)
+wp @site post list --post_type=page --meta_key=_elementor_edit_mode --meta_value=builder \
+ --fields=ID,post_title,post_name,post_status
+
+# Get the Elementor edit URL
+# Format: https://example.com/wp-admin/post.php?post={ID}&action=elementor
+```
+
+### Step 2: Choose Editing Method
+
+| Change Type | Method | Risk |
+|-------------|--------|------|
+| Text content updates | WP-CLI search-replace | Low (with backup) |
+| Image URL swaps | WP-CLI meta update | Low (with backup) |
+| Widget styling | Browser automation | None |
+| Add/remove sections | Browser automation | None |
+| Layout changes | Browser automation | None |
+| Template application | Browser automation | None |
+
+**Rule of thumb**: If you're only changing text or URLs within existing widgets, WP-CLI is faster. For anything structural, use the visual editor via browser.
+
+### Step 3a: Text Updates via WP-CLI (Safe Method)
+
+**Always back up first**:
+
+```bash
+# Export the Elementor data
+wp @site post meta get {post_id} _elementor_data > /tmp/elementor-backup-{post_id}.json
+```
+
+**Simple text replacement**:
+
+```bash
+# Dry run — check what would change
+wp @site search-replace "Old Heading Text" "New Heading Text" wp_postmeta \
+ --include-columns=meta_value \
+ --dry-run --precise
+
+# Execute (after confirming dry run looks correct)
+wp @site search-replace "Old Heading Text" "New Heading Text" wp_postmeta \
+ --include-columns=meta_value --precise
+```
+
+**After updating**, clear Elementor's CSS cache:
+
+```bash
+wp @site elementor flush-css
+```
+
+If the `elementor` WP-CLI command isn't available:
+
+```bash
+wp @site option delete _elementor_global_css
+wp @site post meta delete-all _elementor_css
+```
+
+### Step 3b: Visual Editing via Browser Automation
+
+For structural changes, use browser automation to interact with Elementor's visual editor.
+
+**Open the editor**:
+
+1. Navigate to `https://example.com/wp-admin/post.php?post={ID}&action=elementor`
+2. Wait for the editor to fully load (Elementor loading screen disappears)
+3. The page appears in the main panel with the widget sidebar on the left
+
+**Common editing tasks**:
+
+1. **Edit text widget**: Click on the text element in the preview → edit inline or in the sidebar
+2. **Edit heading**: Click the heading → update text in the sidebar panel
+3. **Change image**: Click image widget → click the image in sidebar → select new from media library
+4. **Edit button**: Click button → update text, URL, and styling in sidebar
+5. **Save**: Click the green "Update" button (or Ctrl+S)
+
+Use playwright-cli for independent sessions:
+
+```bash
+playwright-cli -s=wp-editor open "https://example.com/wp-admin/"
+# Login first, then navigate to Elementor editor
+playwright-cli -s=wp-editor navigate "https://example.com/wp-admin/post.php?post={ID}&action=elementor"
+```
+
+Or Chrome MCP if using the user's logged-in session.
+
+See `references/elementor-workflows.md` for detailed browser automation steps.
+
+### Step 4: Manage Templates
+
+**List saved templates**:
+
+```bash
+wp @site post list --post_type=elementor_library --fields=ID,post_title,post_status
+```
+
+**Apply a template to a new page**:
+
+1. Create the page: `wp @site post create --post_type=page --post_title="New Page" --post_status=draft`
+2. Open in Elementor via browser
+3. Click the folder icon (Add Template)
+4. Select from "My Templates" tab
+5. Click "Insert"
+6. Customise and save
+
+**Duplicate an existing page**:
+
+```bash
+# Get source page's Elementor data
+SOURCE_DATA=$(wp @site post meta get {source_id} _elementor_data)
+SOURCE_CSS=$(wp @site post meta get {source_id} _elementor_page_settings)
+
+# Create new page
+NEW_ID=$(wp @site post create --post_type=page --post_title="Duplicated Page" --post_status=draft --porcelain)
+
+# Copy Elementor data
+wp @site post meta update $NEW_ID _elementor_data "$SOURCE_DATA"
+wp @site post meta update $NEW_ID _elementor_edit_mode "builder"
+wp @site post meta update $NEW_ID _elementor_page_settings "$SOURCE_CSS"
+
+# Regenerate CSS
+wp @site elementor flush-css
+```
+
+### Step 5: Verify
+
+```bash
+# Check the page status
+wp @site post get {post_id} --fields=ID,post_title,post_status,guid
+
+# Get live URL
+wp @site post get {post_id} --field=guid
+```
+
+Take a screenshot to confirm visual changes:
+
+```bash
+playwright-cli -s=verify open "https://example.com/{page-slug}/"
+playwright-cli -s=verify screenshot --filename=page-verify.png
+playwright-cli -s=verify close
+```
+
+---
+
+## Critical Patterns
+
+### Elementor Data Format
+
+Elementor stores page content as JSON in `_elementor_data` postmeta. The structure is:
+
+```
+Section → Column → Widget
+```
+
+Each element has an `id`, `elType`, `widgetType`, and `settings` object. Direct manipulation of this JSON is possible but fragile — always back up first and prefer `search-replace` over manual JSON editing.
+
+### CSS Cache
+
+After any WP-CLI change to Elementor data, you must flush the CSS cache. Elementor pre-generates CSS from widget settings. Stale cache = visual changes don't appear.
+
+```bash
+wp @site elementor flush-css
+# OR if elementor CLI not available:
+wp @site option delete _elementor_global_css
+wp @site post meta delete-all _elementor_css
+```
+
+### Elementor Pro vs Free
+
+| Feature | Free | Pro |
+|---------|------|-----|
+| Basic widgets | Yes | Yes |
+| Theme Builder | No | Yes |
+| Custom fonts | No | Yes |
+| Form widget | No | Yes |
+| WooCommerce widgets | No | Yes |
+| Dynamic content | No | Yes |
+
+Theme Builder templates (header, footer, archive) are stored as `elementor_library` post type with specific meta indicating their display conditions.
+
+### Common Elementor WP-CLI Commands
+
+If the Elementor CLI extension is available:
+
+```bash
+wp @site elementor flush-css # Clear CSS cache
+wp @site elementor library sync # Sync with template library
+wp @site elementor update db # Update database after version change
+```
+
+---
+
+## Reference Files
+
+- `references/elementor-workflows.md` — Browser automation steps, template management, safe editing patterns
diff --git a/plugins/wordpress/skills/wordpress-elementor/references/elementor-workflows.md b/plugins/wordpress/skills/wordpress-elementor/references/elementor-workflows.md
new file mode 100644
index 00000000..d0e96c43
--- /dev/null
+++ b/plugins/wordpress/skills/wordpress-elementor/references/elementor-workflows.md
@@ -0,0 +1,152 @@
+# Elementor Workflows Reference
+
+## Browser Automation: Editing a Page
+
+### Login Flow
+
+```
+1. Navigate to https://example.com/wp-admin/
+2. Enter username and password
+3. Click "Log In"
+4. Wait for dashboard to load
+```
+
+If already logged in (Chrome MCP with user's session), skip to the editor.
+
+### Open Elementor Editor
+
+```
+1. Navigate to: https://example.com/wp-admin/post.php?post={ID}&action=elementor
+2. Wait for Elementor loading overlay to disappear (can take 5-10 seconds)
+3. Editor is ready when the left sidebar shows widget panels
+```
+
+### Edit Text Content
+
+```
+1. Click on the text element in the page preview (right panel)
+2. The element becomes selected (blue border)
+3. The left sidebar shows the element's settings
+4. Under "Content" tab, edit the text in the editor field
+5. Changes appear live in the preview
+6. Click "Update" (green button, bottom left) or Ctrl+S
+```
+
+### Edit Heading
+
+```
+1. Click the heading in the preview
+2. Left sidebar → Content tab → "Title" field
+3. Edit the text
+4. Optionally adjust: HTML tag (H1-H6), alignment, link
+5. Save
+```
+
+### Change Image
+
+```
+1. Click the image widget in the preview
+2. Left sidebar → Content tab → click the image thumbnail
+3. Media Library opens
+4. Select new image or upload
+5. Click "Insert Media"
+6. Save
+```
+
+### Edit Button
+
+```
+1. Click the button in the preview
+2. Left sidebar → Content tab:
+ - Text: button label
+ - Link: URL (click the link icon for options)
+ - Icon: optional icon selection
+3. Style tab: colours, typography, border, padding
+4. Save
+```
+
+## Template Management
+
+### Export Template
+
+```
+1. Navigate to: https://example.com/wp-admin/edit.php?post_type=elementor_library
+2. Hover over the template → "Export Template"
+3. Downloads as .json file
+```
+
+### Import Template
+
+```
+1. Navigate to: https://example.com/wp-admin/edit.php?post_type=elementor_library
+2. Click "Import Templates" at the top
+3. Choose file → upload .json
+4. Template appears in the library
+```
+
+### Apply Template via WP-CLI
+
+For duplicating Elementor data between pages:
+
+```bash
+# Get source data
+SOURCE=$(wp @site post meta get {source_id} _elementor_data)
+SETTINGS=$(wp @site post meta get {source_id} _elementor_page_settings)
+
+# Apply to target
+wp @site post meta update {target_id} _elementor_data "$SOURCE"
+wp @site post meta update {target_id} _elementor_edit_mode "builder"
+wp @site post meta update {target_id} _elementor_page_settings "$SETTINGS"
+
+# Clear cache
+wp @site elementor flush-css
+```
+
+## Safe Text Replacement via WP-CLI
+
+### Pre-flight Checklist
+
+1. Back up the postmeta: `wp @site post meta get {id} _elementor_data > backup.json`
+2. Dry run the replacement
+3. Verify the dry run matches expectations (correct number of replacements)
+4. Execute
+5. Flush CSS cache
+6. Verify visually
+
+### Replacement Commands
+
+```bash
+# Dry run
+wp @site search-replace "Old Company Name" "New Company Name" wp_postmeta \
+ --include-columns=meta_value --dry-run --precise
+
+# Execute
+wp @site search-replace "Old Company Name" "New Company Name" wp_postmeta \
+ --include-columns=meta_value --precise
+
+# Flush cache
+wp @site elementor flush-css
+```
+
+### What's Safe to Replace
+
+| Safe | Risky |
+|------|-------|
+| Headings text | HTML structure |
+| Paragraph text | Widget IDs |
+| Button text and URLs | Section/column settings |
+| Image URLs (same dimensions) | Layout properties |
+| Phone numbers, emails | CSS classes |
+| Addresses | Element ordering |
+
+## Elementor Global Widgets
+
+Global widgets are shared across pages. Editing one updates all instances.
+
+```bash
+# List global widgets
+wp @site post list --post_type=elementor_library --meta_key=_elementor_template_type \
+ --meta_value=widget --fields=ID,post_title
+```
+
+**Caution**: Replacing text in a global widget's data affects every page that uses it.
diff --git a/plugins/wordpress/skills/wordpress-setup/SKILL.md b/plugins/wordpress/skills/wordpress-setup/SKILL.md
new file mode 100644
index 00000000..ee6f365b
--- /dev/null
+++ b/plugins/wordpress/skills/wordpress-setup/SKILL.md
@@ -0,0 +1,175 @@
+---
+name: wordpress-setup
+description: >
+ Connect to a WordPress site via WP-CLI over SSH or REST API.
+ Workflow: check CLI, test SSH connection, set up auth, verify access, save config.
+ Use when connecting to a WordPress site, setting up WP-CLI access, creating
+ application passwords, or troubleshooting WordPress connection issues.
+compatibility: claude-code-only
+---
+
+# WordPress Setup
+
+Connect to a WordPress site and verify working access via WP-CLI or REST API. Produces a verified connection config ready for content management and Elementor editing.
+
+## Workflow
+
+### Step 1: Check WP-CLI
+
+```bash
+wp --version
+```
+
+If not installed, guide the user:
+
+```bash
+# macOS/Linux
+curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
+chmod +x wp-cli.phar
+sudo mv wp-cli.phar /usr/local/bin/wp
+```
+
+Also ensure the SSH extension is available (needed for remote sites):
+
+```bash
+wp package install wp-cli/ssh-command
+```
+
+### Step 2: Connect to the Site
+
+**Option A: WP-CLI over SSH (preferred)**
+
+```bash
+wp --ssh=user@hostname/path/to/wordpress option get siteurl
+```
+
+Common patterns:
+- Rocket.net: `wp --ssh=user@hostname/www/sitename/public option get siteurl`
+- cPanel: `wp --ssh=user@hostname/public_html option get siteurl`
+- Custom: Ask user for SSH user, host, and WordPress path
+
+Test with a simple command first:
+
+```bash
+wp --ssh=user@host/path core version
+```
+
+**Option B: REST API with Application Password**
+
+If SSH isn't available:
+
+1. Navigate to `https://example.com/wp-admin/profile.php` (or use browser automation)
+2. Scroll to "Application Passwords" section
+3. Enter a name (e.g. "Claude Code") and click "Add New Application Password"
+4. Copy the generated password (spaces are part of it but optional in auth)
+
+Test the connection:
+
+```bash
+curl -s https://example.com/wp-json/wp/v2/posts?per_page=1 \
+ -u "username:xxxx xxxx xxxx xxxx xxxx xxxx" | jq '.[0].title'
+```
+
+### Step 3: Store Credentials
+
+**For WP-CLI SSH** — create a `wp-cli.yml` in the project root:
+
+```yaml
+ssh:
+ sitename:
+ cmd: ssh -o StrictHostKeyChecking=no %pseudotty% user@hostname %cmd%
+ url: /path/to/wordpress
+```
+
+Then use: `wp @sitename option get siteurl`
+
+**For REST API** — store in `.dev.vars`:
+
+```
+WP_SITE_URL=https://example.com
+WP_USERNAME=admin
+WP_APP_PASSWORD=xxxx xxxx xxxx xxxx xxxx xxxx
+```
+
+Ensure `.dev.vars` is in `.gitignore`. For cross-project use, store in Vault:
+
+```
+Use mcp__vault__secret_set with:
+ name: "wordpress-{sitename}-credentials"
+ value: JSON with url, username, app_password
+ tags: ["wordpress", "api"]
+```
+
+### Step 4: Verify Full Access
+
+Run a comprehensive check:
+
+```bash
+# Site info
+wp @sitename option get siteurl
+wp @sitename option get blogname
+
+# Content access
+wp @sitename post list --post_type=page --posts_per_page=5 --fields=ID,post_title,post_status
+
+# Plugin status (check for Elementor)
+wp @sitename plugin status elementor
+
+# Theme info
+wp @sitename theme status
+```
+
+### Step 5: Save Site Config
+
+Create `wordpress.config.json` for other skills to reference:
+
+```json
+{
+ "site": "example.com",
+ "siteUrl": "https://example.com",
+ "accessMethod": "ssh",
+ "sshAlias": "sitename",
+ "wpPath": "/path/to/wordpress",
+ "hasElementor": true,
+ "elementorVersion": "3.x.x"
+}
+```
+
+---
+
+## Critical Patterns
+
+### SSH Connection Issues
+
+| Symptom | Fix |
+|---------|-----|
+| `Permission denied (publickey)` | Check SSH key: `ssh -v user@host` |
+| `wp: command not found` via SSH | WP-CLI not in remote PATH — use full path: `/usr/local/bin/wp` |
+| `Error: This does not appear to be a WordPress installation` | Wrong path — check `wp-path` argument |
+| Timeout on large operations | Add `--ssh=user@host/path --allow-root` or increase SSH timeout |
+
+### WP-CLI Aliases
+
+Define aliases in `~/.wp-cli/config.yml` for frequently-accessed sites:
+
+```yaml
+@client1:
+ ssh: [email protected]/www/public
+@client2:
+ ssh: [email protected]/www/client2/public
+```
+
+Then: `wp @client1 post list`
+
+### REST API Gotchas
+
+- Application passwords require HTTPS (won't work on HTTP)
+- Some security plugins block REST API — check for 401/403 responses
+- Caching plugins may serve stale REST responses — use `?_=${timestamp}` cache buster
+- Custom post types need `show_in_rest: true` to appear in API
+
+---
+
+## Reference Files
+
+- `references/wp-cli-essentials.md` — SSH alias patterns, common flags, and troubleshooting
diff --git a/plugins/wordpress/skills/wordpress-setup/references/wp-cli-essentials.md b/plugins/wordpress/skills/wordpress-setup/references/wp-cli-essentials.md
new file mode 100644
index 00000000..958627e4
--- /dev/null
+++ b/plugins/wordpress/skills/wordpress-setup/references/wp-cli-essentials.md
@@ -0,0 +1,87 @@
+# WP-CLI Essentials
+
+## SSH Connection Patterns
+
+### Inline SSH
+
+```bash
+wp --ssh=user@host/path/to/wordpress <command>
+```
+
+### Alias in wp-cli.yml (project-level)
+
+```yaml
+ssh:
+ mysite:
+ cmd: ssh -o StrictHostKeyChecking=no %pseudotty% user@hostname %cmd%
+ url: /path/to/wordpress
+```
+
+Usage: `wp @mysite <command>`
+
+### Global Aliases (~/.wp-cli/config.yml)
+
+```yaml
+@client1:
+ ssh: [email protected]/www/public
+@client2:
+ ssh: [email protected]/www/client2/public
+```
+
+## Common Flags
+
+| Flag | Purpose |
+|------|---------|
+| `--fields=ID,post_title` | Limit output columns |
+| `--format=json` | JSON output (pipe to jq) |
+| `--format=csv` | CSV output |
+| `--posts_per_page=N` | Limit results |
+| `--post_type=page` | Filter by post type |
+| `--post_status=publish` | Filter by status |
+| `--allow-root` | Run as root (hosting that requires it) |
+| `--skip-plugins` | Skip plugin loading (faster, useful for debugging) |
+| `--skip-themes` | Skip theme loading |
+| `--quiet` | Suppress informational messages |
+
+## Useful Diagnostic Commands
+
+```bash
+# Site health
+wp @site core version
+wp @site option get siteurl
+wp @site option get home
+
+# Database
+wp @site db size
+wp @site db tables
+
+# Plugins
+wp @site plugin list --status=active --fields=name,version
+wp @site plugin status elementor
+
+# Users
+wp @site user list --fields=ID,user_login,user_email,roles
+
+# Cron (useful for scheduled posts)
+wp @site cron event list
+```
+
+## Rocket.net SSH Pattern
+
+Rocket.net sites typically use:
+
+```bash
+wp [email protected]/www/sitename/public <command>
+```
+
+Or with their MCP server for direct API access without SSH.
+
+## Troubleshooting
+
+| Issue | Solution |
+|-------|----------|
+| `wp: command not found` on remote | Use full path: `/usr/local/bin/wp` or install via SSH |
+| SSH key not accepted | Check `~/.ssh/config` for correct IdentityFile |
+| `Error establishing a database connection` | DB credentials may differ — check `wp-config.php` |
+| Timeout on large exports | Use `--skip-plugins --skip-themes` to reduce memory |
+| `PHP Fatal error: Allowed memory size` | Add `--exec="ini_set('memory_limit','512M');"` |