Handling Commands
Patterns for handling commands, validating input, and filtering messages in XMTP agents.
by boomsystel-code · MIT
The skill
Patterns 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.
XMTP commands and validation
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 typefilters-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
Use this skill
Connect your agent to the Skill Store MCP server and ask for it by ref: boomsystel-code/handling-commands-9198338041.
Details
- Publisher
- boomsystel-code
- Category
- Software Development › APIs & backend
- License
- MIT
- Updated
- 2026-02-08
References
More from boomsystel-code
- Aaveclaw Aave V3 lending protocol on Base Sepolia testnet.
- Academic Deep Research Transparent, rigorous research with full methodology — not a black-box API wrapper.
- Accessibility Toolkit Friction-reduction patterns for agents helping humans with disabilities.
- Ad Creative Generator Generate diverse, engaging ad prompts for any product or brand across 20+ creative styles and 10…