Skip to content
Back to skills

Ripwire Write Tests

ASecurity

Write tests for EXISTING code that has none — 'this is untested, add coverage', 'add a safety net first'; verify a new test reaches its intended code: --seams ranks untested cross-module edges, --callers the outside contract. Diff test selection → change-check. For one target one --seams or --callers pass suffices.

  • 2,592 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 4, 2026
ai-agentsrustgoshellbash

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add redhat-et/ripwire --skill ripwire-write-tests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ripwire Write Tests?

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

Security grade badge for Ripwire Write Tests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/redhat-et-ripwire-write-tests/badge)](https://www.skillsdirectory.com/skills/redhat-et-ripwire-write-tests)

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: ripwire-write-tests
description: >
  Write tests for EXISTING code that has none — 'this is untested, add coverage', 'add a safety net
  first'; verify a new test reaches its intended code: --seams ranks untested cross-module edges,
  --callers the outside contract. Diff test selection → change-check. For one target one --seams or
  --callers pass suffices.
allowed-tools: Bash, Read
---

# Writing tests with ripwire

> Routing: does a diff you wrote have test cover → **ripwire-change-check** · did your OWN code get better/worse →
> **ripwire-quality-bar** · don't know which symbol is the bug → **ripwire-find-bug**.

This skill answers "what should I test, and what must it cover" — not "is my diff safe".

1. **Find the gap** — `ripwire <dir> --seams --legend=compact`: cross-module call edges no test reaches, the highest-value targets.
   Prefer a seam over a lone symbol; a widely relied-on symbol with no `tested="1"` beats an uncovered leaf (`--metrics`
   shows the lens, `in=` the fan-in).
2. **The contract from OUTSIDE** — `ripwire <dir> --callers=SYM --legend=compact`: the preconditions and argument shapes callers rely on.
   Then `ripwire <dir> --expand=SYM` for the branches to cover, not only the happy path.
3. **Verify it registers** — `ripwire <dir> --affected=<the file you changed>` must now list your new test file; if not,
   the harness is not discovering it (naming, registration). What an existing test covers, or the first call when a
   test fails and you only have its name: `ripwire <dir> --exercises=test/<harness>`.
4. **Close the loop** — `ripwire <dir> --test-gate` on the symbol's file goes green once it leaves the untested blast
   radius.

## Stop rule and trust

For one target, one `--seams` or `--callers` pass suffices — then write the test. `tested` is omitted, never a
fabricated zero, when no indexed test reaches a symbol; shell/subprocess tests sit outside the call graph, so an absence
is a structural finding, not proof that no test exists.

## Reference file

`write-tests-reference.md` — each step in full, the `tested=1` lens, `--exercises`, the Output shape.

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.