AI / ML 12 Maj 2026

Reglas globales de Cursor - idioma e interpuntuación

También en:

Recientemente escribí un artículo sobre Cursor, sus funcionalidades y configuración disponible aquí: Cursor – guía completa de capacidades y configuración de agentes IA.
Hoy una breve nota con ejemplos de reglas generales.

Dónde colocar las reglas

Crea el directorio ~/.cursor/rules/ y coloca allí los archivos .mdc. Estas reglas funcionan de forma global en todos los proyectos.

Regla 1 — español en las conversaciones

Una regla perezosa — bueno, ya que nos comunicamos con el agente en lenguaje natural, ¿por qué no hacerlo aún más natural?

Crea el archivo: ~/.cursor/rules/spanish-language.mdc
Snippet en Bitbucket: Cursor - rule for Spanish in conversation

Contenido:

---
description: Always respond in Spanish unless told otherwise.
alwaysApply: true
---

# Idioma de comunicación

Siempre comunícate conmigo en español — en respuestas, preguntas, explicaciones y cualquier mensaje de texto dirigido a mí.

Excepción: si el usuario solicita explícitamente otro idioma, cámbialo.

Esto no aplica al código, nombres de variables, comentarios en el código ni al contenido generado para archivos — allí sigue las convenciones propias del lenguaje de programación correspondiente.

Regla 2 — comentarios de código en inglés

Independientemente del idioma en que me comunique con el agente, los comentarios y docstrings deben escribirse siempre en inglés.

Crea el archivo: ~/.cursor/rules/english-code-comments.mdc
Snippet en Bitbucket: Cursor - rule that code comments in all programming languages must be in English

Contenido:

---
description: Code comments in all programming languages must be in English.
alwaysApply: true
---

# Code Comments Language

All comments in any programming language must be written in English.

This applies to:
- Inline comments (`# comment`, `// comment`, `-- comment`, etc.).
- Block comments (`/* ... */`, `""" ... """`, etc.).
- Docstrings and documentation blocks.
- Robot Framework documentation (`[Documentation]`, `Documentation:`).
- Any other form of in-code annotation.

Do NOT write comments in Polish or any other language — English only.

Regla 3 — puntuación en textos y listas

Personalmente, la ausencia de puntos al final de las oraciones o en las listas me irrita bastante, así que decidí solucionarlo también con una regla.

Crea el archivo: ~/.cursor/rules/punctuation-rules.mdc
Snippet en Bitbucket: Cursor - rule for punctuation in texts, docstrings, descriptions and bullet lists

Contenido:

---
description: Punctuation rules for texts, docstrings, descriptions and bullet lists.
alwaysApply: true
---
# Punctuation Rules
## Sentences in texts
Every sentence in any written text (docstrings, descriptions, articles, comments, documentation) must end with a period. Section headings are the only exception.
## Bullet lists
Apply punctuation based on the nature of the list items:
**1. Full sentences (each item is a standalone sentence)**
- Start each item with a capital letter.
- End each item with a period.
- Use this form for longer, complex descriptions.
**2. Short phrases continuing an introductory sentence**
If items complete or continue a lead-in sentence (items start with a lowercase letter), end each item with a comma or semicolon, and the last item with a period.
Example — "To prepare the dough you need:":
- wheat flour,
- fresh yeast,
- warm milk.
**3. Short keyword lists (no punctuation)**
Omit punctuation entirely when the list consists of standalone short keywords or labels that are not part of a sentence (e.g. a shopping list, a tag list, a feature list).
Example:
- bread
- milk
- butter