schema-generator

schema-generator is an agent for Claude Code from XuanRanL/loamwright-SEO-Skill. It costs 58 tokens per session (1,116 once invoked), scanned A, original, Apache-2.0.

An agent that creates body JSON-LD, a machine-readable description of webpage content, for a finished article. It writes FAQPage and ItemList data to a required schema.json file.

In plain words
What is it for?
Use it after an article draft is finished to generate schema for its FAQ section and genuine lists or tables, ready for the publishing step.
Why use it?
It turns the article's real questions and lists into structured data while preventing invented content that could make the page's markup inaccurate.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the xuanran-seo-blog-writer plugin — 68 skills, 34 agents, 4 hooks shipped together

Good fit Use it after an article draft is finished to generate schema for its FAQ section and genuine lists or tables, ready for the publishing step.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/xuanranl/loamwright-seo-skill/schema-generator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/XuanRanL/loamwright-SEO-Skill

Made for: Claude Code.

Or install xuanran-seo-blog-writer, the plugin that ships this one along with the rest of its 68 skills, 34 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for schema-generator

README.md
[![agentmods](https://agentmods.dev/badge/agents/xuanranl/loamwright-seo-skill/schema-generator.svg)](https://agentmods.dev/agents/xuanranl/loamwright-seo-skill/schema-generator)
Your own site
<a href="https://agentmods.dev/agents/xuanranl/loamwright-seo-skill/schema-generator"><img src="https://agentmods.dev/badge/agents/xuanranl/loamwright-seo-skill/schema-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,116 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.01116
Opus 5 $0.00029 $0.00558
Sonnet 5 $0.00012 $0.00223
Haiku 4.5 $0.00006 $0.00112

Measured 8d ago against content hash ae0734c4ccea, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

schema-generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/schema-generator.md · 75 lines

How it starts

The opening of the file, as written. The whole thing — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Schema Generator (body JSON-LD)

You GENERATE and WRITE the body JSON-LD for one finished article. You are NOT the validator — you produce schema.json. (The read-only schema-validator agent is a separate role that inspects an existing file; do not confuse the two.)

Contract — read carefully, this is where past runs failed

  • You MUST actually write the file. Write memory/workspace/{task_id}/schema.json (absolute path under the plugin root). A run that returns a prose summary but leaves no schema.json on disk is a FAILURE — the orchestrator hard-requires this artifact as a wordpress-publisher input and the runner will BLOCK without it. The only correct location is memory/workspace/{task_id}/ (there is no bare workspace directory without the memory/ prefix).
  • Build from the ACTUAL draft, never invented content. Read memory/workspace/{task_id}/draft.md and use the EXACT FAQ questions from its ## Frequently Asked Questions (or ## FAQ) section and the real items from a genuine list/table in the body. Do not fabricate FAQ questions or list items — a FAQPage whose questions are not on the page is a Google structured-data violation and a verify_post failure.

Inputs

  • memory/workspace/{task_id}/draft.md (the FAQ section + any comparison/checklist/table)
  • memory/workspace/{task_id}/outline.json
  • subskills/optimize/schema-generator/SKILL.md (the generation spec)

Output — memory/workspace/{task_id}/schema.json

{ "blocks": [
    { "block_name": "faq_page",  "ld_json": { "@context": "https://schema.org", "@type": "FAQPage",  "@id": "{canonical}#faq", "mainEntity": [ { "@type": "Question", "name": "...", "acceptedAnswer": { "@type": "Answer", "text": "..." } } ] } },
    { "block_name": "...",       "ld_json": { "@context": "https://schema.org", "@type": "ItemList", "@id": "{canonical}#...", "name": "...", "itemListElement": [ { "@type": "ListItem", "position": 1, "name": "...", "description": "..." } ] } }
] }

Read the full file on GitHub · 75 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 75 lines · 58 tokens per session scan A ae0734c4ccea

Subscribe to this mod's changes

schema-generator is an agent published in the GitHub repository XuanRanL/loamwright-SEO-Skill (47 stars, last pushed 21d ago), licensed Apache-2.0. It adds 58 tokens to every session and 1,116 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

schema-generator

Structured-data specialist. Use proactively during an audit to validate existing JSON-LD and PROPOSE complete Tier-1 schema blocks (plus e-commerce/local schema and agentic-commerce readiness when those verticals are active). It proposes diffs only and does NOT write files.

Hainrixz/claude-seo-ai · 56 tokens

seo-fixer-writer

The ONLY agent allowed to write files. Used exclusively by the fix skill (the /claude-seo-ai:fix command) AFTER the user has confirmed the changes. Applies confirmed AUTO-class fixes (and PROPOSED ones the user accepted) through Edit/Write for local diffs and the ticketed adapter CLIs for remote targets, backs up…

Hainrixz/claude-seo-ai · 93 tokens

geo-schema

Schema markup specialist detecting, validating, and generating structured data (JSON-LD preferred). Focuses on schemas that improve AI discoverability including Organization, Person, Article, sameAs, and speakable properties.

Cognitic-Labs/geoskills · 44 tokens

geo-citability

AI citability scoring and optimization specialist. Analyzes how likely AI systems are to cite, quote, or reference content from a website. Evaluates answer block quality, self-containment, statistical density, structural clarity, and expertise signals.

Cognitic-Labs/geoskills · 53 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens