agentleFS
anubhav-qtanubhav-qt/engineering-skills/skills/feature-test/SKILL.md

feature-test

Skill2 starsChanged 10 days agoMITView on GitHub

Prove one feature or bug fix works before calling it done, checking only what the change touches. Tests the changed code, tries every changed input and button in the browser, profiles when speed matters, then plants bugs one at a time to check the tests catch them. Use when finishing a feature or bug fix, or when the human asks to test, verify or prove a change works. The whole suite, full type check, build and key journeys run once per PR in full-test.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. 921-Jared/feature-test★ 2same name
    2. telefrek/vallorcine★ 0same 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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Make sure tests cover it, following references/testing.md.

    line 20
  2. Very specific:

    Run the tests related to the change, as references/related-tests.md says.

    line 23
  3. Very specific:

    If anything a user sees changed, test it in the browser as references/ui.md says: every changed input and button, every edge case.

    line 31
  4. Very specific:

    If the change touches a loop, a query, big data, startup, or anything on a hot path, profile it as references/profiling.md says.

    line 35
  5. Distinctive:

    Every bug must be caught. For each survivor, add the missing test and run the script again, or explain why that bug changes nothing.

    line 48
  6. Distinctive:

    Never edit, skip, loosen or delete a test to make it pass, and never special-case test inputs in the code.

    line 58
  7. Distinctive:

    If the tests already fail before you start, stop and tell the human.

    line 66
  8. Very specific:

    If the script says an earlier run did not finish, a file may still hold a planted bug.

    line 68

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Feature test

"Done" means proven, not believed. Every claim in the final report comes with the command that showed it and what that command printed.

This skill checks only what the change touches, so it stays fast. The whole test suite, the full type check, the production build and the key user journeys run once per PR, in full-test.

Steps

  1. Find what changed. Read the diff (git diff, plus new files) and work out what a user can now do, or what bug is now gone.
  2. Make sure tests cover it, following references/testing.md. For a bug fix, the new test must fail on the old code first. Watch it fail.
  3. Run the tests related to the change, as references/related-tests.md says. If something fails, fix the code, never the test (unless the test itself is wrong, and then say so in the report).
  4. Lint the changed files, and type check them if the project's type checker can check single files with the project's settings. If it can only check the whole project, skip it and say full-test runs it.
  5. If anything a user sees changed, test it in the browser as references/ui.md says: every changed input and button, every edge case.
  6. If the change touches a loop, a query, big data, startup, or anything on a hot path, profile it as references/profiling.md says. Otherwise skip it and say why in the report.
  7. Plant bugs in the changed code, one at a time, as references/planted-bugs.md says. Use the related tests from step 3 as the test command:

    python3 "${CLAUDE_SKILL_DIR}/scripts/plant_bugs.py" \
      --bugs <bugs.json> --test "<test command>" --root <project folder>

    Every bug must be caught. For each survivor, add the missing test and run the script again, or explain why that bug changes nothing.

  8. Report to the human, within the reply length the project asks for:
    • what was checked, with the command and its result for each;
    • what was skipped and why;
    • anything not run, marked "not checked yet".

Gotchas

  • Never edit, skip, loosen or delete a test to make it pass, and never special-case test inputs in the code. If a test is wrong, say so.
  • A test you never saw fail proves nothing. Planting bugs is how you see it fail.
  • "Tests pass" is a claim. The command and its output are the proof.
  • Picking tests by file misses changes to config, dependencies, test setup, data files and shared helpers. When the change touches any of those, or the related set is unclear, run the whole suite.
  • If the tests already fail before you start, stop and tell the human; the planted-bug script will refuse to run anyway.
  • If the script says an earlier run did not finish, a file may still hold a planted bug. Compare it with the .plant-bugs.bak file next to it, restore it if needed, delete the backup, then go on.

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.