rules-about-rules

rules-about-rules is a cursor rule for Cursor from bernierllc/agents-environment-config. It costs 605 tokens per session, scanned A, original, MIT.

A set of rules for maintaining rule files used by Cursor, a coding editor with AI assistance.

In plain words
What is it for?
Managing and updating Cursor rules files themselves.
Why use it?
It helps keep the instructions that govern the agent organised and maintained as the project changes.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Cursor.

Good fit Managing and updating Cursor rules files themselves.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/bernierllc/agents-environment-config/rules-about-rules
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.

Clone the repo
git clone --depth 1 https://github.com/bernierllc/agents-environment-config

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 rules-about-rules

README.md
[![agentmods](https://agentmods.dev/badge/rules/bernierllc/agents-environment-config/rules-about-rules/github.svg)](https://agentmods.dev/rules/bernierllc/agents-environment-config/rules-about-rules)
Your own site
<a href="https://agentmods.dev/rules/bernierllc/agents-environment-config/rules-about-rules"><img src="https://agentmods.dev/badge/rules/bernierllc/agents-environment-config/rules-about-rules/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 rules-about-rules

Your own site · 80×15
<a href="https://agentmods.dev/rules/bernierllc/agents-environment-config/rules-about-rules"><img src="https://agentmods.dev/badge/rules/bernierllc/agents-environment-config/rules-about-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 605 This file is loaded in full into every session.
When invoked 605 The same file — it is already loaded in full.
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.00605 $0.00605
Opus 5.5 $0.00242 $0.00242
Sonnet 5.5 $0.00121 $0.00121
Haiku 4.5 $0.00060 $0.00060

Measured 3mo ago against content hash 1c7dbbf1dc78, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rules-about-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 3mo 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/general/rules-about-rules.mdc · 71 lines

How it starts

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

Rules About Rules

Core Principle

Rules are living documents and should be updated as we learn. Suggest improvements when something is unclear or not working. Keep rules concise and merge overlapping rules where possible.

Global vs Project-Specific Rules

Global Rules (This Repository)

These rules in agents-environment-config/.cursor/rules/ are global rules that apply across all projects. They contain:

  • General patterns and standards that work across projects
  • Language-specific conventions (TypeScript, Python)
  • Framework standards (Next.js, FastAPI, React Native)
  • Cross-cutting topics (API design, Git workflow, security, quality)

Location: agents-environment-config/.cursor/rules/

Project-Specific Rules

Project-specific rules stay in their respective projects ({project}/.cursor/rules/) and should:

  • Focus on project-specific patterns and business logic
  • Reference global rules where applicable (avoid duplication)
  • Handle custom workflows unique to that project

Location: {project}/.cursor/rules/

How Cursor applies them: Cursor discovers rules in parent directories, so global rules apply automatically. Project-specific rules take precedence for conflicts. Both rule sets complement each other.

For detailed architecture, see plans/cursor/architecture.md.

Guidelines for Rule Files

Structure

  • Prefer small, focused rules with clear intent
  • Keep terminology consistent across all rules
  • When multiple files cover the same topic, consolidate into one and deprecate the rest

Content Standards

  • Prefer active voice and imperative style ("Do X", "Avoid Y")
  • Fix typos immediately; clear language beats clever phrasing
  • Use short rationale lines for non-obvious rules (1–2 sentences max)

Maintenance Process

  • When you change behavior or standards, submit an edit to the relevant rule file in the same PR
  • When adopting a new convention, add it to the appropriate rule file and reference related docs in /docs/
  • Link to decisions or plans in ./plans/ when context helps future readers
  • Run linting before committing rule changes to ensure formatting stays consistent

Read the full file on GitHub · 71 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. 3mo ago First seen · 71 lines · 605 tokens per session scan A 1c7dbbf1dc78

Subscribe to this mod's changes

rules-about-rules is a cursor rule published in the GitHub repository bernierllc/agents-environment-config (11 stars, last pushed yesterday), licensed MIT. It adds 605 tokens to every session, about $0.0024 per session on Opus 5.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.

Related

rules-about-rules compared with cursor rules from other repositories

rules-about-rules next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rules-about-rulesbernierllc/agents-environment-configCursor rule11yesterdayMITA605Cursor
creating-cursor-rulespr-pm/prpmCursor rule1251mo agoMITA16Cursor
creating-skillspr-pm/prpmCursor rule1251mo agoMITA19Cursor
coding-standards-demo.cruxzotoio/CRUX-CompressCursor rule81mo agoMITA6Cursor
leanyugasun/aiopsCursor rule46d agoApache-2.0A222Cursor
swift-argument-parsersteipete/agent-rulesCursor rule5.7k7mo agoMITA0Cursor
update-docssteipete/agent-rulesCursor rule5.7k7mo agoMITA1,833Cursor