# knowledge-graph-construction

knowledge-graph-construction guides the design of knowledge graphs from unstructured data, covering model selection between LPG and RDF, schema creation, and extraction for RAG.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 103 installs · ★ 203 repo stars
- Author: lyndonkl
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/lyndonkl/claude/tree/HEAD/skills/knowledge-graph-construction/SKILL.md
- Updated: 2026-09-01
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/knowledge-graph-construction

## What it does

The skill walks through a six-stage checklist to turn raw documents into a graph. It helps select the core data model: Labeled Property Graphs for RAG pipelines or RDF/OWL for ontologies like UMLS.

The architecture separates data into three distinct tiers: document instances, curated domain knowledge, and formal ontologies. Relation extraction combines targeted prompts with a second LLM pass to spot missed facts. Graph validation inspects connectivity and checks for orphan nodes.

Standard LPG stores lack full logical reasoning. Projects that demand formal inference will fail unless built on RDF/OWL.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add lyndonkl/claude --skill knowledge-graph-construction -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/knowledge-graph-construction/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/knowledge-graph-construction/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add lyndonkl/claude --skill knowledge-graph-construction -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/knowledge-graph-construction/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add lyndonkl/claude --skill knowledge-graph-construction -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/knowledge-graph-construction/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install lyndonkl/claude skills/knowledge-graph-construction
```

2. **Manually: put the files in place**
- File: `.github/skills/knowledge-graph-construction/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add lyndonkl/claude --skill knowledge-graph-construction -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/lyndonkl/claude --path skills/knowledge-graph-construction
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/knowledge-graph-construction/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add lyndonkl/claude --skill knowledge-graph-construction -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/lyndonkl/claude/tree/HEAD/skills/knowledge-graph-construction/SKILL.md

## When to use it
- choose between LPG, RDF, and hypergraph formats
- partition entities and relationships across trust layers
- configure text extraction pipelines with dual-pass verification
- detect contradictory edges and orphan nodes during quality checks

## Example prompts
- Help me choose between LPG and RDF for an enterprise RAG setup.
- Design an event reification schema for multi-party clinical trials.
- Build a two-pass extraction pipeline to extract relations from research papers.

## Similar
- [Knowledge Graph Builder](https://affpapa.org/en/nevibecode/skills/knowledge-graph-builder.md) — skill · 438 installs
- [knowledge-graph-builder](https://affpapa.org/en/nevibecode/skills/oakoss-knowledge-graph-builder.md) — skill · 222 installs
- [agency-knowledge-graph-engineer](https://affpapa.org/en/nevibecode/skills/agency-knowledge-graph-engineer.md) — skill · ★ 85 repo stars
- [Knowledge Base Manager](https://affpapa.org/en/nevibecode/skills/knowledge-base-manager.md) — skill · 443 installs
- [neo4j-aura-graph-analytics-skill](https://affpapa.org/en/nevibecode/skills/neo4j-aura-graph-analytics-skill.md) — skill · 849 installs
- [graph-the-network](https://affpapa.org/en/nevibecode/skills/graph-the-network.md) — skill · 1800 installs

From the same set: [lyndonkl/claude](https://affpapa.org/en/nevibecode/by/lyndonkl/claude.md) — 49 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
