Skip to content

caseproof/wordpress-gutenberg-publisher

Repository files navigation

WordPress Publisher

Generate content with AI. Publish to WordPress. One command.

/wp-content

Setup (2 minutes)

pip3 install -r requirements.txt
cp config.example.ini config.ini
# Add your WordPress credentials

Get application password: WordPress Dashboard → Users → Profile → Application Passwords

Claude Code Skills

This repo includes two skills for Claude Code:

/wp-content - Full workflow: Claude asks questions, generates content, publishes to WordPress
/wp-quick - Quick publish: Select file, publish

Just type the command in Claude Code. That's it.

Usage

Generate & Publish (Recommended)

/wp-content

Claude asks questions → generates content → saves to generated/ → publishes to WordPress.

Supports: blog posts, landing pages, documentation, product pages.

Quick Publish

/wp-quick

Publish existing markdown files.

CLI (Direct)

python3.11 publish.py file.md --post-type pages --status draft

Custom Post Types

python3.11 publish.py file.md --post-type ht_kb --status publish

Works with any REST API-enabled custom post type.

How It Works

  1. Markdown → Gutenberg blocks (preserves all links/formatting)
  2. WordPress REST API (application password auth)
  3. Content saved to generated/ (organized, reusable)

Files

  • .claude/skills/ - Claude Code skills
  • publish.py - CLI tool
  • prompts/ - Content templates
  • examples/ - Sample content
  • generated/ - Your generated content (gitignored)

Troubleshooting

401: Wrong credentials in config.ini
404: Wrong site URL or post type doesn't exist
SSL error: Use Python 3.11+ (brew install python@3.11)

For Your Team

Clone, setup, use. 2 minutes.

This tool + Claude = WordPress content pipeline.

About

Simple tool for publishing markdown to WordPress as Gutenberg blocks. Educational project teaching AI-powered publishing workflows.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages