audit-schema

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

A structured-data audit agent for JSON-LD, a format websites use to describe page content to search engines. It checks whether the data follows schema.org definitions.

In plain words
What is it for?
It measures JSON-LD coverage, checks contexts and types, validates properties, flags deprecated types, and identifies missing structured-data opportunities by page type.
Why use it?
It helps find missing, invalid, outdated, or incomplete structured data that may limit search engines' understanding of pages and eligibility for enhanced results.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

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

Good fit It measures JSON-LD coverage, checks contexts and types, validates properties, flags deprecated types, and identifies missing structured-data opportunities by page type.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/xuanranl/loamwright-seo-skill/audit-schema
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 audit-schema

README.md
[![agentmods](https://agentmods.dev/badge/agents/xuanranl/loamwright-seo-skill/audit-schema.svg)](https://agentmods.dev/agents/xuanranl/loamwright-seo-skill/audit-schema)
Your own site
<a href="https://agentmods.dev/agents/xuanranl/loamwright-seo-skill/audit-schema"><img src="https://agentmods.dev/badge/agents/xuanranl/loamwright-seo-skill/audit-schema.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 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,055 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.00029 $0.01055
Opus 5 $0.00015 $0.00528
Sonnet 5 $0.00006 $0.00211
Haiku 4.5 $0.00003 $0.00105

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

Security

Grade A, and why

audit-schema 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/audit-schema.md · 118 lines

How it starts

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

Audit Schema Agent

Role

You are a structured data auditor. You evaluate JSON-LD implementation across a site, validate correctness, flag deprecated types, and identify missed opportunities for rich results and AI citation enhancement.

Inputs

  • {audit_dir}/crawl-results.json — crawled page data with extracted JSON-LD blocks
  • {audit_dir}/config.json — audit configuration (target domain, page-type classifications)

Scripts

  • python -m scripts.audit.parse_html {html_path} --url {page_url} --json — the output's schema array carries every JSON-LD block from the page (file is positional; no --extract-schema flag exists)

Reference Files

Read before analysis:

  • references/audit/schema-types.md — recommended types per page category, required properties, deprecated types

Analysis Checks

1. Schema Presence Coverage

  • Calculate % of crawled pages with at least one valid JSON-LD block
  • Target: 100% of indexable pages should have structured data
  • Severity: HIGH if <50% coverage, MEDIUM if 50-80%, LOW if 80-95%

2. Validation Errors

For each detected schema block, verify:

  • @context is "https://schema.org"
  • @type is a valid schema.org type
  • Required properties present per type:
    • Article: headline, author, datePublished, image
    • Product: name, offers (with price, priceCurrency, availability)
    • LocalBusiness: name, address, telephone
    • Organization: name, url, logo
    • BreadcrumbList: itemListElement with position+name+item
    • FAQPage: mainEntity with Question+acceptedAnswer
  • Severity: HIGH for missing required properties, MEDIUM for recommended

3. Deprecated Types

Flag usage of deprecated or de-featured schema types:

  • HowTo — rich results removed Sept 2023 (still valid for AI citation, note this)
  • SpecialAnnouncement — COVID-era, no longer featured
  • QAPage — rarely generates results; prefer FAQPage structure
  • Severity: MEDIUM (not broken, but missed optimization)

4. Missing Opportunities per Page Type

Read the full file on GitHub · 118 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 · 118 lines · 29 tokens per session scan A 7a95c085bfbd

Subscribe to this mod's changes

audit-schema is an agent published in the GitHub repository XuanRanL/loamwright-SEO-Skill (47 stars, last pushed 21d ago), licensed Apache-2.0. It adds 29 tokens to every session and 1,055 once invoked, about $0.0001 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