asif2bd/wordpress-publishing-skill-for-claude/wordpress-publishing-skill-for-claude
Claude Code and agent skill by asif2bd/wordpress-publishing-skill-for-claude
- community
Checking that the SKILL.md file is still in the repository.
Publish content directly to WordPress sites via REST API with full Gutenberg block support. Create and publish posts/pages, auto-load and select categories from website, generate SEO-optimized tags, preview articles before publishing, and generate Gutenberg blocks for tables, images, lists, and rich formatting. Use when user wants to publish to WordPress, post to blog, create WordPress article, update WordPress post, or convert markdown to Gutenberg blocks.
Install
npx vskill@latest install asif2bd/wordpress-publishing-skill-for-claude/wordpress-publishing-skill-for-claudeSKILL.md
WordPress Publisher
Publish content directly to WordPress sites using the REST API with full Gutenberg block formatting, automatic category selection, SEO tag generation, and preview capabilities.
Complete Workflow Overview
Step 1: Connection Setup
Get Credentials
Ask user for:
- WordPress site URL (e.g.,
https://example.com) - WordPress username
- Application password (NOT regular password)
How to Create Application Password
Guide user:
- Go to Users → Profile in WordPress admin
- Scroll to Application Passwords section
- Enter name:
Claude Publisher - Click Add New Application Password
- Copy the generated password (shown only once, with spaces)
Test Connection
Step 2: Load and Select Categories
Auto-Load Categories from Site
Smart Category Selection
The system analyzes content and selects the most appropriate category:
Category Selection Logic
- Exact match - Title/content contains category name
- Keyword match - Category slug matches topic keywords
- Parent category - Fall back to broader parent if no match
- Create new - Create category if none fit (with user approval)
Step 3: Generate SEO-Optimized Tags
Automatic Tag Generation
Generate tags that improve Google search visibility:
Tag Generation Rules
- Primary keyword - Always include as first tag
- Secondary keywords - Include 2-3 related terms
- Long-tail keywords - Include 3-4 specific phrases
- Entity tags - Include product/brand names mentioned
- Topic tags - Include broader category terms
Create/Get Tags in WordPress
Step 4: Convert Content to Gutenberg Blocks
Markdown to Gutenberg
Supported Conversions
| Markdown | Gutenberg Block | |||
|---|---|---|---|---|
# Heading | wp:heading | |||
**bold** | <strong> in paragraph | |||
- list item | wp:list | |||
1. ordered | wp:list {"ordered":true} | |||
\\\code\\\`` | wp:code | |||
> quote | wp:quote | |||
 | wp:image | |||
| `\ | table \ | ` | wp:table |
Table Conversion (Critical for AI Content)
Tables are converted with proper Gutenberg structure:
Step 5: Preview Before Publishing
Create Draft for Preview
Verify Preview
Preview Checklist
- [ ] Title displays correctly
- [ ] All headings render (H2, H3, H4)
- [ ] Tables render with proper formatting
- [ ] Lists display correctly (bullet and numbered)
- [ ] Code blocks have syntax highlighting
- [ ] Images load (if any)
- [ ] Links are clickable
- [ ] Category shows correctly
- [ ] Tags display in post
Step 6: Publish the Post
Publish Draft
Or Create and Publish Directly
Scheduling Posts
Step 7: Verify Published Post
Check Live Post
Common Issues and Fixes
| Issue | Cause | Solution | |
|---|---|---|---|
| Tables not rendering | Missing figure wrapper | Use proper wp:table block structure | |
| Code not highlighted | Missing language attribute | Add {"language":"python"} to code block | |
| Images broken | Wrong URL or missing media | Upload to WordPress first, use media ID | |
| Tags not showing | Theme doesn't display tags | Check theme settings or use different theme |
Complete Example Workflow
Quick Reference
API Endpoints
| Resource | Endpoint | |
|---|---|---|
| Posts | /wp-json/wp/v2/posts | |
| Pages | /wp-json/wp/v2/pages | |
| Categories | /wp-json/wp/v2/categories | |
| Tags | /wp-json/wp/v2/tags | |
| Media | /wp-json/wp/v2/media |
Post Statuses
| Status | Description | |
|---|---|---|
publish | Live and visible | |
draft | Saved but not visible | |
pending | Awaiting review | |
private | Only visible to admins | |
future | Scheduled for later |
Required Files
scripts/wp_publisher.py- Main publisher classscripts/content_to_gutenberg.py- Markdown/HTML converterreferences/gutenberg-blocks.md- Block format reference
Error Handling
| Error Code | Meaning | Solution | |
|---|---|---|---|
| 401 | Invalid credentials | Check username and application password | |
| 403 | Insufficient permissions | User needs Editor or Admin role | |
| 404 | Endpoint not found | Verify REST API is enabled | |
| 400 | Invalid data | Check category/tag IDs exist | |
| 500 | Server error | Retry or check WordPress error logs |
Best Practices
- Always preview first - Create as draft, verify, then publish
- Use application passwords - Never use regular WordPress password
- Select appropriate category - Helps with site organization and SEO
- Generate relevant tags - Improves Google discoverability
- Validate Gutenberg blocks - Ensure proper block structure
- Keep excerpts under 160 chars - Optimal for search snippets
- Use descriptive slugs - Include primary keyword in URL
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSKILL.md
Popularity
- Repository stars
- 30
- Repository forks
- 2
- 7-day trend score
- 17
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.
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
[](https://verified-skill.com/skills/asif2bd/wordpress-publishing-skill-for-claude/wordpress-publishing-skill-for-claude)