pal-modeling

pal-modeling is a skill for Claude Code, Codex from ProteusLLP/proteusllp-actuarial-library. It costs 48 tokens per session (891 once invoked), scanned A, original, MIT.

A Python modelling skill for actuarial work using the Proteus Actuarial Library (PAL). Actuarial models estimate insurance losses, prices and risks using mathematical simulations.

In plain words
What is it for?
Use it to fit loss severity and frequency models, combine them, model dependence with copulas, analyse reinsurance such as excess-of-loss cover, and calculate risk measures.
Why use it?
It reduces the risk of guessing PAL's APIs or using documentation that does not match the installed version. It helps produce runnable models with checked parameters, reproducible simulations and tests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it to fit loss severity and frequency models, combine them, model dependence with copulas, analyse reinsurance such as excess-of-loss cover, and calculate risk measures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/proteusllp/proteusllp-actuarial-library/pal-modeling
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ProteusLLP/proteusllp-actuarial-library --skill pal-modeling
Clone the repo
git clone --depth 1 https://github.com/ProteusLLP/proteusllp-actuarial-library

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pal-modeling

README.md
[![agentmods](https://agentmods.dev/badge/skills/proteusllp/proteusllp-actuarial-library/pal-modeling/github.svg)](https://agentmods.dev/skills/proteusllp/proteusllp-actuarial-library/pal-modeling)
Your own site
<a href="https://agentmods.dev/skills/proteusllp/proteusllp-actuarial-library/pal-modeling"><img src="https://agentmods.dev/badge/skills/proteusllp/proteusllp-actuarial-library/pal-modeling/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pal-modeling

Your own site · 80×15
<a href="https://agentmods.dev/skills/proteusllp/proteusllp-actuarial-library/pal-modeling"><img src="https://agentmods.dev/badge/skills/proteusllp/proteusllp-actuarial-library/pal-modeling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 891 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.00891
Opus 5.5 $0.00019 $0.00356
Sonnet 5.5 $0.00010 $0.00178
Haiku 4.5 $0.00005 $0.00089

Measured 16d ago against content hash 43386dac582a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pal-modeling scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/pal-modeling/SKILL.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PAL modelling skill

Use this skill when the user requests Python actuarial modelling with PAL. The PyPI package is proteusllp-actuarial-library; import it as pal.

Discover, then write

  1. Check whether PAL is installed and inspect the local version rather than assuming the newest documentation matches the environment.
  2. When a task is familiar, search the packaged, executable recipes first:
    from pal import api
    
    matches = api.recipes("price excess of loss layer")
    source = api.recipe(matches[0]["id"])["code"]
    
    Run and adapt a relevant recipe; do not invent a method or import path.
  3. For an unfamiliar class, use api.search("keyword") and api.describe("pal.distributions.Gamma"). Verify constructor parameter names, meaning, units and the supported return type from the installed version. Consult the PAL cookbook and the API reference.
  4. Use from pal import StochasticScalar, ProteusVariable, FreqSevSims, FrequencySeverityModel for core classes and from pal.distributions import Gamma, from pal.contracts import XoL, etc. for domain classes.
  5. Produce a runnable program with a deterministic seed, a manageable initial simulation count, and tests or assertions that express the mathematical result and coupling relationships.

Essential actuarial semantics

  • Gamma's theta is a scale, not a rate; LogNormal's mu and sigma parameterise the logarithm of loss.
  • A StochasticScalar has one value per simulation. A FreqSevSims contains claim-level values and an index mapping them to simulations. Use .aggregate() or .occurrence() for annual summaries.
  • Operate on PAL stochastic variables, rather than extracting, reordering and reconstructing raw NumPy arrays. PAL's coupling groups preserve upstream dependencies, including after applying copulas.
  • A copula applied to generated marginals alters their joint dependence without altering their individual values.
  • Model a policy-limited large-loss observation as right-censored if the loss hits the limit. Reporting thresholds lead to left truncation. Fitting by MLE and plugging in estimates does not account for parameter uncertainty.
  • Check whether the model is an occurrence/claim layer or aggregate contract; technical expected recovery alone is not a market premium.
  • PAL can run with CuPy when PAL_USE_GPU=1 is configured before import; avoid unnecessary host copies. RQMC changes the sampler, not the model, and uncertainty estimates require independent scrambles.

Read the full file on GitHub · 78 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago First seen · 78 lines · 48 tokens per session scan A 43386dac582a

Subscribe to this mod's changes

pal-modeling is a skill published in the GitHub repository ProteusLLP/proteusllp-actuarial-library (12 stars, last pushed yesterday), licensed MIT. It adds 48 tokens to every session and 891 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-20.

Related

pal-modeling compared with skills from other repositories

pal-modeling next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pal-modelingProteusLLP/proteusllp-actuarial-librarySkill12yesterdayMITA48Claude Code, Codex
insurance-expertpersonamanagmentlayer/pclSkill471mo agoApache-2.0A65Claude Code
transcribe-filingvadim-filimonov/openraterSkill04mo agoApache-2.0A102Claude Code, Codex
monte-carloPlanExeOrg/PlanExeSkill405todayMITA71Claude Code
neqsim-integrated-production-and-lifecycleequinor/neqsimSkill179todayApache-2.0A98Claude Code, Codex
neqsim-utility-designequinor/neqsimSkill179todayApache-2.0A114Claude Code, Codex
fin-paper-figurecsmar432/finai-researchSkill1125d agoMITA58Claude Code, Codex