Agent skill
wordpress-content-manager
WordPress content management via REST API for managing posts. Requires Node.js and WordPress REST API credentials.
Install this agent skill to your Project
npx add-skill https://github.com/jakenuts/agent-skills/tree/main/skills/wordpress-content-manager
Metadata
Additional technical details for this skill
- requires setup
- YES
SKILL.md
WordPress Content Manager
Manage WordPress posts via the REST API. Fully configurable via environment variables - no manual file editing required.
Required Environment Variables
Before using this skill, the agent must ensure these environment variables are set. If any are missing, ask the user for the values and set them before proceeding.
| Variable | Description | Example |
|---|---|---|
WP_SITE_URL |
WordPress site base URL | https://blog.example.com |
WP_USERNAME |
WordPress username | admin |
WP_APP_PASSWORD |
WordPress Application Password | xxxx xxxx xxxx xxxx |
How to get an Application Password:
- Log in to WordPress admin
- Go to Users → Profile
- Scroll to "Application Passwords"
- Enter a name and click "Add New Application Password"
- Copy the generated password (spaces are optional)
Optional Environment Variables
| Variable | Description | Default |
|---|---|---|
WP_API_URL |
REST API base URL | {WP_SITE_URL}/wp-json/wp/v2 |
First-Time Setup
Run the setup script after setting the required environment variables. It installs Node.js dependencies and validates the connection.
Linux/macOS
export WP_SITE_URL="https://your-site.com"
export WP_USERNAME="your-username"
export WP_APP_PASSWORD="your-app-password"
bash ~/.claude/skills/wordpress-content-manager/scripts/setup.sh
Windows (PowerShell)
$env:WP_SITE_URL = "https://your-site.com"
$env:WP_USERNAME = "your-username"
$env:WP_APP_PASSWORD = "your-app-password"
pwsh ~/.claude/skills/wordpress-content-manager/scripts/setup.ps1
If using Codex CLI, replace ~/.claude/skills with ~/.codex/skills.
If Node.js is missing, the setup script will attempt to install it using common package managers.
Commands
All commands are non-interactive and return JSON when --json is set.
Describe Connection
node ~/.claude/skills/wordpress-content-manager/scripts/wp-content.mjs site info --json
List or Search Posts
node ~/.claude/skills/wordpress-content-manager/scripts/wp-content.mjs posts list --status publish --search "keyword" --per_page 20 --page 1
View a Post
node ~/.claude/skills/wordpress-content-manager/scripts/wp-content.mjs posts get 123 --json
Create a Post (HTML or Markdown)
node ~/.claude/skills/wordpress-content-manager/scripts/wp-content.mjs posts create \
--title "New Post" \
--content-file ./post.md \
--status draft \
--categories 1,2 \
--tags 5,7
Schedule a Post
node ~/.claude/skills/wordpress-content-manager/scripts/wp-content.mjs posts create \
--title "Scheduled Post" \
--content "<p>HTML body</p>" \
--status future \
--date "2025-01-15T15:30:00"
Update a Post
node ~/.claude/skills/wordpress-content-manager/scripts/wp-content.mjs posts update 123 \
--title "Updated Title" \
--status publish
Delete a Post
node ~/.claude/skills/wordpress-content-manager/scripts/wp-content.mjs posts delete 123
Bulk Delete (Dry-Run First)
node ~/.claude/skills/wordpress-content-manager/scripts/wp-content.mjs posts delete-many \
--status draft \
--search "test" \
--dry-run
node ~/.claude/skills/wordpress-content-manager/scripts/wp-content.mjs posts delete-many \
--status draft \
--search "test" \
--confirm
Advanced: Profile Files (Optional)
For convenience, you can create profile files in profiles/ to store site configurations. Environment variables always override profile values.
See references/profiles.md for the profile format.
Select a profile with --profile <name> or WP_PROFILE=<name>.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
ffmpeg-toolkit
Video and audio processing with FFmpeg. Covers transcoding, resizing, trimming, speed adjustment, compression, audio extraction, concatenation, cropping, thumbnails, and probing. References available for codec/filter lookup, audio processing, streaming formats, Remotion integration, and platform export.
google-search-console
Google Search Console API integration for search analytics, URL inspection, sitemap management, and site verification. Use when working with search performance data, checking indexing status, managing sitemaps, or analyzing SEO metrics.
solarwinds-logs
Search and analyze DealerVision production logs via SolarWinds Observability API. Use when investigating errors, debugging issues, checking system health, or when the user mentions logs, SolarWinds, production errors, or system monitoring. Requires the `logs` CLI tool to be installed.
cloudflare
Manage Cloudflare infrastructure including DNS records, zones, SSL/TLS, caching, firewall rules, Workers, Pages, and analytics. Use when working with Cloudflare APIs, creating or modifying DNS records, managing domain security, purging cache, deploying Workers/Pages, or analyzing traffic. Created by After Dark Systems, LLC.
sentry
Sentry error monitoring and issue tracking skill for retrieving issues, events, and project health data. Use when working with error tracking, exceptions, crashes, debugging production issues, or analyzing error patterns.
design-led-development
Build software with elite design principles focusing on user outcomes, trust, accessibility, and performance. Use when creating UI components, designing user flows, writing production code, reviewing code quality, or when the user mentions UX, accessibility, performance, or trust-focused development.
Didn't find tool you were looking for?