---
title: "Spec-driven test rebuild - Air Market"
description: "Your package has a pile of tests, but nothing written down that says what the code is supposed to do. This writes up the current behavior as a set of numbered rules, then rebuilds the tests so each o…"
canonical: "https://airmarket.ai/app/spec-driven-tests"
---

[Air Market](/) / [Developer Tools](/category/devtools) / Spec-driven test rebuild

Skill by [tldraw](/@tldraw)

# Spec-driven test rebuild

Turn your package's tests into a written rulebook of behavior

## What this does

Your package has a pile of tests, but nothing written down that says what the code is supposed to do. This writes up the current behavior as a set of numbered rules, then rebuilds the tests so each one points at the rule it checks. Reach for it when you want a test suite anchored to something readable, or when you need a spec for a package before anything else happens.

### Top 3 things it does for you

- Rebuild my package's test suite around a written behavior spec
- Write a SPEC.md for a package
- Tie every test to the numbered rule it checks

## Information

**Spec-driven test rebuild at a glance**

|  |  |
| --- | --- |
| Kind | Skill |
| Publisher | [tldraw](/@tldraw) |
| Category | [Developer Tools](/category/devtools) |
| Works with | Agent Skills - an open standard supported by 40+ agents |
| Size | 8 KB |
| Licence | _Not recorded_ |
| Repository | [tldraw/tldraw](https://github.com/tldraw/tldraw/tree/328f33ab7ef8da2546b729a200348a2ffbd360a5/skills/spec-driven-tests) |
| GitHub stars | 51,433 (as of Nov 2026) |
| Installs | 69, counted by skills.sh (Nov 2026) |

## Security report

**Verified.** AIR scanned this exact version of Spec-driven test rebuild and flagged nothing. AIR's verdict: **safe**.

**What Spec-driven test rebuild's check was run against**

|  |  |
| --- | --- |
| Commit | 328f33ab7ef8da2546b729a200348a2ffbd360a5 |
| Content hash | c72ac134d3217e252c166c7277e8625a6ba813e866559369451ab7e225e225dc |
| Files read | [Browse the files at this exact commit](https://github.com/tldraw/tldraw/blob/328f33ab7ef8da2546b729a200348a2ffbd360a5/skills/spec-driven-tests/SKILL.md) |

A scan is named by the exact content it read, not by a version number. A different version is a different artifact, and nothing here applies to a version AIR has not scanned.

[Read the full security report for Spec-driven test rebuild](/security/spec-driven-tests)

## About Spec-driven test rebuild

This takes a package's unit test suite and rebuilds it around a behavior specification. The specification lives in a SPEC.md file and is derived from the implementation, so it reflects the code as it stands rather than what anyone hoped it would do. Every test in the rebuilt suite cites the numbered rule ID it belongs to.

It fits a few moments: a package whose tests should be rebuilt around stated rules, a package that needs a SPEC.md of its own, or a state or store spec process that needs repeating. In each case the order is the same, the rules get written down first and the tests follow them.

## What's inside

- SKILL.md - instructions

## Questions

### Is Spec-driven test rebuild safe to install?

AIR scanned this exact version of Spec-driven test rebuild and flagged nothing. AIR's verdict: safe. The verdict is named by the content that was read, at commit 328f33ab7ef8, so it cannot drift onto a version nobody scanned. The full report is at https://airmarket.ai/security/spec-driven-tests.

### How do I install Spec-driven test rebuild?

Open https://airmarket.ai/app/spec-driven-tests on Air Market and use the install action: Air Market hands Claude a prompt naming this exact skill, and Claude sets it up. Source, pinned to the exact commit this listing describes: https://github.com/tldraw/tldraw/tree/328f33ab7ef8da2546b729a200348a2ffbd360a5/skills/spec-driven-tests. Install from that link, not the branch.

## Related on Air Market

- [More Developer Tools listings](/category/devtools)
- [Everything by tldraw](/@tldraw)

---

Canonical URL: <https://airmarket.ai/app/spec-driven-tests>
