hevy_rules

A set of rules for managing Hevy workouts, routines, folders, and exercise templates, with guidance for testing the related API integration. Hevy is a workout-tracking app.

In plain words
What is it for?
Use it to create and update workout sessions, organize training plans, search exercises, and write or maintain tests for Hevy API calls.
Why use it?
It keeps workout data organized and sets expectations for reliable integration tests, including checking that API responses have the expected structure.

Cursor rule for Cursor

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 rules/rwestergren/hevy-mcp/hevy_rules
Clone the repo
git clone --depth 1 https://github.com/rwestergren/hevy-mcp

Made for: Cursor.

Per session 242 This file is loaded in full into every session.
When invoked 242 The same file — it is already loaded in full.
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 $0.00242 $0.00242
Opus 5 $0.00121 $0.00121
Sonnet 5 $0.00048 $0.00048
Haiku 4.5 $0.00024 $0.00024

Measured yesterday against content hash 074da33dfd66, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hevy_rules 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 yesterday.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.cursor/rules/hevy_rules.mdc · 21 lines

What it actually says

Cursor Rule: hevy-mcp Integration Test Best Practices

  1. Always re-run relevant tests after making any change to a test file.

    • This ensures that changes are immediately validated and no regressions are introduced.
  2. When fixing or updating integration tests:

    • Use the correct method signatures and argument types for SDK/client calls.
    • Add or update Zod schema validation for API responses to ensure type safety and contract adherence.
    • Remove any debug or console.log statements before finalizing changes, unless explicitly requested otherwise.
  3. When adding new tests or updating existing ones:

    • Prefer validating response data with Zod schemas that match the expected output structure.
    • Ensure all test assertions are meaningful and reflect the actual API contract.
  4. If a test fails:

    • Add temporary debug output (e.g., console.log) only as needed to diagnose the issue, and remove it once resolved.
    • Investigate the actual response structure before updating assertions or schemas.
  5. Keep integration tests clean and production-ready:

    • No unnecessary debug output.
    • All code should be idiomatic, concise, and maintainable.
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. yesterday First seen · 21 lines · 242 tokens per session scan A 074da33dfd66

Subscribe to this mod's changes

hevy_rules is a cursor rule published in the GitHub repository rwestergren/hevy-mcp (0 stars, last pushed 3mo ago), licensed MIT. It adds 242 tokens to every session, about $0.0012 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.