motoko

Generate Motoko actors with mo:core and stable types for Internet Computer canisters.

Updated Dec 18, 2025
One-click install
npx skills add https://github.com/Looping-AI/looping-control-plane --skill motoko
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: motoko
Source: https://github.com/Looping-AI/looping-control-plane/tree/main/.agents/skills/motoko
Command: npx skills add https://github.com/Looping-AI/looping-control-plane --skill motoko

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Motoko language pitfalls and modern syntax gaps for Internet Computer canister development.

Core Features & Use Cases

  • Understand persistent actor requirements, stable types, mo:core standard library usage
  • Troubleshoot common Motoko compiler errors and runtime traps
  • Generate Motoko actors with best practices for safe upgrades and patterns

Quick Start

Describe a Motoko snippet that demonstrates a minimal persistent actor using mo:core types.

Frequently Asked Questions about motoko

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix common Motoko compiler errors when developing Internet Computer canisters?

Fix Motoko compiler errors by addressing type system constraints and syntax pitfalls specific to canister development. This resolves common compilation failures and runtime traps by correcting persistent actor rules and stable type usage.

What are stable types and how do they work in Motoko persistent actors?

Stable types in Motoko persistent actors preserve state across canister upgrades. Defining stable variables correctly ensures data persistence without loss, maintaining memory continuity during Internet Computer canister updates.

How do I create a minimal persistent actor using mo:core types in Motoko?

Create a minimal persistent actor by importing mo:core standard library types and applying stable variable declarations. This generates safe canister code that conforms to best practices for upgrades and state preservation.

Why does my Motoko canister trap at runtime during an upgrade?

Motoko canisters trap at runtime during upgrades due to incorrect stable type serialization or violating persistent actor rules. Ensure your state variables match stable type constraints to prevent upgrade failures.

When do I need to use mo:core standard library types for Internet Computer canister development?

Use mo:core standard library types when building Motoko actors that require safe memory management and persistent data structures. This ensures canister code conforms to modern syntax requirements and avoids common language pitfalls.