skills/43-wentorai-research-plugins/skills/literature/metadata/viaf-authority-api/SKILL.md
Disambiguate author identities via the VIAF authority file API
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research viaf-authority-apiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
VIAF clusters authority records from 50+ national libraries worldwide, linking different forms of an author's name into a single canonical identity. It covers 50M+ personal, corporate, and geographic name entries. Essential for author disambiguation in bibliometric research — resolving "J. Smith", "John Smith", and "Smith, J.A." to the same person. Free, no authentication.
https://viaf.org
# Search by name (AutoSuggest)
curl "https://viaf.org/viaf/AutoSuggest?query=einstein+albert"
# Search via SRU (structured query)
curl "https://viaf.org/viaf/search?query=local.personalNames+all+\"hinton+geoffrey\"&\
sortKeys=holdingscount&httpAccept=application/json"
# Search corporate names
curl "https://viaf.org/viaf/search?query=local.corporateNames+all+\"MIT\"&\
httpAccept=application/json"
# JSON format
curl "https://viaf.org/viaf/75121530/viaf.json"
# Linked data formats
curl -H "Accept: application/json" "https://viaf.org/viaf/75121530"
# Cluster data (all linked identities)
curl "https://viaf.org/viaf/75121530/justlinks.json"
# Look up by Library of Congress ID
curl "https://viaf.org/viaf/lccn/n79021164/viaf.json"
# Look up by ISNI
curl "https://viaf.org/viaf/isni/0000000121174331/viaf.json"
# Look up by ORCID
curl "https://viaf.org/viaf/sourceID/ORCID|0000-0002-1825-0097/viaf.json"
# Look up by Wikidata QID
curl "https://viaf.org/viaf/sourceID/WKP|Q937/viaf.json"
| Code | Library/Source |
|------|---------------|
| LC | Library of Congress |
| DNB | German National Library |
| BNF | Bibliothèque nationale de France |
| NLA | National Library of Australia |
| NDL | National Diet Library (Japan) |
| NKC | National Library of Czech Republic |
| WKP | Wikidata |
| ISNI | ISNI |
{
"viafID": "75121530",
"nameType": "Personal",
"mainHeadings": {
"data": [
{
"text": "Einstein, Albert, 1879-1955",
"sources": {"s": ["LC", "DNB", "BNF"]}
}
]
},
"x400s": {
"x400": [
{"datafield": {"subfield": [{"text": "Albert Einstein"}]}}
]
},
"birthDate": "1879",
"deathDate": "1955",
"sources": {
"source": [
{"nsid": "n79022889", "sid": "LC|n79022889"},
{"nsid": "118529579", "sid": "DNB|118529579"}
]
}
}
import requests
BASE_URL = "https://viaf.org/viaf"
def search_person(name: str, limit: int = 10) -> list:
"""Search VIAF for personal name authorities."""
resp = requests.get(
f"{BASE_URL}/AutoSuggest",
params={"query": name},
)
resp.raise_for_status()
data = resp.json()
results = []
for item in data.get("result", [])[:limit]:
results.append({
"viaf_id": item.get("viafid"),
"name": item.get("displayForm"),
"name_type": item.get("nametype"),
"source_count": len(item.get("sources", "").split("|")),
})
return results
def get_authority(viaf_id: str) -> dict:
"""Get full VIAF authority record."""
resp = requests.get(f"{BASE_URL}/{viaf_id}/viaf.json")
resp.raise_for_status()
data = resp.json()
name_forms = []
for heading in data.get("mainHeadings", {}).get("data", []):
if isinstance(heading, dict):
name_forms.append({
"text": heading.get("text"),
"sources": heading.get("sources", {}).get("s", []),
})
external_ids = {}
for src in data.get("sources", {}).get("source", []):
sid = src.get("sid", "")
if "|" in sid:
prefix, local_id = sid.split("|", 1)
external_ids[prefix] = local_id
return {
"viaf_id": data.get("viafID"),
"name_forms": name_forms,
"birth": data.get("birthDate"),
"death": data.get("deathDate"),
"external_ids": external_ids,
}
def resolve_by_orcid(orcid: str) -> dict:
"""Resolve ORCID to VIAF authority record."""
resp = requests.get(
f"{BASE_URL}/sourceID/ORCID|{orcid}/viaf.json"
)
resp.raise_for_status()
return resp.json()
# Example: disambiguate an author name
candidates = search_person("Geoffrey Hinton")
for c in candidates:
print(f"VIAF {c['viaf_id']}: {c['name']} "
f"({c['source_count']} libraries)")
# Example: get all name forms for an author
if candidates:
record = get_authority(candidates[0]["viaf_id"])
print(f"\nName forms for {record['viaf_id']}:")
for form in record["name_forms"]:
sources = ", ".join(form["sources"][:3])
print(f" {form['text']} [{sources}]")
print(f"External IDs: {record['external_ids']}")
development
Conduct rigorous thematic analysis (TA) of qualitative data following Braun and Clarke's (2006) six-phase framework. Use whenever the user mentions 'thematic analysis', 'TA', 'Braun and Clarke', 'qualitative coding', 'identifying themes', or asks for help analysing interviews, focus groups, open-ended survey responses, or transcripts to identify patterns. Also trigger for questions about inductive vs theoretical coding, semantic vs latent themes, essentialist vs constructionist epistemology, building a thematic map, or writing up a qualitative findings section. Covers all six phases, the four upfront analytic decisions, the 15-point quality checklist, and the five common pitfalls. Produces a Word document write-up and an annotated thematic map. Does NOT cover IPA, grounded theory, discourse analysis, conversation analysis, or narrative analysis — use a different method for those.
development
Guide users through writing a systematic literature review (SLR) following the PRISMA 2020 framework. Use this skill whenever the user mentions 'systematic review', 'systematic literature review', 'SLR', 'PRISMA', 'PRISMA 2020', 'PRISMA flow diagram', 'PRISMA checklist', or asks for help writing, structuring, or auditing a literature review that follows reporting guidelines. Also trigger when the user asks about inclusion/exclusion criteria for a review, search strategies for databases like Scopus/WoS/PubMed, study selection processes, risk of bias assessment, or narrative synthesis for a review paper. This skill covers the full PRISMA 2020 checklist (27 items), produces a Word document manuscript in strict journal article format, generates an annotated PRISMA flow diagram, and enforces APA 7th Edition referencing throughout. It does NOT cover meta-analysis or statistical pooling. By Chuah Kee Man.
testing
Performs placebo-in-time sensitivity analysis with hierarchical null model and optional Bayesian assurance. Use when checking model robustness, verifying lack of pre-intervention effects, or estimating study power.
data-ai
Fit, summarize, plot, and interpret a chosen CausalPy experiment. Use after the causal method has been selected, including when configuring PyMC/sklearn models and scale-aware custom priors.