Skip to content
Back to skills

Pricing Safety

ASecurity

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

  • 51 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 10, 2026
ai-agentspython

Security analysis

A100/100

Scanned November 10, 2026

npx -y skills add Oqura-ai/optim-jev --skill pricing-safety --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pricing Safety?

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

Security grade badge for Pricing Safety
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/oqura-ai-pricing-safety/badge)](https://www.skillsdirectory.com/skills/oqura-ai-pricing-safety)

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: 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.

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.