agentleFS
cirnecirne/agent-skills/skills/tests/SKILL.md

tests

Skill3 starsChanged 5 months agoMITView on GitHub

How agents run the project test suite — capture full output to log files; never pipe test runs through grep, tail, or head. Use when running tests, coverage, e2e, iterating on failures, or any skill that executes the test suite.

17 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use comments and style.

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.
  • AnthropicSkill

    comments

    Review open NPRM comment periods, log decisions, track deadlines. Use when an NPRM has a comment window open and you need to surface deadlines, decide whether to file, or record a filing / not-filing / waived decision (--decide CMT-ID).

    Also in 3 projects that use this

  • silverkyoon-RachelSkill

    style

    Tailwind CSS 스타일을 검토하고 개선합니다.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read package scripts / docs — do not assume.

    line 24
  2. Very specific:

    Prefer CI=1 (or equivalent) for stable, grep-friendly logs when the project supports it.

    line 33

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

Running tests

Order: On product code changes, run scoped type/lint on touched files first (see project AGENTS.md / contributing docs) — then scoped tests. Full suite is for commit/CI, not every fix iteration.

Never pipe a test command through grep, tail, head, tee, or similar. Pipes drop context and force a re-run to recover diagnostics.

Always redirect the full run to a unique log under a project attempt dir (create if needed). Default convention: .test-attempts/ at repo root. On failure, read the log file — do not re-run just to capture output.

Setup (each run)

# Use the repo’s Node/runtime pin if present (nvm use, mise, asdf, …)
mkdir -p .test-attempts
LOG=".test-attempts/$(date +%Y%m%d-%H%M%S)-<slug>.log"

Discover commands

Read package scripts / docs — do not assume. Common patterns:

IntentPrefer
ScopedSmallest path filter the harness supports
Full suiteProject test / ci script
CoverageProject coverage script
E2EProject e2e script

Prefer CI=1 (or equivalent) for stable, grep-friendly logs when the project supports it. Append > "$LOG" 2>&1; check exit code separately.

Vitest projects caveat: pnpm run test -- <file> may still run the full suite. Prefer pnpm exec vitest run <paths> when that is the project pattern.

After the run

ExitAction
0Note log path briefly
non-zeroRead $LOG (or rg inside the file). Fix with targeted re-runs (new log per attempt)

Related

  • /commit — when to run scoped vs full suite
  • /coverage — coverage-focused runs
  • /fix — TDD regression runs

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.