Pragmatic coding standards for writing clean, maintainable code — naming, functions, structure, anti-patterns, and pre-edit safety checks. Use when writing new code, refactoring existing code, reviewing code quality, or establishing coding standards.
Major update: Comprehensive clean code standards, patterns, and anti-patterns guide. - Added core clean code principles (SRP, DRY, KISS, YAGNI, Boy Scout). - Detailed naming conventions with anti-patterns and practical examples. - Expanded function rules: guidelines on size, arguments, side effects, and guard clauses. - Introduced code structure patterns: composition, colocation, and extraction. - Provided anti-patterns table with actionable fixes. - Included a pre-edit safety checklist to prevent unintended breakage. - Full rewrite and significant expansion from prior versions.