Skip to content
Back to skills

Plant Import

ASecurity

Import a P&ID into a schemantics plant so it can be revised, compared and exported as DEXPI. Use when the user gives a P&ID as a DEXPI 2.0.1 XML file, or as a PDF or scanned image, and wants to manage changes (MOC) on it, see it in the plant viewer, or export it to DEXPI.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
businessgo

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add trillion-labs/schemantics-skills --skill plant-import --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Plant Import?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Plant Import
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/trillion-labs-plant-import/badge)](https://www.skillsdirectory.com/skills/trillion-labs-plant-import)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: plant-import
description: Import a P&ID into a schemantics plant so it can be revised, compared and exported as DEXPI. Use when the user gives a P&ID as a DEXPI 2.0.1 XML file, or as a PDF or scanned image, and wants to manage changes (MOC) on it, see it in the plant viewer, or export it to DEXPI.
---

# Import a P&ID

The plant lives in a folder with a `plant.yaml` index (create one with `schemantics init "<plant name>" --root <folder>` if the user has none). Every import is saved as **Rev 0 (as-built)** of each drawing.

Run `schemantics` from this plugin's `bin/` folder. Talk to the user in drawing terms (drawing numbers, tags, revisions), never in file or version-control terms.

## DEXPI XML (2.0.1)

```
schemantics import-dexpi <file.xml> --unit <unit-id> --root <plant>
```

The original file is kept unchanged next to the drawing; later exports reuse its graphics, so an unchanged drawing exports byte-identical. DEXPI 1.4 (Proteus) is not supported yet: tell the user so.

## PDF or scan

Claude reads the drawing; the plugin prepares it and checks what was read. Keep the work folder next to the plant, e.g. `work/<drawing>`.

**Ground rules:** only the P&ID pages; one plant per work folder; record only what is drawn (never invent tags, connections, loops or trips); anything unclear goes in with a lower `confidence` or into `unreadable`.

1. **Probe:** `schemantics read probe <file.pdf> --work <work> --plant-name "<plant>" [--pages 3-5]`. It sorts pages into vector or scanned, and writes `<work>/manifest.json`. Tell the user in one line what it found.
2. **Render:** `schemantics read render <work>`. It writes for each page an overview, an overview with the tile grid, and the tiles. Open `pages/page_NN/overview_grid.png` and check the text is upright; if not, re-render that page with `--pages N --rotation 90` (clockwise).
3. **Hints:** `schemantics read hints <work>`. It collects printed text with positions (from the PDF's text, or OCR if installed via the `ocr` extra). They are hints only.
4. **Read each sheet:** write `<work>/extract/page_NN.json` following [references/extraction_procedure.md](references/extraction_procedure.md): overview, then every non-blank tile, then zoomed crops (`schemantics read crop <work> --page N --bbox x0 y0 x1 y1`). Use [references/kinds.md](references/kinds.md) for `kind`, [references/isa_5_1.md](references/isa_5_1.md) for instruments and [references/symbol_guide.md](references/symbol_guide.md) for symbols. Give each line its `route` ([references/route_tracing.md](references/route_tracing.md)); record printed valve positions and drawn trip lines.
5. **Import into the plant:**

   ```
   schemantics import-pages <work> --unit <unit> --drawing <original.pdf> --root <plant>
   ```

   It checks every page file first and names the first problem (page, field, why) without writing anything; fix it and run again. Each sheet becomes its own drawing at Rev 0. A pipe that continues to an item on another sheet ends at a boundary named after that item.

6. **Check:** `schemantics check --root <plant> --drawing <drawing no.>`. Everything read from a scan is listed as not confirmed until an engineer confirms it; go through the warnings with the user.

## Afterwards

Tell the user how many drawings and items were imported, anything recorded as unreadable or low confidence, and that they can open the viewer (plant-view skill) or start a change (plant-moc skill).

Files in this skill

  • SKILL.md3.4 KB
  • references/extraction_procedure.md16.2 KB
  • references/isa_5_1.md5.9 KB
  • references/kinds.md3.2 KB
  • references/route_tracing.md1.2 KB
  • references/symbol_guide.md4.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in business →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.