agentleFS
YuY-QKYuY-QK/agent-kit/skills/quality-testing/SKILL.md

quality-testing

Skill0 starsChanged 22 days agoMITView on GitHub

Design, write or review tests, regression scope and quality evidence — unit, component, integration, edge and failure cases. Use it for verification design and adding tests; don't use it when only implementing a feature with no verification design involved.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. k3ybladewielder/skills★ 7same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository7 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    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:

    Use risk-driven tests to prove product behaviour, data safety and failure recovery, rather than chasing test counts or covering …

    line 8
  2. Distinctive:

    Read the project rules and PRD acceptance criteria this verification needs.

    line 12
  3. Distinctive:

    When a requirement is unobservable or contradictory, raise it first.

    line 15
  4. Distinctive:

    Test names describe the condition and the observable result.

    line 42
  5. Distinctive:

    Use deterministic inputs and controllable dependencies: fixed seeds for randomness, controllable clocks for time.

    line 43
  6. Distinctive:

    Never delete failing tests, weaken assertions or fabricate mock success to hide a problem.

    line 48

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Quality and testing

Use risk-driven tests to prove product behaviour, data safety and failure recovery, rather than chasing test counts or covering implementation details.

Establish the basis

  • Read the project rules and PRD acceptance criteria this verification needs; don't load unrelated product material for purely local tests.
  • Confirm the current implementation from code and the target semantics from requirements; existing tests are not a source of truth above the product contract.
  • From the change, identify user paths, data boundaries, platform boundaries and the failure points most likely to cause damage.
  • When a requirement is unobservable or contradictory, raise it first; don't let tests make product decisions.

Risk matrix

Cover what applies:

  • Main flow, alternative flows and exit conditions.
  • Minimum, maximum, empty, invalid and boundary-crossing values.
  • Loading, empty, failure, retry, offline, permission denied and cancellation.
  • Repeated taps, concurrency, idempotency, stale async results and lifecycle transitions.
  • Data corruption, old versions, partial writes, full disks and recovery.
  • Task-specific input sizes, state spaces and timing/ordering boundaries.
  • Platform or plugin differences, and release-channel gates.

The higher the risk, the more important it is to prove that failures don't damage existing data — not just that the happy path returns the right result.

Choose the test level

  • Unit tests: pure models, algorithms, serialisation, state transitions, repository rules and error mapping.
  • Component tests: user-visible states, interactions, navigation and accessibility semantics.
  • Integration tests: databases, files, platform plugins and complete cross-layer flows.
  • Manual verification: visuals, motion, performance, real devices and system interactions that automation can't judge reliably (background execution, system permissions). Mark these separately; they can't be inferred from simulators or unit tests.

Pick the cheapest level that proves the risk most directly.

Writing tests

  • Test names describe the condition and the observable result; each test checks one behavioural reason.
  • Use deterministic inputs and controllable dependencies: fixed seeds for randomness, controllable clocks for time; no real network, random ordering or arbitrary waits.
  • Probability or distribution tests use fixed samples and sensible tolerances, alongside rule-level tests.
  • File and database tests use isolated temporary environments and clean up.
  • Assert public behaviour, state and persisted results; don't lock in private functions or unrelated UI structure.
  • A bug regression test must fail on the old implementation and pass after the fix.
  • Never delete failing tests, weaken assertions or fabricate mock success to hide a problem.

Running and reporting

Run the most relevant tests first, then widen to static analysis, the full suite and builds according to impact (using the project's commands). Report the commands actually run and their results, checks not run or blocked and why, and remaining risks; for complex or high-risk changes add a coverage matrix, the manual-check scope and follow-up gates.

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.