Skip to content
Back to skills

Rule Testing

ASecurity

Tests — a claimed behavior must have an assertion that fails when it breaks. A repository rule for **/*.spec.ts, **/*.spec.tsx; read it before editing a file there.

  • 8 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 9, 2026
ai-agentstesting

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add geniro-io/geniro-app --skill rule-testing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rule Testing?

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

Security grade badge for Rule Testing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/geniro-io-rule-testing/badge)](https://www.skillsdirectory.com/skills/geniro-io-rule-testing)

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: rule-testing
description: "Tests — a claimed behavior must have an assertion that fails when it breaks. A repository rule for **/*.spec.ts, **/*.spec.tsx; read it before editing a file there."
---
<!-- GENERATED by scripts/sync-agent-rules.mjs from .claude/rules/testing.md. DO NOT EDIT: edit the source, then run `pnpm sync:agent-rules`. -->

# Tests — no false pins

- A test whose name or comment claims to pin a behavior must fail when that behavior is reverted. For each title and comment, name the assertion that would fail; if none would, fix the assertion or delete the claim.
- Assert the real observable, never a proxy the test fabricated: not a string the spec built itself, not an outcome that holds with the fix deleted. Spy the real key, read the produced value, drive the genuine error path.
- A defensive branch (try/catch, guard) gets a test that enters it, or a later cleanup removes it with a green suite.

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.