Skip to content
Back to skills

Billing Money Helpers

ASecurity

When changing amounts in shop/billing/, keep them integer cents and scale them with the rates helpers

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added October 17, 2026
ai-agents

Security analysis

A100/100

Scanned October 17, 2026

npx -y skills add samugit83/cortex --skill billing-money-helpers --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Billing Money Helpers?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Billing Money Helpers
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/samugit83-billing-money-helpers/badge)](https://www.skillsdirectory.com/skills/samugit83-billing-money-helpers)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: billing-money-helpers
description: When changing amounts in shop/billing/, keep them integer cents and scale them with the rates helpers
paths:
  - "shop/billing/**"
---

# Money is integer cents

Amounts in `shop/billing/` are always a `Money` of integer cents. Never use
`float`, the `/` operator, `round()` or `Decimal` on an amount here.

Rates and factors arrive as text (`"8.25"`, `"1.0842"`). Scale amounts only with
the helpers in `shop/billing/rates.py`:

- `percent_of(amount, "8.25")` — 8.25 % of `amount`
- `times(amount, "1.0842")` — `amount` × 1.0842
- `scale(amount, num, den)` — `amount` × num / den
- `split(amount, n)` — n parts that add up exactly
- `parse_rate("8.25")` — `(825, 100)`

`make lint` rejects float arithmetic in `shop/billing/`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.