Cross-Cutting Tools

Operating Statement to Database

Transforms a tokenized/extracted operating statement (any line type: actual, budget, reforecast, prior-year; any period grain; monthly, quarterly, annual-summary, or multi-scenario) into validated, account-level, period-level database records mapped to the canonical chart of…

Open GitHub source

No packaged download — skills install from the open-source plugin repo. Read the SKILL.md and bundled files below before you install.

How to install a skill →
01 · Problem

Transforms a tokenized/extracted operating statement (any line type: actual, budget, reforecast, prior-year; any period grain; monthly, quarterly, annual-summary, or multi-scenario) into validated, account-level, period-level database records mapped to the canonical chart of…

Derived from the skill’s “Skill description” section.

02 · Who & When

Explicit triggers:

  • "load / ingest / normalize this operating statement (or P&L) into the database"
  • "map the operating statement to our chart of accounts"
  • "get this budget / reforecast / prior-year statement ready as account-level records"

Implicit triggers:

  • Extracted operating-statement tokens (from document-to-data-room-extractor, t12-normalizer, or any OCR / PDF-table / LLM-extraction step) exist and must become typed, validated, account-by-period records with provenance.
  • The statement is NOT a strict trailing-twelve actuals run — it carries budget, reforecast, prior-year, or underwritten columns, a non-monthly grain, or several scenarios side by side. The constrained T-12 preset does not fit; this general object does.

Do NOT activate for:

  • A strict trailing-twelve-month actuals statement where the 12-period preset is the right entry point — use t12-to-database.
  • Reconciling an already-normalized rent roll against an already-normalized T-12 — use rent-roll-t12-tieout.
  • Rent-roll ingestion — use rent-roll-to-database.
  • Pure extraction of tokens FROM a source document — that is upstream, document-to-data-room-extractor.

Derived from the skill’s “When to Activate” section.

03 · How It's Done Today

Not documented yet for this skill.

04 · What This Skill Changes

A canonical operating-statement payload: {doc_type, records (account x period lines), aggregates, periods, issues}. Each records[] line carries account_code, raw_account_name, canonical_account, statement_section, line_type, fiscal_period (YYYY-MM, reusing the monthly-actuals period field), amount (sign-normalized), and the provenance bundle with source_ref in data-room/<doc>#<anchor> form. aggregates carries periods_present, periods_expected, expense_sign_convention, revenue_actual, operating_expense_actual, and noi_actual (all from the actual line_type). Plus: an account-mapping report, a validation report, a data-quality grade (A/B/C + 0-100), and a human-review queue.

Derived from the skill’s “Output Format” section.

05 · Risks & Caveats

Not documented yet for this skill.