Entry skill for performing reserving analysis using the skills in this plugin.
When the user first triggers this skill, present the following message:
Reserving Analysis — TeamAnalyst Plugin
This workflow walks you through a full actuarial reserving analysis:
1. Project Setup — set up folders, install dependencies, choose interaction mode
2. Exploratory Data Analysis — review and summarize your data files
3. Data Intake — prepare triangles, calculate LDF averages and diagnostics
4. Chain Ladder Selections — AI-assisted LDF selections with actuarial judgment
5. Run Methods — project ultimates using Chain Ladder, Initial Expected, and BF
6. Ultimate Selections — select final ultimates across methods
Note: The Initial Expected method requires an Expected Loss Rate input file
(period, expected loss rate, expected frequency) and exposure data. The
Bornhuetter-Ferguson method builds on both Chain Ladder and Initial Expected
results — if IE can't run, BF will be skipped automatically. Chain Ladder
always runs. You'll be asked about your available data during data intake.
Interaction modes:
- Pause for Selections: pauses after LDF selections and after ultimate selections for your review
- Fully Automatic: runs start to finish with no pauses (except to confirm data format)
Throughout the workflow, keep the user you'll be kept informed of what is happening and why.
Then ask the user to identify the folder where they'd like to conduct this analysis. This should be an existing folder that contains (or will contain) their triangle data. Do not create a new folder in an arbitrary location. Once the user has confirmed the folder, proceed with the main operation flow below.
Always follow these steps when working on this project:
If a file named PROGRESS.md does not already exist in the project directory: copy this skill's PROGRESS.md file to a new file in the project directory.
Continue with the next step until all steps are complete.
When a PROGRESS.md step is started:
When a step is complete:
As you go:
Several Excel files in this workflow are designed for manual actuary input after generation. Never re-run a script that would overwrite these files once the actuary has edited them.
Key protected files:
selections/Chain Ladder Selections.xlsx — actuary enters LDF selections and reasoning here after 2a generates itRules:
2a-chainladder-create-excel.py if Chain Ladder Selections.xlsx already exists. The script will error to protect the file.2b-chainladder-update-selections.py if any selections are already present in the Excel. The script will error to protect existing actuary entries.REPLICATE.md so the analysis remains reproducible.