agentleFS
silvioventresilvioventre/lovable-skills/skills/build/test/SKILL.md

test

Skill4 starsChanged 4 months agoMITView on GitHub

Use when the user wants to verify that something works, prove a fix, or protect behaviour from breaking later — "test this", "write tests for the login form", "verify the checkout flow works", "does this actually work", "check it end to end", "make sure this doesn't break again", "add test coverage", "call that function with a bad input". Routes the request to the right verification tool for the kind of behaviour being checked — browser testing for real user flows, frontend tests for UI logic, direct calls and edge tests for backend rules. Not for diagnosing a failure whose cause is unknown, which the debug skill covers first.

98 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use develop, perf and 9 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.
  • bamechoSkill

    develop

    开发实施阶段详细规则;进入开发实施时读取;包含执行流程、代码规范、一致性审计、方案包迁移

    Also in 6 projects that use this

  • MicrosoftSkill

    perf

    Speed and memory performance rules for Rust crates, the Node addon, webui-framework, and webui-router.

    Also in 6 projects that use this

  • nicolasestremSkill

    document

    Create focused documentation for specific components or features

    Also in 8 projects that use this

  • BugRogerSkill

    project

    Project lifecycle management. Dispatches to Ada.

    Also in 6 projects that use this

  • vltingSkill

    scope

    Interactive planning + orchestration. Approval-gated workflow covering saga→epic→task hierarchy via progressive scoping.

    Also in 5 projects that use this

  • bitwize-music-studioSkill

    tutorial

    Provides interactive guided album creation for new users. Use when the user is new to the plugin or asks for a walkthrough of the album creation process.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 80 edited versions we read keep these.

  • 4

    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:

    Run the same input again and confirm the behaviour changed.

    line 39
  2. Distinctive:

    Add a test so it cannot regress silently.

    line 40
  3. Distinctive:

    When these tools run, the following is available and is usually enough to diagnose a failure without extra instrumentation: browser console …

    line 52
  4. Distinctive:

    Read that output before adding logging of your own.

    line 54

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

Pick the tool that matches the kind of behaviour being verified. Using the wrong one is how verification becomes slow, flaky, and eventually ignored.

Route by what you are verifying

What you want to checkToolPlaybook
A real user flow, end to endBrowser testingreference/browser.md
Something visibly broken to usersBrowser testingreference/browser.md
UI logic — conditional rendering, forms, filters, tablesFrontend testsreference/frontend-tests.md
A UI regression you want to prevent returningFrontend testsreference/frontend-tests.md
A backend rule with a specific inputDirect edge callreference/backend-tests.md
Business rules or permissions over timeEdge testsreference/backend-tests.md
What is worth testing at all—reference/what-to-test.md

The short version of the heuristic: if the issue is visible to users, use browser testing; if a rule should stay true over time, write a test; if it is backend logic, call the function directly first.

Two kinds of verification

Everything here is one of two things, and confusing them produces bad tests.

  • Checking a complete flow. Does sign-up actually work, start to finish, the way a person would do it? Slow, broad, catches integration failures nothing else catches.
  • Checking one rule in isolation. Given this input, does this component or function produce that output? Fast, narrow, precise about what broke.

You need both, for different things. A suite of only flow tests is slow and vague about failures; a suite of only isolated tests passes completely while the app is unusable.

The rules

Reproduce before you fix, confirm after. The sequence that makes verification worth its cost:

  1. Reproduce the failure with a specific input, and observe it.
  2. Apply the fix.
  3. Run the same input again and confirm the behaviour changed.
  4. Add a test so it cannot regress silently.

Step 1 is the one that gets skipped. A fix applied to a failure you never actually observed is a guess, and step 3 cannot tell you anything if you never established what step 1 looked like.

A test that has never failed has proven nothing. Write it so you have seen it go red for the right reason — against the broken code, or by temporarily breaking the thing it covers. A test that passes against both working and broken code is worse than no test, because it is trusted.

Verification runs when asked. These tools are not automatic. If a change deserves verification, run it or say plainly that it was not verified. Never report work as tested because tests exist in the project.

Never change a test to make it pass. A failing test is either a real regression or a wrong test, and those need opposite responses. Decide which before touching it. Loosening an assertion to get green converts a caught bug into a hidden one.

What gets observed

When these tools run, the following is available and is usually enough to diagnose a failure without extra instrumentation: browser console logs, network requests, test failures and build errors, and request and response data from direct backend calls.

Read that output before adding logging of your own. The evidence is frequently already there.

Report

  1. What was verified, and with which tool.
  2. The result — passing, failing, with the actual output for failures.
  3. What was not verified, explicitly. An untested path is a known gap, not a silent one.
  4. What was added, if tests were written, and what would make each one fail.

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.