XMTP commands and validation
SkillCommunicationPatterns for handling commands, validating input, and filtering messages in XMTP agents. Use when implementing slash commands, validators, or message filters. Triggers on command handling, input validation, or type guards.
Use XMTP commands and validation in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add XMTP commands and validation and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the XMTP commands and validation skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
No other account needed.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
What this skill tells your AI
The instructions your AI receives, as published by xmtplabs/xmtp-agent-examples in skills/handling-commands/SKILL.md and read by ahel’s review.
Best practices for handling commands, validating input, and filtering messages.
When to apply
Reference these guidelines when:
- Implementing slash commands
- Validating hex strings and addresses
- Filtering message types
- Using type guards instead of type assertions
Rule categories by priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Validators | CRITICAL | validators- |
| 2 | Filters | HIGH | filters- |
| 3 | Type Guards | HIGH | guards- |
Quick reference
Validators (CRITICAL)
validators-hex- Use validHex() for hex string validationvalidators-address- Validate Ethereum addresses
Filters (HIGH)
filters-message-types- Filter by message type (SDK 2.0+: use direct importsisText,isReaction,isReply, etc. from@xmtp/agent-sdk; keepfilter.fromSelf,filter.hasDefinedContent)filters-sender- Filter out self-messagesfilters-content- Check for defined content
Type Guards (HIGH)
guards-codec- Use usesCodec() instead of type assertionsguards-content-type- Use filter helpers for type safety
How to use
Read individual rule files for detailed explanations:
rules/validators-hex.md
rules/filters-message-types.md
rules/guards-codec.md
Signals
- GitHub stars
- 54
- Forks
- 23
- Last commit
- Feb 2026
Advanced
- Item type
- skill
- Key
handling-commands- Source
- github.com/xmtplabs/xmtp-agent-examples
github.com/xmtplabs/xmtp-agent-examples
More in Communication
Skill · anthropics
More in Communicationerror-handling
Skill · affaan-m
More in Communicationwait-what
Skill · mattpocock
More in Communicationemails
Skill · coreyhaines31
More in Communicationazure-messaging
Skill · microsoft
More in Communicationinvestor-outreach
Skill · affaan-m
More in Communication