Skip to content
Back to skills

Schema Org Graph Builder

ASecurity

Generate and audit interconnected Schema.org @graph JSON-LD blocks using stable @id references across WebSite, Organization, Person, Article, SoftwareApplication, and Dataset pages.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgonodegitapi

Works with

  • api

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add zhuyansen/geo-seo-skills --skill schema-org-graph-builder --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Schema Org Graph Builder?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Schema Org Graph Builder
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zhuyansen-schema-org-graph-builder/badge)](https://www.skillsdirectory.com/skills/zhuyansen-schema-org-graph-builder)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: schema-org-graph-builder
description: Generate and audit interconnected Schema.org @graph JSON-LD blocks using stable @id references across WebSite, Organization, Person, Article, SoftwareApplication, and Dataset pages.
version: 1.1.0
author: Jason Zhu (Yansen Zhu) <https://jasonzhu.ai>
license: MIT
---

# Schema.org @graph JSON-LD Builder & Validator

Disconnected JSON-LD scripts create fragmented entities in Google and LLM knowledge graphs. Use this skill to unify page markup into a single deterministic `@graph` connected by stable `@id` URIs.

## Golden `@id` Architecture
Define permanent fragment IDs anchored to canonical URLs:
- Website: `https://<domain>/#website`
- Organization: `https://<domain>/#organization`
- Founder / Author: `https://<domain>/#person`
- Current Page: `https://<domain>/<path>#webpage`
- Primary Content: `https://<domain>/<path>#article` (or `#dataset`, `#software`, `#skill`)

## Strict Graph Hygiene Rules
1. **Single `@context`:** Emit one `<script type="application/ld+json">` with `"@context": "https://schema.org"` and a `"@graph": [...] ` array per page.
2. **Never Conflate Entity Types:**
   - Put personal social profiles (LinkedIn, GitHub user pages such as `github.com/<user>` but not repositories, X, ORCID) ONLY on `Person.sameAs`.
   - Put company profiles (Crunchbase, LinkedIn Company, Wikidata company Q-ID) ONLY on `Organization.sameAs`.
   - Never put papers, DOIs, npm/PyPI packages, repositories, or separate product domains inside `Person.sameAs`; a DOI belongs on the work's own node (`ScholarlyArticle.identifier`, `Dataset.identifier`).
3. **Reference, Don't Duplicate:** On blog posts or product pages, link `"author": { "@id": "https://<domain>/#person" }` and `"publisher": { "@id": "https://<domain>/#organization" }` rather than re-declaring conflicting author objects.
4. **Visible Parity Rule (Google Policy):** Every claim in JSON-LD (dates, prices, ratings, FAQ answers, author names) must match visible content rendered on the page. Never inject fake `AggregateRating` or hidden `FAQPage` spam.
5. **No Dead Rich-Result Chasing:** Google retired HowTo rich results in 2023 and limits FAQ rich results to well-known government and health sites, so don't add those types for rich results; focus on `Article`, `SoftwareApplication`, `SoftwareSourceCode`, `Dataset`, `ProfilePage`, `Organization`, `BreadcrumbList`.

## Verification Checklist
Before finishing any implementation, and when auditing an existing site (fetch every URL in the sitemap):
1. Parse every `<script type="application/ld+json">` block with `JSON.parse()` to guarantee zero syntax/escaping bugs.
2. Confirm every internal `@id` reference resolves to a node in the site graph.
3. Confirm `datePublished` and `dateModified` use ISO-8601 format (`YYYY-MM-DD` or full timestamp with timezone).
4. Verify zero `undefined`, `null` or empty-string fields remain in the serialized JSON.
5. Confirm no `@id` is used with two different `@type`s (for example the `#person` id reused for an Organization) and that each person or company has exactly one `@id`.
6. Confirm each page's `rel=canonical` points to the page itself, because every `@id` is anchored to it.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.