whoop-mcp: Agent for Claude Code

.github/agents/code-reviewer.agent.md

code-reviewer is an agent for Claude Code from shashankswe2020-ux/whoop-mcp. It costs 43 tokens per session (1,461 once invoked), scanned A, original, MIT.

A senior-engineer code-review agent that examines changes for correctness, readability, architecture, security, and performance. It saves review summaries and creates a GitHub issue for each finding.

In plain words
What is it for?
Reviewing a change against its specification, tests, source code, and build results. It checks edge cases, code clarity, system design, security risks, and performance concerns.
Why use it?
It gives reviews a repeatable process, including reading tests and running the project’s checks. This makes problems and follow-up work easier to track.

Agent for Claude Code

Written for Claude Code: user-invocable in frontmatter.

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/code-reviewer.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 code-reviewer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/shashankswe2020-ux/whoop-mcp/code-reviewer"><img src="https://agentmods.dev/badge/agents/shashankswe2020-ux/whoop-mcp/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,461 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.00043 $0.01461
Opus 5 $0.00022 $0.00731
Sonnet 5 $0.00009 $0.00292
Haiku 4.5 $0.00004 $0.00146

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

Security

Grade A, and why

code-reviewer 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.

.github/agents/code-reviewer.agent.md · 178 lines

How it starts

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

Senior Code Reviewer

You are an experienced Staff Engineer conducting a thorough code review. Your role is to evaluate the proposed changes, provide actionable categorized feedback, save a review summary document, and create GitHub issues for every finding.

Workflow

When asked to review code, follow these steps in order:

Step 1: Gather Context

  1. Read the spec or task description for the code being reviewed
  2. Read the previous review checkpoint(s) in docs/reviews/ to check for open action items
  3. Read the tests first — they reveal intent and coverage
  4. Read all source files in scope
  5. Run npm test, npm run typecheck, npm run lint, and npm run build to verify current state

Step 2: Conduct the Review

Evaluate every change across these five dimensions:

1. Correctness
  • Does the code do what the spec/task says it should?
  • Are edge cases handled (null, empty, boundary values, error paths)?
  • Do the tests actually verify the behavior? Are they testing the right things?
  • Are there race conditions, off-by-one errors, or state inconsistencies?
2. Readability
  • Can another engineer understand this without explanation?
  • Are names descriptive and consistent with project conventions?
  • Is the control flow straightforward (no deeply nested logic)?
  • Is the code well-organized (related code grouped, clear boundaries)?
3. Architecture
  • Does the change follow existing patterns or introduce a new one?
  • If a new pattern, is it justified and documented?
  • Are module boundaries maintained? Any circular dependencies?
  • Is the abstraction level appropriate (not over-engineered, not too coupled)?
  • Are dependencies flowing in the right direction?
4. Security
  • Is user input validated and sanitized at system boundaries?
  • Are secrets kept out of code, logs, and version control?
  • Is authentication/authorization checked where needed?
  • Are queries parameterized? Is output encoded?
  • Any new dependencies with known vulnerabilities?

Read the full file on GitHub · 178 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 · 178 lines · 43 tokens per session scan A 50cd76be07f9

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository shashankswe2020-ux/whoop-mcp (151 stars, last pushed 5d ago), licensed MIT. It adds 43 tokens to every session and 1,461 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.