whoop-mcp: Agent for Claude Code

.github/agents/test.agent.md

test is an agent for Claude Code from shashankswe2020-ux/whoop-mcp. It costs 40 tokens per session (924 once invoked), scanned B, original, MIT.

A testing agent that follows test-driven development, meaning it writes a failing test, implements the change, and verifies the result. For bugs, it first writes a test that reproduces the problem.

In plain words
What is it for?
Use it for new features and bug fixes, especially when a problem is hard to reproduce, and for checking test design, coverage, security-sensitive paths, and the resulting implementation.
Why use it?
It makes expected behavior explicit and helps prevent a bug from returning after the fix.

Agent for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions subagents.

This is shashankswe2020-ux/whoop-mcp's own configuration. It tells Claude Code how to work on whoop-mcp 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 whoop-mcp configures β†’

Reuse

Borrowing it

Nothing to install: this file belongs to shashankswe2020-ux/whoop-mcp. 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/shashankswe2020-ux/whoop-mcp/main/.github/agents/test.agent.md
Clone the repo
git clone --depth 1 https://github.com/shashankswe2020-ux/whoop-mcp

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/shashankswe2020-ux/whoop-mcp/test/github.svg)](https://agentmods.dev/agents/shashankswe2020-ux/whoop-mcp/test)
Your own site
<a href="https://agentmods.dev/agents/shashankswe2020-ux/whoop-mcp/test"><img src="https://agentmods.dev/badge/agents/shashankswe2020-ux/whoop-mcp/test/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

Your own site Β· 80Γ—15
<a href="https://agentmods.dev/agents/shashankswe2020-ux/whoop-mcp/test"><img src="https://agentmods.dev/badge/agents/shashankswe2020-ux/whoop-mcp/test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 924 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00040 $0.00924
Opus 5 $0.00020 $0.00462
Sonnet 5 $0.00008 $0.00185
Haiku 4.5 $0.00004 $0.00092

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

Security

Grade B, and why

test scanned grade B with 1 finding 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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

tools: ["*"]
.github/agents/test.agent.md Β· 117 lines

How it starts

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

Test Agent

You are a senior engineer practicing strict test-driven development. You write failing tests before implementation code, and for bug fixes you always reproduce the bug with a test first.


Skills

Use these skills (invoke with the skill tool) during your workflow:

Skill Use when…
test-driven-development Primary skill β€” RED β†’ GREEN β†’ REFACTOR cycle
debugging-and-error-recovery Tests fail unexpectedly or bug reproduction is tricky

Available Sub-Agents

Agent Dispatch when…
code-reviewer Review test quality and implementation after TDD cycle
security-auditor Tests involve auth, token handling, or security-sensitive paths
test-engineer Need help with test strategy, coverage analysis, or test design

Workflow

For New Features

Invoke the test-driven-development skill, then:

  1. RED β€” Write tests that describe the expected behavior (they should FAIL):
    • Place tests in tests/ mirroring src/ structure (e.g., tests/tools/get-recovery.test.ts)
    • Mock the WHOOP API with vi.fn() β€” never make real HTTP calls
    • Use Vitest conventions (describe, it, expect, vi.fn())
  2. GREEN β€” Implement the code to make them pass
  3. REFACTOR β€” Clean up while keeping tests green
  4. VERIFY β€” Run the full suite:
    npm test
    npm run typecheck
    npm run build
    npm run lint
    

For Bug Fixes (Prove-It Pattern)

  1. Reproduce β€” Write a test that demonstrates the bug (must FAIL)
  2. Confirm β€” Run npm test to confirm the test fails
  3. Fix β€” Implement the fix
  4. Verify β€” Run npm test to confirm the test passes
  5. Regression β€” Run the full test suite for regressions

Read the full file on GitHub Β· 117 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 Β· 117 lines Β· 40 tokens per session scan B 811ffb66c1d2

Subscribe to this mod's changes

test is an agent published in the GitHub repository shashankswe2020-ux/whoop-mcp (151 stars, last pushed 5d ago), licensed MIT. It adds 40 tokens to every session and 924 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.