global-rule

global-rule is a cursor rule for Cursor from chbhargavareddy/ClaimsProcessingAssistant-MCP. It costs 770 tokens per session, scanned A, original, MIT.

A project-wide coding rule set for the ClaimProcessingAssistant MCP server, covering project context, code structure, modularity, and testing.

In plain words
What is it for?
Use it when adding or changing features in this server, especially when checking planning files, organizing modules, or writing Jest unit tests.
Why use it?
It gives the coding agent consistent project instructions and helps prevent unclear structure, oversized files, and missing tests.

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/chbhargavareddy/claimsprocessingassistant-mcp/global-rule
Clone the repo
git clone --depth 1 https://github.com/chbhargavareddy/ClaimsProcessingAssistant-MCP

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 global-rule

README.md
[![agentmods](https://agentmods.dev/badge/rules/chbhargavareddy/claimsprocessingassistant-mcp/global-rule.svg)](https://agentmods.dev/rules/chbhargavareddy/claimsprocessingassistant-mcp/global-rule)
Your own site
<a href="https://agentmods.dev/rules/chbhargavareddy/claimsprocessingassistant-mcp/global-rule"><img src="https://agentmods.dev/badge/rules/chbhargavareddy/claimsprocessingassistant-mcp/global-rule.svg" alt="Measured on agentmods" height="20"></a>
Per session 770 This file is loaded in full into every session.
When invoked 770 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.00770 $0.00770
Opus 5 $0.00385 $0.00385
Sonnet 5 $0.00154 $0.00154
Haiku 4.5 $0.00077 $0.00077

Measured 4d ago against content hash b3b55ac5eb48, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

global-rule 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 4d 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.

.cursor/rules/global-rule.mdc · 80 lines

What it actually says

Your rule content

Project Guidelines for ClaimProcessingAssistant MCP Server

🔄 Project Awareness & Context

  • Always read PLANNING.md at the start of a new conversation to understand the project's architecture, goals, style, and constraints.
  • Check TASK.md before starting a new task. If the task isn't listed, add it with a brief description and today's date.
  • Use consistent naming conventions, file structure, and architecture patterns as described in PLANNING.md.

🧱 Code Structure & Modularity

  • Never create a file longer than 500 lines of code. If a file approaches this limit, refactor by splitting it into modules or helper files.
  • Organize code into clearly separated modules, grouped by feature or responsibility.
  • Use clear, consistent imports (prefer absolute imports with path aliases for better maintainability).
  • Follow a layered architecture separating MCP protocol handlers, business logic, and data access.

🧪 Testing & Reliability

  • Always create Jest unit tests for new features (functions, classes, routes, etc).
  • After updating any logic, check whether existing unit tests need to be updated. If so, do it.
  • Tests should live in a __tests__ folder alongside the modules they test.
    • Include at least:
      • 1 test for expected use
      • 1 edge case
      • 1 failure case
  • Use TypeScript's type system to prevent errors at compile time.

✅ Task Completion

  • Mark completed tasks in TASK.md immediately after finishing them.
  • Add new sub-tasks or TODOs discovered during development to TASK.md under a "Discovered During Work" section.

📎 Style & Conventions

  • Use TypeScript as the primary language.
  • Follow ESLint and Prettier configurations for consistent style.
  • Use Zod for data validation and runtime type checking.
  • Use Express.js for the server and Prisma/TypeORM for database access.
  • Implement proper TypeScript interfaces and types for all entities:
    interface Claim {
      id: string;
      policyNumber: string;
      claimantId: string;
      status: ClaimStatus;
      submittedAt: Date;
      // other properties
    }
    
    enum ClaimStatus {
      SUBMITTED = 'submitted',
      UNDER_REVIEW = 'under_review',
      APPROVED = 'approved',
      REJECTED = 'rejected'
    }
    

📚 Documentation & Explainability

  • Update README.md when new features are added, dependencies change, or setup steps are modified.
  • Comment non-obvious code and ensure everything is understandable to a mid-level developer.
  • When writing complex logic, add an inline # Reason: comment explaining the why, not just the what.

🧠 AI Behavior Rules

  • Never assume missing context. Ask questions if uncertain.
  • Never hallucinate libraries or functions – only use known, verified npm packages.
  • Always confirm file paths and module names exist before referencing them in code or tests.
  • Never delete or overwrite existing code unless explicitly instructed to or if part of a task from TASK.md.
  • Implement proper error handling for all MCP functions to provide clear feedback to AI assistants.

🔒 Security Considerations

  • Always validate and sanitize input from AI assistants through MCP.
  • Use parameterized queries for database operations to prevent SQL injection.
  • Implement proper authentication for all MCP function calls.
  • Log security-relevant events for audit purposes.
  • Follow least privilege principle when designing database access patterns.
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. 4d ago First seen · 80 lines · 770 tokens per session scan A b3b55ac5eb48

Subscribe to this mod's changes

global-rule is a cursor rule published in the GitHub repository chbhargavareddy/ClaimsProcessingAssistant-MCP (5 stars, last pushed 12d ago), licensed MIT. It adds 770 tokens to every session, about $0.0038 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.