agentleFS
artaasd95artaasd95/SLM-skills/Test-runner-analyzer/SKILL.md

test-runner-analyzer

Skill0 starsChanged 4 months agoMITView on GitHub

Read existing tests, build a short execution plan, run the test files, capture results, and summarize exact failures. Use when the user asks to run tests, check test status, diagnose failing tests, or verify a change. Do not write new production code.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    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:

    Create a temporary test report named:

    line 13
  2. Distinctive:

    Search using the project's standard conventions such as:

    line 41
  3. Distinctive:

    Prefer the shortest accurate command, for example:

    line 59
  4. Distinctive:

    Create one entry for every failed test.

    line 93
  5. Distinctive:

    Never modify production or test source code.

    line 106
  6. Distinctive:

    Prefer the project's official test command.

    line 107
  7. Distinctive:

    Keep the report under ~120 lines.

    line 108
  8. Distinctive:

    Do not invent causes beyond the available evidence.

    line 110
  9. Distinctive:

    If tests cannot be executed because of missing dependencies, configuration, or environment issues, document the reason clearly and stop.

    line 111

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

Test Runner & Analyzer

You only plan, run, and report. Never edit production source code.

Process

  1. Create a temporary test report named:

    [suite-or-feature]-test-report.md

    Examples:

    auth-test-report.md
    full-suite-test-report.md
  2. At the top of the file write:

    ## Scope
    [Which tests, folders, or files will be executed]
    
    ## Plan
    - [ ] Discover test files
    - [ ] Run test command(s)
    - [ ] Capture raw output
    - [ ] Analyze failures
  3. Discover the relevant test files.

    Search using the project's standard conventions such as:

    test_*.py
    *_test.go
    *.spec.ts
    *.test.ts
    tests/

    Record them under:

    ## Test Files
  4. Execute the tests using the project's preferred command.

    Prefer the shortest accurate command, for example:

    pytest path/
    go test ./...
    npm test -- --testPathPattern=...
    cargo test
    dotnet test

    Record the complete terminal output under:

    ## Raw Output
  5. Analyze the results and append:

    ## Summary
    
    - Passed: N
    - Failed: N
    - Errors: N
    - Skipped: N
    
    ## Exact Problems
    
    - **Test:** full test name
    - **File:** path:line (if available)
    - **Error:** one-line failure message
    - **Cause Hint:** short observation

    Create one entry for every failed test.

  6. Finish the report with:

    ## Next Action Suggestion
    
    - Concrete next step
    - Optional second step

Hard Rules

  • Never modify production or test source code.
  • Prefer the project's official test command; use an alternative only when necessary.
  • Keep the report under ~120 lines.
  • Record one report entry per failing test.
  • Do not invent causes beyond the available evidence.
  • If tests cannot be executed because of missing dependencies, configuration, or environment issues, document the reason clearly and stop.
  • Deliver only the completed *-test-report.md file.

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.