Searches the KG-Registry for resources by topic, subject area, or domain using DuckDB queries over HTTP parquet files.
Ships in kg-registry-discovery. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Find resources in the KG-Registry that cover a given topic, subject area, or domain, by querying the live hosted data.
httpfs extension and internet access. The portable option, which needs nothing preinstalled:
uv run --with duckdb --no-project python - <<'PY'
... query ...
PY
Equivalents: pip install duckdb then plain python, or the standalone duckdb CLI (run INSTALL httpfs; LOAD httpfs; first).Four Parquet files under https://kghub.org/kg-registry/registry/parquet/:
| File | One row per | Key columns |
|---|---|---|
resources.parquet | resource | id, name, description, category, activity_status, homepage_url, domains, products, raw_data (raw_data is the full record as JSON) |
resource_domains.parquet | resource×domain | resource_id, domain |
resource_products.parquet | product | resource_id, product_id, product_name, product_category, product_description, product_url |
resource_taxa.parquet | resource×taxon | resource_id, taxon |
Setup block used by every query below:
import duckdb, json
con = duckdb.connect()
con.execute("INSTALL httpfs; LOAD httpfs;")
BASE = "https://kghub.org/kg-registry/registry/parquet"
R = f"read_parquet('{BASE}/resources.parquet')"
D = f"read_parquet('{BASE}/resource_domains.parquet')"
P = f"read_parquet('{BASE}/resource_products.parquet')"
T = f"read_parquet('{BASE}/resource_taxa.parquet')"
Skip when:
trace-upstream-sources) or where it is used (find-downstream-usages).find-similar-resources).category (DataSource, KnowledgeGraph, Ontology, DataModel, Aggregator), activity_status (default to active unless the user wants everything), or taxon (e.g. NCBITaxon:9606 for human).Separate the topic into two kinds of search.
Map the topic to the actual domain vocabulary.
con.execute(f"SELECT domain, COUNT(*) n FROM {D} GROUP BY domain ORDER BY n DESC").fetchall()
genomics and/or biological systems; "drug targets" to drug discovery. Only use a value that appears in that list.Query the mapped domain(s).
con.execute(f"""
SELECT id, name, category, activity_status FROM {R}
WHERE id IN (SELECT resource_id FROM {D} WHERE domain = ?)
AND activity_status = 'active'
ORDER BY name
""", ['genomics']).fetchall()
activity_status filter if the user wants inactive/all resources. Add AND category = ? when the type is constrained.Query the raw topic words as keywords.
con.execute(f"""
SELECT id, name, category, activity_status FROM {R}
WHERE name ILIKE ? OR description ILIKE ?
ORDER BY name
""", ['%RNA%', '%RNA%']).fetchall()
ILIKE does not split phrases or imply AND.Catch matches the structured columns miss.
raw_data. For proper nouns (a specific database name like "Reactome") sweep there too:
con.execute(f"SELECT id, name FROM {R} WHERE raw_data ILIKE ?", ['%reactome%']).fetchall()
SELECT DISTINCT resource_id FROM {P} WHERE product_description ILIKE ?.Merge, dedupe, and rank.
raw_data hits by resource id.raw_data.category and activity_status so the user can tell a curated KG from an inactive stub.Report.
id — name (category, status) — one line on why it matched (domain vs keyword vs name vs buried mention).| Task | Query |
|---|---|
| List the live domain vocabulary | SELECT domain, COUNT(*) n FROM {D} GROUP BY domain ORDER BY n DESC |
| By domain | SELECT id,name,category,activity_status FROM {R} WHERE id IN (SELECT resource_id FROM {D} WHERE domain = ?) |
| Keyword (name/description) | SELECT id,name,category,activity_status FROM {R} WHERE name ILIKE ? OR description ILIKE ? |
| Filter by type | add AND category = 'KnowledgeGraph' |
| Human resources | SELECT resource_id FROM {T} WHERE taxon = 'NCBITaxon:9606' |
| Buried-mention sweep | SELECT id,name FROM {R} WHERE raw_data ILIKE ? |
resource_domains list. Always confirm against the data.name/description and missing matches in synonyms, product descriptions, or provenance source ids — sweep raw_data and resource_products too.activity_status.kg_registry CLI is present. This skill is remote-only; everything comes from the hosted Parquet files.trace-upstream-sources, find-downstream-usages, and find-similar-resources are the natural next steps once this skill has located a resource of interest. They read the same hosted Parquet files.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/find-downstream-usagesUse when asked everywhere a given resource is used or consumed downstream — which knowledge graphs, aggregators, or products draw on it, and any recorded real-world uses — based on what KG-Registry records. Reads the live hosted KG-Registry Parquet files over HTTP (no local clone needed), combining reverse provenance (other resources naming this one as a source) with the resource's own usages field./find-similar-resourcesUse when asked to find KG-Registry resources similar to a given one — alternatives, related graphs, or near-duplicates. Reads the live hosted KG-Registry Parquet files over HTTP (no local clone needed), combining structured signals (shared domains, taxa, category, node/edge scale, shared upstream sources) with softer heuristics (description similarity and overlapping publication authors) into a ranked shortlist./trace-upstream-sourcesUse when asked what upstream data sources a given resource (usually a knowledge graph) is built from — its inputs, dependencies, or provenance — based on what KG-Registry records. Reads the live hosted KG-Registry Parquet files over HTTP (no local clone needed), walks each product's original_source and secondary_source, resolves the referenced ids, and optionally recurses to build the full upstream tree./kg-registry-discovery:search-resourcesfrom kg-registry-discovery
npx claudepluginhub knowledge-graph-hub/kg-registry --plugin kg-registry-discoveryOther plugins' skills for the same job