AI product Open source
P&ID to Knowledge Graph is a Claude skill by Scott Duncan that reads digital or scanned piping and instrumentation diagrams (P&IDs) and process flow diagrams from PDF files, then produces a process knowledge graph. Claude identifies equipment, pipe runs, valves, instruments, signal lines, and off-page connectors; tested Python scripts prepare pages, build the graph, and perform quality checks. The graph represents upstream and downstream flow, instrument locations and measurements, and control loops from sensors through controllers to valves or drives, including cascades, interlocks, I/P relays, and VFDs. It outputs a readable plant summary, a QA report, JSON, and a DuckDB database for SQL and recursive flow queries, with optional Neo4j or GraphML export. The repository includes ISA-5.1 parsing, DEXPI class mapping, schemas, extraction references, scripts, and pytest tests. It requires Claude Code and Python 3.10 or newer; extraction quality depends on drawing legibility, and the project requires qualified-engineer review before use in design, operations, management of change, or safety studies. Licensed under MIT.
1 use taken from transcripts — each links to the moment in the video.
A Claude skill that reads piping and instrumentation diagrams from PDFs and turns them into a process knowledge graph, with tested Python scripts doing prep and QA. It maps flows upstream and downstream of equipment, which instruments measure what, and every control loop from sensor to valve.
1 in the library.