<< All versions

Skill v1.0.0

currentAutomated scan100/100
xuanranl/loamwright-seo-skill/schema-injector
──Details
PublishedSeptember 29, 2026 at 11:56 AM
Content Hashsha256:5d02b013bbd7d8c5...
Git SHAcc3f19dac8fe
──Files
Files (1 file, 830 B)
SKILL.md830 Bactive
SKILL.md · 27 lines · 830 B

version: "1.0.0" name: schema-injector description: Inject final JSON-LD @graph into the published post's <head> (via Yoast MU-plugin OR direct REST). Runs after wp publish. allowed-tools: [Read, Bash]


Schema Injector

Workflow

1. Read workspace/{task}/schema.json
2. POST /wp-json/yoast/v1/posts/{post_id} with schema fields if MU-plugin supports
3. Or: POST custom_fields to set `_genesis_schema` / similar plugin field
4. Verify by fetching post and inspecting <head> JSON-LD

Validation

Run scripts.validate.schema_validator against retrieved post HTML:

  • No deprecated types
  • All required fields present
  • ISO 8601 dates

Note

For most cases, schema-generator output gets included in post.content (inline <script> tag). Schema-injector is needed when you want it in <head> instead of body.

All versions