agentleFS
hemapriyan-rkhemapriyan-rk/claude-rigor-skills/skills/test-architect/SKILL.md

test-architect

Skill1 starsChanged 2 months agoMITView on GitHub

Generate tests focused on edge cases, invalid input, concurrency, and failure injection — not coverage padding. Use whenever the user asks for tests to be written, or when code touches concurrency, external I/O, network calls, or ML inference and needs real confidence rather than a high coverage number. Do not use this to generate ten variations of the same happy-path test.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Don't inflate the count: report the number of distinct *risks* covered, not the number of test functions written — five tests covering five …

    line 24
  2. Distinctive:

    Don't write a test that mirrors the implementation's own logic back at it (asserting the function does what its code says it does, rather …

    line 25
  3. Distinctive:

    Don't skip the concurrency and failure-injection cases because they're harder to set up — those are exactly the cases most likely to be …

    line 26

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Test Architect

Ten tests that all exercise the same happy path with different literal values raise the coverage number and raise nothing else. This skill exists to find the tests that would actually have caught a real bug.

For each function/module, identify

  • Boundary values — empty, zero, max, one-past-max, negative where unexpected, the specific off-by-one the loop structure invites.
  • Invalid / malformed input — not just "wrong type" but the malformed-but-plausible input that a real caller would actually send (truncated payload, unexpected encoding, a field that's technically present but empty).
  • Concurrent access patterns — for anything touching shared state: what happens when two callers hit this at once? Is there a test that actually exercises that, or only single-threaded tests of concurrent-safe-looking code?
  • Failure of each external dependency — for every network call, DB call, or file I/O: a test for timeout, a test for an error response, a test for a partial/truncated response. "The happy path works" tells you nothing about what happens when the dependency doesn't cooperate, which in a distributed system is most of the time that matters.
  • ML-specific: out-of-distribution input, adversarial-looking input, and the low-confidence path — does the system's defined fallback (see ml-security-audit if one hasn't been checked yet) actually get exercised by a test, or does it only exist in a comment?

If a real bug from this codebase is known

Prioritize writing the test that would have caught it before writing anything else — a regression test for a bug that already happened is worth more than five speculative edge-case tests.

Anti-patterns

  • Don't inflate the count: report the number of distinct risks covered, not the number of test functions written — five tests covering five real risks beats fifteen tests covering three.
  • Don't write a test that mirrors the implementation's own logic back at it (asserting the function does what its code says it does, rather than what the spec/contract requires) — that passes even when the implementation itself is wrong.
  • Don't skip the concurrency and failure-injection cases because they're harder to set up — those are exactly the cases most likely to be undertested elsewhere, which is why they matter more here.

Output

For each test added, state which specific risk it covers, in one line — if a test doesn't map to a stated risk, reconsider whether it's earning its place in the suite.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.