Skip to content
Back to skills

Real Tests And Verification

ASecurity

Use when fixing bugs, writing unit tests, or running test suites. Prevents fake passing tests, weakened assertions, and unverified fixes.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 29, 2026
ai-agentsgotestingapidatabase

Works with

  • api

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add Ganesh-Dark/ai-coding-agent-skills --skill real-tests-and-verification --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Real Tests And Verification?

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

Security grade badge for Real Tests And Verification
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ganesh-dark-real-tests-and-verification/badge)](https://www.skillsdirectory.com/skills/ganesh-dark-real-tests-and-verification)

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: real-tests-and-verification
description: Use when fixing bugs, writing unit tests, or running test suites. Prevents fake passing tests, weakened assertions, and unverified fixes.
---

# Real Tests and Verification

A green test badge means nothing if the test was weakened to pass or if the agent never actually ran the suite after its last edit.

## Rules

- Reproduce a bug before fixing it. Write a failing test or run a failing command first so you see the exact error before touching source code.
- Never weaken an assertion, wrap it in `try/except`, or delete a failing test to make a suite pass. Fix the code or report the failure honestly.
- Mock only external boundaries like network requests, third-party APIs, databases, or system clocks. Never mock the core function or logic you are supposed to be testing.
- Write two or three sharp tests (normal input, empty or null input, invalid input) instead of twenty repetitive happy-path tests.
- Always run the relevant tests or linter after your final code edit. In your final reply, state the exact command you ran and the exact pass/fail/skip counts. Never claim a full pass on a filtered or mocked run.

## Example

Bad:
`assert calculate_discount(100, 20) == 80` fails with `85`, so the agent changes the test to `assert calculate_discount(100, 20) >= 80` and says "All tests pass."

Good:
The agent keeps `assert calculate_discount(100, 20) == 80`, fixes the discount formula in `pricing.py`, runs `pytest tests/test_pricing.py`, and reports: "Ran `pytest tests/test_pricing.py`: 4 passed, 0 failed."

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.