hevy_rules

hevy_rules is a cursor rule for Cursor from andreparmar/hevy-mcp-remote. It costs 242 tokens per session, scanned A, a copy of hevy_rules, MIT.

A set of rules for testing a remote Hevy workout-data service. It focuses on integration tests, which check that separate software components work together, and on validating API responses with Zod schemas.

In plain words
What is it for?
Use it when adding or fixing Hevy integration tests, checking method arguments and response shapes, updating validation schemas, and investigating test failures.
Why use it?
It helps keep service tests accurate, clean, and maintainable when the API or test code changes. It also prevents temporary debugging output from being left behind.

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

Made for: Cursor.

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 hevy_rules

README.md
[![agentmods](https://agentmods.dev/badge/rules/andreparmar/hevy-mcp-remote/hevy_rules.svg)](https://agentmods.dev/rules/andreparmar/hevy-mcp-remote/hevy_rules)
Your own site
<a href="https://agentmods.dev/rules/andreparmar/hevy-mcp-remote/hevy_rules"><img src="https://agentmods.dev/badge/rules/andreparmar/hevy-mcp-remote/hevy_rules.svg" alt="Measured on agentmods" height="20"></a>
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 100% copy Near-identical to another mod 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 3d ago 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 3d 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.

Origin

This is a copy

100% identical to hevy_rules — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.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. 3d ago 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 andreparmar/hevy-mcp-remote (0 stars, last pushed 25d 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. It is 100% identical to hevy_rules, differing in 0 lines, and is treated as a copy.