The Engineering Challenge: Why WordPress Automation & Content Engine Was Architected
Operating a distributed portfolio of microservices, simulators, and infrastructure projects creates three critical bottlenecks that standard WordPress workflows cannot solve:
- REST API Indexing Gaps: Programmatic publishing via
/wp-json/wp/v2/postsbypasses Yoast SEO hooks, leavingwp_yoast_indexabletables empty, internal link graphs uncalculated, and XML sitemaps incomplete. - Content Velocity vs. Quality: Engineering teams cannot manually produce 1,200–1,800 word, schema-ready technical architectures for every repository update across dozens of projects.
- Infrastructure Isolation: In hybrid topologies (local container stacks + remote Proxmox VE hypervisors), WordPress sits disconnected from the control plane, preventing automated VPS provisioning, billing integration, and live telemetry.
The WordPress Automation & Content Engine solves these by unifying an OpenRouter LLM generator, a PHP CLI dual-layer Yoast resave engine, and a cross-device Proxmox orchestration plugin into a single automated pipeline.
- Dual-layer Yoast resave guarantees 100% indexability, Readability ≥ 90, Linkdex 68–78.
- OpenRouter LLM generates 1,200–1,800 word articles with dynamic angle rotation (Architecture, Quickstart, Security).
- Proxmox VE plugin (
nevatal-cloud-manager) enables WooCommerce-to-VPS provisioning in < 90 seconds. - Bidirectional internal backlink sync and automated reading-time calculation run on cron.

Core Architecture & Technical Stack Deep-Dive
System Topology: Dual-Node Hybrid Infrastructure
The platform spans two physical nodes connected via Tailscale mesh (100.86.61.70):
┌─ LOCAL NODE (OpenClaw Agent) ┌─ REMOTE HOMELAB (Proxmox VE) │
│ • Node.js 26 (generate-articles.js) │ • Proxmox VE REST API v2 │
│ • WordPress Docker Stack (PHP 8.2, Nginx) │ • WooCommerce HPOS (cloud.nevatal.id) │
│ • MySQL 8.0 (wordpress-db) │ • Dell PowerEdge R640 Hypervisor │
│ • mu-plugins/yoast-meta-rest.php │ • nevatal-cloud-manager Plugin │
└─────────────────────────────────────────────────┴─────────────────────────────────────────┘
Data Layer & Cache Strategy
- Primary Store: MySQL 8.0 with InnoDB;
wp_posts,wp_postmeta,wp_yoast_indexable,wp_yoast_indexable_hierarchy. - HPOS Tables:
wp_wc_orders,wp_wc_order_metafor sub-second order lookups during VPS provisioning. - Object Cache: Redis (optional) for Yoast indexable lookups and Proxmox API token caching (TTL 300s).
- File Cache: Nginx
fastcgi_cachefor rendered article HTML; purge triggered onresave-yoast-posts.phpcompletion.
LLM Integration Layer (OpenRouter)
- Models: Primary
anthropic/claude-3.5-sonnet; fallbackopenai/gpt-4o. - Context Injection:
project_catalog.json+archive/*.mdPRD files grounded per article (≤ 128k tokens). - Output Schema: Strict JSON enforcing H2/H3 structure, FAQ blocks, Mermaid diagrams, and Yoast meta fields (
_yoast_wpseo_focuskw,_yoast_wpseo_metadesc,_yoast_wpseo_linkdex).
Key Features Breakdown & Practical Benefits
1. Automated AI Article Generator (generate-articles.js)
- Angle Rotation: Architecture Deep-Dive → Quickstart Tutorial → Security & Scalability Analysis (round-robin per project).
- PRD Grounding: Every article ingests the authoritative
archive/WordPress_Automation_PRD.mdto prevent hallucination. - Performance: ~45s median generation time for 1,500 words; 99.2% schema validation pass rate.
2. Dual-Layer Yoast SEO Resave Engine
| Layer | Component | Trigger | Guarantees |
|---|---|---|---|
| Layer 1 (PHP) | mu-plugins/yoast-meta-rest.php |
REST POST /wp/v2/posts |
Injects _yoast_wpseo_* meta at write-time; prevents empty indexables. |
| Layer 2 (CLI) | scripts/resave-yoast-posts.php |
WP-CLI cron (hourly) + webhook | Full Yoast analysis: Readability ≥ 90, Linkdex 68–78, internal link graph, XML sitemap ping. |
3. Proxmox VE Orchestration (nevatal-cloud-manager)
- Flow: WooCommerce order (HPOS) →
woocommerce_new_orderhook → Proxmox APIPOST /nodes/{node}/qemu(clone template) → Cloud-init injection (SSH keys, hostname) → VM start → Webhook back to WP with root credentials. - Benchmarks: Cold boot 68s (NVMe template); Warm boot 42s. API p95 latency 1.2s.
- Telemetry: Real-time CPU/RAM/disk via Proxmox
/nodes/{node}/qemu/{vmid}/agent/get-interfacespushed to WP REST/nevatal-cloud/v1/telemetryevery 30s.
4. Bidirectional Internal Backlink Sync
Cron job scans all published posts, extracts [[Project:Slug]] shortcodes, builds adjacency matrix, writes _yoast_wpseo_links meta, and triggers Layer 2 resave. Result: 100% internal link coverage in Yoast indexables.
Real-World Deployment & Production Topology
Production runs at https://wordpress.nevatal.id behind Cloudflare WAF (TLS 1.3, Bot Fight Mode). Local gateway http://localhost:8085 serves development. The remote control plane at https://cloud.nevatal.id hosts WooCommerce (HPOS) and the Proxmox API endpoint. All inter-node traffic traverses Tailscale (WireGuard) with ACL tags tag:wp-engine and tag:proxmox.
Data Flow & How It Works: Step-by-Step Workflow
- Catalog Discovery: OpenClaw reads
project_catalog.json+archive/*.md→ builds project registry. - Article Generation:
generate-articles.jsselects next project + angle → calls OpenRouter → validates JSON schema → writes draft via WP REST
Leave a Reply