| name | code |
| description | Code generation guidelines for this project. Use when writing code, functions, or classes. Enforces English naming, concise comments, and project conventions. |
| metadata | {"author":"Alexandre Roman","version":"1.0"} |
Code Generation
Guidelines for writing code in this project.
Language Rules
IMPORTANT: Always use English for all code elements:
- Variable names
- Function names
- Class names
- Comments
- Error messages
- Log messages
- String literals (user-facing text)
Code Comments
Comments should be:
- Concise: Short and to the point
- Explanatory: Explain "why", not "what"
- English: Always in English
Good Comments
const result = await retryWithBackoff(fetchData);
const level = calculateLevel(totalPointsEarned);
Bad Comments
const data = fetchData();
counter++;
for (const item of items) { ... }
Project Context
This is a demonstration project for Temporal workflow patterns.
See specifications in specs/ for:
- Domain model:
specs/domain.md
- Workflow patterns:
specs/workflow.md
- API contracts:
specs/api.md
- Architecture:
specs/architecture.md