Index of every page on this site: llms.txt
All skills
Run it yourself

Writes automated tests that hunt for errors - edge cases above all, plus logic, structure, state, error-handling and permission errors - and proves each test by making it fail. After feature code it writes the tests and breaks the guarded code to see each one go red; for a bug it writes the reproduction test first and watches it fail before the fix. Covers choosing unit, integration or end-to-end, test doubles, test data, browser tests and flaky tests. Use when writing or fixing tests, adding coverage for a change, after implementing a feature, when fixing a bug, when a test is flaky or a UI test broke, or when the user asks "what could break here" or to check edge cases. Not for listing manual test cases - use test-cases; not for proving a change in the real app against an answer key - use prove; not for reviewing a diff - use `review`; not for finding why something fails - use debug; Go specifics live in the go skill.

  • 6 files
  • 28.9 KB
  • Updated 3 weeks ago
  • GitHub
Use this Skill: https://skilld.dev/gh/avik-creator/agent-skills/testing

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesfailures.md

≈626 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Testing failure paths

Read when the change retries, deduplicates, takes webhooks, has timeouts, sends email, or calls a model. All of these run locally or against test setups, never production.

Retries

Assert the call count in three cases: a transient error is retried, the limit gives up with the right error, and a permanent error is not retried at all.

Duplicates and idempotency

  • Send the same request twice at once: one durable effect.
  • The same idempotency key with a different payload: refused, not silently accepted.

Webhooks

  • Missing, wrong or tampered signature: refused, and nothing is recorded. Compute the signature over the raw body bytes, and test a body with the same JSON but different bytes.
  • The same event delivered twice, or twice at once: handled once.
  • An older event arriving after a newer one cannot undo a final state.
  • A crash after recording "seen" but before the work: the event can still be processed.
  • A payment is confirmed by the verified event on the server, not by the browser redirect.

Timeouts

Make the dependency slow, and assert both the timeout behaviour and that the stub was actually reached. Why: a timeout test that never reaches the stub passes for the wrong reason.

Injected faults, without extra tools

  • Point the dependency at a port you have shown is closed.
  • Restart the process between two steps of a flow, on the same data, and check the session and the idempotency key survive.
  • A rollback or crash test hits the real thing: a real transaction against a real database, a real process exit. An injected exception is not a crash.

Time and randomness

Freeze the clock and seed the random source. A billing or provider clock that runs on the provider's servers can't be moved by a fake clock; use the provider's test-mode clock.

Email

Capture the real message with a local SMTP catcher. Use a unique recipient per test, poll rather than sleep, and read only messages for that recipient. Extract exactly one code or link and check its origin. Prove the test by breaking the template.

LLM features

  • Assert properties or a schema, never exact wording.
  • Run at the temperature production uses. Where output varies, run N times; the pass rate is the user's decision.
  • An LLM used as a judge is checked against human labels before you trust it.
  • Check tool choice: the right tool, no tool call for small talk, and the tool's error and timeout paths. Treating model output as untrusted is the security skill's.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at a0324a3. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 3 weeks ago

README badge

README badge for avik-creator/agent-skills/testing