rule_main

rule_main is a cursor rule for Cursor from n1snt/redux-mcp. It costs 160 tokens per session, scanned A, original, MIT.

A set of coding rules for keeping software tested, typed, small, non-repetitive, and easy to read.

In plain words
What is it for?
Use it when making code changes that should include relevant tests, strict type annotations, focused files, shared utilities, and package-manager-based dependency updates.
Why use it?
It reduces bugs and prevents code from becoming difficult to change. It also keeps shared types and package installation consistent across a project.

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/n1snt/redux-mcp/rule_main
Clone the repo
git clone --depth 1 https://github.com/n1snt/redux-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 rule_main

README.md
[![agentmods](https://agentmods.dev/badge/rules/n1snt/redux-mcp/rule_main.svg)](https://agentmods.dev/rules/n1snt/redux-mcp/rule_main)
Your own site
<a href="https://agentmods.dev/rules/n1snt/redux-mcp/rule_main"><img src="https://agentmods.dev/badge/rules/n1snt/redux-mcp/rule_main.svg" alt="Measured on agentmods" height="20"></a>
Per session 160 This file is loaded in full into every session.
When invoked 160 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.00160 $0.00160
Opus 5 $0.00080 $0.00080
Sonnet 5 $0.00032 $0.00032
Haiku 4.5 $0.00016 $0.00016

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

Security

Grade A, and why

rule_main 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 5d 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/project/rule_main.mdc · 15 lines

What it actually says

Main Rule

  • Always write and run relevant tests after every change; do not ship until tests pass.
  • Enforce strict typing everywhere: typed args, explicit function return types, and typed variable declarations.
  • Keep files small and focused; split files before they become too long.
  • Avoid duplication: do not repeat functions/logic; extract shared utilities.
  • Keep code clean and simple; prefer readable, minimal solutions.
  • Keep type definitions in a separate types.ts (or module-specific *.types.ts) file, not mixed with function implementation files.
  • Add dependencies only via package manager commands (bun add, bun add -d, etc.); never manually edit package.json to add packages.
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. 5d ago First seen · 15 lines · 160 tokens per session scan A ca1114d347b5

Subscribe to this mod's changes

rule_main is a cursor rule published in the GitHub repository n1snt/redux-mcp (3 stars, last pushed 4mo ago), licensed MIT. It adds 160 tokens to every session, about $0.0008 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.