wikidata-guide

wikidata-guide is a skill for Claude Code from cyanheads/wikidata-mcp-server. It costs 48 tokens per session (1,421 once invoked), scanned A, original, Apache-2.0.

A guide for using Wikidata, a public database of structured facts about people, places, works, and other entities. It explains how to identify entities, verify claims, connect outside identifiers, and write SPARQL queries, which are searches for linked data.

In plain words
What is it for?
Use it for research that needs reliable entity matching, evidence for statements, links to identifiers such as DOI or ORCID, or graph queries.
Why use it?
It reduces mistakes caused by confusing similarly named entities or treating missing data as proof that something does not exist.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the wikidata-mcp-server plugin — 35 skills, 1 MCP server shipped together

Good fit Use it for research that needs reliable entity matching, evidence for statements, links to identifiers such as DOI or ORCID, or graph queries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cyanheads/wikidata-mcp-server/wikidata-guide
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cyanheads/wikidata-mcp-server --skill wikidata-guide
Clone the repo
git clone --depth 1 https://github.com/cyanheads/wikidata-mcp-server

Made for: Claude Code.

Or install wikidata-mcp-server, the plugin that ships this one along with the rest of its 35 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wikidata-guide

README.md
[![agentmods](https://agentmods.dev/badge/skills/cyanheads/wikidata-mcp-server/wikidata-guide/github.svg)](https://agentmods.dev/skills/cyanheads/wikidata-mcp-server/wikidata-guide)
Your own site
<a href="https://agentmods.dev/skills/cyanheads/wikidata-mcp-server/wikidata-guide"><img src="https://agentmods.dev/badge/skills/cyanheads/wikidata-mcp-server/wikidata-guide/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wikidata-guide

Your own site · 80×15
<a href="https://agentmods.dev/skills/cyanheads/wikidata-mcp-server/wikidata-guide"><img src="https://agentmods.dev/badge/skills/cyanheads/wikidata-mcp-server/wikidata-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,421 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.01421
Opus 5.5 $0.00019 $0.00568
Sonnet 5.5 $0.00010 $0.00284
Haiku 4.5 $0.00005 $0.00142

Measured today against content hash 0391b8dac83e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wikidata-guide scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/wikidata-guide/SKILL.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Scope

Use Wikidata for structured relationships, identifiers, multilingual entity names, and links to Wikimedia articles. No API key is required. Use an article or source-document service when the task needs full text; a Wikidata statement or sitelink does not supply that text. Missing claims and links do not establish that a real-world fact or article is absent.

Identifiers

  • Q-ID: an item, obtained from wikidata_search_entities, wikidata_resolve_external_id, a returned statement value, or a SPARQL entity URI. Keep the Q-ID through joins; labels can be shared by unrelated items.
  • P-ID: a property, discovered with property search in wikidata_search_entities or read from returned statements. Inspect an unfamiliar property's entity with wikidata_get_entity to check its meaning and datatype before using it.
  • External identifier: the DOI, PMID, ORCID, or other identifier supplied by a source record. Pair it with that identifier scheme's P-ID for wikidata_resolve_external_id; a name or title is not an external identifier.
  • Statement ID: returned with a claim by wikidata_get_statements; retain it with the evidence it identifies. It is not the entity's Q-ID or the property's P-ID.
  • Site code: a key such as enwiki in returned sitelinks, identifying a Wikimedia project and language. Obtain article URLs with wikidata_get_sitelinks, rather than constructing URLs from entity labels.

Gates

  1. Settle identity before joining facts. Compare candidate descriptions and relevant statements with the known person, place, or work. Search rank and matching labels alone are insufficient. If candidates remain indistinguishable, report the ambiguity or ask for the missing discriminator.
  2. Separate resolver outcomes. Inspect multipleMatches before interpreting a null match as a miss; fetch candidates to disambiguate them. An ordinary null means no indexed match, not proof of absence: the Query Service can lag the live wiki. Inspect known candidate entities directly when recent edits matter.
  3. Retrieve claims before citing them. A kind: "outline" response contains an inventory, not the statements or entity fields. Follow retrieval_notice; do not turn section names or counts into evidence.
  4. Read statement context before making a factual conclusion. Inspect rank, qualifiers, and references, keeping each reference's parts together. Preferred rank can express recency or consensus; it does not alone establish that a value is current. Check time qualifiers for time-sensitive claims, and state when Wikidata supplies no supporting reference.
  5. Preserve the value's meaning. somevalue means an unknown value, novalue an explicit absence; neither means a missing property. Preserve time precision, quantity units and bounds, coordinate precision, and language tags when present. Do not convert a year-precision time into a known day, or an unresolved Q-ID into a guessed label.
  6. Check coverage before saying “all” or “none.” Inspect search pagination, SPARQL counts and notices, and label lookup misses. SPARQL truncated signals an inferred upstream row cap; response-budget cuts are reported separately. A false flag, a LIMIT-bounded query, or a page of results does not prove completeness. Describe an empty query as no matching indexed rows under that query's conditions.

Read the full file on GitHub · 60 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 60 lines · 48 tokens per session scan A 0391b8dac83e

Subscribe to this mod's changes

wikidata-guide is a skill published in the GitHub repository cyanheads/wikidata-mcp-server (3 stars, last pushed 2d ago), licensed Apache-2.0. It adds 48 tokens to every session and 1,421 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-29.

Related

Other skills, from other repositories

wikipedia-guide

Gates and identifier chains for the wikipedia tools. Covers switching language editions without reusing titles, disambiguation pages the article tools don't flag, section numbers versus sectionindex, coverage that differs by edition, and the checks to run before calling something absent or sourced. Use when a…

cyanheads/wikipedia-mcp-server · 84 tokens

openstates-guide

Identifier chains and gates for the openstates tools (US state legislatures via Open States). Use when tracing a state bill's fate, votes, or sponsors; finding who represents a location and their committees; finding hearings; or comparing states. Read before naming a bill, reporting who voted how, or concluding that a…

cyanheads/openstates-mcp-server · 78 tokens

onebusaway-guide

Resolve and interpret onebusaway transit results when choosing a boarding stop, tracking a route or trip, checking disruptions, or reading service-day schedules. Use for multi-step questions where direction, agency, missing telemetry, or scheduled versus predicted times change the answer.

cyanheads/onebusaway-mcp-server · 57 tokens

wsdot-guide

Plan Washington ferry trips with wsdot tools when a next-sailing, vehicle-eligibility, or capacity question needs schedule, service alerts, terminal space, and vessel evidence combined.

cyanheads/wsdot-mcp-server · 42 tokens

release-pr-review

Review pass on an open release PR (release/ → main) — the step between git-wrapup and release-and-publish when a project releases in gated release PR mode. Reads the PR's commit range through the code-simplifier lens plus a correctness review, verifies whatever an automated reviewer left on the PR, lands fixes as…

cyanheads/wikipedia-mcp-server · 136 tokens

add-tool

Scaffold a new MCP tool definition. Use when the user asks to add a tool, create a new tool, or implement a new capability for the server.

cyanheads/wikipedia-mcp-server · 35 tokens