agentleFS
gtappsgtapps/claude-code-hermit/.claude/skills/test-run/SKILL.md

test-run

Skill84 starsChanged 6 days agoMITView on GitHub

Run plugin test suites in this monorepo and report a concise pass/fail summary. Optional plugin slug arg; without arg, runs all plugins under plugins/.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Run plugin test suites and report a concise summary.

    line 8
  2. Very specific:

    If no slug arg was passed, run bash scripts/test-all.sh from the repo root (launches every plugin's suite in parallel.

    line 24
  3. Very specific:

    If a slug arg was passed, validate plugins/<slug>/.claude-plugin/plugin.json exists.

    line 25
  4. Distinctive:

    If any test failed, include the failure details below the summary so the developer can act on them immediately.

    line 59

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

Run plugin test suites and report a concise summary. Operates on a single plugin when given a slug; otherwise loops every plugin in plugins/.

Usage

/test-run — run tests for every plugin in plugins/ and report a per-plugin summary plus an overall PASS/FAIL.

/test-run <plugin-slug> — run tests for just that plugin.

Examples:

  • /test-run hermitd
  • /test-run hermitd-homeassistant

Steps

0. Resolve target slugs

  • If no slug arg was passed, run bash scripts/test-all.sh from the repo root (launches every plugin's suite in parallel; wall time is bounded by the slowest suite instead of their sum) and report its summary table directly — skip Steps 0-1 below entirely.
  • If a slug arg was passed, validate plugins/<slug>/.claude-plugin/plugin.json exists. If not, abort with: Plugin 'plugins/<slug>/' not found. Available: <comma-separated slugs>. Then continue to Step 1 for that single plugin.

1. Run the suite (single-plugin arg only)

Plugins ship one of two test conventions. Detect and dispatch:

  • Bash entrypoint — if plugins/<slug>/tests/run-all.sh exists (dev/fitness/scribe/forge convention):
    bash plugins/<slug>/tests/run-all.sh 2>&1
  • Bun entrypoint — else if any plugins/<slug>/tests/*.test.ts exists (core/HA/feed convention): cd plugins/<slug> && bun test 2>&1.
  • Neither marker — mark no tests configured and continue.

Capture full output. Extract pass/fail counts from the suite's summary line.

2. Report

Per-plugin block:

=== <slug> ===
Hook tests:     X passed, Y failed         (bash convention only)
Contract tests: X passed, Y failed         (bash convention only)
Script tests:   X passed, Y failed         (bash convention only)
Bun tests:      X passed, Y failed         (bun convention only)
Plugin result:  PASS / FAIL / SKIP

Final overall line:

Overall: PASS / FAIL  (<n> passed, <m> failed, <k> skipped across <p> plugins)

If any test failed, include the failure details below the summary so the developer can act on them immediately.

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.