agentleFS
lgtm-hqlgtm-hq/ai-skills/skills/test/SKILL.md

test

Skill1 starsChanged 10 days agoMITView on GitHub

Run tests with coverage reporting. Auto-detects test frameworks (Vitest, Playwright, RSpec, pytest, Jest, BATS, etc.) and runs appropriate test commands. Use when asked to run tests, check coverage, or validate code.

179 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use agent-context-isolation, agentica-infrastructure 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.

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 154 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run tests with coverage reporting.

    line 8
  2. Distinctive:

    When lintro is unavailable or you need to run specific test types, detect frameworks by checking for:

    line 17
  3. Very specific:

    Check package.json scripts for project-specific test commands

    line 33
  4. Distinctive:

    Run tests with coverage enabled and include a coverage report in every test run (this skill owns the coverage policy)

    line 35
  5. Distinctive:

    When asked to run tests:

    line 40
  6. Distinctive:

    Check for config files to detect frameworks

    line 44
  7. Very specific:

    Check package.json for test scripts

    line 45
  8. Distinctive:

    Run the appropriate command for each framework

    line 46

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

Run tests with coverage reporting. This skill auto-detects test frameworks in the project.

Primary Command

  • uv run lintro tst - Run tests via lintro (handles multiple frameworks)

Framework Detection

When lintro is unavailable or you need to run specific test types, detect frameworks by checking for:

FrameworkConfig FilesTest PatternsRun Command
Vitestvitest.config.ts*.test.ts, *.spec.tsbun test or bunx vitest
Jestjest.config.js*.test.js, *.spec.jsbun test or bunx jest
Playwrightplaywright.config.tse2e/*.spec.tsbun run e2e or bunx playwright test
RSpec.rspec, Gemfilespec/*_spec.rbbundle exec rspec
pytestpytest.ini, pyproject.tomltest_*.py, *_test.pyuv run pytest
BATStests/bats/, tests/helpers/*.batsbats --recursive tests/bats/
Gogo.mod*_test.gogo test ./...
RustCargo.toml#[test] functionscargo test

Rules

  • Check package.json scripts for project-specific test commands
  • For shell tests, follow the test-shell skill for detailed BATS guidance
  • Run tests with coverage enabled and include a coverage report in every test run (this skill owns the coverage policy)

Usage

When asked to run tests:

  1. Try lintro first: uv run lintro tst
  2. If lintro unavailable or specific tests needed:
    • Check for config files to detect frameworks
    • Check package.json for test scripts
    • Run the appropriate command for each framework
  3. Review coverage reports
  4. Ensure test coverage for new/modified code

Writing Tests

For how to write tests, delegate to the appropriate skill:

Stack / toolSkill
Python (pytest)stand-py
TypeScript/JavaScript (Vitest/Jest)stand-ts
Rust (cargo test)stand-rust
Shell (BATS)test-shell
Playwright E2Etest-ui
Playwright APItest-api

For other frameworks (RSpec, Go), follow project conventions and the patterns detected above.

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.