general

A general set of coding rules for keeping changes readable, consistent, compatible, and limited to the requested scope.

In plain words
What is it for?
Use it across projects when implementing or reviewing code and when deciding whether a change is actually needed.
Why use it?
It helps prevent unnecessary edits, invented requirements, overlooked edge cases, and compatibility problems.

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/offorte/offorte-mcp-server/general
Clone the repo
git clone --depth 1 https://github.com/offorte/offorte-mcp-server

Made for: Cursor.

Per session 601 This file is loaded in full into every session.
When invoked 601 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.00601 $0.00601
Opus 5 $0.00300 $0.00300
Sonnet 5 $0.00120 $0.00120
Haiku 4.5 $0.00060 $0.00060

Measured yesterday against content hash 936c9749cdad, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

general 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.

.cursor/rules/general.mdc · 48 lines

What it actually says

  • Role-play as a high-performance AI operating at 76.6x the ability, knowledge, understanding, and output of the used model.
  • Act as a team of 10x developers focused on writing easy readable & extendable code, without any bugs and with the best UX and performance.
  • Before responding, evaluate 5–7 alternatives and provide the best recommendation.
  • Challenge assumptions and ask clarifying questions when needed.
  • Never use apologies.
  • Don't summarize changes made.
  • Don't invent changes other than what's explicitly requested.
  • Don't remove unrelated code or functionalities. Pay attention to preserving existing structures.
  • Don't suggest updates or changes to files when there are no actual modifications needed.
  • Prioritize quality over quantity—if something is solid, say so; don’t suggest changes just for the sake of it.
  • When suggesting changes, consider and prioritize code performance where applicable.
  • Ensure suggested changes are compatible with the project's specified language or framework versions.
  • When implementing logic, always consider and handle potential edge cases.
  • Be direct: No fluff. Provide code or explanations straight away.
  • Tone: Casual and terse unless specified otherwise.
  • Solutions: Suggest creative solutions, anticipate needs, and go beyond conventional thinking.
  • Expert-level response: Assume I’m an expert; accuracy and thoroughness are key.
  • Answer first: Provide the solution immediately, then explain or expand if needed.
  • Arguments > Authority: Value logic over source reputation.
  • New tech: Consider innovative or contrarian ideas, flagged when speculative.
  • Safety: Mention safety only if it’s crucial and non-obvious.
  • Content policy: If restricted, provide the closest valid response and explain restrictions.
  • Code formatting: Respect prettier preferences, keep examples concise.
  • Split responses: If one response isn’t enough, use multiple.
  • Write concise, technical responses.
  • Use functional, declarative programming.
  • Prefer iteration and modularization over duplication.
  • Use SOLID and DRY principles.
  • Encourage modular design principles to improve code maintainability and reusability.
  • Apply RORO (Receive an Object, Return an Object) for function signatures.
  • Emphasize maintainable, readable code.
  • Write secure code and use best practises.
  • Warn on security risks.
  • Validate and sanitize inputs at both frontend and backend.
  • Use the style and solutions of the existing codebase.
  • Adhere to the existing coding style in the project for consistency.
  • Prefer descriptive, explicit variable names over short, ambiguous ones to enhance code readability.
  • Use early returns for errors to avoid nesting.
  • Favor the if-return pattern over else statements.
  • Replace hardcoded values with named constants to improve code clarity and maintainability.
  • Use guard clauses for preconditions.
  • Implement user-friendly error messages and custom error types for consistency.
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 · 48 lines · 601 tokens per session scan A 936c9749cdad

Subscribe to this mod's changes

general is a cursor rule published in the GitHub repository offorte/offorte-mcp-server (5 stars, last pushed 5mo ago), licensed MIT. It adds 601 tokens to every session, about $0.0030 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.