coding

General coding style preferences. Always active when writing or modifying code.

SKILL.md

GitHub

Coding Style

  • Only write comments when they are absolutely necessary to explain a concept or a behavior, not for things that you can read the code and understand.
  • It's OK to use empty lines to separate logical blocks of code, but avoid unnecessary empty lines otherwise.
  • Simplify boolean expressions, avoid pleonasms like #expect(expression == true) or #expect(expression == false).

Racket Coding

  • Refer to the racket-coding skill.

Swift Coding

  • Refer to the swift-coding skill.