agentleFS
timmo001timmo001/skills/testing/SKILL.md

testing

Skill1 starsChanged 55 days agoApache-2.0View on GitHub

Choose tests for their concrete regression value, avoid low-value coverage, and verify changes by exercising the real built behaviour. Use during implementation, fixes, planning, diagnosis, and code review when choosing verification, adding or changing tests, considering a missing-test finding, or when the user asks to test, check, or verify a change.

123 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use oss-pr, pr-automation 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.
  • 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

  • CES-LtdSkill

    pr-automation

    PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".

    Also in 3 projects that use this

  • ffsshhttiikkSkill

    cicd

    Continuous integration and delivery pipelines

    Also in 4 projects that use this

  • ffsshhttiikkSkill

    networking

    Practical application and coding skills for Networking

    Also in 3 projects that use this

  • JohnJBorenSkill

    ci-cd

    CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies

    Also in 9 projects that use this

  • Cogni-AI-OUSkill

    dotfiles

    Reference for repository dotfiles, including their purposes, standard configurations, and usage guidelines. You MUST load this skill when configuring, troubleshooting, or understanding repository dotfiles.

    Also in 3 projects that use this

  • +2 more from CES-Ltd
  • +1 more from ffsshhttiikk

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 105 edited versions we read keep these.

  • 11

    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:

    Add or request tests when they catch a meaningful failure or protect important behaviour that existing checks do not already cover.

    line 11
  2. Distinctive:

    If the value is uncertain, briefly describe the proposed test and what it would catch, then ask the user once.

    line 15
  3. Distinctive:

    Do not add rendering tests for views, panels, or components.

    line 19
  4. Distinctive:

    Do not request new tests for visual components in review.

    line 20
  5. Distinctive:

    Test meaningful logic behind a UI at its existing boundary rather than building a rendering harness around it.

    line 21
  6. Distinctive:

    Run the real thing read-only by default: help output, status and list commands, dry runs, or reading live state.

    line 27
  7. Distinctive:

    When a meaningful check would write, ask first and offer a safe target where the tool supports one: a throwaway directory, an overridden …

    line 28
  8. Distinctive:

    When you cannot run it yourself (hardware, a desktop session, credentials, or a running service you should not touch), tell the user …

    line 29
  9. Distinctive:

    Run relevant existing checks and repository-required validation.

    line 31
  10. Distinctive:

    Do not introduce test infrastructure, extract helpers, or redesign production code solely to make an optional test possible.

    line 34
  11. Distinctive:

    After checks pass, broaden or repeat them only for new changes, failures, or unresolved concerns.

    line 35

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

Tests Should Earn Their Place

  • Add or request tests when they catch a meaningful failure or protect important behaviour that existing checks do not already cover. Ordinary cases can be worthwhile; a test does not need to cover a rare edge case.
  • State the specific failure the test would catch and why that matters. An existing test file or helper, a convenient test seam, or the fact that code changed is not enough. Apply the same standard to new files and extra cases in existing files.
  • Honour explicit user requests and repository requirements. Do not use TDD, red-green-refactor, or test-first workflows.
  • Computations, data processing, utilities, config validation, and strategies are eligible areas, not automatic reasons to add tests. Do not cover every scenario, chase coverage, mirror the implementation, or exhaustively test behaviour that changes often.
  • If the value is uncertain, briefly describe the proposed test and what it would catch, then ask the user once. Tests with a clear benefit need no extra approval.

Rendering And Review

  • Do not add rendering tests for views, panels, or components. This includes assertions about text, CSS classes, styles, slots, option defaults, and templates that only display context or helper data.
  • Do not request new tests for visual components in review. For a clear visual change without screenshots or videos, suggest adding that evidence instead. Capturing it still requires the applicable browser permission.
  • Test meaningful logic behind a UI at its existing boundary rather than building a rendering harness around it.
  • A missing test is not a finding merely because code changed. Any test request must explain the meaningful failure left unprotected in the scoped change. Honour stricter repository prohibitions.

Verification

  • Prove the change works by using the real thing where you can: run the built command, app, service, or UI the way a user would. Unit and e2e tests are part of testing too, and may be exactly what the user means by "test it"; if the request doesn't make clear which, run the relevant suites and offer the real-world check as well rather than treating either one as the whole answer.
  • Run the real thing read-only by default: help output, status and list commands, dry runs, or reading live state. Do not write to real config, data, or accounts to prove a change.
  • When a meaningful check would write, ask first and offer a safe target where the tool supports one: a throwaway directory, an overridden config or save location, or a separate profile or session. Use it only once the user agrees.
  • When you cannot run it yourself (hardware, a desktop session, credentials, or a running service you should not touch), tell the user exactly what to run or where to look and what they should see.
  • Repository instructions may add specific checks, such as browser testing against a dev server; follow them.
  • Run relevant existing checks and repository-required validation. Prefer the smallest reliable check or direct observation for the changed behaviour.
  • When checks and result collection form useful independent work and delegation is available, hand them to a smaller, lower-effort helper against a stable revision. Use a background shell for a known command that needs no interpretation. Test design and unexplained failures can require stronger reasoning; do not route all testing work to a smaller model or let a check runner weaken assertions.
  • Maintain an existing test when an intentional behaviour change makes it stale; that does not authorise extra cases or broader coverage. Do not delete or weaken tests just to obtain a pass.
  • Do not introduce test infrastructure, extract helpers, or redesign production code solely to make an optional test possible.
  • After checks pass, broaden or repeat them only for new changes, failures, or unresolved concerns. State verification limits plainly.

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.