Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

knowledge-graph-construction

Skill by brycewang-stanford

Guides the building of research knowledge graphs for literature synthesis and retrieval augmented generation. Aimed at researchers and developers building personal literature bases or academic RAG chatbots.

  • Score 76
  • 5.3k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install knowledge-graph-construction

Built from the published package, never by AI.

git clone --depth 1 https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills /tmp/Auto-Empirical-Research-Skills && mkdir -p ~/.claude/skills && cp -r /tmp/Auto-Empirical-Research-Skills/skills/43-wentorai-research-plugins/skills/tools/knowledge-graph/knowledge-graph-construction ~/.claude/skills/knowledge-graph-construction

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install knowledge-graph-construction in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a guide for building research knowledge graphs. It covers defining an ontology of entity and relation types, extracting entities and relations from paper abstracts with an LLM or with spaCy and custom patterns, and storing the results in Neo4j or NetworkX. It also shows how to query the graph and pass a 2-hop subgraph into a retrieval augmented generation prompt.

It is aimed at researchers building a personal literature knowledge base, a domain-specific literature graph, or an academic RAG chatbot. The guide includes Python code samples and best practices, such as using DOIs and ORCIDs as identifiers and manually checking a sample of extractions.

Written from the project's SKILL.md and checked against it.

What it can do

  • Research ontology designDefines entity types such as Paper, Method, Dataset and Finding, and relation types, in a YAML schema.
  • LLM-based extractionExtracts entities and relations from paper abstracts into JSON using an OpenAI model.
  • spaCy custom NERAdds pattern-based recognition of method names on top of a spaCy transformer model.
  • Neo4j storageMerges papers, citations and methods into a Neo4j graph and queries them.
  • NetworkX graphBuilds and queries a lightweight in-memory graph for prototyping.
  • KG-RAG queryCollects a 2-hop neighborhood around question entities as context for an LLM answer.

What you need

  • Python
  • OpenAI API access
  • spaCy with the en_core_web_trf model
  • Neo4j, for production storage
  • NetworkX, for lightweight graphs

Try asking

  • Design a research ontology for papers, methods, datasets and findings.
  • Extract methods and findings from this paper abstract into a graph.
  • Find papers in my graph that used a given method, sorted by year.

Good to know

  • LLM extraction is imperfect, so the guide recommends manual checks of 5-10% of extractions.
  • Changing the schema later requires re-processing the data.
  • The guide describes patterns and code samples rather than a packaged tool.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/43-wentorai-research-plugins/skills/tools/knowledge-graph/knowledge-graph-construction/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to knowledge-graph-construction

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

knowledge-graph-construction: common questions

Does this skill include working code?

The guide includes Python code samples for LLM extraction, spaCy, Neo4j, NetworkX and a KG-RAG query function.

Which graph storage does it cover?

It shows Neo4j for production use and NetworkX for lightweight prototyping.

How accurate is the LLM extraction?

The source says LLM extraction is imperfect and recommends manually verifying 5-10% of extractions.

How do I install knowledge-graph-construction?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is knowledge-graph-construction free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is knowledge-graph-construction safe to use?

It scores 76 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to knowledge-graph-construction?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

knowledge-graph-construction Install

Add to stack

Loading.