Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.
Python aianthropicautomationclaude-codeclaude-skillscloudflaredevtoolsproductivityreactskillstailwindvite
refactor: inline references into 4 skills (batch)
Marcus Webbcad517d89619
diff --git a/plugins/design-assets/skills/image-processing/SKILL.md b/plugins/design-assets/skills/image-processing/SKILL.mdindex a38e2cea..fde7d90e 100644--- a/plugins/design-assets/skills/image-processing/SKILL.md+++ b/plugins/design-assets/skills/image-processing/SKILL.md@@ -16,41 +16,161 @@ Pillow is usually pre-installed. If not:pip install Pillow```-If Pillow is unavailable, adapt using alternatives:+If Pillow is unavailable, use alternatives:-| Alternative | Platform | Install | Capabilities |-|-------------|----------|---------|-------------|+| Alternative | Platform | Install | Best for |+|-------------|----------|---------|----------|| `sips` | macOS (built-in) | None | Resize, convert (no trim/OG) |-| `sharp` | Node.js | `npm install sharp` | Full feature set |+| `sharp` | Node.js | `npm install sharp` | Full feature set, high performance || `ffmpeg` | Cross-platform | `brew install ffmpeg` | Resize, convert |-## Capabilities+```bash+# macOS sips examples+sips --resampleWidth 1920 input.jpg --out resized.jpg+sips --setProperty format webp input.jpg --out output.webp+```++## Output Format Guide++| Use case | Format | Why |+|----------|--------|-----|+| Photos, hero images | WebP | Best compression, wide browser support |+| Logos, icons (need transparency) | PNG | Lossless, supports alpha |+| Fallback for older browsers | JPG | Universal support |+| Thumbnails | WebP or JPG | Small file size priority |+| OG cards | PNG | Social platforms handle PNG best |++## Core Patterns++### Save with Format-Specific Quality-Generate a Python script using Pillow for any of these operations. See `references/pillow-patterns.md` for implementation patterns, especially RGBA-to-JPG compositing and cross-platform font discovery.+Different formats need different save parameters. Always handle RGBA-to-JPG compositing — JPG does not support transparency, so composite onto a white background first.-### Resize+```python+from PIL import Image+import os-Scale to specific dimensions or by width/height (maintain aspect ratio if only one given). Use `Image.LANCZOS` for high-quality downscaling.+def save_image(img, output_path, quality=None):+ os.makedirs(os.path.dirname(output_path) or ".", exist_ok=True)+ kwargs = {}+ ext = output_path.lower().rsplit(".", 1)[-1]-### Convert Format+ if ext == "webp":+ kwargs = {"quality": quality or 85, "method": 6}+ elif ext in ("jpg", "jpeg"):+ kwargs = {"quality": quality or 90, "optimize": True}+ # RGBA → RGB: composite onto white background+ if img.mode == "RGBA":+ bg = Image.new("RGB", img.size, (255, 255, 255))+ bg.paste(img, mask=img.split()[3])+ img = bg+ elif ext == "png":+ kwargs = {"optimize": True}-Convert between PNG, JPG, WebP. Handle RGBA-to-JPG by compositing onto white background. Apply format-specific quality settings (WebP: 85, JPG: 90, PNG: optimize).+ img.save(output_path, **kwargs)+```++### Resize with Aspect Ratio++When only width or height is given, calculate the other from aspect ratio. Use `Image.LANCZOS` for high-quality downscaling.++```python+def resize_image(img, width=None, height=None):+ if width and height:+ return img.resize((width, height), Image.LANCZOS)+ elif width:+ ratio = width / img.width+ return img.resize((width, int(img.height * ratio)), Image.LANCZOS)+ elif height:+ ratio = height / img.height+ return img.resize((int(img.width * ratio), height), Image.LANCZOS)+ return img+```-### Trim Whitespace+### Trim Whitespace (Auto-Crop)-Auto-crop surrounding whitespace from logos and icons. Convert to RGBA first, then use `getbbox()` to find content bounds.+Remove surrounding whitespace from logos and icons. Convert to RGBA first, then use `getbbox()` to find content bounds.++```python+img = Image.open(input_path)+if img.mode != "RGBA":+ img = img.convert("RGBA")+bbox = img.getbbox() # Bounding box of non-zero pixels+if bbox:+ img = img.crop(bbox)+```### Thumbnail-Fit within max dimensions while maintaining aspect ratio. Use `img.thumbnail((size, size), Image.LANCZOS)`.+Fit within max dimensions while maintaining aspect ratio:++```python+img.thumbnail((size, size), Image.LANCZOS)+```### Optimise for WebResize + compress in one step. Convert to WebP for best compression. Typical settings: width 1920, quality 85.-### OG Card (1200x630)+### Cross-Platform Font Discovery++System font paths differ by OS. Try multiple paths, fall back to Pillow's default. On Linux, `fc-list` can discover fonts dynamically.++```python+from PIL import ImageFont++def get_font(size):+ font_paths = [+ # macOS+ "/System/Library/Fonts/Helvetica.ttc",+ "/System/Library/Fonts/SFNSText.ttf",+ # Linux+ "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf",+ "/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf",+ # Windows+ "C:/Windows/Fonts/arial.ttf",+ ]+ for path in font_paths:+ if os.path.exists(path):+ try:+ return ImageFont.truetype(path, size)+ except Exception:+ continue+ return ImageFont.load_default()+```-Generate Open Graph card with title/subtitle overlay on a background image or solid colour. Apply semi-transparent overlay for text readability. Centre text horizontally.+### OG Card Generation (1200x630)++Composite text on a background image or solid colour. Apply semi-transparent overlay for text readability. Centre text horizontally.++```python+from PIL import Image, ImageDraw, ImageFont++width, height = 1200, 630++# Background: image or solid colour+if background_path:+ img = Image.open(background_path).resize((width, height), Image.LANCZOS)+else:+ img = Image.new("RGB", (width, height), bg_color or "#1a1a2e")++# Semi-transparent overlay for text readability+overlay = Image.new("RGBA", (width, height), (0, 0, 0, 128))+img = img.convert("RGBA")+img = Image.alpha_composite(img, overlay)++draw = ImageDraw.Draw(img)+font_title = get_font(48)+font_sub = get_font(24)++# Centre title+if title:+ bbox = draw.textbbox((0, 0), title, font=font_title)+ tw = bbox[2] - bbox[0]+ draw.text(((width - tw) // 2, height // 2 - 60), title, fill="white", font=font_title)++img = img.convert("RGB")+```## Common Workflows@@ -75,19 +195,3 @@ Generate images with the gemini-image-gen skill, then process them:1. Generate with Gemini (raw PNG output)2. User picks favourite3. Optimise: resize to target width, convert to WebP, compress--## Output Format Guide--| Use case | Format | Why |-|----------|--------|-----|-| Photos, hero images | WebP | Best compression, wide browser support |-| Logos, icons (need transparency) | PNG | Lossless, supports alpha |-| Fallback for older browsers | JPG | Universal support |-| Thumbnails | WebP or JPG | Small file size priority |-| OG cards | PNG | Social platforms handle PNG best |--## Reference Files--| When | Read |-|------|------|-| Implementing any Pillow operation | [references/pillow-patterns.md](references/pillow-patterns.md) |diff --git a/plugins/design-assets/skills/image-processing/references/pillow-patterns.md b/plugins/design-assets/skills/image-processing/references/pillow-patterns.mddeleted file mode 100644index a6d890ec..00000000--- a/plugins/design-assets/skills/image-processing/references/pillow-patterns.md+++ /dev/null@@ -1,151 +0,0 @@-# Pillow Image Processing Patterns--Reference patterns for common web image operations. Claude should adapt these to the user's-specific needs rather than running them as-is.--## RGBA-to-JPG Compositing--JPG does not support transparency. When converting RGBA images to JPG, composite onto a white background first:--```python-from PIL import Image--img = Image.open(input_path)-if output_path.lower().endswith((".jpg", ".jpeg")) and img.mode == "RGBA":- bg = Image.new("RGB", img.size, (255, 255, 255))- bg.paste(img, mask=img.split()[3]) # Use alpha channel as mask- img = bg-```--This also applies inside the save function — always check before saving as JPG.--## Save with Format-Specific Quality--Different formats need different save parameters:--```python-def save_image(img, output_path, quality=None):- os.makedirs(os.path.dirname(output_path) or ".", exist_ok=True)- kwargs = {}- ext = output_path.lower().rsplit(".", 1)[-1]-- if ext == "webp":- kwargs = {"quality": quality or 85, "method": 6}- elif ext in ("jpg", "jpeg"):- kwargs = {"quality": quality or 90, "optimize": True}- # Handle RGBA → RGB conversion- if img.mode == "RGBA":- bg = Image.new("RGB", img.size, (255, 255, 255))- bg.paste(img, mask=img.split()[3])- img = bg- elif ext == "png":- kwargs = {"optimize": True}-- img.save(output_path, **kwargs)-```--## Resize with Aspect Ratio--When only width or height is given, calculate the other from aspect ratio:--```python-def resize_image(img, width=None, height=None):- if width and height:- return img.resize((width, height), Image.LANCZOS)- elif width:- ratio = width / img.width- return img.resize((width, int(img.height * ratio)), Image.LANCZOS)- elif height:- ratio = height / img.height- return img.resize((int(img.width * ratio), height), Image.LANCZOS)- return img-```--## Trim Whitespace (Auto-Crop)--Remove surrounding whitespace from logos and icons:--```python-img = Image.open(input_path)-if img.mode != "RGBA":- img = img.convert("RGBA")-bbox = img.getbbox() # Returns bounding box of non-zero pixels-if bbox:- img = img.crop(bbox)-```--## OG Card Generation (1200x630)--Composite text on a background image or solid colour:--```python-from PIL import Image, ImageDraw, ImageFont--width, height = 1200, 630--# Background: image or solid colour-if background_path:- img = Image.open(background_path).resize((width, height), Image.LANCZOS)-else:- img = Image.new("RGB", (width, height), bg_color or "#1a1a2e")--# Semi-transparent overlay for text readability-overlay = Image.new("RGBA", (width, height), (0, 0, 0, 128))-img = img.convert("RGBA")-img = Image.alpha_composite(img, overlay)--draw = ImageDraw.Draw(img)-font_title = get_font(48)-font_sub = get_font(24)--# Centre title-if title:- bbox = draw.textbbox((0, 0), title, font=font_title)- tw = bbox[2] - bbox[0]- draw.text(((width - tw) // 2, height // 2 - 60), title, fill="white", font=font_title)--img = img.convert("RGB")-```--## Cross-Platform Font Discovery--System font paths differ by OS. Try multiple paths, fall back to Pillow's default:--```python-def get_font(size):- font_paths = [- # macOS- "/System/Library/Fonts/Helvetica.ttc",- "/System/Library/Fonts/SFNSText.ttf",- # Linux- "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf",- "/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf",- # Windows- "C:/Windows/Fonts/arial.ttf",- ]- for path in font_paths:- if os.path.exists(path):- try:- return ImageFont.truetype(path, size)- except Exception:- continue- return ImageFont.load_default()-```--**Tip**: On Linux, `fc-list` shows available fonts. Claude can discover fonts dynamically rather than hardcoding paths.--## Environment Alternatives--If Pillow is not available:--| Alternative | Platform | Install | Best for |-|-------------|----------|---------|----------|-| `sips` | macOS (built-in) | None | Resize, convert (no trim/OG) |-| `sharp` | Node.js | `npm install sharp` | Full feature set, high performance |-| `ffmpeg` | Cross-platform | `brew install ffmpeg` | Resize, convert |--```bash-# macOS sips examples-sips --resampleWidth 1920 input.jpg --out resized.jpg-sips --setProperty format webp input.jpg --out output.webp-```diff --git a/plugins/web-design/skills/seo-local-business/SKILL.md b/plugins/web-design/skills/seo-local-business/SKILL.mdindex c3f75f93..28669f81 100644--- a/plugins/web-design/skills/seo-local-business/SKILL.md+++ b/plugins/web-design/skills/seo-local-business/SKILL.md@@ -31,7 +31,52 @@ Ask for (or extract from existing site):### Step 2: Generate Head Tags-Use `assets/head-template.html` as your base. Fill in all placeholders.+Fill placeholders in this template:++```html+<head>+ <meta charset="UTF-8">+ <meta name="viewport" content="width=device-width, initial-scale=1.0">++ <!-- Primary Meta Tags -->+ <title>{{PAGE_TITLE}} | {{BUSINESS_NAME}}</title>+ <meta name="title" content="{{PAGE_TITLE}} | {{BUSINESS_NAME}}">+ <meta name="description" content="{{META_DESCRIPTION}}">++ <!-- Canonical URL -->+ <link rel="canonical" href="{{CANONICAL_URL}}">++ <!-- Open Graph / Facebook -->+ <meta property="og:type" content="website">+ <meta property="og:url" content="{{CANONICAL_URL}}">+ <meta property="og:title" content="{{PAGE_TITLE}} | {{BUSINESS_NAME}}">+ <meta property="og:description" content="{{META_DESCRIPTION}}">+ <meta property="og:image" content="{{OG_IMAGE_URL}}">++ <!-- Twitter -->+ <meta property="twitter:card" content="summary_large_image">+ <meta property="twitter:url" content="{{CANONICAL_URL}}">+ <meta property="twitter:title" content="{{PAGE_TITLE}} | {{BUSINESS_NAME}}">+ <meta property="twitter:description" content="{{META_DESCRIPTION}}">+ <meta property="twitter:image" content="{{OG_IMAGE_URL}}">++ <!-- Geo Tags (Local SEO) -->+ <meta name="geo.region" content="{{GEO_REGION}}">+ <meta name="geo.placename" content="{{CITY}}">+ <meta name="geo.position" content="{{LATITUDE}};{{LONGITUDE}}">+ <meta name="ICBM" content="{{LATITUDE}}, {{LONGITUDE}}">++ <!-- Favicons -->+ <link rel="icon" type="image/svg+xml" href="favicon.svg">+ <link rel="icon" type="image/png" sizes="32x32" href="favicon-32.png">+ <link rel="apple-touch-icon" href="apple-touch-icon.png">++ <!-- Structured Data -->+ <script type="application/ld+json">+ {{JSON_LD_SCHEMA}}+ </script>+</head>+```**Title tag patterns** (50-60 chars max):@@ -55,6 +100,62 @@ Use `assets/head-template.html` as your base. Fill in all placeholders.**LocalBusiness** (homepage — always include):+Use `LocalBusiness` or a more specific subtype:++| Subtype | Use for |+|---------|---------|+| `Plumber` | Plumbing services |+| `Electrician` | Electrical services |+| `RoofingContractor` | Roofing |+| `HVACBusiness` | Air conditioning/heating |+| `AutoRepair` | Mechanics |+| `BeautySalon` | Hair/beauty |+| `Dentist` | Dental practices |+| `LegalService` | Law firms |+| `AccountingService` | Accountants |+| `RealEstateAgent` | Real estate |+| `Restaurant` | Restaurants/cafes |+| `BarOrPub` | Pubs/bars |+| `Hotel` | Accommodation |+| `Store` | Retail shops |+| `ProfessionalService` | Generic professional |++LocalBusiness schema properties:++| Property | Required | Notes |+|----------|----------|-------|+| `@type` | Yes | `LocalBusiness` or subtype from above |+| `name` | Yes | Business name as shown to customers |+| `image` | Yes | Primary business image or logo |+| `description` | Yes | 1-2 sentence business description |+| `@id` | Yes | Unique ID, use `{url}/#organization` |+| `url` | Yes | Website homepage URL |+| `telephone` | Yes | International format: `+61-2-4900-1234` |+| `address` | Yes | PostalAddress (see below) |+| `email` | Recommended | Primary contact email |+| `priceRange` | Recommended | `$` to `$$$$` |+| `geo` | Recommended | GeoCoordinates: latitude/longitude |+| `openingHoursSpecification` | Recommended | See hours format below |+| `areaServed` | Recommended | Cities/suburbs served |+| `sameAs` | Recommended | Social media profile URLs |+| `taxID` | Optional | ABN for Australian businesses |+| `logo` | Optional | Business logo URL |+| `foundingDate` | Optional | ISO 8601 date |+| `paymentAccepted` | Optional | e.g. "Cash, Credit Card, EFTPOS" |+| `currenciesAccepted` | Optional | `AUD` |++PostalAddress:++| Property | Example |+|----------|---------|+| `streetAddress` | `123 Hunter Street` |+| `addressLocality` | `Newcastle` |+| `addressRegion` | `NSW` |+| `postalCode` | `2300` |+| `addressCountry` | `AU` |++Example:+```json{"@context": "https://schema.org",@@ -86,6 +187,12 @@ Use `assets/head-template.html` as your base. Fill in all placeholders."dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],"opens": "07:00","closes": "17:00"+ },+ {+ "@type": "OpeningHoursSpecification",+ "dayOfWeek": ["Saturday"],+ "opens": "08:00",+ "closes": "12:00"}],"areaServed": [@@ -101,6 +208,15 @@ Use `assets/head-template.html` as your base. Fill in all placeholders.**Service** (service pages — add per service):+| Property | Required | Notes |+|----------|----------|-------|+| `name` | Yes | Service name |+| `description` | Yes | What the service provides |+| `provider` | Yes | `{ "@id": "{url}/#organization" }` |+| `areaServed` | Recommended | City or region |+| `serviceType` | Recommended | Category of service |+| `offers` | Optional | Pricing/availability |+```json{"@context": "https://schema.org",@@ -139,12 +255,40 @@ Use `assets/head-template.html` as your base. Fill in all placeholders.### Step 4: Generate robots.txt and sitemap.xml-Use `assets/robots-template.txt` and `assets/sitemap-template.xml`. Populate with all site pages.+**robots.txt:**++```+User-agent: *+Allow: /++Sitemap: {{SITE_URL}}/sitemap.xml+```++**sitemap.xml:**++```xml+<?xml version="1.0" encoding="UTF-8"?>+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">+ <url>+ <loc>{{SITE_URL}}/</loc>+ <lastmod>{{DATE}}</lastmod>+ <changefreq>weekly</changefreq>+ <priority>1.0</priority>+ </url>+ <!-- Add one <url> per page. Priority: 1.0 homepage, 0.8 services, 0.6 others -->+</urlset>+```### Step 5: ValidateTest structured data at: https://validator.schema.org/+Common validation errors:+- Missing `@context` — every JSON-LD block needs it+- Wrong phone format — must be international (`+61-...`)+- Missing `@id` — needed for cross-referencing between schemas+- Empty `areaServed` — include at least one city+## Australian-Specific Patterns### Phone Numbers@@ -170,27 +314,19 @@ Add to LocalBusiness schema when available:{ "taxID": "12 345 678 901" }```-### Service Areas--Use Australian city and suburb names:+### Australian State Codes-```json-"areaServed": [- { "@type": "City", "name": "Newcastle" },- { "@type": "City", "name": "Maitland" },- { "@type": "City", "name": "Lake Macquarie" }-]-```+| State | Code | Geo Region |+|-------|------|------------|+| New South Wales | NSW | AU-NSW |+| Victoria | VIC | AU-VIC |+| Queensland | QLD | AU-QLD |+| South Australia | SA | AU-SA |+| Western Australia | WA | AU-WA |+| Tasmania | TAS | AU-TAS |+| Northern Territory | NT | AU-NT |+| ACT | ACT | AU-ACT |-### Geo Tags--Include state-specific geo meta tags:--```html-<meta name="geo.region" content="AU-NSW">-<meta name="geo.placename" content="Newcastle">-<meta name="geo.position" content="-32.9283;151.7817">-<meta name="ICBM" content="-32.9283, 151.7817">-```+### Service Areas-See `references/schema-properties.md` for the full list of LocalBusiness and Service schema properties.+Use `areaServed` with Australian city and suburb names (see LocalBusiness example above).diff --git a/plugins/web-design/skills/seo-local-business/references/schema-properties.md b/plugins/web-design/skills/seo-local-business/references/schema-properties.mddeleted file mode 100644index f874d2b9..00000000--- a/plugins/web-design/skills/seo-local-business/references/schema-properties.md+++ /dev/null@@ -1,133 +0,0 @@-# Schema.org Properties Reference--Complete property lists for local business structured data.--## LocalBusiness Properties--Core properties for the homepage JSON-LD block.--| Property | Type | Required | Notes |-|----------|------|----------|-------|-| `@type` | string | Yes | `LocalBusiness` or subtype (see below) |-| `name` | string | Yes | Business name as shown to customers |-| `image` | URL | Yes | Primary business image or logo |-| `description` | string | Yes | 1-2 sentence business description |-| `@id` | URL | Yes | Unique ID, use `{url}/#organization` |-| `url` | URL | Yes | Website homepage URL |-| `telephone` | string | Yes | International format: `+61-2-4900-1234` |-| `email` | string | Recommended | Primary contact email |-| `priceRange` | string | Recommended | `$` to `$$$$` |-| `address` | PostalAddress | Yes | See below |-| `geo` | GeoCoordinates | Recommended | Latitude/longitude |-| `openingHoursSpecification` | array | Recommended | See below |-| `areaServed` | array | Recommended | Cities/suburbs served |-| `sameAs` | array | Recommended | Social media profile URLs |-| `taxID` | string | Optional | ABN for Australian businesses |-| `logo` | URL | Optional | Business logo URL |-| `foundingDate` | string | Optional | ISO 8601 date |-| `founder` | Person | Optional | Business founder |-| `numberOfEmployees` | number | Optional | Staff count |-| `paymentAccepted` | string | Optional | e.g. "Cash, Credit Card, EFTPOS" |-| `currenciesAccepted` | string | Optional | `AUD` |--### LocalBusiness Subtypes--Use a more specific type when applicable:--| Subtype | Use for |-|---------|---------|-| `Plumber` | Plumbing services |-| `Electrician` | Electrical services |-| `RoofingContractor` | Roofing |-| `HVACBusiness` | Air conditioning/heating |-| `AutoRepair` | Mechanics |-| `BeautySalon` | Hair/beauty |-| `Dentist` | Dental practices |-| `LegalService` | Law firms |-| `AccountingService` | Accountants |-| `RealEstateAgent` | Real estate |-| `Restaurant` | Restaurants/cafes |-| `BarOrPub` | Pubs/bars |-| `Hotel` | Accommodation |-| `Store` | Retail shops |-| `ProfessionalService` | Generic professional |--### PostalAddress Properties--| Property | Example |-|----------|---------|-| `streetAddress` | `123 Hunter Street` |-| `addressLocality` | `Newcastle` |-| `addressRegion` | `NSW` |-| `postalCode` | `2300` |-| `addressCountry` | `AU` |--### Australian State Codes--| State | Code | Geo Region |-|-------|------|------------|-| New South Wales | NSW | AU-NSW |-| Victoria | VIC | AU-VIC |-| Queensland | QLD | AU-QLD |-| South Australia | SA | AU-SA |-| Western Australia | WA | AU-WA |-| Tasmania | TAS | AU-TAS |-| Northern Territory | NT | AU-NT |-| ACT | ACT | AU-ACT |--### OpeningHoursSpecification--```json-{- "@type": "OpeningHoursSpecification",- "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],- "opens": "07:00",- "closes": "17:00"-}-```--For different weekend hours, add a separate entry:--```json-{- "@type": "OpeningHoursSpecification",- "dayOfWeek": ["Saturday"],- "opens": "08:00",- "closes": "12:00"-}-```--## Service Properties--For individual service pages.--| Property | Type | Required | Notes |-|----------|------|----------|-------|-| `name` | string | Yes | Service name |-| `description` | string | Yes | What the service provides |-| `provider` | reference | Yes | `{ "@id": "{url}/#organization" }` |-| `areaServed` | Place | Recommended | City or region |-| `serviceType` | string | Recommended | Category of service |-| `offers` | Offer | Optional | Pricing/availability |-| `hasOfferCatalog` | OfferCatalog | Optional | Multiple service tiers |--## FAQPage Properties--For pages with FAQ sections.--| Property | Type | Required |-|----------|------|----------|-| `mainEntity` | array of Question | Yes |-| `Question.name` | string | Yes |-| `Question.acceptedAnswer` | Answer | Yes |-| `Answer.text` | string | Yes |--## Validation--Always test generated schema at: https://validator.schema.org/--Common errors:-- Missing `@context` — every JSON-LD block needs it-- Wrong phone format — must be international (`+61-...`)-- Missing `@id` — needed for cross-referencing between schemas-- Empty `areaServed` — include at least one citydiff --git a/plugins/wordpress/skills/wordpress-content/SKILL.md b/plugins/wordpress/skills/wordpress-content/SKILL.mdindex 7cae934f..484e2458 100644--- a/plugins/wordpress/skills/wordpress-content/SKILL.md+++ b/plugins/wordpress/skills/wordpress-content/SKILL.md@@ -30,6 +30,7 @@ Create, update, and manage WordPress content — posts, pages, media, categories| 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 |+| No SSH access available | REST API with Application Password |### Step 2: Create Content@@ -91,6 +92,16 @@ wp @site media import "https://example.com/image.jpg" \# Upload from local file (requires SCP first for remote sites)scp ./image.jpg user@host:/tmp/image.jpgwp @site media import /tmp/image.jpg --title="Local Upload"++# Import and set as featured image in one step+wp @site media import "https://example.com/hero.jpg" \+ --title="Hero" --featured_image --post_id={id}++# List media+wp @site post list --post_type=attachment --fields=ID,post_title,guid++# Regenerate thumbnails+wp @site media regenerate --yes```**Set featured image on a post**:@@ -114,6 +125,9 @@ wp @site term create category "News" --slug=news --description="Company news and# Create child categorywp @site term create category "Product News" --slug=product-news --parent=5+# Update category+wp @site term update category {term_id} --name="Updated Name"+# Assign category to postwp @site post term add {post_id} category news```@@ -121,6 +135,12 @@ wp @site post term add {post_id} category news#### Tags```bash+# List tags+wp @site term list post_tag --fields=term_id,name,slug,count++# Create tag+wp @site term create post_tag "new-tag"+# Add tags during post creationwp @site post create --post_title="..." --tags_input="seo,marketing,tips"@@ -135,7 +155,7 @@ wp @site post term add {post_id} post_tag seo marketing tipswp @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+wp @site menu item list main-menu --fields=db_id,type,title,link,position# Add page to menuwp @site menu item add-post main-menu {page_id} --title="About Us"@@ -143,8 +163,14 @@ wp @site menu item add-post main-menu {page_id} --title="About Us"# Add custom linkwp @site menu item add-custom main-menu "Contact" "https://example.com/contact/"+# Add category archive to menu+wp @site menu item add-term main-menu category {term_id}+# Reorder (set position)wp @site menu item update {item_id} --position=3++# Delete menu item+wp @site menu item delete {item_id}```### Step 6: Update Existing Content@@ -158,12 +184,71 @@ wp @site post update {post_id} \# Update from filewp @site post update {post_id} ./updated-content.html+# Search posts+wp @site post list --s="search term" --fields=ID,post_title+# Bulk update statuswp @site post list --post_type=post --post_status=draft --field=ID | \xargs -I {} wp @site post update {} --post_status=publish++# Delete (trash)+wp @site post delete {post_id}++# Delete permanently+wp @site post delete {post_id} --force+```++### Step 7: Post Meta and Custom Fields++```bash+# Get all meta for a post+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```-### Step 7: Verify+ACF stores fields with both the field value and a reference key (`_field_name` -> `field_abc123`).++### Step 8: Search and Replace++```bash+# Dry run first — always+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+```++### Step 9: Export and 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+```++### Step 10: Verify```bash# Check the post@@ -182,6 +267,101 @@ Provide the admin URL and live URL:---+## REST API Reference++When WP-CLI is not available, use the WordPress REST API with Application Password auth.++### Authentication++```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"+```++### Endpoints++| Resource | Endpoint |+|----------|----------|+| Posts | `/wp-json/wp/v2/posts` |+| Pages | `/wp-json/wp/v2/pages` |+| Media | `/wp-json/wp/v2/media` |+| Categories | `/wp-json/wp/v2/categories` |+| Tags | `/wp-json/wp/v2/tags` |++All support GET (list/single), POST (create), PUT (update), DELETE.++### Create Post via REST++```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}'+```++### Create Page via REST++```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+ }'+```++### Upload Media via REST++```bash+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}'+```++### Create Category via REST++```bash+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"}'+```++### 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**: 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.++---+## Critical Patterns### HTML Content in WP-CLI@@ -220,28 +400,3 @@ 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 referencediff --git a/plugins/wordpress/skills/wordpress-content/references/rest-api-endpoints.md b/plugins/wordpress/skills/wordpress-content/references/rest-api-endpoints.mddeleted file mode 100644index abc6a65b..00000000--- a/plugins/wordpress/skills/wordpress-content/references/rest-api-endpoints.md+++ /dev/null@@ -1,101 +0,0 @@-# 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.mddeleted file mode 100644index 71844352..00000000--- a/plugins/wordpress/skills/wordpress-content/references/wp-cli-content.md+++ /dev/null@@ -1,157 +0,0 @@-# 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.mdindex b7476605..45be581c 100644--- a/plugins/wordpress/skills/wordpress-elementor/SKILL.md+++ b/plugins/wordpress/skills/wordpress-elementor/SKILL.md@@ -22,15 +22,12 @@ Edit Elementor pages and manage templates on existing WordPress sites. Produces### Step 1: Identify the Page-Find the page to edit:-```bash-# List Elementor pages (pages with _elementor_data meta)+# List Elementor pageswp @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+# Editor URL format: https://example.com/wp-admin/post.php?post={ID}&action=elementor```### Step 2: Choose Editing Method@@ -46,22 +43,29 @@ wp @site post list --post_type=page --meta_key=_elementor_edit_mode --meta_value**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)+### Step 3a: Text Updates via WP-CLI**Always back up first**:```bash-# Export the Elementor datawp @site post meta get {post_id} _elementor_data > /tmp/elementor-backup-{post_id}.json```+**Pre-flight checklist**:++1. Back up the postmeta (above)+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+**Simple text replacement**:```bash-# Dry run — check what would change+# Dry runwp @site search-replace "Old Heading Text" "New Heading Text" wp_postmeta \- --include-columns=meta_value \- --dry-run --precise+ --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 \@@ -81,25 +85,68 @@ wp @site option delete _elementor_global_csswp @site post meta delete-all _elementor_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 |+### Step 3b: Visual Editing via Browser AutomationFor structural changes, use browser automation to interact with Elementor's visual editor.+**Login flow** (skip if already logged in via Chrome MCP):++1. Navigate to `https://example.com/wp-admin/`+2. Enter username and password+3. Click "Log In"+4. Wait for dashboard to load+**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+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-**Common editing tasks**:+**Edit heading**:-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)+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-Use playwright-cli for independent sessions:+**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 (label), Link (URL), Icon (optional)+3. Style tab: colours, typography, border, padding+4. Save++**Using playwright-cli**:```bashplaywright-cli -s=wp-editor open "https://example.com/wp-admin/"@@ -109,8 +156,6 @@ playwright-cli -s=wp-editor navigate "https://example.com/wp-admin/post.php?postOr 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**:@@ -119,6 +164,19 @@ See `references/elementor-workflows.md` for detailed browser automation steps.wp @site post list --post_type=elementor_library --fields=ID,post_title,post_status```+**Export a template** (browser):++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 a template** (browser):++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 a template to a new page**:1. Create the page: `wp @site post create --post_type=page --post_title="New Page" --post_status=draft`@@ -128,7 +186,7 @@ wp @site post list --post_type=elementor_library --fields=ID,post_title,post_sta5. Click "Insert"6. Customise and save-**Duplicate an existing page**:+**Duplicate an existing page via WP-CLI**:```bash# Get source page's Elementor data@@ -147,6 +205,22 @@ wp @site post meta update $NEW_ID _elementor_page_settings "$SOURCE_CSS"wp @site elementor flush-css```+**Apply template between pages via WP-CLI**:++```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+```+### Step 5: Verify```bash@@ -174,10 +248,10 @@ playwright-cli -s=verify closeElementor stores page content as JSON in `_elementor_data` postmeta. The structure is:```-Section → Column → Widget+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.+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@@ -190,6 +264,18 @@ wp @site option delete _elementor_global_csswp @site post meta delete-all _elementor_css```+### 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.+### Elementor Pro vs Free| Feature | Free | Pro |@@ -212,9 +298,3 @@ wp @site elementor flush-css # Clear CSS cachewp @site elementor library sync # Sync with template librarywp @site elementor update db # Update database after version change```-------## Reference Files--- `references/elementor-workflows.md` — Browser automation steps, template management, safe editing patternsdiff --git a/plugins/wordpress/skills/wordpress-elementor/references/elementor-workflows.md b/plugins/wordpress/skills/wordpress-elementor/references/elementor-workflows.mddeleted file mode 100644index d0e96c43..00000000--- a/plugins/wordpress/skills/wordpress-elementor/references/elementor-workflows.md+++ /dev/null@@ -1,152 +0,0 @@-# 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.