From kgmd
Build a knowledge graph from markdown files. Ingests documents, extracts entities and relations, resolves duplicates, and induces a typed schema. Use when users want to create a knowledge graph, index their documents, or extract structured data from markdown files.
How this skill is triggered — by the user, by Claude, or both
Slash command
/kgmd:build-graphThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill builds a complete knowledge graph from markdown files in the current project directory. It uses the kgmd MCP tools to ingest, extract, resolve, and induce.
This skill builds a complete knowledge graph from markdown files in the current project directory. It uses the kgmd MCP tools to ingest, extract, resolve, and induce.
Use the kgmd MCP server tools: init_graph, ingest_documents, get_chunks_for_extraction, store_extractions, get_resolution_candidates, apply_merges, get_induction_stats, store_schema.
Call init_graph() to create the .kgmd/ database. If it already exists, skip this step.
Call ingest_documents() to find and chunk all markdown files. Report the count of documents found and chunks created.
Loop until complete:
get_chunks_for_extraction(batch_size=10) to get the next batchstore_extractions() with the batch resultsget_resolution_candidates() to find similar entities via embedding clusteringapply_merges() with confirmed mergesget_induction_stats() to see entity type counts, relation predicates, and attribute summariesstore_schema() with the YAMLSummarize the completed graph:
npx claudepluginhub johncarpenter/kgmd-plugin --plugin kgmdCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.