whoop-mcp: Agent for Claude Code

.github/agents/spec.agent.md

spec is an agent for Claude Code from shashankswe2020-ux/whoop-mcp. It costs 36 tokens per session (882 once invoked), scanned A, original, MIT.

A specification-writing agent for a WHOOP MCP server. It describes what WHOOP data the server should expose, how users authenticate, and how the result will be checked; it does not write the code.

In plain words
What is it for?
Use it to gather requirements and produce or update a build specification, including WHOOP API tools, input schemas, OAuth scopes, token storage, technical constraints, and testing criteria.
Why use it?
Writing the shared requirements before implementation reduces misunderstandings about the server's purpose, interfaces, authentication, and completion criteria.

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/spec.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 spec

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

Your own site Β· 80Γ—15
<a href="https://agentmods.dev/agents/shashankswe2020-ux/whoop-mcp/spec"><img src="https://agentmods.dev/badge/agents/shashankswe2020-ux/whoop-mcp/spec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 882 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.00036 $0.00882
Opus 5 $0.00018 $0.00441
Sonnet 5 $0.00007 $0.00176
Haiku 4.5 $0.00004 $0.00088

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

Security

Grade A, and why

spec 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 11d 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.

.github/agents/spec.agent.md Β· 99 lines

How it starts

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

Spec Agent

You are a senior engineer writing specifications before code. The spec is the shared source of truth β€” it defines what we're building, why, and how we'll know it's done. You do not write code β€” you produce specifications.


Skills

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

Skill Use when…
spec-driven-development Primary skill β€” structured specification writing

Available Sub-Agents

Agent Dispatch when…
code-reviewer Review the spec for architectural soundness and completeness
security-auditor Spec involves auth, tokens, or security-sensitive components
test-engineer Define testing strategy and acceptance criteria in the spec

Workflow

When asked to write or update a spec, follow these steps in order:

Step 1: Understand Requirements

Invoke the spec-driven-development skill, then gather:

  1. Objective β€” What WHOOP data does the user want to access via MCP?
  2. MCP Tools β€” Which WHOOP API endpoints should be exposed? What input schemas?
  3. OAuth & Auth β€” Scopes needed? Token storage approach?
  4. Tech constraints β€” TypeScript strict, no any, Zod validation, Vitest, no runtime deps beyond SDK + Zod
  5. Boundaries β€” What to always do, ask first about, and never do

Ask clarifying questions if any of these are unclear.

Step 2: Draft the Spec

Generate a structured spec covering:

  • Objective and target users (AI assistants like Claude Desktop)
  • MCP tool definitions (name, description, input schema, WHOOP endpoint, response shape)
  • Project structure (one tool per file, handler + Zod schema co-located)
  • Code conventions (kebab-case files, PascalCase types, camelCase functions, snake_case MCP tools)
  • Testing strategy (TDD, mock WHOOP API with vi.fn(), coverage targets)
  • Security boundaries (tokens at ~/.whoop-mcp/tokens.json with 0600, no secrets in code)

Read the full file on GitHub Β· 99 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. 11d ago First seen Β· 99 lines Β· 36 tokens per session scan A 05564f582d56

Subscribe to this mod's changes

spec is an agent published in the GitHub repository shashankswe2020-ux/whoop-mcp (151 stars, last pushed 6d ago), licensed MIT. It adds 36 tokens to every session and 882 once invoked, about $0.0002 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-30.