motoko-general-style-guidelines

Installation
SKILL.md

Motoko general style guidelines

What This Is

To increase readability and uniformity of Motoko source code, the style guide provides suggestions for formatting Motoko sources and other basic conventions.

Layout

Spacing

  • Put spaces around arithmetic operators, except to visually group sub-expressions of more tightly binding operators.

    let z = - 2*x + 3*y + 4*(x*x + y*y);
    
  • Put spaces around comparison operators, Boolean operators, and assignment operators.

Related skills
Installs
32
First Seen
Mar 27, 2026