seo-entity-linking
Skill81 starsChanged 2 months agoMITView on GitHub
Audit and generate entity & knowledge-graph linkage for a page — verify sameAs identity links (Wikidata/Wikipedia/LinkedIn/Crunchbase/official profiles) on Organization/Person, check NAP/entity consistency for local, confirm a defined primary entity, and measure entity density, then propose ready-to-inject sameAs/about/mentions references. Module M6. Feeds the AI Visibility score.
In this repository33 other files it gives its agents.
- auditSkill
- compareSkill
- fixSkill
- geoSkill
- scoreSkill
- seo-agent-readinessSkill
- seo-ai-crawlersSkill
- seo-ai-discoverySkill
- seo-core-web-vitalsSkill
- seo-crawlabilitySkill
- seo-crawl-renderSkill
- seo-ecommerceSkill
- seo-eeatSkill
- seo-fix-applySkill
- seo-freshnessSkill
- seo-geo-answerblocksSkill
- seo-geo-factdensitySkill
- seo-headings-structureSkill
- seo-images-mediaSkill
- seo-indexabilitySkill
- seo-internal-linkingSkill
- seo-internationalSkill
- seo-localSkill
- seo-meta-onpageSkill
- seo-mobileSkill
- seo-orchestratorSkill
- seo-platform-detectSkill
- seo-renderingSkill
- seo-schema-jsonldSkill
- seo-scoreSkill
- seo-sitemapsSkill
- seo-social-cardsSkill
- seo-vertical-detectSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
When the live lookup tier is unavailable, status is needs_api, never a false pass.
- Very specific: line 43
Never fabricate, guess, or "best-effort" an identity URL to inflate entity density — a wrong sameAs actively misleads engines and is worse …
≈ “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.
Files
<!-- Portions Copyright (c) 2026 Enrique Rocha (@soyenriquerocha) - see LICENSE for original authors · tododeia.com · id er-d03758e1 -->seo-entity-linking (M6)
Entity linkage tells search engines and AI systems which real-world thing a page is about and ties it to the Knowledge Graph. Reference: references/schema-tier1.md (the sameAs/@id/Person+Organization rules). This module owns the sameAs detail M5 defers here.
Inputs
Work from the PageSnapshot named in your dispatch envelope: read parsed from <run_dir>/pages/<slug>.json (jsonld[], anchors[]); Grep pages/<slug>.html for verbatim evidence; site artifacts live in <run_dir>/site/{robots.json,sitemaps.json,discovery.json}. Deterministic findings already emitted by audit.mjs are listed in <run_dir>/findings.deterministic.json — do not re-emit those ids; add model-judged findings only. If invoked directly with a URL/path and no snapshot exists, first run node "${CLAUDE_PLUGIN_ROOT}/scripts/snapshot.mjs" <target> --out "${CLAUDE_PLUGIN_DATA}/runs" and use the printed snapshot path.
Audits
Working from the PageSnapshot (parsed_rendered when render.used is not none, else parsed):
- sameAs identity links: for
Organization/Personentities, check forsameAs[]resolving to canonical identities — Wikidata QID, Wikipedia, LinkedIn, Crunchbase, official social/company profiles. Wikidata is the strongest Knowledge Graph target. - Primary entity defined: confirm exactly one clear primary entity per page (via
@id+mainEntity/mainEntityOfPage), not an ambiguous or missing subject. - Entity consistency (local): for
LocalBusiness, verify NAP (name, address, telephone) in schema matches visible on-page NAP and is internally consistent across blocks. - Entity density: count distinct linked/marked entities (
@idd nodes,sameAstargets,about/mentions) — flag thin pages with no resolvable entity references.
Fixes
- AUTO (
fixable: auto): inject asameAs[]array onOrganization/Personusing only user-confirmed URLs, and addabout/mentionsentity references to existing schema. Additive, deterministic diffs forfix. Never invent identity links — if a URL is unconfirmed, leave a clearly-markedTODOplaceholder the user fills. - PROPOSED (
fixable: proposed): a candidate Wikidata/LinkedIn match found by lookup — drafted for per-item human accept, never auto-written. - ADVISORY (
fixable: advisory): "establish a Wikidata entity / claim profiles" when none exist — guidance only, the tool writes nothing.
Verification
dom_assert: confirmsameAs/@id/mainEntitypresent and well-formed in the parsed JSON-LD.- Resolve each
sameAsURL (Tier 1 Wikidata lookup) to confirm it is live and refers to the asserted entity — a dead or mismatched link is a fail, not a pass. - When the live lookup tier is unavailable, status is
needs_api, never a falsepass.
Findings
Emit findings per schema/finding.schema.json; axis ai; confidence directional throughout — none of these is documented by a vendor. Severity policy: 5 is reserved for catastrophic, eligibility-killing facts at site/template scope; 4 major · 3 moderate · 2 minor · 1 cosmetic · 0 informational — and only an established severity-5 fail in an active category can cap a score (references/scoring-model.md).
M6.organization.missing_sameas—Organizationwith nosameAs[](fail, severity 3,fixable: proposed).M6.page.no_primary_entity— no single defined primary entity (@id/mainEntity) on the page (warn, severity 3,fixable: advisory).M6.entity.thin_density— no resolvable entity reference anywhere in the markup on a page that names real organizations, people, or products (warn, severity 3,fixable: advisory).M6.person.no_wikidata_link— an authorPersonwith no Wikidata/LinkedIn identity link (warn, severity 2,fixable: proposed).M6.sameas.unresolvable— a declaredsameAsURL that 404s or points at a different entity (fail, severity 3,fixable: proposed). Each finding:evidence.observedquotes the page (the entity block or its absence);verification.reproduceis a runnable assertion/lookup;expected_impactis banded + confidence-tagged (no naked %).
Honesty
- A
sameAslink does not force entry into the Knowledge Graph and produces no guaranteed ranking lift — it is a disambiguation signal, so impact staysdirectional, neverestablished. - Never fabricate, guess, or "best-effort" an identity URL to inflate entity density — a wrong
sameAsactively misleads engines and is worse than an empty array. Confirmed-only, or leave it as aTODO. - Entity density is a proxy for "this page is about something specific and resolvable", not a metric any engine publishes; do not chase the number for its own sake.
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
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.

