agentleFS
powerczukpowerczuk/seo-machine/skills/alignment-audit/SKILL.md

alignment-audit

Skill0 starsChanged 2 months agoMITView on GitHub

Audit structured data against visible page text — numeric claims, entities, FAQ/HowTo presence, required fields, sameAs — with fixes.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/fetch_page.py "<url>" --json — returns parsed JSON-LD blocks, headings, and body text from the …

    line 17
  2. Distinctive:

    If no JSON-LD is returned, check Microdata/RDFa attributes in the raw HTML, then say "not detected in static HTML — confirm with Rich …

    line 18

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/alignment-audit — Content ↔ structured data alignment

Target: $ARGUMENTS

Basis: Google's structured-data guidelines require markup to describe content visible on the page; non-representative markup, or FAQ/HowTo content users cannot see, can trigger a manual action and loses rich-result eligibility (CONFIRMED tier — ${CLAUDE_PLUGIN_ROOT}/skills/seo-fundamentals/references/patent-signals.md, G4). Aligned markup also strengthens entity identity (sameAs, Person/Organization).

Extraction

  1. Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/fetch_page.py "<url>" --json — returns parsed JSON-LD blocks, headings, and body text from the raw HTML (WebFetch strips <script>, so never use it for this step). For a local file: fetch_page.py <file.html> --json.
  2. If no JSON-LD is returned, check Microdata/RDFa attributes in the raw HTML, then say "not detected in static HTML — confirm with Rich Results Test (renders JS)". Never report "no schema" from static HTML alone.
  3. Body: headings, paragraphs, lists, tables, byline, visible dates, prices, ratings.

Modules

  1. Numeric claims — every price, percentage, count, duration, date, rating in the body vs the corresponding schema field. Status per claim: MATCH / MISMATCH / TEXT-ONLY / SCHEMA-ONLY; action: keep / fix text / fix schema / add / remove.
  2. Named entities — people, organizations, products, places, versions: declared in schema? name consistent ("Anthropic" vs "Anthropic Inc.")? sameAs present? Status: VERIFIED / INCONSISTENT / NO SCHEMA / WEAK ENTITY.
  3. FAQ / HowTo presence — each schema Q/A pair or step must appear in the body verbatim or near-verbatim; missing → SCHEMA SPAM (policy violation). Note that these types no longer yield rich results for most sites; recommend removing them unless the content is genuinely on the page and useful as entity data.
  4. Completeness — required and recommended fields per type (Article: headline, author, datePublished, image; Product: name, image, description, offers; Person: name + sameAs, jobTitle, url; Organization: name, url + sameAs, logo; Review: itemReviewed, reviewRating, author; FAQPage: mainEntity[]). Missing required → CRITICAL; declared without body counterpart → HOLLOW.
  5. sameAs — each URL authoritative (Wikidata, LinkedIn, ORCID, Crunchbase, official registries), resolving, and about the same entity; missing for Person/Organization/Brand/LocalBusiness → WEAK ENTITY.

Verdict

VerdictCondition
✅ ALIGNEDno misalignments
🟡 MINOR1–3, none critical
🟠 MAJOR≥4, or any critical (schema spam, missing required field)
🔴 SOURCE TRUST RISKmultiple critical + schema spam

Output

  1. Schema inventory (type, key properties, where found).
  2. Findings per module in the formats above, each with evidence (field path ↔ body quote).
  3. Verdict.
  4. Prioritized fixes — Critical (schema spam, missing required, wrong-entity sameAs) → High (numeric mismatch, missing sameAs for Person/Organization) → Medium (name inconsistency, hollow fields) → Low (recommended fields).
  5. Corrected JSON-LD when the fix is mechanical (or hand off to /schema-gen); re-test with Rich Results Test and the Schema.org validator.

Caveat: some schema legitimately carries richer data than the body (accessibility, machine-readable variants). The rule is: schema must not claim what the body contradicts or omits entirely.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.