motoko-compiler-warnings-fixes

Official

Guidelines to fix Motoko compiler warnings.

Authorresearch-ag
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This guide helps developers identify, understand, and clean up Motoko compiler warnings (MOC) surfaced during dfx build --check, reducing noise and preventing regressions.

Core Features & Use Cases

  • Structured fixes for common warnings: provides safe patterns for M0194 unused identifiers and M0244 variable mutability, with emphasis on preserving type safety.
  • Bulk-fix workflows: describes step-by-step, test-driven approaches to apply changes across multiple canisters and code paths.
  • Practical guidelines: includes warnings about potential type errors (M0096) and rebuild verification to ensure correctness.

Quick Start

Run the build check and follow the guidelines to apply fixes across your Motoko codebase.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: motoko-compiler-warnings-fixes
Download link: https://github.com/research-ag/motoko-skills/archive/main.zip#motoko-compiler-warnings-fixes

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.