What it does
bug-trap is a skill for writing and fixing tests that catch real bugs. It tests behaviour, fakes only the device boundary, and seeds data the way the product writes it.
It is suited to cases where a bug needs a test that fails first, where a unit test is failing or flaky, or where someone asks for a test for a specific bug or asks why a test is flaky. The publisher refers to test-like-a-user for the standard every test is held to.
Safety
Our team has not reviewed this resource. Only automated rules checked it; resources with high-risk signals are not published. These are signals, not a guarantee that installing it is safe. Try it in a sandbox project first.
- Runs code or changes an assistant's behaviour, as every resource of this type does. This is not a finding about this one.
Sources
- AI Templates (aitmpl) first seen 20 Nov 2026 · last seen 29 Nov 2026 · its page on the source · figures reported by the source: aitmpl downloads 3
bug-trap
Write and fix tests that catch real bugs, by testing behaviour, faking only the device boundary and seeding data the way the product writes it. Use when a bug needs a test that fails first, or a unit test is failing or flaky, or when the user says "add a test for this bug", "fix this failing test" or "why is this test flaky". For the bar every test is held to, use test-like-a-user.
As shown on www.aitmpl.com when we last read it