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.
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-constructionRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install knowledge-graph-construction in Claude Code
git clone --depth 1 https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills /tmp/Auto-Empirical-Research-Skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Auto-Empirical-Research-Skills/skills/43-wentorai-research-plugins/skills/tools/knowledge-graph/knowledge-graph-construction ~/.gemini/antigravity-cli/skills/knowledge-graph-constructionAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install knowledge-graph-construction in Antigravity CLI
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
ANo 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 →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
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.
