build-pricing-model
Build a Swallow pricing engine configuration from a natural language description of an insurance product
Skill by llow-group
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/llow-group-build-pricing-model
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/build-pricing-model
What's inside
- Skill name
build-pricing-model- Description
- Build a Swallow pricing engine configuration from a natural language description of an insurance product
- License
- MIT
- Instructions
- 31 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Build Pricing Model
The user wants to create a Swallow pricing engine configuration. Follow this process:
1. **Understand the product** — Ask clarifying questions if needed: what's being insured, what factors affect the price, what exclusions exist, what the output fields are.
2. **Build the input schema** — Define all quote input fields. Every input MUST have `key`, `exp`, `label`, `sub_label` (min 20 chars, broker-facing), `type`, and `def`. Without `key` and `exp`, the engine ignores quote overrides and always uses `def`. Input types: `string`, `number`, `integer`, `decimal`, `boolean`, `date` only.
3. **Design the step pipeline** — Every step MUST have `id`, `step`, `name`, `key`, and `description`. Work through the logic in order:
- Collection steps for rating table lookups (compressed format: `[[headers], [row1], ...]`, must have `retain: true`)
- Transform steps to parse/normalise/combine values (must have `retain: true`; `min()`/`max()` NOT supported in `exp`)
- Exclusion steps for validity rules
- Refer steps for manual review triggers
- Calculation steps for premium, commission, tax (MathJS: use `and`/`or` not `&&`/`||`)
- Excess and endorsement steps if needed
**Important:** Never use a step type name or its plural as a step key — e.g. never `key: "exclusion"`, `"exclusions"`, `"refer"`, `"refers"`. These collide with Swallow's built-in aggregate variables. Use descriptive prefixed names (e.g. `"uw_exclusions"`, `"risk_refers"`). Never use `key` as a data column name in collections. Never use `factors`, `modular`, `batch`, `links`, `label`, or `code` steps.
4. **Define the output** — Set the `result` formula, `valid` expression, and output format. Use `{{exclusions.count()}} == 0` in the `valid` expression. `output.format` is mandatory — expose per-coverage premiums and key intermediate values. Multiplicative factor defaults must be `1.0` not `0`.
5. **Add tests** — Create at least 3 test cases: happy path, exclusion trigger, and edge case. Every test must include an `output` object with `result` (number) and `valid` (boolean) — never leave `output` as `{}`. For excluded cases, set `valid: false` and `result: 0`. ALL tests must pass — zero exceptions.
6. **Validate** — Call `validate_swallow_project` via MCP to check the schema.
7. **Test** — Call `test_swallow_project` via MCP to run the pricing engine and verify results match expectations. If they don't, read `result.debug.steps` to trace intermediate values and find the FIRST step where values diverge.
8. **Iterate** — Fix any validation errors or test mismatches and re-run until all tests pass. Never set expected results to match engine output to force a pass — fix the model instead.
Write the final project JSON to a file for the user.From llow-group/swallow-claude-plugin, MIT.
More from llow-group/swallow-claude-plugin
- 0.406score
excel-to-swallow
llow-group
Convert an Excel rating workbook (.xls/.xlsx) into a Swallow pricing engine configuration.
SkillDFreshness: DClaude Code +9 - 0.404score
swallow-docs
llow-group
Load the Swallow Pricing Engine documentation and JSON schema as reference context
SkillDFreshness: DClaude Code +9 - 0.399score
validate-project
llow-group
Validate an existing Swallow project configuration against the schema
SkillDFreshness: DClaude Code +9 - 0.224score
test-project
llow-group
Run a Swallow project's tests through the pricing engine and analyse results
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Mar 26, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from llow-group
- 0.406score
excel-to-swallow
llow-group
Convert an Excel rating workbook (.xls/.xlsx) into a Swallow pricing engine configuration.
SkillDFreshness: DClaude Code +9 - 0.404score
swallow-docs
llow-group
Load the Swallow Pricing Engine documentation and JSON schema as reference context
SkillDFreshness: DClaude Code +9 - 0.399score
validate-project
llow-group
Validate an existing Swallow project configuration against the schema
SkillDFreshness: DClaude Code +9
Cite this page
build-pricing-model skill. Agent Mart. https://agentmart.dev/skills/llow-group-build-pricing-model (last updated 2026-10-24)