Official skill · AI practice

Knowledge graph from documents

Extracts entities and relationships from documents into triples with source quotes and confidence, merged names, a CSV-ready table, and a Mermaid diagram. Use it when you want to map people, companies, and products across many documents.

Works in Claude, ChatGPT, and coding agents. On Team and Business, the official skill in your pod updates itself when we improve it.

When to use it

What you give it

What you get

An entity table, a triple table with quotes and confidence, a Mermaid diagram, and open questions about duplicates.

How it works

  1. Fix the entity types and predicates first Write them as a short list: types in singular nouns (Person, Company, Product, Project), predicates as lowercase verb phrases (works_at, uses, owns, reports_to). Use one predicate per meaning; "employed by" and "works at" both become works_at.
  2. Extract triples sentence by sentence Only what a sentence states. Each triple: subject, predicate, object, the exact source quote (under 25 words), the document and location. Don't infer relationships from proximity ("mentioned in the same paragraph" is not a relationship).
  3. Grade confidence High: stated directly ("Mia leads Project Orbit"). Medium: stated but hedged or indirect ("Mia seems to be running Orbit now"). Low: implied by context. Our default: keep low-confidence triples in the table but out of the diagram.
  4. Merge duplicates into canonical names Group variants ("Acme", "ACME Corp.", "Acme Corporation") under one canonical name and record the aliases. Different things with the same name get a qualifier ("Mercury (project)", "Mercury (vendor)"). When unsure whether two names are the same entity, keep them separate and list the question.
  5. Check for conflicts Two triples that can't both be true (Mia reports_to Jon; Mia reports_to Ana) are flagged with both sources and dates. Prefer the newer source only if the documents are dated; otherwise leave it open.
  6. Write the outputs An entity table, a triple table in CSV-ready form (no merged cells, one row per triple), and a Mermaid flowchart of high and medium triples. In Mermaid, put labels with spaces or parentheses in double quotes, and never use the bare word "end" as a node id.

Share it with your team

Add it to an AI Skill Pod and everyone on the team, contractors included, uses the same version from their own AI. Read the best ways to share AI skills with a team

Add to my team's pod

Changelog

Sources

  1. RDF 1.1 Concepts and Abstract Syntax (read 2026-11-04)
  2. Welcome - GraphRAG (read 2026-11-04)
  3. Flowcharts Syntax | Mermaid (read 2026-11-04)
  4. Ontology Development 101: A Guide to Creating Your First Ontology (read 2026-11-04)