This article was written, SEO-optimized, translated to French, and published to production — entirely by a Claude Code agent. Here’s exactly how we built it.
Publishing a blog article on a WordPress site sounds simple — until you factor in Elementor layouts, Yoast SEO optimization, bilingual translations, and a multi-environment promotion pipeline. What should take 30 minutes takes half a day.
At Sengo, we asked: can a Claude Code agent handle the entire workflow? Not just write the content — but create the draft in WordPress, set the Elementor layout, configure Yoast meta, insert French translations, and promote from local to staging to production?
The answer is yes. And this article is the proof — it was created end-to-end by the same Claude Code automation pipeline it describes.
The pipeline handles every step of article creation and publishing:
wp_postmeta and wp_yoast_indexable tables
Three components make this work:
We defined custom skills as markdown files in .claude/skills/. Each skill is a detailed playbook that Claude Code follows:
/content-create — gathers a brief, writes content, builds Elementor JSON, creates the draft, sets all SEO meta, inserts translations/content-publish staging 7316 — exports a post from local, resolves tags and authors on staging, creates the draft, sets Elementor + Yoast + translations via API/content-publish prod 7692 — promotes from staging to production following the same flowThe skills contain every rule the agent needs: Yoast SEO optimization guidelines, Elementor structure definitions, TranslatePress table schemas, and environment-specific behaviors.
WordPress’s standard REST API can’t write Elementor data, Yoast indexable entries, or TranslatePress translations. So we built a lightweight custom API — three endpoints in a single PHP file (facilio-child/inc/sengo-agent-api.php):
POST /wp-json/sengo/v1/elementor/{id} — sets Elementor layout data and clears cachePOST /wp-json/sengo/v1/yoast/{id} — updates both wp_postmeta and wp_yoast_indexablePOST /wp-json/sengo/v1/translations — inserts dictionary entries and slug translationsAll endpoints require Application Password authentication. The same API works identically on local, staging, and production — no environment-specific code paths.
Content flows in one direction: local → staging → production. Each environment has its own WordPress instance with separate post IDs, tag IDs, and users. The pipeline resolves everything by name, not ID:
Getting a green Yoast score isn’t an afterthought — the Claude Code agent applies SEO rules during writing, not after. The skill file includes 11 Yoast optimization rules:
The result: articles that score green on Yoast from the first draft, without manual SEO tweaks.
Sengo’s site runs English and French via TranslatePress. The agent handles both:
claude-code-wordpress-automation → automatisation-wordpress-claude-code) via the slug translations tableNo manual entry in the TranslatePress visual editor required — the API handles everything.
A few things surprised us during development:
wp_postmeta alone doesn’t work — Yoast reads from wp_yoast_indexable first. Our custom API updates both.User-Agent header get blocked by Cloudflare’s bot protection.
Here’s what you need to replicate this pipeline:
.claude/skills/ that define the workflow rulesThe entire setup took us one working session to build and refine. The ROI is immediate — every article after this one follows the same pipeline with a single command.
Want Sengo to set up an AI content pipeline for your WordPress site?
Like (0)