log-reader-mcp: Cursor rule for Cursor

.cursor/rule.mdc

rule is a cursor rule for Cursor from hassansaadfr/log-reader-mcp. It costs 1,022 tokens per session, scanned A, original, MIT.

A project rule requiring all code, comments, documentation, configuration text, and user-facing strings to be written in English. Localization should use internationalization support.

In plain words
What is it for?
Checking variable and function names, comments, error messages, README files, documentation, and text in configuration files.
Why use it?
It prevents mixed-language project content and makes the codebase and documentation consistent for English-speaking contributors.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

This is hassansaadfr/log-reader-mcp's own configuration. It tells Cursor how to work on log-reader-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything log-reader-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hassansaadfr/log-reader-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/hassansaadfr/log-reader-mcp/main/.cursor/rule.mdc
Clone the repo
git clone --depth 1 https://github.com/hassansaadfr/log-reader-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

README.md
[![agentmods](https://agentmods.dev/badge/rules/hassansaadfr/log-reader-mcp/rule/github.svg)](https://agentmods.dev/rules/hassansaadfr/log-reader-mcp/rule)
Your own site
<a href="https://agentmods.dev/rules/hassansaadfr/log-reader-mcp/rule"><img src="https://agentmods.dev/badge/rules/hassansaadfr/log-reader-mcp/rule/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 rule

Your own site · 80×15
<a href="https://agentmods.dev/rules/hassansaadfr/log-reader-mcp/rule"><img src="https://agentmods.dev/badge/rules/hassansaadfr/log-reader-mcp/rule.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,022 This file is loaded in full into every session.
When invoked 1,022 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.01022 $0.01022
Opus 5.5 $0.00409 $0.00409
Sonnet 5.5 $0.00204 $0.00204
Haiku 4.5 $0.00102 $0.00102

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

Security

Grade A, and why

rule 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 2mo 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/rule.mdc · 150 lines

How it starts

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

English-Only Development Rule

This rule enforces that all code, comments, and documentation must be written in English throughout the project.

Scope

This rule applies to:

  • All source code files (.ts, .js, .tsx, .jsx, etc.)
  • All comments within code files
  • All documentation files (.md, .mdx, etc.)
  • All configuration files with text content
  • All README files and project documentation

Requirements

Code Files

  • Variable names: Must be in English
  • Function names: Must be in English
  • Class names: Must be in English
  • Comments: Must be in English
  • String literals: User-facing strings should be in English (use i18n for localization)
  • Error messages: Must be in English

Documentation Files

  • README files: Must be in English
  • API documentation: Must be in English
  • Code comments: Must be in English
  • Inline documentation: Must be in English

Configuration Files

  • Comments in config files: Must be in English
  • Descriptive text: Must be in English

Examples

✅ Correct (English)

// Initialize the user authentication service
const authService = new AuthenticationService();

/**
 * Validates user credentials and returns authentication token
 * @param username - The user's username
 * @param password - The user's password
 * @returns Promise<AuthToken>
 */
async function validateCredentials(username: string, password: string): Promise<AuthToken> {
  // Check if user exists in database
  const user = await findUserByUsername(username);

  if (!user) {
    throw new Error('User not found');
  }

  // Verify password hash
  const isValidPassword = await verifyPassword(password, user.passwordHash);

  if (!isValidPassword) {
    throw new Error('Invalid credentials');
  }

  return generateAuthToken(user);
}

❌ Incorrect (French)

// Initialiser le service d'authentification utilisateur
const serviceAuth = new ServiceAuthentification();

/**
 * Valide les identifiants utilisateur et retourne le token d'authentification
 * @param nomUtilisateur - Le nom d'utilisateur
 * @param motDePasse - Le mot de passe
 * @returns Promise<AuthToken>
 */
async function validerIdentifiants(nomUtilisateur: string, motDePasse: string): Promise<AuthToken> {
  // Vérifier si l'utilisateur existe dans la base de données
  const utilisateur = await trouverUtilisateurParNom(nomUtilisateur);

  if (!utilisateur) {
    throw new Error('Utilisateur non trouvé');
  }

  // Vérifier le hash du mot de passe
  const motDePasseValide = await verifierMotDePasse(motDePasse, utilisateur.hashMotDePasse);

  if (!motDePasseValide) {
    throw new Error('Identifiants invalides');
  }

  return genererTokenAuth(utilisateur);
}

Read the full file on GitHub · 150 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. 2mo ago First seen · 150 lines · 1,022 tokens per session scan A 6a799eee9c4b

Subscribe to this mod's changes

rule is a cursor rule published in the GitHub repository hassansaadfr/log-reader-mcp (6 stars, last pushed 1y ago), licensed MIT. It adds 1,022 tokens to every session, about $0.0041 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

rule compared with cursor rules from other repositories

rule next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rulehassansaadfr/log-reader-mcpCursor rule61y agoMITA1,022Cursor
internationalizationdtyq/magicCursor rule5.1k13d agononeA3,524Cursor
cmd-moodle-mustache-lintSaadRahman01/claude-moodle-devCursor rule424mo agoMITA32Cursor
chinese-languagedoccker/cc-use-expCursor rule1.1k2mo agononeA385Cursor
rtl-right-to-left-i18n-cursorrules-prompt-fileXD3an/awesome-ai-coding-all-in-oneCursor rule1511d agononeA608Cursor
uninettuno-monografiariccardodicurti/template-latex-tesi-uninettunoCursor rule75mo agoMITA645Cursor
reportMineru98/mysql-mcp-serverCursor rule281y agoMITA8Cursor