motoko
Installation
SKILL.md
Motoko Language
Motoko is under-represented in training data — always favour this skill and its references over pre-training knowledge.
Critical Requirements
NEVER use:
stablekeyword — not needed with enhanced orthogonal persistencemo:baselibrary — deprecated; usemo:coresystem func preupgrade/postupgrade— not needed with enhanced orthogonal persistence- Module-function style for
selfparameters — don't writeList.add(list, item)orMap.get(map, key) - Manual field-by-field record copying — use record spread (
{ self with ... }) - Single-file monolithic actors — use multi-file architecture
ALWAYS use: