loss-reserve-analysis
БесплатноЗапускает вложенные скриптыНе проверенPerform a loss reserve analysis on P&C insurance loss development triangles. Use this skill whenever the user uploads loss triangles (paid or incurred)…
от FDU-INS★ 84 звезды на GitHubОб этом скилле
Loss Reserve Analysis
Purpose
Analyze P&C insurance loss development triangles using standard actuarial reserving methods, flag anomalies, and produce a professional loss reserve analysis report in Excel. This skill applies standard methods described in Friedland's Estimating Unpaid Claims Using Basic Techniques and references relevant Actuarial Standards of Practice (ASOPs) for educational context.
When to Use
- User uploads a loss triangle (Excel or CSV) and wants reserve analysis
- User asks about IBNR, reserve adequacy, or ultimate loss estimates
- User mentions chain ladder, BF, or loss development
- User has Schedule P or similar statutory data
Workflow
Step 1: Identify and Parse the Triangle
- Check
/mnt/user-data/uploads/for uploaded files - Read the file using the
scripts/parse_triangle.pyhelper - If the data format is ambiguous, ask the user:
- Is this paid losses, incurred losses, or both?
- What is the evaluation date?
- Are the development periods in months or years?
- Is there an earned premium column or sheet for BF/Cape Cod methods?
Per ASOP No. 23 (Data Quality), Section 3.2 (Selection of Data), consider whether the data is appropriate for the intended analysis. Ask the user about known data issues such as changes in claim coding, coverage triggers, or reopened claims that may affect triangle integrity. See Friedland Ch. 1–4 for background on the claims process, data types, and meeting with management to understand context.
Supported formats:
- Standard triangle layout: rows = accident years/quarters, columns = development periods
- Columnar layout: columns for accident period, development period, and loss amount
- Transaction-level data: claim-level records with accident_date, evaluation_date, and loss amounts — automatically aggregated into a triangle
- Schedule P format (will need manual identification of the relevant section)
Sample data (in examples/) for testing all methods:
sample_triangle.csv— 5×5 paid loss triangle (2019-2023)sample_loss_transactions.csv— ~500 claims with paid, case reserve, and incurred columnssample_premium.csv— earned premium by accident year (enables BF and Cape Cod methods)
Step 2: Run the Analysis
Execute the main analysis script:
python scripts/reserve_analysis.py \
--input <path_to_triangle_file> \
--sheet <sheet_name_if_excel> \
--type <paid|incurred|both> \
--dev-periods <months|years> \
--premium <path_or_value_if_available> \
--output /home/claude/reserve_report.xlsx
The script runs these methods:
- Chain Ladder (Volume-Weighted) — Standard link ratio method using volume-weighted average factors (Friedland Ch. 7; foundational development method per ASOP No. 43 Section 3.6.1)
- Chain Ladder (Simple Average) — Arithmetic average of age-to-age factors for comparison
- Bornhuetter-Ferguson — If earned premium is provided; blends expected loss ratio with chain ladder (Friedland Ch. 9; Bornhuetter & Ferguson, PCAS 1972; incorporates credibility concepts per ASOP No. 25)
- Cape Cod — If earned premium is provided; derives expected loss ratio from the data itself (Friedland Ch. 10; Stanard, PCAS 1985)
- Expected Loss Ratio — If earned premium and an a priori loss ratio are provided (Friedland Ch. 8; useful when development data has limited credibility per ASOP No. 43 Section 3.6.1)
Step 3: Review Diagnostics
The script also produces diagnostic exhibits. Review these and call out to the user:
- Calendar year development test: Checks if development along diagonals is consistent. Large swings may indicate reserve strengthening/weakening or operational changes.
- High/low factor analysis: Flags individual age-to-age factors that are outliers (>2 standard deviations from the mean for that development period).
- Tail factor sensitivity: Shows how ultimates change under ±10% and ±25% tail factor variations.
- Incurred-vs-paid gap (if both triangles provided): Large divergence in later maturities may signal case reserve adequacy issues.
- Residual plots: Standardized residuals from the chain ladder model to check for systematic patterns.
These diagnostics align with ASOP No. 43 Section 3.7.1 (Reasonableness), which calls for the actuary to assess whether results are reasonable. The calendar year test and outlier analysis help identify data irregularities referenced in ASOP No. 23 Section 3.3 (Review of Data). See also Friedland Ch. 6 for discussion of the development triangle as a diagnostic tool and Werner & Modlin Ch. 6 for loss development context in ratemaking.
Step 4: Rebuild Workbook with Formula Transparency
The script produces a workbook with static values. Before presenting, rebuild the workbook so every derived cell uses a live Excel formula with a cached calculated value. This is the minimum transparency standard for actuarial work — a reviewer must be able to click
Установить loss-reserve-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл loss-reserve-analysis?
Perform a loss reserve analysis on P&C insurance loss development triangles. Use this skill whenever the user uploads loss triangles (paid or incurred), Schedule P data, or asks about reserve adequacy, reserve sufficiency, IBNR estimation, loss development analysis, loss reserve review, or ultimate loss projections. Also trigger when the user mentions chain ladder, Bornhuetter-Ferguson, Cape Cod, loss development factors, tail factors, or actuarial reserving methods. This skill reads triangles from Excel or CSV, runs multiple standard actuarial methods, diagnoses unusual patterns, and produces a formatted Excel report with exhibits. Even if the user just says 'check my reserves', 'run development on this triangle', or 'analyze my loss reserves', use this skill.
Как установить скилл loss-reserve-analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл loss-reserve-analysis запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic