Reviewing Motoko

Design review for existing Motoko backends — judging whether code is well designed, not how to write it. Covers invariants encoded in types (variants over Text, correlated fields, case _ smells), stable vs transient state discipline under enhanced migration, file structure (types.mo/lib/mixins/main.mo), and severity-ranked findings (Blocker/Warning/Note). Use when reviewing, auditing, critiquing, or refactoring existing .mo files, or when asked for code-review feedback on a Motoko canister. Do NOT use for writing new Motoko code or fixing compiler errors (writing-motoko), authoring migration files (migrating-motoko-actors), or deployment.

dfinity eeda986 3 files · 26.0 KB Updated

File contents

dfinity/icskills/tree/main/skills/reviewing-motoko commit eeda986e44

Frequently asked questions

npx skillmds@latest add dfinity/reviewing-motoko