Source profileQuality 90/100

equinor/neqsim/.github/skills/neqsim-document-intelligence-extraction/SKILL.md

neqsim-document-intelligence-extraction

Classify mixed engineering documents and images, route native text/table, OCR, and vision extraction, and produce source-traceable evidence packages with confidence and human-review gates. USE WHEN: a NeqSim task receives PDFs, scans, Word/Excel files, drawings, charts, photographs, or multiple conflicting engineering sources.

Source repository stars
136
Declared platforms
0
Static risk flags
0
Last source update
2026-08-05
Source checked
2026-08-05

Decision brief

What it does—and where it fits

Use this skill as the intake layer for documents and images supplied to NeqSim tasks. It makes extraction automatic where tools are available without treating OCR or model output as verified engineering data.

Best for

  • A task receives PDF, DOCX, XLSX, CSV, HTML, XML, presentation, image, scan, drawing, chart, or photograph inputs.
  • A PDF may contain both embedded text and visual engineering content.
  • Multiple sources must be reconciled without silently choosing one value.

Not for

  • This skill routes and governs extraction; parser, OCR, and multimodal quality depend on the runtime adapters and source quality.
  • Handwriting, faint scans, dense drawings, unusual fonts, password protection, and proprietary formats may require specialist tools or manual transcription.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/equinor/neqsim --skill ".github/skills/neqsim-document-intelligence-extraction"
Safe inspection promptEditorial

Inspect the Agent Skill "neqsim-document-intelligence-extraction" from https://github.com/equinor/neqsim/blob/9e8d44a141bba600026d2229969b49af50f34237/.github/skills/neqsim-document-intelligence-extraction/SKILL.md at commit 9e8d44a141bba600026d2229969b49af50f34237. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Extraction Workflow

    1. Inventory files recursively and preserve original names, hashes, and relative paths. 2. Classify by actual format where possible, not filename alone. Reject encrypted, corrupt, unexpectedly executable, or unsupported content for manual triage. 3. Prefer structured/native extr…

    Inventory files recursively and preserve original names, hashes, and relative paths.Classify by actual format where possible, not filename alone. Reject encrypted, corrupt, unexpectedly executable, or unsupported content for manual triage.Prefer structured/native extraction first:
  2. 02

    Python Usage Pattern

    The package does not embed one OCR or AI vendor. A harness executes each planned operation using available parsers, OCR engines, and multimodal tools, then creates EvidenceFact objects.

    The package does not embed one OCR or AI vendor. A harness executes each planned operation using available parsers, OCR engines, and multimodal tools, then creates EvidenceFact objects.
  3. 03

    When to Use

    A task receives PDF, DOCX, XLSX, CSV, HTML, XML, presentation, image, scan, drawing, chart, or photograph inputs.

    A task receives PDF, DOCX, XLSX, CSV, HTML, XML, presentation, image, scan, drawing, chart, or photograph inputs.A PDF may contain both embedded text and visual engineering content.Multiple sources must be reconciled without silently choosing one value.
  4. 04

    Inputs

    sourcepath: source file path; retain the original file unchanged.

    sourcepath: source file path; retain the original file unchanged.embeddedtextchars: optional PDF text-layer yield used to trigger OCR.containsvisuals: optional Office-document visual-content hint.
  5. 05

    Outputs

    ExtractionPlan: source kind plus ordered native-text, table, OCR, rendering, and vision operations.

    ExtractionPlan: source kind plus ordered native-text, table, OCR, rendering, and vision operations.ExtractionResult: schema-versioned evidence package with facts, quality score, warnings, gaps, and review status.Conflict records for fields whose normalized values differ across sources.

Permission review

Static risk signals and limitations

No configured static risk pattern was detected

This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score90/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars136SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
equinor/neqsim
Skill path
.github/skills/neqsim-document-intelligence-extraction/SKILL.md
Commit
9e8d44a141bba600026d2229969b49af50f34237
License
Apache-2.0
Collected
2026-08-05
Default branch
master
View the original SKILL.md

Document Intelligence Extraction

Use this skill as the intake layer for documents and images supplied to NeqSim tasks. It makes extraction automatic where tools are available without treating OCR or model output as verified engineering data.

When to Use

  • A task receives PDF, DOCX, XLSX, CSV, HTML, XML, presentation, image, scan, drawing, chart, or photograph inputs.
  • A PDF may contain both embedded text and visual engineering content.
  • Multiple sources must be reconciled without silently choosing one value.
  • Extracted values will feed simulation, design, safety, operations, or reporting workflows.

Inputs

  • source_path: source file path; retain the original file unchanged.
  • embedded_text_chars: optional PDF text-layer yield used to trigger OCR.
  • contains_visuals: optional Office-document visual-content hint.
  • Adapter-produced facts with original text, page or locator, extraction method, confidence, and optional normalized value/unit.

Outputs

  • ExtractionPlan: source kind plus ordered native-text, table, OCR, rendering, and vision operations.
  • ExtractionResult: schema-versioned evidence package with facts, quality score, warnings, gaps, and review status.
  • Conflict records for fields whose normalized values differ across sources.

Engineering Method

The skill uses a staged, loss-minimizing method: preserve native structure, add OCR only when the text layer is absent or weak, use vision when spatial meaning matters, and reconcile all methods into evidence rather than free-form prose. Its Python package implements deterministic classification, routing, provenance validation, review gates, quality scoring, and conflict detection. Runtime adapters perform format parsing, OCR, and multimodal inference. This is an engineering-data governance workflow, not a validated physical model or a substitute for document control.

Extraction Workflow

  1. Inventory files recursively and preserve original names, hashes, and relative paths.
  2. Classify by actual format where possible, not filename alone. Reject encrypted, corrupt, unexpectedly executable, or unsupported content for manual triage.
  3. Prefer structured/native extraction first:
    • PDF text layer and table geometry;
    • DOCX paragraphs, tables, headers, footnotes, and embedded media;
    • XLSX sheet names, cells, formulas, merged ranges, hidden rows/columns, and units;
    • CSV/JSON/XML structure without flattening it to prose.
  4. For low-yield/scanned PDFs, render pages and run OCR with word coordinates. Keep OCR text separate from native text.
  5. Use multimodal vision for drawings, P&IDs, charts, photographs, symbols, topology, annotations, and spatial relationships. OCR alone cannot establish these semantics.
  6. Reconcile native text, OCR, tables, and vision. Do not overwrite disagreements; emit a conflict requiring review.
  7. Normalize values and units while preserving the exact original value, text, and unit.
  8. Gate every safety-critical, ambiguous, or confidence-below-0.85 fact as needs_review.
  9. Hand the evidence package to a document-type skill for engineering interpretation, then to the relevant NeqSim model.

Python Usage Pattern

from document_intelligence_extraction import DocumentIntelligenceExtractor, EvidenceFact

extractor = DocumentIntelligenceExtractor()
plan = extractor.plan("equipment_datasheet.pdf", embedded_text_chars=420)

fact = EvidenceFact(
    field="design_pressure",
    value=150.0,
    unit="bara",
    original_text="Design pressure: 150 bar(a)",
    page=2,
    locator="table:Design Conditions,row:Pressure",
    method="native_tables",
    confidence=0.98,
    safety_critical=True,
)
result = extractor.package(plan, "equipment_datasheet", [fact])
payload = result.to_dict()

The package does not embed one OCR or AI vendor. A harness executes each planned operation using available parsers, OCR engines, and multimodal tools, then creates EvidenceFact objects.

Evidence Contract

Every fact must include:

  • semantic field name and extracted value;
  • original text and original unit;
  • page number or stable locator such as sheet/cell, table/row, bounding box, or XML path;
  • extraction method and confidence from 0 to 1;
  • normalized value/unit when conversion is performed;
  • ambiguity and safety-critical flags;
  • review status assigned by the contract.

File-level metadata should additionally preserve content hash, document title/number, revision, date, language, page/sheet count, and extraction-tool versions.

Validation Checklist

  • Originals remain unchanged and a content hash is recorded by the harness.
  • Native extraction was attempted before OCR.
  • Every visual page was rendered and assessed when layout carries meaning.
  • Tables retain row/column provenance and multi-page continuations are checked.
  • Every fact has original text plus page or locator.
  • Values and units are normalized without discarding originals.
  • Conflicting sources are reported rather than resolved silently.
  • Safety-critical and low-confidence facts require human review.
  • Missing expected fields are listed as gaps, never fabricated.
  • Downstream NeqSim input validation runs after extraction review.

Common Mistakes

SymptomCauseFix
A scanned PDF appears emptyOnly the embedded text layer was readRender pages, OCR them, and retain coordinates
P&ID tags are found but topology is wrongOCR was used without visual reasoningUse vision plus a specialized P&ID topology skill
Spreadsheet units disappearThe sheet was flattened to CSV too earlyRead cells, headers, merged ranges, and formulas natively
Conflicting design values are silently replacedSources were merged by field nameUse find_conflicts and require review
A plausible number enters a simulationProvenance/review gates were skippedReject facts without original text and page/locator

Limitations

  • This skill routes and governs extraction; parser, OCR, and multimodal quality depend on the runtime adapters and source quality.
  • Handwriting, faint scans, dense drawings, unusual fonts, password protection, and proprietary formats may require specialist tools or manual transcription.
  • Confidence is a triage signal, not proof of correctness.
  • It does not infer missing engineering values or replace document control and qualified review.

Cooperation and Handoffs

  • Chain to neqsim-technical-document-reading for document-type schemas, engineering normalization, and physical validation.
  • Chain to neqsim-pdf-ocr when PDF text yield is low or pages are scanned.
  • Chain to P&ID, standards, compressor-chart, fluid, process-extraction, or other domain skills only after the evidence package is built.
  • Enterprise retrieval, identifiers, controlled-document status, and internal governance remain in enterprise skills; they should emit the same evidence contract. Enterprise document/attachment retrieval skills and task-solver agents (which download PEPR/STID/maintenance attachments and drawings) use this skill as their intake/extraction layer — every downloaded document, drawing, chart, or photograph is planned and packaged here (native text, OCR, and vision) before interpretation, so all information (including figures, photos, and P&IDs) reaches the model as governed evidence facts.
  • Downstream calculations should use NeqSim input validation and retain links back to evidence facts.

Related NeqSim Functionality

The skill supplies governed inputs to NeqSim workflows such as ProcessSystem.fromJsonAndRun, SimulationValidator.validate, process equipment sizing, PVT simulations, and MCP tools including runProcess, runPVT, runPipeline, and validateInput. It performs no thermodynamic calculation itself.

References

Alternatives

Compare before choosing