pricing-safety
Safely change TinyCart pricing calculations while preserving integer-cent arithmetic, discount bounds, and focused unit-test coverage.
SKILL.mddemo/tinycart/.claude/skills/pricing-safety/SKILL.md
GitHubPricing safety
Use this skill for changes to src/tinycart/pricing.py.
- Represent money only as integer cents.
- Reject invalid negative prices and quantities.
- Clamp discounts so a result cannot become negative.
- Run
python run_tests.pyafter changes.