agentleFS
powerczukpowerczuk/seo-machine/skills/schema-gen/SKILL.md

schema-gen

Skill0 starsChanged 2 months agoMITView on GitHub

Ready-to-deploy JSON-LD for a page or page type with sameAs on every entity, values taken only from the visible page, and an alignment check.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

/schema-gen — Schema markup generator

Target: $ARGUMENTS

Templates: ${CLAUDE_PLUGIN_ROOT}/skills/seo-fundamentals/references/schema-markup-templates.md. Policy basis (markup must match visible content): ${CLAUDE_PLUGIN_ROOT}/skills/seo-fundamentals/references/patent-signals.md (G4).

Process

  1. Page analysis (URL): python3 ${CLAUDE_PLUGIN_ROOT}/scripts/fetch_page.py "<url>" --json → existing JSON-LD, title, author, dates, headings, prices, ratings. If no JSON-LD is found, say "not detected in static HTML" and offer to proceed from the visible content. Page type only: generate from the template and mark every value to fill.
  2. Type selection:

    ContentPrimaryAdd
    Blog post / articleArticle or BlogPosting + Person (author, sameAs)BreadcrumbList; FAQPage only if the Q/A are literally in the body
    How-to guideArticle (HowTo markup no longer yields rich results; use only if steps are on the page)BreadcrumbList
    Product pageProduct + Brand (sameAs), offers, gtin/mpnBreadcrumbList, AggregateRating only if ratings are visible
    Landing pageOrganization (sameAs) or ProductBreadcrumbList
    Local businessLocalBusiness (address, geo, openingHours, sameAs to GBP/Wikidata)BreadcrumbList
    HomepageOrganization (sameAs to Wikidata, Crunchbase, LinkedIn, registries)WebSite with SearchAction
    Comparison pageArticleBreadcrumbList

    sameAs priorities — Person: LinkedIn, ORCID, Wikidata/Wikipedia, GitHub; Organization: Wikidata, Crunchbase, LinkedIn, official registries; Product: manufacturer page, Wikidata; LocalBusiness: Google Business Profile, Wikidata. Fewer high-confidence entries beat many weak ones.

  3. Generate — complete JSON-LD per type: required fields from the page content, recommended optional fields, ISO 8601 dates, absolute URLs, nesting (author → Person, publisher → Organization with logo). Every value must be visible on the page; anything unknown becomes "<FILL: …>", never a guess.
  4. Alignment check — compare every numeric and named value in the generated markup with the body (prices, dates, ratings, names). Flag MISMATCH / SCHEMA-ONLY / WEAK ENTITY (author without page or sameAs) / SCHEMA SPAM (FAQ/HowTo not in body). For an existing implementation with many issues, hand off to /alignment-audit.
  5. Validation guidance — Rich Results Test, Schema.org validator, expected outcome (which types are rich-result eligible today; Article, Product, Breadcrumb, Organization yes; FAQ/HowTo no for most sites), monitoring in Search Console Enhancements.

Output

  1. Recommended types with rationale.
  2. Copy-paste <script type="application/ld+json"> blocks.
  3. Placement (<head>), testing steps, what to expect after indexing.
  4. Existing-schema issues (URL given): missing required fields, mismatches with visible content, deprecated types, validation errors.
  5. <FILL> list for the user.

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.