content-publish-wordpress

Publish pre-assembled HTML to WordPress via REST API with Yoast SEO meta updates.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/mattei2005/mgs-agent --skill content-publish-wordpress
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: content-publish-wordpress
Source: https://github.com/mattei2005/mgs-agent/tree/main/skills/content-publish-wordpress
Command: npx skills add https://github.com/mattei2005/mgs-agent --skill content-publish-wordpress

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, op, curl, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill eliminates the repetitive, error-prone plumbing work required to publish fully assembled HTML posts to WordPress, including media uploads and taxonomy resolution.

Core Features & Use Cases

  • Media upload pipeline: Uploads images to the WordPress media library and returns the resulting media ID and URL for use in post content.
  • Category/tag resolution with optional creation: Resolves categories and tags by name to their WordPress IDs, creating them when they do not exist.
  • Post create/update with Yoast SEO meta: Creates draft posts from caller-provided JSON and applies Yoast fields using a safe two-step update pattern.

Quick Start

To publish pre-assembled HTML, call the workflow from another skill by first uploading media, resolving categories/tags, creating the post JSON with status draft, then updating Yoast meta and returning the created post link.

Frequently Asked Questions about content-publish-wordpress

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I publish pre-assembled HTML to WordPress via the REST API?

To publish HTML to WordPress, you can use a workflow that orchestrates REST API calls for media uploads, taxonomy resolution, and post creation. This process requires complete HTML content and uses curl for hardened HTTP status handling.

Do I need 1Password to authenticate WordPress REST API publishing?

Yes, authenticating WordPress REST API publishing requires 1Password for credential resolution. The system uses a site_key-based lookup from 1Password to securely retrieve the necessary authentication credentials for the wp_curl_auth_http wrapper.

How does media upload work when publishing posts to WordPress?

The media upload pipeline uploads images directly to the WordPress media library via REST API. It then returns the resulting media ID and URL, allowing you to reference the uploaded assets within your post content during creation.

Can I automatically create missing categories and tags when creating a WordPress post?

Yes, you can resolve categories and tags by name to their WordPress IDs, with optional creation enabled. If a specified category or tag does not exist, the system will create it automatically during the taxonomy resolution step.

Why does updating Yoast SEO meta require a two-step update flow?

Updating Yoast SEO meta uses a two-step update flow to reliably trigger WordPress save_post hooks. This pattern ensures the SEO fields are safely applied to a draft post after the initial creation, preventing hook execution failures.

What is the best way to resolve taxonomy terms for WordPress HTML publishing?

The best way to resolve taxonomy terms for WordPress publishing is through an automated pipeline that matches category and tag names to IDs. This approach handles resolution and optional creation seamlessly before finalizing the post.