Skills
Skills are pre-built instruction sets that give AI coding agents specialized knowledge about M0. They provide context about the protocol, smart contracts, integration patterns, and best practices — so you can build on M0 without needing to explain everything from scratch.
What are Skills?
Skills are markdown-based instruction files that AI coding tools load as context. They contain:
- Protocol architecture and terminology
- Smart contract interfaces and addresses
- Integration patterns and code examples
- Best practices and common pitfalls
When installed, your AI assistant can help you write M0 integration code, debug contract interactions, and follow M0 conventions automatically.
Available Skills
| Skill | Description | Download |
|---|---|---|
| M0 Protocol | Core protocol concepts, M token, minting/burning, TTG governance | m0-protocol.md |
| Stablecoin Integration | Building with Wrapped M, extension patterns, cross-chain bridging | m0-stablecoin-integration.md |
Installation
Install skills by downloading them into your project's .claude/skills/ directory:
mkdir -p .claude/skills/m0-protocol
curl -o .claude/skills/m0-protocol/SKILL.md https://docs.m0.org/skills/m0-protocol.md
mkdir -p .claude/skills/m0-stablecoin-integration
curl -o .claude/skills/m0-stablecoin-integration/SKILL.md https://docs.m0.org/skills/m0-stablecoin-integration.md
Claude Code will automatically pick up skills from .claude/skills/ in your project directory.
Add M0 skills as context in your .cursor/rules file:
@https://docs.m0.org/skills/m0-protocol.md
@https://docs.m0.org/skills/m0-stablecoin-integration.md
Cursor will use these files as context when you ask questions about M0.
For tools that support custom instructions or system prompts, reference the skill files directly:
- Direct URL: Add
https://docs.m0.org/skills/m0-protocol.mdas a context source - LLMs.txt: Use the LLMs.txt files for broader documentation coverage
- MCP Server: Connect via the MCP Server for on-demand, searchable access
Usage
Once installed, you can ask your AI assistant to:
- "Create a contract that wraps M tokens"
- "How do I integrate M0 minting into my dApp?"
- "What's the correct way to call proposeMint()?"
- "Set up cross-chain M token bridging"
- "What are the steps to get earner approval for my extension?"
The assistant will use its M0 knowledge to provide accurate, context-aware code and guidance.