Structured data audit skill for Claude Code, Codex and Cursor
The structured-data-audit agent skill validates JSON-LD, builds the website-wide entity map and fixes identity problems such as duplicate organizations.
structured-data-audit is an Agent Skills SKILL.md from squirrelscan: a JSON-LD validator and schema markup audit for coding agents. It runs squirrelscan’s structured data rules and its website-wide entity map through the squirrel CLI or the hosted squirrelscan MCP server. It works in Claude Code, Codex, Cursor and other agents. Valid markup does not guarantee rich results, and this skill does not claim eligibility.
New to skills? Start with the skills overview.
What it does
- Checks that JSON-LD parses, that it is the right type for the page and that required and recommended properties are present.
- Builds the entity map with
squirrel entities: the site-wide graph of the entities your pages declare. - Finds entity problems:
no-id,conflict,dangling,single-pageandsplit-identity. - Gives each real-world entity (organization, website, authors, products) one stable
@id, declared once and referenced elsewhere. - Fixes in order: parse errors, identity, type fit, properties, then markup that claims more than the page shows.
- Never adds markup for content users cannot see.
- Proves a fix with
squirrel entities --diff, reading thegainedIdsection and its coverage. - Points to where the fix lives in Yoast SEO, Next.js, Shopify, Webflow and static websites.
Questions it answers
- Check my JSON-LD
- Audit my schema markup
- Fix duplicate Organization entities
- Why does every page declare a separate Organization?
- Does my JSON-LD parse?
- Is the schema type right for each page type?
- Is my Product or Article markup missing required properties?
- Is my theme and my SEO plugin both printing JSON-LD?
Install
Works with any Agent Skills tool (Claude Code, Codex, Cursor, Gemini CLI, Amp and others):
npx skills add squirrelscan/skills --skill structured-data-auditThe plugin installs all the skills and the hosted squirrelscan MCP server:
/plugin marketplace add squirrelscan/skills/plugin install squirrelscan@squirrelscannpx skills add puts the skill in .agents/skills/. To add the MCP server too, configure it in ~/.codex/config.toml. See squirrelscan for Codex.
Run npx skills add, then use the Cursor plugin from the skills repository or the one-click MCP link. See squirrelscan for Cursor.
Gemini CLI, GitHub Copilot, Amp and other Agent Skills tools: run npx skills add, then add the MCP server. See coding agents.
Requirements
The squirrel CLI installed and in your PATH, or the hosted squirrelscan MCP server connected (https://mcp.squirrelscan.com/mcp). Check the CLI with squirrel --version. Setup steps are in install and MCP clients.
Install the CLI on macOS or Linux:
curl -fsSL https://install.squirrelscan.com | bashExample prompts
Paste one of these into your coding agent:
Check my JSON-LD on https://example.comAudit my schema markup and show me the entity problemsFix duplicate Organization entities and give each one a stable @idThe agent audits the schema rules, reads the entity graph, fixes identity in the layout or plugin config and proves it with an entity diff.
How it works
- Check the CLI and login status and tell you the cost.
- Run
squirrel auditwith--rule-include schema, thensquirrel entities, using--level fullwhen the entity map matters. - Fix parse errors first, then identity, type fit and properties.
- Re-audit, then run
squirrel entities --diffto prove the change. - Stop when
schema/json-ld-validis clean and no conflicts, split identities or dangling references remain on a full crawl.
Related skills
seo-audit: titles, canonicals and content.audit-website: the wider audit and fix loop.launch-checklist: structured data as part of a pre-launch pass.
Related rules and guides
Source on GitHub
skills/structured-data-audit: the skill folder- README.md
- SKILL.md