Skip to content

Oqura-ai/optim-jev / demo/tinycart/.claude/skills/pricing-safety

pricing-safety

Verified

Safely change TinyCart pricing calculations while preserving integer-cent arithmetic, discount bounds, and focused unit-test coverage.

FileKindSize
SKILL.mdskill md441 B
---
name: pricing-safety
description: Safely change TinyCart pricing calculations while preserving integer-cent arithmetic, discount bounds, and focused unit-test coverage.
---

# Pricing 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.py` after changes.
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall