naming

naming is a cursor rule for Cursor from bahulneel/agent-brain-trust. It costs 1,254 tokens per session, scanned A, original, MIT.

A set of naming and file-structure rules for code. It defines formats such as camelCase, PascalCase, kebab-case, and UPPER_SNAKE_CASE, and sets rules for organising files and components.

In plain words
What is it for?
Use it when naming variables, functions, classes, components, files, namespaces, environment values, and domain-specific constants.
Why use it?
It reduces inconsistent names and repeated context in identifiers, making code easier to find and understand.

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/bahulneel/agent-brain-trust/naming
Clone the repo
git clone --depth 1 https://github.com/bahulneel/agent-brain-trust

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 naming

README.md
[![agentmods](https://agentmods.dev/badge/rules/bahulneel/agent-brain-trust/naming.svg)](https://agentmods.dev/rules/bahulneel/agent-brain-trust/naming)
Your own site
<a href="https://agentmods.dev/rules/bahulneel/agent-brain-trust/naming"><img src="https://agentmods.dev/badge/rules/bahulneel/agent-brain-trust/naming.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,254 This file is loaded in full into every session.
When invoked 1,254 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.01254 $0.01254
Opus 5 $0.00627 $0.00627
Sonnet 5 $0.00251 $0.00251
Haiku 4.5 $0.00125 $0.00125

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

Security

Grade A, and why

naming 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/commands/rules/naming.mdc · 87 lines

How it starts

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

Naming & Construction Style Guide

1. General Rules

  • camelCase: Use for variables, functions, constants, and modules.
  • PascalCase: Use for classes, components, and exported namespaces that contain domain values or helpers.
  • kebab-case: Use for file names.
  • Organisational Namespaces: These must stay camelCase as they exist to mirror the filesystem taxonomy and provide structure rather than collecting type-specific values.
  • Structure: Prefer a domain/sub-domain taxonomical structure over use-case organisation.
  • Mononyms: Use singular mononyms for the filenames of components and pages. The component name itself must be the PascalCase join of its path parts to ensure uniqueness and context.

2. Visual Distinction & Privacy

  • Domain Language: Use PascalCase for constants and namespaces that define the vocabulary of the domain.
  • Infrastructure, Global, & Symbolic: Use UPPER_SNAKE_CASE for environment-specific values, application-wide "universal truths", or abstract tokens used for logic branching.
  • All Other Identifiers: Use camelCase for everything else, including organisational namespaces and general variables.
  • Privacy: Use the # prefix for private members. The _ prefix is reserved exclusively for unused function arguments. Any other non-argument identifier starting with _ should be removed.

3. Eliminating Nominative Redundancy

Do not repeat context provided by the file path, object, or scope.

  • Entry Points: Prefer single, generic entry points within a specific scope.
  • Members: Member functions should not repeat the name of the object or class they belong to.
  • Scope: In a non-conflicting scope, use the simplest name available.
  • Auto-Import Caveat: Do not introduce redundant specificity prematurely to avoid potential auto-import collisions. Naming should remain minimal by default; address collisions only when they occur in practice.

4. Relational & Functional Naming

Read the full file on GitHub · 87 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. 5d ago First seen · 87 lines · 1,254 tokens per session scan A fee4b759469e

Subscribe to this mod's changes

naming is a cursor rule published in the GitHub repository bahulneel/agent-brain-trust (5 stars, last pushed 4mo ago), licensed MIT. It adds 1,254 tokens to every session, about $0.0063 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.