config-project

config-project is a cursor rule for Cursor from bex-co/beancount-io. It costs 547 tokens per session, scanned A, original, MIT.

Configuration rules for a software project. They require application settings and environment variables to be defined and read through the src/config directory.

In plain words
What is it for?
Adding or changing server, database, payment, and other application settings in the central configuration files.
Why use it?
They avoid scattered configuration and direct environment-variable access, making settings easier to find and type-check.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Adding or changing server, database, payment, and other application settings in the central configuration files.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/bex-co/beancount-io/config-project
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/bex-co/beancount-io

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 config-project

README.md
[![agentmods](https://agentmods.dev/badge/rules/bex-co/beancount-io/config-project/github.svg)](https://agentmods.dev/rules/bex-co/beancount-io/config-project)
Your own site
<a href="https://agentmods.dev/rules/bex-co/beancount-io/config-project"><img src="https://agentmods.dev/badge/rules/bex-co/beancount-io/config-project/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 config-project

Your own site · 80×15
<a href="https://agentmods.dev/rules/bex-co/beancount-io/config-project"><img src="https://agentmods.dev/badge/rules/bex-co/beancount-io/config-project.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 547 This file is loaded in full into every session.
When invoked 547 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.00547 $0.00547
Opus 5.5 $0.00219 $0.00219
Sonnet 5.5 $0.00109 $0.00109
Haiku 4.5 $0.00055 $0.00055

Measured yesterday against content hash af2588b77288, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

config-project 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 yesterday.

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.

backend-cluster/backend-v2/.cursor/rules/config-project.mdc · 68 lines

How it starts

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

Configuration Management Rules

Centralized Configuration

All configuration for this project must be centralized in the src/config/ directory.

Configuration Files Structure

  • src/config/config.ts - Main application configuration (preferred location for new configs)
  • src/config/stripe.ts - Legacy Stripe payment configuration (keep for historical reasons)
  • Additional config files - Add new config files here as needed, but prefer adding to config.ts when possible

Import Rules

✅ CORRECT - Import from config directory

// Import main config
import { config } from '@/config/config';
import { SUBSCRIPTION_CONFIG } from '@/config/stripe';

// Use config values
const port = config.server.port;
const stripeConfig = SUBSCRIPTION_CONFIG['beancount-web-prod'];

❌ WRONG - Direct process.env imports

// NEVER do this
const port = process.env.PORT;
const stripeKey = process.env.STRIPE_PRIVATE_KEY;
const dbUri = process.env.POSTGRES_BACKEND_URI;

Configuration Principles

  1. Single Source of Truth: All environment variables must be read only in config files
  2. Type Safety: All config values must be properly typed with interfaces
  3. Default Values: Provide sensible defaults for all configuration values
  4. Environment Separation: Use different configs for dev/prod environments
  5. Validation: Validate required environment variables at startup

Adding New Configuration

When adding new configuration:

  1. Prefer adding to config.ts - This is the main configuration file
  2. Only create new config files if the configuration is very large or domain-specific
  3. Define TypeScript interfaces for type safety
  4. Read from process.env only in config files
  5. Export the config for use in other modules
  6. Keep stripe.ts as-is - It's legacy configuration that should not be moved

Environment Variables

Environment variables should be:

  • Read only in config files
  • Have default values where appropriate
  • Be properly typed in TypeScript interfaces
  • Documented in README or environment setup docs

Read the full file on GitHub · 68 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. yesterday First seen · 68 lines · 547 tokens per session scan A af2588b77288

Subscribe to this mod's changes

config-project is a cursor rule published in the GitHub repository bex-co/beancount-io (808 stars, last pushed yesterday), licensed MIT. It adds 547 tokens to every session, about $0.0022 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-12-01.

Related

config-project compared with cursor rules from other repositories

config-project next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
config-projectbex-co/beancount-ioCursor rule808yesterdayMITA547Cursor
optionsgetsentry/sentry-javaCursor rule1.4ktodayMITA5Cursor
scopesgetsentry/sentry-javaCursor rule1.4ktodayMITA7Cursor
offlinegetsentry/sentry-javaCursor rule1.4ktodayMITA4Cursor
40-vfs-saf-architectureMannanSaood/termiCursor rule12yesterdayMITA0Cursor
data-storage-apiUM-ARK/UM-All-FrontendCursor rule20yesterdaynoneA35Cursor
android-networking-retrofit-okhttpkrutikJain/android-agent-skillsCursor rule158mo agoMITA21Cursor