agentleFS
atstaeffatstaeff/ai-agents/skills/quality/testing/SKILL.md

testing

Skill4 starsChanged 23 days agoMITView on GitHub

Implement or improve tests that verify acceptance behavior and realistic regressions; report what executed checks establish and what remains unverified.

194 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use bundle-dependency-prs, update-library-template and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    bundle-dependency-prs

    Fix broken dependency update PRs and aggregate the ones that work into one PR.

    Also in 8 projects that use this

  • MicrosoftSkill

    update-library-template

    Merges the latest Library.Template into this repo (at position of HEAD) and resolves conflicts.

    Also in 8 projects that use this

  • NVIDIA-NeMoSkill

    build-and-dependency

    Dev environment setup for Megatron Bridge — container-based development, uv package management, lockfile regeneration, adding dependencies, Slurm container usage, and common build pitfalls.

    Also in 3 projects that use this

  • timmo001Skill

    changeset-scope

    Keep all scoped code work contained to the user-defined changeset. Use for implementation, fixes, diagnosis, refactoring, cleanup, and review when explicit instructions, named files, diffs, branches, pull requests, or injected work scopes define the boundary.

    Also in 3 projects that use this

  • JetBrainsSkill

    module-dependencies

    Add or modify IntelliJ module dependencies in `.iml` files.

    Also in 3 projects that use this

  • CES-LtdSkill

    oss-pr

    Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.

    Also in 3 projects that use this

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 175 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:

    Read the acceptance criteria, affected code and existing checks.

    line 8
  2. Distinctive:

    Run the relevant checks. Inspect failures and fix their cause.

    line 16
  3. Distinctive:

    Stop expanding checks once required coverage passes unless new changes, failures or unresolved concerns justify more.

    line 22

“Common” is measured: kept by at least 6 in 10 of the 175 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

Testing

  1. Read the acceptance criteria, affected code and existing checks. Obtain expected behavior from the requirement, consumer contract or a reproduced defect, rather than deriving every assertion from the new implementation.
  2. For a bug, reproduce it before the fix where practical and retain a focused regression check. Select unit, integration or end-to-end checks by the boundary at risk. Reuse the framework; prefer unittest for new Python stdlib projects.
  3. Exercise the primary outcome and material failure/recovery behavior. Keep fixtures small and deterministic; mock external boundaries rather than the behavior under test.
  4. Run the relevant checks. Inspect failures and fix their cause; do not weaken assertions, silently skip failures or change expected results merely to get green.
  5. For UI work verify the running user journey and relevant responsive/keyboard states when tools allow. For APIs exercise consumer-visible responses and relevant access and compatibility boundaries. Syntax checks alone do not establish these outcomes.
  6. Report commands, actual results, affected acceptance criteria and material gaps. Stop expanding checks once required coverage passes unless new changes, failures or unresolved concerns justify more. Do not add tests for wording-only changes.

Focused references

  • Detailed examples: load only the relevant section.
  • Verification evidence: link criteria, actual results and tested revisions where the project's existing format needs it.

Strategy examples: consult the affected test-boundary section only.

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.