wordpress-publisher
Publish posts to WordPress. Use for: publish blog post, upload to WordPress, פרסם בבלוג.
What this skill does
# WordPress Publisher > **First time?** If `setup_complete: false` above, run `./SETUP.md` first, then set `setup_complete: true`. Publish content to WordPress with a two-step flow: draft first, then publish after user confirmation. ## Default Language: Hebrew **IMPORTANT:** Unless the user explicitly requests English or another language, create all blog posts in Hebrew with RTL formatting. Also generate images using the `image-generation` skill for: - Featured/hero image for the post - Internal images to illustrate concepts (instead of ASCII diagrams) Always wrap Hebrew content in: ```html <article dir="rtl" lang="he"> <!-- Hebrew content here --> </article> ``` ## Configuration Create `.env` file in the skill directory: ```bash # ~/.claude/skills/wordpress-publisher/.env WP_URL=https://your-site.com WP_USERNAME=your_username WP_APP_PASSWORD=YourApplicationPasswordNoSpaces ``` **Creating Application Password:** 1. Go to WordPress Admin → Users → Profile 2. Scroll to "Application Passwords" 3. Enter a name (e.g., "Claude Code") and click "Add New" 4. Copy the password and **remove all spaces** ## Usage ### Create Draft ```bash node ~/.claude/skills/wordpress-publisher/scripts/wp-publish.js create "Post Title" content.html ``` ### Create with Featured Image ```bash node ~/.claude/skills/wordpress-publisher/scripts/wp-publish.js create "Post Title" content.html --image=cover.jpg ``` ### Create and Publish Immediately ```bash node ~/.claude/skills/wordpress-publisher/scripts/wp-publish.js create "Post Title" content.html --publish ``` ### Publish Existing Draft ```bash node ~/.claude/skills/wordpress-publisher/scripts/wp-publish.js publish POST_ID ``` ### Check Post Status ```bash node ~/.claude/skills/wordpress-publisher/scripts/wp-publish.js status POST_ID ``` ### Read from stdin ```bash echo "<h1>Hello</h1>" | node ~/.claude/skills/wordpress-publisher/scripts/wp-publish.js create "Hello" - ``` ## Options | Option | Description | |--------|-------------| | `--publish` | Publish immediately (default: draft) | | `--image=<path>` | Featured image (uploaded to media library) | | `--excerpt=<text>` | Add excerpt | | `--categories=<ids>` | Category IDs (comma-separated) | | `--tags=<ids>` | Tag IDs (comma-separated) | ## Response Format ### After Creating Draft: ``` Draft created! **Post ID:** 123 **Edit in WordPress:** https://your-site.com/wp-admin/post.php?post=123&action=edit **Preview:** https://your-site.com/?p=123 Publish now or review first? ``` ### After Publishing: ``` Post is live! **URL:** https://your-site.com/your-post-slug/ ``` ## Error Handling | Error | Cause | Solution | |-------|-------|----------| | 401 Unauthorized | Wrong credentials | Check WP_USERNAME and WP_APP_PASSWORD | | 403 Forbidden | No permissions | Ensure user has Editor/Admin role | | 404 Not Found | Wrong URL or API disabled | Check WP_URL, enable REST API | ## Hebrew/RTL Content For Hebrew content, wrap in RTL container: ```html <article dir="rtl" lang="he"> <!-- Hebrew content here --> </article> ```
Related in Web Dev
generating-lwc-components
IncludedLightning Web Components with PICKLES methodology and 165-point scoring. Use this skill when the user creates or edits LWC components, builds wire service patterns, or writes Jest tests for LWC. TRIGGER when: user creates/edits LWC components, touches lwc/**/*.js, .html, .css, .js-meta.xml files, or asks about wire service, SLDS, or Jest LWC tests. DO NOT TRIGGER when: Apex classes (use generating-apex), Aura components, or Visualforce.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Set up queries with useQuery, mutations with useMutation, configure QueryClient caching strategies, implement optimistic updates, and handle infinite scroll with useInfiniteQuery. Use when: setting up data fetching in React projects, migrating from v4 to v5, or fixing object syntax required errors, query callbacks removed issues, cacheTime renamed to gcTime, isPending vs isLoading confusion, keepPreviousData removed problems.
document-processor-api
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
nutrient-document-processing
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Covers useMutationState, simplified optimistic updates, throwOnError, network mode (offline/PWA), and infiniteQueryOptions. Use when setting up data fetching, fixing v4→v5 migration errors (object syntax, gcTime, isPending, keepPreviousData), or debugging SSR/hydration issues with streaming server components.
accelint-nextjs-best-practices
IncludedNext.js performance optimization and best practices. Use when writing Next.js code (App Router or Pages Router); implementing Server Components, Server Actions, or API routes; optimizing RSC serialization, data fetching, or server-side rendering; reviewing Next.js code for performance issues; fixing authentication in Server Actions; or implementing Suspense boundaries, parallel data fetching, or request deduplication.