WP SEO Copilot
AI-powered SEO meta generator for WordPress. Writes optimized meta titles and descriptions using Claude AI.
by Bilal Mahmood · github.com/sahibbilal/wp-seo-copilot · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/sahibbilal/wp-seo-copilot/archive/refs/heads/master.zipReadme
WP SEO Copilot
AI-written meta titles and descriptions for every post and page.
WP SEO Copilot reads your content and generates optimized meta titles (50–60 chars) and descriptions (140–160 chars) using Claude AI — one click per post or bulk-generate everything missing at once. Works with Yoast, RankMath, AIOSEO, and standalone.
What It Does
- Dashboard shows all posts/pages with their current meta title, description, character counts, and coverage stats
- ✨ Generate per post — Claude reads the title + content and writes keyword-rich, click-worthy SEO meta
- Live character counters — turn red when over the limit
- ✨ Generate All Missing — bulk-processes everything without SEO meta, sequentially, with a live progress bar
- Auto-saves after generation — no extra clicks
- SEO plugin detection — auto-detects Yoast, RankMath, or AIOSEO and saves to the correct fields
- Fallback output — if no SEO plugin is installed, outputs
<meta name="description">and<title>directly in<head>
SEO Plugin Compatibility
| Plugin | Fields Written |
|---|---|
| Yoast SEO | _yoast_wpseo_title, _yoast_wpseo_metadesc |
| RankMath | rank_math_title, rank_math_description |
| AIOSEO | _aioseo_title, _aioseo_description |
| None (standalone) | _wseo_meta_title, _wseo_meta_desc + <head> output |
Data is written to all field sets simultaneously — switching SEO plugins won't lose your generated meta.
File Structure
wp-seo-copilot/
├── wp-seo-copilot.php # Bootstrap
├── includes/
│ ├── class-seo-fields.php # Read/write Yoast, RankMath, AIOSEO, fallback
│ ├── class-generator.php # Claude API — generates title + description
│ └── class-admin.php # Dashboard UI + AJAX handlers
├── assets/
│ ├── admin.css
│ └── admin.js
└── README.md
Installation
- Upload
wp-seo-copilotto/wp-content/plugins/ - Activate
- Go to SEO Copilot in the admin menu
- Add your Claude API key (from console.anthropic.com)
- Click ✨ Generate on any post or Generate All Missing to bulk-process
API Cost
- Model:
claude-haiku-4-5 - ~$0.001 per post (small text input + short output)
- 100 posts ≈ $0.10
Part of the 30-Day WordPress AI Plugin Series
Day 5 of building one open-source WordPress + AI plugin every day.
- Day 1: WP RAG FAQ
- Day 2: WP Content Repurposer
- Day 3: WP Smart 404
- Day 4: WP AI Alt Text Generator
- Day 5: WP SEO Copilot ← you are here
Follow along: bilalmahmood.dev
License
GPLv2 or later