PT

P&ID to Knowledge Graph (pid-to-kg)

A Claude skill for process engineers: it reads piping and instrumentation diagrams (P&IDs) and process flow diagrams from PDF, scanned or digital, and builds a knowledge graph of what flows where, which instrument measures what, and how control loops connect, so an LLM can answer questions like what feeds a given tank. MIT.

🧩 SkillSource: ScottDuncanAI/PID-to-Knowledge-GraphBy Scott Duncan (open source)GitHub stars300License: MITUpdated 2026-11-08GitHub ↗

Test results

Run with our skill harness: the skill alone in a throwaway project, invoked by name, and the real output file checked. Skills are tested in Claude Code and Cursor only so far.

ClientResultLast passedWhat we checked
Claude CodeNot tested yetnever
Cursor
2026.11.17-f532c45
Passed
Tested 2026-11-18
2026-11-18pid-to-kg: {'kg/graph.json + graph.duckdb + summary.md + qa_report.md': True, 'drawing number (ref) read from the title block': True, 'equipment TK-101, P-101, E-101 in the graph': True, 'upstream of E-101 = P-101 then T

Skill version: github.com/ScottDuncanAI/PID-to-Knowledge-Graph @ 7ee3a82e (2026-11-08).

Tested on ToolPassed badge

ToolPassed: passed Cursor

Maker of P&ID to Knowledge Graph (pid-to-kg)? It passed in Cursor on 2026-11-18. Add this free badge to your README; it links back to this listing. Free, no strings: the badge never changes a result.

[![Tested on ToolPassed](https://toolpassed.com/badge/skills/pid-to-knowledge-graph.svg)](https://toolpassed.com/skills/pid-to-knowledge-graph/)

Get it

The skill’s files and install instructions are in its repository: github.com/ScottDuncanAI/PID-to-Knowledge-Graph.

Not working?

Fixes from our own test runs: Skill not working in Cursor?

Featured