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.
- 9validation rules
- 9pipeline stages
- 12development quarters
- 2 minto build and check
See it in Quantemplate
The pipeline

The flow

The checked output

What it checks
9 rules 7 Fail 2 Warning
- Claim datesDates of loss and quarter-end reporting periods 4 Fail, 1 Warning 5
- Claim amountsIncurred equals paid plus reserve, and nothing is negative 2 Fail 2
- Claim historyOne row per claim per quarter, and large falls in incurred 1 Fail, 1 Warning 2
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
- Stages 1–2 Prepare and union Tidy each quarter’s claims bordereau and stack them
- Stages 3–4 Per claim and quarter Count rows and total incurred for each claim in each quarter
- Stages 5–6 Joins Bring the row counts and the previous quarter’s incurred onto each row
- Stage 7 Validate Run the 9 checks
- Stages 8–9 Triangle Incurred by year of loss and development quarter, rounded to 2 decimal places
What’s in the download
- The 9 checks as JSON, and a table of every check with its formula and notes
- Quarterly claims bordereaux: good, and with rows built to fail each check
- The triangle the good data should produce, and the rows each check should flag
- A Claude skill that builds the pipeline and checks the results
- A snapshot of the finished pipeline and the scripts that build it from your browser
Build it
- Unzip the download and copy the folder in
skillsinto~/.claude/skills/. - With Claude in Chrome signed in to Quantemplate, ask Claude Code:
Build the loss triangles pipeline from the loss-triangles folder.
- 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
- Add each quarter’s claims bordereau as an input to stage 1.
- Each bordereau should list every claim reported to date, open or closed. One that drops closed claims makes the later cells too low.
Contact the Quantemplate support team, or use your AI agent, to build custom logic for your use case.
Limits
- It uses indemnity only: Total Incurred - Indemnity. Fees can be added the same way.
- It builds the triangle but not development factors or projections.
- Quantemplate guesses each output column’s type from its values, so a column of 5-digit amounts can be labelled as a date. The amounts are right; only the label is off.
- Currencies aren’t converted.
- The test data is fictional.
- The build doesn’t set up Auto Run, Auto Export or feeds.
- The agent works through the app in your browser, so changes someone makes in the app whilst it’s working can trip it up.