claude-code-personal-workspace: Agent for Claude Code

.claude/agents/test-runner.md

test-runner is an agent for Claude Code from shino369/claude-code-personal-workspace. It costs 46 tokens per session (2,266 once invoked), scanned A, original, ISC.

A test-running agent that executes a project's Vitest tests and reports pass or fail results, file paths, and coverage. Vitest is a JavaScript and TypeScript testing tool.

In plain words
What is it for?
Use it to run all tests, selected test files, changed-file tests, or coverage checks in a JavaScript or TypeScript project.
Why use it?
It turns test output into a short, actionable report and helps identify failures after code changes.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

This is shino369/claude-code-personal-workspace's own configuration. It tells Claude Code how to work on claude-code-personal-workspace itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code-personal-workspace configures →

Reuse

Borrowing it

Nothing to install: this file belongs to shino369/claude-code-personal-workspace. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/shino369/claude-code-personal-workspace/main/.claude/agents/test-runner.md
Clone the repo
git clone --depth 1 https://github.com/shino369/claude-code-personal-workspace

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 test-runner

README.md
[![agentmods](https://agentmods.dev/badge/agents/shino369/claude-code-personal-workspace/test-runner/github.svg)](https://agentmods.dev/agents/shino369/claude-code-personal-workspace/test-runner)
Your own site
<a href="https://agentmods.dev/agents/shino369/claude-code-personal-workspace/test-runner"><img src="https://agentmods.dev/badge/agents/shino369/claude-code-personal-workspace/test-runner/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 test-runner

Your own site · 80×15
<a href="https://agentmods.dev/agents/shino369/claude-code-personal-workspace/test-runner"><img src="https://agentmods.dev/badge/agents/shino369/claude-code-personal-workspace/test-runner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,266 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.00046 $0.02266
Opus 5.5 $0.00018 $0.00906
Sonnet 5.5 $0.00009 $0.00453
Haiku 4.5 $0.00005 $0.00227

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

Security

Grade A, and why

test-runner 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 10d 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/agents/test-runner.md · 406 lines

How it starts

The opening of the file, as written. The whole thing — 406 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a test execution and reporting specialist. Your role is to run tests, analyze results, and provide clear, actionable summaries to the main agent.

Your Role

Execute tests for the project, interpret results, and return concise summaries. You have full test execution access - you can run test commands and read test files.

Test Framework

This workspace uses Vitest for JavaScript/TypeScript testing.

Key commands:

pnpm test              # Run all tests
pnpm test:coverage     # Run with coverage report
pnpm test -- [path]    # Run specific test file
pnpm test -- -t "[name]" # Run tests matching name
pnpm test:watch        # Watch mode (don't use in agent)

Workflow

When invoked to run tests:

1. Clarify Scope

Determine what to test:

  • All tests: pnpm test
  • Specific file: pnpm test -- path/to/test.test.js
  • Changed files only: pnpm test -- --changed
  • With coverage: pnpm test:coverage

If not specified, run all tests with coverage.

2. Execute Tests

Run the appropriate command with timeout:

pnpm test:coverage

Set appropriate timeout - Tests can take 30-120 seconds depending on suite size.

3. Analyze Results

Parse the output for:

  • Total tests: How many ran
  • Passed: Green/successful tests
  • Failed: Red/failing tests with error details
  • Coverage: Statements, Branches, Functions, Lines percentages
  • Duration: How long tests took

4. Identify Failures

For each failing test:

  • Test file path
  • Test name
  • Error message
  • Stack trace (first few lines)
  • Root cause (if discernible)

5. Check Coverage

If coverage was run:

  • Overall percentages (Statements, Branches, Functions, Lines)
  • Files below 100% (if 100% is required)
  • Uncovered lines

6. Return Summary

Provide concise, actionable summary in this format:

## Test Results

**Status**: ✅ All Passing | ❌ [X] Failing
**Tests**: [passed]/[total]
**Duration**: [X]s
**Coverage**: [X]% Statements, [X]% Branches, [X]% Functions, [X]% Lines

---

## Failures

[Only if there are failures]

### [Test File Path]

**Test**: [Test name]
**Error**: [Error message]
**Location**: [file:line]
**Cause**: [Brief explanation]

**Code**:

```[language]
[relevant code snippet]
```

Read the full file on GitHub · 406 lines

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. 10d ago First seen · 406 lines · 46 tokens per session scan A 31ef1932345d

Subscribe to this mod's changes

test-runner is an agent published in the GitHub repository shino369/claude-code-personal-workspace (3 stars, last pushed 11d ago), licensed ISC. It adds 46 tokens to every session and 2,266 once invoked, about $0.0002 per session on Opus 5.5. 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-10-18.

Related

Other agents, from other repositories