Skip to content
Back to skills

Twin Check

ASecurity

Guard important business arithmetic with an independent, dependency-free reference implementation checked against the production code's real output. Use for prices, billing, quotas, scores, forecasts - any figure where a wrong answer still looks like an answer.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 14, 2026
ai-agentspython

Security analysis

A100/100

Scanned October 14, 2026

npx -y skills add Fadi88/one-man-startup --skill twin-check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Twin Check?

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

Security grade badge for Twin Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fadi88-twin-check/badge)](https://www.skillsdirectory.com/skills/fadi88-twin-check)

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: twin-check
description: "Guard important business arithmetic with an independent, dependency-free reference implementation checked against the production code's real output. Use for prices, billing, quotas, scores, forecasts - any figure where a wrong answer still looks like an answer."
---

<!-- Generated by tools/sync_adapters.py from skills/twin-check/SKILL.md. Edit the source, not this file. -->

# Twin check

Some bugs produce a number that is wrong and looks right. Tests written by the same mind that
wrote the code tend to share its mistakes. A twin is a second implementation, written plainly,
in a different form, and compared against the real code on real inputs.

## How

- Put the twin under `tools/twins/`, in plain Python with no libraries that do the hard part for
  it (a twin that calls the same library proves the library works, not your code).
- Read constants from the production source rather than retyping them, so a changed constant
  cannot hide.
- Have the production test suite dump its outputs for a fixed set of inputs, and a check under
  `tools/checks/` compare twin and dump field by field, with a stated tolerance.
- A missing dump is a loud SKIP, never a pass.
- The twin's header lists the cases where a wrong answer would still look plausible, and the
  check covers each.

Use it where it pays. Most code does not need a twin; money and anything the founder makes
decisions from usually does.

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.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.