Files

15 lines
858 B
Markdown
Raw Permalink Normal View History

2026-03-21 16:20:16 +02:00
# General Coding Rules for Agents (non-negotiable)
1. No emojis in code unless explicitly asked for
2. Self-documented code whenever possible; clear, understandable comments in not so obvious cases
3. Two-space indentation (except Makefiles)
4. Max line length: 112 characters
5. String literal quotation (if applies to the language): double-quoted if the string is supposed to be interpolated or contains apostrophes, single-quoted otherwise
6. Max cyclomatic complexity of functions: 12
7. The code is supposed to run on very slow hardware; **optimize for performance** as much as possible
8. Use shorter constructs, as short as the language allows, unless this severely violates rule 7
9. No third-party modules unless absolutely required or explicitly asked for
10. Plan first, write later
IMPORTANT: Re-read these rules before executing any request.