check-tests

check-tests is a command for Claude Code from bartstc/vite-ts-react-template. It costs 0 tokens per session (208 once invoked), scanned A, original, MIT.

A developer-run command that runs tests related to changed source files with Vitest, a JavaScript and TypeScript test runner.

In plain words
What is it for?
Use it after editing source files to run related tests, fix failures, and report the results.
Why use it?
It checks whether changes break nearby unit or Storybook tests while keeping this work separate from static checks, end-to-end tests, and visual tests.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it after editing source files to run related tests, fix failures, and report the results.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/bartstc/vite-ts-react-template/check-tests
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/bartstc/vite-ts-react-template

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for check-tests

README.md
[![agentmods](https://agentmods.dev/badge/commands/bartstc/vite-ts-react-template/check-tests/github.svg)](https://agentmods.dev/commands/bartstc/vite-ts-react-template/check-tests)
Your own site
<a href="https://agentmods.dev/commands/bartstc/vite-ts-react-template/check-tests"><img src="https://agentmods.dev/badge/commands/bartstc/vite-ts-react-template/check-tests/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for check-tests

Your own site · 80×15
<a href="https://agentmods.dev/commands/bartstc/vite-ts-react-template/check-tests"><img src="https://agentmods.dev/badge/commands/bartstc/vite-ts-react-template/check-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 208 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00208
Opus 5.5 $0.00000 $0.00083
Sonnet 5.5 $0.00000 $0.00042
Haiku 4.5 $0.00000 $0.00021

Measured 8d ago against content hash b790ae28cc07, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

check-tests scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/check-tests.md · 16 lines

What it actually says

Dev-triggered only. Run separately from /check.

Steps

  1. List changed files: git diff --name-only --diff-filter=d core...HEAD plus git status --porcelain. Keep source files under src/ that still exist.
  2. Run pnpm exec vitest related --run <changed files> (unit + storybook projects).
  3. On failure, decide whether the code or the test is wrong. Fix the code unless the test encodes outdated behavior the task intentionally changed — then say so explicitly. Rerun. Stop after 3 rounds.

Rules

  • E2E (pnpm test:e2e) and visual (pnpm test:visual:docker) run only if $ARGUMENTS asks for them.
  • Never skip, delete, or weaken assertions to make tests pass.
  • Report: tests run, PASS/FAIL counts, fixes made, full output of anything still failing.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 16 lines · 0 tokens per session scan A b790ae28cc07

Subscribe to this mod's changes

check-tests is a command published in the GitHub repository bartstc/vite-ts-react-template (124 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 208 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-22.

Related

check-tests compared with commands from other repositories

check-tests next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
check-testsbartstc/vite-ts-react-templateCommand1242d agoMITA0Claude Code
cliJNTMTMTM/eIslandCommand362todayGPL-3.0A0Claude Code
quality-commandsJNTMTMTM/eIslandCommand362todayGPL-3.0A0Claude Code
esa-commandsJNTMTMTM/eIslandCommand362todayGPL-3.0A0Claude Code
test-commandsJNTMTMTM/eIslandCommand362todayGPL-3.0A0Claude Code
dev-commandsJNTMTMTM/eIslandCommand362todayGPL-3.0A0Claude Code
package-commandsJNTMTMTM/eIslandCommand362todayGPL-3.0A0Claude Code