agentsclimarketplace

Piggy test

Skill stvhanna/Piggy-/skills/piggy-test

Generate the smallest runnable test that would fail if the lazy solution broke — one check, no framework or fixtures unless the repo already uses one. Use when the user says "test this", "piggy test", "/piggy-test", or "write a check for this".From its SKILL.md

Install
npx -y skills add stvhanna/Piggy- --skill piggy-test

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.7 KB, as published. Nobody here has run it

Piggy Test

Write the smallest test that fails if the lazy solution breaks. This mirrors the README's rule that non-trivial logic leaves one runnable check behind — this skill is that check, on demand.

Rules

  • One test per behavior, not a suite. Cover the happy path and the one edge case that would actually bite (empty input, boundary value, the thing the ticket was about) — not every theoretical edge case.
  • Use whatever the repo already uses (assert, the installed test runner). Don't introduce a new test framework or fixture library for one check.
  • Trivial one-liners (a stdlib call, a native feature) need no test — say so and stop rather than manufacture one.
  • No mocks, no setup/teardown scaffolding, unless the function under test genuinely can't run without them.

Output

## Test
<the minimal runnable check>

## Covers
<one line: what breaking would look like if this failed>

Example

// piggy: assumes one @, no RFC 5322 edge cases
const isValidEmail = (s) => /\S+@\S+\.\S+/.test(s);

## Test
console.assert(isValidEmail('[email protected]') === true, 'valid email rejected');
console.assert(isValidEmail('not-an-email') === false, 'invalid email accepted');

## Covers
regex stops matching real addresses, or starts matching garbage.

Boundaries

One check, not coverage. For a fuller suite the user should say so explicitly — this skill's default is the minimum, not the maximum. "stop piggy-test" or "normal mode" to revert.

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.