Neqsim professional reporting

From equinor/neqsim · View interactive version

Neqsim professional reporting is an AI agent skill from the GitHub repository equinor/neqsim. Engineering deliverable quality - the nine analytical-depth moves, results.json schema, figure-discussion-results traceability, evidence matrices, assumptions/gaps registers, citations, KaTeX, units, executive-summary structure, AACE class. USE WHEN: producing a task report, a PEPR/M1/root-cause rep

How to use this skill

Skill file

NeqSim Professional Reporting Skill

What separates "an answer" from a professional deliverable: traceability,

unit hygiene, citation discipline, structured results.json, and a report

narrative that matches the way senior engineers communicate.

When to Use

Principle 0 — Analytical depth (what makes a report worth reading)

Principles 1–10 are hygiene: they stop a report being wrong or unreadable.

They do not make it useful. A hygienic report that restates the originating

memo, lists contributors without ranking them, and ends in "further study is

recommended" passes every checklist below and tells the reader nothing they did

not already know.

The depth of a report is set in the study, not in the write-up. Plan for

these moves while the analysis is still running — most of them cannot be added

afterwards.

The nine depth moves

Aim for ≥ 6 of 9 on a Standard report and all 9 on a Comprehensive or

root-cause/problem-solving report. Record the score in results.json

(depth_score) and name the moves that were not achievable and why.

| # | Move | What it looks like | Anti-pattern it replaces |

|---|------|--------------------|--------------------------|

| 1 | Rank the contributors on one common basis | A single table of every candidate cause with an improvement factor or utilisation number, computed the same way, so they are directly comparable | An unranked bullet list of "contributing factors" |

| 2 | Adjudicate the source document's own conclusions | A verdict table over each recommendation of the originating memo/PEPR/notification: Supported / Supported with a correction / Challenged, each with the number that decides it | Silently agreeing with the source, or silently ignoring it |

| 3 | Rule things out, quantitatively | "Thermal cycling does not explain this, by three orders of magnitude" — a competing explanation eliminated with a number and a stated margin | Leaving every hypothesis nominally alive |

| 4 | Find what the source document missed | A contributor, coupling, or second-order consequence absent from the originating document, established from evidence — and stated as such | Answering only the question as posed |

| 5 | Test the conclusion's robustness and say where it flips | A sensitivity table over the one or two genuinely uncertain modelling parameters, plus the explicit crossover point: "the top two swap around a slope of ~0.7, but the headline does not depend on it" | A single-point answer with an unquantified caveat |

| 6 | State the direction of every conservatism | Each screening value, default, and correlation labelled as an upper or lower bound on the reported quantity, so the reader knows which way the number can move | Undirected "this is approximate" |

| 7 | Name the cheapest discriminating test | The single measurement or inspection that would confirm or refute the diagnosis, why it discriminates, and what each outcome would mean | A generic "further investigation is recommended" |

| 8 | Report what does not fit | The observation that disagrees with the model, reported as a disagreement rather than smoothed over or omitted | Presenting only corroborating evidence |

| 9 | Convert qualitative asks into specifications | "Effective oxygen exclusion" → a purity table with the consequence of each grade; "improve filtration" → a micron rating with the mechanism that sets it | Repeating the source's qualitative wording back |

Write the moves into `results.json` — the report renders them

The depth work has to reach the reader. generate_report.py emits an

Analytical Depth section (Word and HTML) from these keys, turning a list of

dicts into a numbered table and anything else into bullets:

| results.json key | Move |

|--------------------|------|

| contributor_ranking | 1 — contributors on one basis |

| source_recommendation_assessment | 2 — verdict per source recommendation |

| ruled_out | 3 — quantitative rule-outs |

| robustness | 5 — sensitivity and the crossover |

| conservatism | 6 — direction of each conservatism |

| discriminating_test | 7 — the cheapest discriminating test |

| evidence_against | 8 — evidence that does not fit |

"contributor_ranking": [
  {"contributor": "Shell-side fouling", "share_pct": 62, "basis": "duty deficit vs design"},
  {"contributor": "Seawater inlet temperature", "share_pct": 21, "basis": "duty deficit vs design"}
],
"ruled_out": [
  {"hypothesis": "Tube leak", "test": "Chloride in condensate", "margin": "5 mg/l vs 250 mg/l threshold"}
],
"discriminating_test": {"test": "Single-point wall-thickness UT at the first bend",
                        "decides": "Erosion vs fouling", "cost": "1 shift, no shutdown"},
"depth_score": "7/9"

devtools/validate_task_results.py warns when a study that has figure

discussion, uncertainty, or a risk register reports fewer than two of them —

that combination means the task was past quick-answer scale and the depth work

should exist. If the moves were not achievable, say which and why rather than

leaving the keys out.

Two further depth habits

different duty, a repaired section that failed again, a period with a barrier

out of service — these discriminate between hypotheses far more cheaply than

any model. Actively search the fleet/historian/maintenance record for one.

would have to be for the conclusion to change ("the screening factor of 4.0

would require a shear ratio of 16; this geometry produces 2.74"). A bounded

unknown is a result; an asserted unknown is a gap.

Numerical results earn their own subsection

Any non-trivial computed result (CFD, FEM, transient, Monte Carlo, optimiser)

gets: validation against an analytical or independent value first, then a

convergence/mesh/sample-count check, then the result, then an explicit

statement of what the computation does and does not decide. A quantity that

still moves with refinement is an artefact and must be reported as one — report

the converged averaged measures, not the unconverged point maximum.

Report skeleton for a problem-solving / root-cause / PEPR report

Executive summary          ranking table + the conclusion that inverts or
                           confirms the source document + N further findings
                           (count them; keep the count in sync)
0. Design/evidence basis   what was retrieved, with document ids and revisions,
                           and the two or three basis facts that change the reading
1..n Findings              one section per finding, each: observation (numbers) →
                           mechanism (physics) → implication (for the decision) →
                           recommendation (specific action)
n+1 Robustness             sensitivity table + where the conclusion flips
n+2 Ruled out              each eliminated hypothesis with its quantitative margin
n+3 Assessment of the      verdict table over the source document's own
    source's recommendations recommendations
n+4 What remains open      per-finding, not one lumped register; each with the
                           test that would close it and its owner

Every section that reaches a conclusion ends with "what remains open" for

that conclusion specifically. One consolidated gap register at the end of a

report is where gaps go to be ignored.

Depth failure modes to check for before sending

| Symptom | What it means |

|---------|---------------|

| The report's recommendations are the source document's recommendations | Moves 1–4 were not attempted |

| Every hypothesis is still "possible" | Move 3 was not attempted |

| The only number in the executive summary is a restatement of the input | The study produced description, not analysis |

| "Further study is recommended" with no named test | Move 7 was not attempted |

| No sentence in the report contradicts anything | Moves 2, 4, and 8 were not attempted — verify this is genuinely the case, not avoidance |

Principle 1 — Traceability Chain (MANDATORY)

Every figure → discussion → result must be linkable both ways:

results.json[key] ──→ discussed in §3.2 ──→ shown in figures/fig_03.png
              ↑                                        ↓
              └──── caption references key ────────────┘

Required JSON schema fragment:

{
  "figures": [
    {
      "id": "fig_03",
      "path": "figures/fig_03_phase_envelope.png",
      "caption": "Phase envelope at 95 mol% methane composition.",
      "discussed_in": "section_3_2",
      "linked_results": ["dew_point_T_K", "cricondentherm_K"]
    }
  ],
  "results": {
    "dew_point_T_K": {"value": 244.3, "unit": "K", "source": "neqsim TPflash"},
    "cricondentherm_K": {"value": 254.8, "unit": "K", "source": "calcPTphaseEnvelope"}
  }
}

Principle 2 — Executive Summary Structure

Every report opens with a 1-page executive summary built from these blocks (in order):

  1. Objective — one sentence: "Determine X for Y under Z conditions."
  2. Method — one sentence: "Using EOS / equipment model / standard X."
  3. Key result — 2–3 numbers with units and uncertainty (P10/P50/P90 if Monte Carlo run)
  4. Conclusion — one sentence with the engineering decision
  5. Limitations — 1–2 bullets on key caveats

The executive summary and problem description are report-blocking sections. Do

not leave template text such as "[Replace with ...]" or "[Auto-populated ...]"

in a final HTML/Word report. If results.json and task_spec.md contain enough

information, generate these sections automatically from those sources; otherwise

pause and fill the missing source material before finalizing.

Principle 3 — Units & Significant Figures

column (or row) with the unit in the header and the same number of decimals down a column. Keep a table to at most

nine columns and split wide ones by topic (for example one table for pressure and one for temperature per well).

For results over several days or cases put the days in the columns and the quantities in the rows, mark the

calibration day (cal), and use a separate table per quantity group. validate_task_results.py warns on both.

Principle 4 — Citations

For every standard, correlation, or vendor source:

Per **API 521 §5.15 (2020)**, fire heat input is Q = C × F × A_w^0.82 [API521-2020].

References:
[API521-2020]  API Standard 521, Pressure-Relieving and Depressuring Systems, 7th ed., 2020.
[NORSOK-P-100] NORSOK Standard P-100, Process Systems, Rev. 3, 2018.
[Turton-5e]    Turton et al., Analysis, Synthesis and Design of Chemical Processes, 5th ed., 2018.

Avoid: "as is well known", "industry standard says". State the source.

Principle 5 — Math (KaTeX)

For documents rendered through Jekyll docs site:

Inline: the acentric factor $\omega$ affects $\alpha(T_r, \omega)$.

Display:
$$
P = \frac{RT}{v - b} - \frac{a(T)}{v(v + b)}
$$

Never use \[ ... \] or \( ... \) — they are stripped by markdown processors.

Principle 6 — Figure Quality

Every plot must have:

fig, ax = plt.subplots(figsize=(8, 5), dpi=150)
ax.plot(T, P, label="Phase envelope")
ax.scatter([T_op], [P_op], color="red", marker="x", s=80, label="Operating point")
ax.set_xlabel("Temperature [K]")
ax.set_ylabel("Pressure [bara]")
ax.set_title("Phase envelope — sales gas, 95% C1")
ax.legend(loc="best", fontsize=9)
ax.grid(alpha=0.3)
fig.tight_layout()
fig.savefig("figures/fig_03_phase_envelope.png", dpi=150)

Principle 7 — Uncertainty Disclosure

Standard / Comprehensive task reports MUST include:

Quick tasks may skip MC but still must state qualitative uncertainty.

uncertainty sub-schema (validated by the gate). p10, p50, p90 must be

numeric and monotonically ordered (p10 ≤ p50 ≤ p90); a non-numeric or

out-of-order percentile is a hard error in both TaskResultValidator and

devtools/validate_task_results.py. Include method and n_simulations

(≥ 200 when the Monte Carlo loop runs full NeqSim simulations).

The community skill neqsim-uncertainty-quantification emits this block

directly (UncertaintyReport.to_results_json()), in the correct ascending

convention, with the sampler and seed, the tornado, a convergence check, and a

blockers field. Note the trap it guards: p10 here is the 10th percentile

(the low estimate), the opposite of the petroleum resource convention where

P10 is the optimistic volume. State which convention a resource table uses.

Principle 8 — Risk Section

Standard / Comprehensive reports include a risk register scored on a 5×5 matrix

(probability × consequence) per ISO 31000 / NORSOK Z-013, with mitigation actions.

Use CODE0 classes.

Principle 9 — Benchmark Validation

Every numerical result must be benchmarked against an independent reference:

| Output | Benchmark |

| ----------------------- | ------------------------------------------------------- |

| Phase envelope | Lab CME / CVD / GERG-2008 reference |

| Equipment cost | Vendor budget quote OR another correlation |

| Heat duty | Hand check: Q = ṁ × cp × ΔT |

| PSV size | Independent calc per API 520 worked example |

| NPV | Two methods: DCF and (NPV/CAPEX) ratio |

State the benchmark in the report. No benchmark = result is provisional.

benchmark_validation sub-schema (validated by the gate). Emit it as a JSON

array (or an object wrapping benchmarks/cases). Each entry must carry:

| Field | Purpose |

|-------|---------|

| what / name / output / parameter | what was compared |

| reference / source / benchmark / reference_value | the independent reference |

| delta_pct / deviation_pct / status / neqsim_value | the comparison result |

| status (optional) | one of PASS, FAIL, WARN, INFO (any other value is rejected) |

| disposition (optional) | why a FAIL stands, e.g. two published input sources disagree and nothing was tuned |

A FAIL above 20% deviation is an ERROR ("model may need retuning") unless it carries a

written disposition; then it is reported as a documented finding. Use it only when the

deviation is not a model misfit: a conflict between two input sources, or a cross-check of

an alternative model that the deliverable does not use. Still name the failure in

conclusions (the gate looks for "fail", "discrepancy", "deviation").

When the compared value comes from another simulator (OPM Flow, OLGA) write it as

calculated, not neqsim_value: the column is then headed "Calculated value" rather than

"NeqSim value". benchmark_validation.value_label overrides the heading explicitly.

Figures are numbered in the order of figure_captions when the PNG names carry no numeric

prefix (fig01_, 01_); otherwise alphabetically. Write the captions in narrative order.

Report presentation conventions (rendered by devtools/task_template/step3_report/):

to its observation; only figures without a discussion stay in Results. Numbers follow

document order.

Word cross-reference (REF field) and an HTML link. Never type "Figure 3" by hand.

decimals, optional group), or list them in a top-level headline_results array. The

Results section then shows only those; the complete list moves to an appendix. A

key_results list of more than 15 unmarked rows raises a consistency WARNING.

results.json (or be derived in the text); untraced numbers are listed in the report quality

appendix.

scripts, roots, sums, Greek, text); otherwise as images. The HTML bundles KaTeX and works

offline. DOCX/PDF carry title, author, keywords, alt text on figures and a results.json hash.

Both TaskResultValidator (Java) and devtools/validate_task_results.py (the CI

gate) now check this structure, so a malformed benchmark block fails the gate

instead of crashing the report generator.

The community skill neqsim-benchmark-reference-data emits this block directly

(BenchmarkReport.to_results_json()), together with the citation, the authority

tier of the reference, whether the deviation is inside the reference's own

uncertainty, and the three-graded-point check. Prefer it over hand-writing the

block with pasted reference literals.

Principle 9a — Fluid tuning quality (any report that uses a tuned fluid)

When a fluid was characterised or tuned to PVT data, the report must show **how

good the tuning is**, not only that it was done. Required content: (1) per fluid,

raw vs tuned vs lab for GOR, stock-tank density and saturation pressure with the

tuned parameters and bound flags (a parameter pinned at its bound is a

finding); (2) per-sample prediction error (Psat, GOR, STO, CME above/below Psat,

DLE Rs/Bo, viscosity) with mean and worst case; (3) parity and CME/DLE overlay

figures; (4) untuned or out-of-method fluids (gas cap, gas condensate) named and

marked NOT TUNED, and lab inconsistencies flagged rather than fitted; (5) what of

the tuning is carried into the downstream model; (6) every experiment row labelled

fit target or check (not fitted), the untuned "before" computed with the optimiser

start values, and any process-level calibration (e.g. produced-gas heavy-end leaning)

listed in the parameters with its bounds and its validation role (calibrated, hold-out,

fitted separately). Put the numbers in

results.json tables and figure_captions. A model that is validated against

plant data but whose fluid quality is not shown is incomplete. Detailed recipe:

enterprise-process-notebook-workspace (section "Fluid tuning quality is reported,

always") and the community skills neqsim-pvt-regression-characterization-factor

and neqsim-pseudocomponent-split-characterization.

Machine-readable block. Put the quality data in a pvt_tuning_quality block of

results.json; devtools/validate_task_results.py checks it (and warns when a task

text says it tuned to PVT data but has no block), and the report generator turns it

into three tables (before/after error, tuned parameters with bounds, excluded data).

Schema (one entry per sample and experiment type, not per fluid average):

"pvt_tuning_quality": {
  "summary": "...", "eos": "...", "data_source": "...", "objective": "...",
  "experiments": [{"sample": "810102", "type": "dew point", "metric": "error vs lab",
                   "before": 43.4, "after": 8.2, "unit": "%"}],
  "parameters": [{"name": "S", "initial": 0.5, "tuned": 0.98, "lower": 0.05, "upper": 0.98, "at_bound": true}],
  "exclusions": [{"sample": "TE CME", "reason": "lab CME flat near 1.0 = run on separator liquid"}],
  "figures": ["step2_analysis/figures/fig01_pvt_tuning_quality.png"]
}

For gas condensate the experiment types are dew point, C7+ density, CME (average

absolute deviation), CVD cumulative production and CVD Z; for oil they are Psat, GOR,

STO density, CME above/below Psat, DLE Rs/Bo and viscosity. "Before" is the untuned

template, so the tuning gain is visible. A lab experiment that is physically

invalid for the fluid (for example a gas "CME" that stays at 1.0 because it was run

on separator liquid) is listed under exclusions, never fitted. Reference example:

the Troll A task (2026-10-06).

Principle 9c — Operating-data benchmark with hold-out windows (any plant model)

A plant model is reported against measured data in a benchmark section next to the fluid-tuning section (both are standard). Required: (1) the windows

(dates, role = calibration / hold-out, regime: line-up, rate level, season) and why each was chosen; (2) every compared quantity with its class:

by_construction (an input, or closed by the allocation: export gas, produced water, anti-surge inlet flows), calibrated (a scalar fitted on the calibration window; name it and its value),

independent (in no fit), excluded (a meter proved inconsistent with two others; give the evidence); (3) the tolerance of each quantity, set before the runs;

(4) error per window in a quantity x window table, calibration vs hold-out, pass/fail, and the pass rate of the independent hold-out rows only; (5) mass and energy balance closure per window;

(6) failing rows explained (cause hypothesis, evidence, what would discriminate), never hidden by a looser tolerance. Machine-readable: benchmark_validation in results.json with

windows, comparisons (parameter, benchmark, neqsim, deviation_pct, class, window, tolerance, pass), max_deviation_pct, all_within_tolerance, independent_holdout_pass_rate.

The tables array carries the quantity x window table; the parity / bar figure goes to figure_captions. Reference example: a platform well-to-export task (2026-10-19, private task folder).

Principle 9b — Evidence Matrix for Safety Studies

For safety-critical studies, especially trapped-liquid fire rupture, relief,

depressurization, MDMT, and consequence handoffs, include an evidence matrix and

assumptions/gaps register in both results.json and the report:

| Report item | Required content |

|-------------|------------------|

| Evidence matrix | Document id, title, revision, page/sheet, extracted value, unit, confidence, consuming calculation |

| Assumptions/gaps | Missing value, screening default used, impact on result, action to close, owner if known |

| Standards basis | Standard number/year, clause/table/equation, PASS/FAIL/INFO status |

| Segment summary | Segment id, limiting mode, event times, PFP margin, source-term handoff status |

| Recommendations | Specific action: relief/PFP/procedure/data retrieval/detailed specialist analysis |

| Existing wells and blocked outlet (overpressure study of a new source on an existing separator/header) | existing_wells_comparison block and two report sections: existing/previous wells and inputs (riser/inlet pressure, SIWHP, rates, choke dP), PSV/relief sizing basis, ratio new/historical, effect on failed-open/choke-collapse relief load, blocked outlet against current inflow with an explicit "governs / does not govern" (see neqsim-hp-lp-interface-overpressure section 2b) |

| Scenario register and valve Cv (any overpressure / failed-open report) | A scenario table at the start of the relief chapter (study status calculated / simple estimate / qualitative, valve states, limiting mechanism, relief rate, governing), an installed-Cv input table with source (document, revision, page or ASSUMED) and quality grade, a Cv sensitivity for failed-open and blocked outlet with figure and table, and a "what the report can and cannot be used for" statement; keys scenario_register, valve_cv_inputs, cv_sensitivity (see neqsim-hp-lp-interface-overpressure section 2c) |

Do not hide missing material certificates, flange/gasket/bolt ratings, fire-study

heat fluxes, or acceptance criteria. A study may still provide screening results,

but the executive summary must state when final design is blocked by evidence gaps.

Safety-critical reports must include a front-page readiness badge or equivalent

plain-text label: NOT_READY, SCREENING, or DESIGN_GRADE. The label must be

backed by visible blockers/findings and must not imply sign-off when any

controlled-document, historian/tagreader, pressure-profile, or material basis is

missing or unreviewed.

For script-backed studies, study_config.yaml is the source of truth for whether

notebooks are required. A report generator should not warn about missing planned

notebooks when the configuration explicitly says notebooks.required: false,

execution_required: false, and execution_engine: script.

Before report generation, check consistency between task_spec.md, analysis

scripts/notebooks, results.json, and the report narrative. Method changes such

as replacing a reconstructed depressurization profile with a directly exported

dynamic NeqSim profile must be reflected everywhere, including

capability_assessment.md, analysis.md, and neqsim_improvements.md when

workflow gaps were found.

Principle 10 — `results.json` Master Schema

{
  "task_id": "2026-04-26_my-task-slug",
  "task_type": "B-process",
  "scale": "standard",
  "objective": "...",
  "method_summary": "...",
  "agent_workflow_plan": {
    "discovery": {"skill_search": "devtools/skill_search.py", "agent_search": "step1_scope_and_research/agent_plan.json"},
    "agents_used": [ {"name": "...", "repo": "neqsim|community|enterprise", "role": "...", "loads_skills": ["..."]} ],
    "workflow_type": "single_agent | composition_pattern | declarative_workflow",
    "workflow": "e.g. process.model -> mechanical.design, or composeWorkflow id / harness study name",
    "rationale": "why this composition utilizes the needed functionality"
  },
  "key_results": {
    "primary_metric": {"value": 1.23, "unit": "MW", "uncertainty": "±10%"},
    "...": {}
  },
  "results": { "...": "..." },
  "figures": [ { "id": "fig_01", "path": "...", "caption": "...", "discussed_in": "...", "linked_results": [] } ],
  "tables": [ { "title": "caption text", "headers": ["Year", "Utilisation [%]"], "rows": [[2026, 117]] } ],
  "reproducibility": {
    "summary": "where the scripts live and which README is the user guide",
    "environment": ["interpreter", "JDK", "NeqSim version or checkout, incl. unreleased changes the run depends on"],
    "steps": ["script 1 - what it writes", "script 2 - ...", "generate_report.py"],
    "checks": ["values a rerun must reproduce, e.g. 2026 bottleneck inlet scrubber at 117 %"],
    "what_if": ["where to edit to change an input, and which step to rerun from"]
  },
  "uncertainty": { "method": "Monte Carlo n=10000", "P10": ..., "P50": ..., "P90": ... },
  "risks": [ { "id": "R1", "description": "...", "P": 3, "C": 4, "score": 12, "mitigation": "..." } ],
  "standards_applied": ["API 521-2020", "NORSOK Z-013"],
  "benchmarks": [ { "what": "PSV area", "reference": "API 520 Ex 5", "delta_pct": 1.2 } ],
  "evidence_matrix": [ { "document": "...", "value": "...", "used_for": "..." } ],
  "assumptions_gaps": [ { "gap": "...", "default_used": "...", "impact": "...", "action": "..." } ],
  "contributor_ranking": [ { "contributor": "...", "lever": "...", "improvement_factor": 20.0, "basis": "..." } ],
  "ruled_out": [ { "hypothesis": "...", "margin": "3 orders of magnitude", "basis": "...", "residual_caveat": "..." } ],
  "source_recommendation_assessment": [ { "recommendation": "...", "verdict": "SUPPORTED|SUPPORTED_WITH_CORRECTION|CHALLENGED", "basis": "..." } ],
  "robustness": { "parameter": "...", "range": "...", "conclusion_stable": true, "crossover": "..." },
  "conservatism": [ { "value": "...", "direction": "upper_bound|lower_bound", "effect_on_result": "..." } ],
  "discriminating_test": { "test": "...", "why_it_discriminates": "...", "outcome_if_positive": "...", "outcome_if_negative": "...", "cost": "..." },
  "depth_score": { "achieved": 8, "of": 9, "missing": [ { "move": 5, "why": "..." } ] },
  "limitations": ["..."],
  "next_actions": ["..."]
}

Common Mistakes

A model-based deliverable is not finished until a reader can rerun it. Emit

reproducibility (rendered as the report appendix Reproducing the Results) and

keep a task-root README.md with the same prerequisites, the exact command

sequence, the check values a rerun must hit, and where to edit to change a case.

Name any unreleased NeqSim change the results depend on.

| Mistake | Fix |

| ------------------------------------------------ | ------------------------------------------------------------------- |

| "About 100 kg/hr" in a final report | State value with sig figs and uncertainty |

| Mixing barg / bara silently | One pressure basis per report; document conversion |

| Cost without escalation year | Always cite CEPCI year and Class of estimate |

| 6-decimal numbers from a simulator | Round to 3 sig fig; simulator precision ≠ result accuracy |

| Figure with no caption / no axis units | Reject — these are unread placeholders |

| "Standard says" without citation | Provide doc, year, section |

| No benchmark validation | Run hand check or compare to literature; report deviation % |

| Discussion that doesn't reference its figures | Use [fig_03] cross-references in prose |

Word output — use the configured template

For a formatting redesign or professional-presentation review, also load

neqsim-report-design-and-visual-qa.

Its opt-in neqsim report-design command creates a separate template-preserving

Word revision and, with --render, a PDF plus every page preview. Inspect the

rendered pages before claiming layout quality; XML checks alone cannot detect

awkward breaks, dense tables or header collisions. A formatting pilot must leave

the original report and technical evidence unchanged.

The Word report is built from the template the user configured, so the

deliverable carries their organisation's styles, fonts, headers and footers.

Resolution: generate_report.py --template PATH > NEQSIM_REPORT_TEMPLATE >

the saved report_template in ~/.neqsim/task_defaults.json

(neqsim --set-report-template "PATH") > built-in styling.

unless the user asks for it.

do not ship an unbranded report instead.

neqsim report <task folder>, which always runs the current canonical

generator, over the stale vendored copy.

Page measure and captions (handled by the generator — do not fight it)

A corporate .dotx is often A4 landscape, because it was built for forms.

Left alone, that sets a 30-page report on a 9.5 in measure — about 140

characters per line, twice the readable optimum — while every figure and table

sized for a portrait page leaves a third of the width empty. The generator

therefore normalises the body to portrait and caps the measure at 6.7 in,

keeping the template's own styles, header, and footer. Override per study with

report.orientation: portrait | landscape | template in study_config.yaml, or

--orientation VALUE; template keeps whatever the template declares.

The rest follows from the measure and needs nothing from the author:

scaled down so it still fits the printable height with its caption.

style, using SEQ fields, so the numbering survives an insertion and Word can

build the List of Figures and List of Tables placed after the contents.

table does not belong in the table of contents.

are right-aligned, and a table with 7+ columns steps its type size down.

are printed in full: 370 523, never 3.705e+05.

Report file names are the report title

Report files are named after the study title, so a deliverable is identifiable

outside its task folder: "Hydrate margin for the export line" produces

step3_report/Hydrate_margin_for_the_export_line.docx and .html (paper:

..._Paper.docx). Set study.title in study_config.yaml, or pass --title,

before generating. Files written under an earlier title are deleted on

regeneration — a superseded report must never sit beside the current one.

Title and task statement — the first thing the reader sees

The report title is the study title, and the task is stated before any

analysis. Both are resolved at run time, so nothing has to be edited in the

generator:

study.title > first # heading of task_spec.md > task folder name.

Set study.title (and optionally study.author, study.classification) —

a study left at "[Title]" degrades to a folder-name title.

the ## Objective section of task_spec.md > "Study scope: <title>.".

Write it as 2-4 sentences saying what was asked and what must be delivered;

it is rendered as a "Task" callout at the top of the report body, so a reader

who opens the document cold knows the question before the answer.

never quoted — fill it or delete it.

study_config.yaml study.*; values left at auto are simply not shown.

Validation Checklist (RUN BEFORE FINALIZING)

Depth (Principle 0) — check these first; they cannot be fixed by editing prose:

Hygiene:

Pre-send review (the pass that catches stale numbers)

A report assembled incrementally accumulates contradictions: an early section

states a first-pass number, a later section supersedes it, and the early one

survives. consistency_checker.py does not catch these — they are internally

well-formed. Run this pass separately, immediately before sending.

1. Repeated-quantity sweep. Extract every quantity that appears more than

once and confirm the values agree:

import re, pathlib
t = pathlib.Path("step3_report/report.md").read_text(encoding="utf-8")
for q in ["boiling", "design flow", "margin"]:          # quantities to audit
    for i, line in enumerate(t.splitlines(), 1):
        if q in line.lower() and re.search(r"\d", line):
            print(i, line.strip()[:120])

Anything quoted at two different values must be either reconciled or explicitly

labelled with its basis ("13.1 bar against the design pressure, 10.3 bar against

the measured pressure").

2. Numbered-list integrity. Lead-ins like "Three further findings:" drift out

of sync when items are added. Count the items.

3. Section numbering. List ^## headings and check for gaps — an §8 → §10

jump reads as a missing section to a reviewer.

4. Stale open/closed statuses. Every "Open", "not yet retrieved", "would be a

free test" in the limitations and next-actions sections must be re-read against

what the study actually ended up doing. Work performed late in a study routinely

closes gaps that the gap register still lists as open.

5. Alternative-basis values must be in results.json too. If the report

quotes a quantity on both a design and a measured basis, both belong in

results.json — otherwise provenance closure passes on the primary value while

the secondary one is unsourced.

Recurring physical-quantity trap. A T → P_saturation table row read as if

that temperature were the boiling point at the operating pressure. Invert the

curve at the operating pressure; do not quote the nearest row. The same trap

applies to any monotonic property table used backwards (dew point, hydrate

curve, wax appearance).

Document packages: structural rules for multi-report deliverables

When several reports, registers or filled templates are produced as one package (for example a gate or

design-basis package), these rules apply on top of the principles above. Each was a recurring cause of rework.

  1. Depth minimums are structural, not editorial. Per document type, define the minimum of numbered chapters,

tables, figures, registers and requirement-by-requirement rows. Encode it in the builder or the quality checker

(a count that fails the build), not in a reviewer's remark. A document that passes the layout checks but has fewer

chapters or tables than its type requires is not finished.

  1. Authored chapters must be consumed by the builder. Prose written as a separate input (sections file, chapter

JSON, hand-off) is worthless if the builder does not read it. After every build, compare the authored chapter list

with the headings of the produced document and fail on any authored chapter that is missing, empty or only in a

side file. Prefer one source per chapter; never paste text into the output after the build.

  1. Verdict on the first page. The first page after the cover carries the verdict (status, readiness, the three to

five headline numbers, the decisions asked for, the blocking open points), each traceable to a data source. A

reader must not have to reach chapter 8 to learn whether the package is usable.

  1. No machine or tool-style wording in documents for human readers. No schema names, field keys, file names,

snake_case identifiers, concept or case ids that are not defined in the document, tool or generator names,

"TO BE CONFIRMED"-style tokens without an owner, or serialized dictionaries. Translate to the reader's vocabulary;

keep identifiers in appendices that explain them. Scan the extracted text of the finished document for these

patterns as an automated check.

  1. Table text size and over-printing. Run an automated check of the rendered document: no table font below the

template minimum (about 8 pt at print size), no table wider than the text block, no text clipped or printed over

other text or drawings (title blocks, stamps, logos). Then view a first page, a table page and a figure page of

every document.

  1. Machine-readable hand-offs, not scraping. Every generator writes the structured results the next builder needs

(see handoff/process_basis.json of process-study-report). Downstream builders read the hand-off, not the Word file.

Related Skills

Equipment datasheet packages

For mechanical sheets, render MechanicalDatasheet sections, sources and

statuses. Present a basis and revision, process and mechanical design

conditions, dimensions, materials, loads, weights, inspection and test basis,

and a tag-linked connection schedule where the model exposes it. Keep

equipment-specific holds visible where they affect the interpretation.

When rendering equipment sheets, use the structured EquipmentDatasheetGenerator

package as the data source. Show tag, document number and revision on each page

and reconcile the complete set against the P&ID register. Keep every stream

value labelled with its unit and case. Show dry, operating and test weights in

separate fields, include their scope and basis, and preserve explicit holds.

Present known subtotals with coverage counts whenever a project total is unavailable.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.