Loss triangles

All territories

Stacks quarterly claims bordereaux and builds an incurred development triangle by year of loss and development quarter, after checking the claims data is fit for it.

Uses Lloyd’s v5.2 claims bordereau columns, so bordereaux prepared for the claims template feed it as they are.

Loss triangles
Checks, test data, an expected triangle, a build skill and build scripts. Zip, 40 KB.
Download the template

See it in Quantemplate

The pipeline

The loss triangles pipeline in Quantemplate: 9 stages listed from Prepare claims bordereaux to Incurred triangle, with the test claims bordereau uploaded to stage 1.

The flow

The pipeline’s Flow tab: the loss triangles pipeline on its own, because it reads no reference data.

The checked output

The incurred triangle: one row for each year of loss from 2022 to 2024, with incurred amounts by development quarter rounded to 2 decimal places, and zeros where a year hasn’t developed yet.

What it checks

9 rules 7 Fail 2 Warning

A rule set to Fail marks its rows as failed, and any failure blocks Auto Export if you set it up. Warnings are only reported. Validation never removes a row. Every rule and its formula is listed in VALIDATIONS.md in the download.

How the pipeline works

  1. Stages 1–2 Prepare and union Tidy each quarter’s claims bordereau and stack them
  2. Stages 3–4 Per claim and quarter Count rows and total incurred for each claim in each quarter
  3. Stages 5–6 Joins Bring the row counts and the previous quarter’s incurred onto each row
  4. Stage 7 Validate Run the 9 checks
  5. Stages 8–9 Triangle Incurred by year of loss and development quarter, rounded to 2 decimal places

What’s in the download

Build it

  1. Unzip the download and copy the folder in skills into ~/.claude/skills/.
  2. With Claude in Chrome signed in to Quantemplate, ask Claude Code:
    Build the loss triangles pipeline from the loss-triangles folder.
  3. Claude creates the datasets and stages, runs the test data and checks every rule’s result. This takes around 2 minutes.

The agent builds through the Quantemplate app’s own API in your browser. That API isn’t published, so if a release changes it, the build stops and the agent offers to click through the screens instead, which takes much longer. Review what the agent builds before you rely on it.

Using real bordereaux

Contact the Quantemplate support team, or use your AI agent, to build custom logic for your use case.

Limits