Risk-Sized Tests
by Trindorai
Decide which tests a change actually needs and write them well — regression tests for bug fixes, sharp edge inputs, deliberate failure paths, minimal mocking.
Free
Risk-Sized Tests
Example session with this skill installed
Add tests for the discount calculation fix I just made.
- Read your context and instructions
- Compiled the risk-sized tests
Tests to add (bug fix + money → regression test plus boundaries):
applies_no_discount_below_threshold— 99.99, the boundary that was wrongapplies_discount_at_exact_threshold— 100.00rounds_discount_to_cents— 33.335 → 33.34rejects_negative_total— failure path
Skipped: no mocks needed; the calculator is pure. Verified the first test fails on the old code.
Connects securely to your tools. The creator never sees your data.
About this skill
Agents either skip tests or bury a change under twenty near-identical happy-path cases. This skill makes test coverage match risk.
What it does
- Sizing table: what a bug fix, new branch, new endpoint, refactor, or getter actually needs, with heavier coverage for parsing, money, dates and security checks.
- Edge-input checklist: empty values, boundaries, duplicates, Unicode, time zones and DST, repeated calls. The agent keeps only what applies.
- Failure paths on purpose: bad input, timeouts and failing dependencies, asserting the specific error.
- Writing rules: one behavior per test, names that describe behavior, deterministic tests, and the project's existing framework and helpers.
- Mock only what you must: fakes for external, slow or nondeterministic things; real in-memory implementations for the rest.
- Can it fail? Each new test is checked against broken or old code, so it isn't just noise.
Language- and framework-agnostic.
Free. Want a second opinion on the tests afterwards? Adversarial Review has a dedicated tests review template.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 16 days ago
- Free with an Agensi account
Requires
Nothing to install.
Permissions
No special permissions declared or detected
What's inside
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.