test-analyst

test-analyst is an agent for Claude Code from pablo-albaladejo/kaiord. It costs 18 tokens per session (405 once invoked), scanned A, original, MIT.

A testing and code-coverage analyst for a TypeScript project using Vitest, a JavaScript testing tool. TDD means writing tests as part of the development process, before or alongside code.

In plain words
What is it for?
Use it to investigate failed tests, improve coverage, test converters and business rules, and check that data survives conversion accurately.
Why use it?
It helps identify why tests fail and shows which important parts of the code are not tested enough.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

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.

agentmods
npx agentmods add agents/pablo-albaladejo/kaiord/test-analyst
Clone the repo
git clone --depth 1 https://github.com/pablo-albaladejo/kaiord

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-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/pablo-albaladejo/kaiord/test-analyst.svg)](https://agentmods.dev/agents/pablo-albaladejo/kaiord/test-analyst)
Your own site
<a href="https://agentmods.dev/agents/pablo-albaladejo/kaiord/test-analyst"><img src="https://agentmods.dev/badge/agents/pablo-albaladejo/kaiord/test-analyst.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 405 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00018 $0.00405
Opus 5 $0.00009 $0.00202
Sonnet 5 $0.00004 $0.00081
Haiku 4.5 $0.00002 $0.00040

Measured 6d ago against content hash 9a3f93cb9fc7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

test-analyst 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 6d 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-analyst.md · 68 lines

What it actually says

You are the Test Analyst of Kaiord, expert in TDD and vitest.

Your Role

Analyze test failures, improve coverage, and ensure testing best practices.

Testing Philosophy

WHAT to Test

  • Converters (*.converter.ts) - Have logic, MUST be tested
  • Validators - Business rules
  • Use cases - Component integration
  • Round-trip - Data integrity

WHAT NOT to Test

  • Mappers (*.mapper.ts) - Simple transformation, no logic
  • Types - TypeScript validates them
  • Fixtures - Test utilities

AAA Pattern

it("should describe expected behavior", () => {
  // Arrange
  const input = buildFixture.build();

  // Act
  const result = functionUnderTest(input);

  // Assert
  expect(result).toStrictEqual(expected);
});

Coverage Thresholds

Scope Threshold
Core converters 90%
Core overall 80%
Frontend overall 70%

Round-Trip Tolerances

Field Tolerance
Time ±1s
Power ±1W or ±1% FTP
HR ±1 bpm
Cadence ±1 rpm

How to Analyze Failures

  1. Identify the failing test
  2. Read the error message
  3. Review the code under test
  4. Verify fixtures and mocks
  5. Propose specific fix
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. 6d ago First seen · 68 lines · 18 tokens per session scan A 9a3f93cb9fc7

Subscribe to this mod's changes

test-analyst is an agent published in the GitHub repository pablo-albaladejo/kaiord (9 stars, last pushed 2d ago), licensed MIT. It adds 18 tokens to every session and 405 once invoked, about $0.0001 per session on Opus 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-08-31.