agentleFS
adymireadymire/CraftLayer/skills/testing-and-quality/SKILL.md

testing-and-quality

Skill0 starsChanged 3 days agoMITView on GitHub

Choose focused automated tests and quality checks that verify user-visible behavior and protect important invariants.

2 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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    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 for feature implementation, bug fixes, refactors, and test strategy.

    line 10
  2. Distinctive:

    Do not add brittle tests solely to increase coverage or duplicate tests that assert the same behavior at every layer.

    line 14
  3. Distinctive:

    Use fixtures that are realistic but deterministic.

    line 28
  4. Distinctive:

    Avoid asserting private implementation details unless they are part of a supported contract.

    line 30
  5. Distinctive:

    Run targeted tests, then broader checks when shared behavior changes.

    line 32
  6. Distinctive:

    Prefer regression tests that fail before the fix.

    line 39
  7. Distinctive:

    Keep security and authorization boundaries directly tested.

    line 40
  8. Distinctive:

    Do not weaken assertions to make a failing suite green.

    line 41

≈ “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

Testing and Quality

When to use

Use for feature implementation, bug fixes, refactors, and test strategy.

When not to use

Do not add brittle tests solely to increase coverage or duplicate tests that assert the same behavior at every layer.

Inputs and assumptions

Inspect the test runner, project conventions, critical user flows, existing regressions, dependency boundaries, and CI constraints.

Workflow

  1. State the behavior or invariant that could fail.
  2. Choose the narrowest test layer that gives reliable evidence; add integration or browser tests for real boundary behavior.
  3. Cover success, important boundary cases, and meaningful failures.
  4. Use fixtures that are realistic but deterministic; isolate filesystem, network, time, and external services where needed.
  5. Avoid asserting private implementation details unless they are part of a supported contract.
  6. Run targeted tests, then broader checks when shared behavior changes.
  7. Report exact commands and limitations; do not claim unrun checks passed.

Decision rules

  • A passing test is evidence for its assertion, not proof of total correctness.
  • Prefer regression tests that fail before the fix.
  • Keep security and authorization boundaries directly tested.
  • Do not weaken assertions to make a failing suite green.

Example

For a retry fix, assert both that transient failures retry within the configured bound and that a permanent validation error is not retried.

Common failures

  • Snapshot updates that conceal behavioral regressions.
  • Tests that depend on order, wall-clock timing, or external network state.
  • Testing only helper functions while skipping the integration boundary.

Validation

Confirm the test fails for the relevant regression, passes after the change, is deterministic, and the reported command actually ran.

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.