计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
handling-commands【效率与协作】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.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Best practices for handling commands, validating input, and filtering messages.
Reference these guidelines when:
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Validators | CRITICAL | validators- |
| 2 | Filters | HIGH | filters- |
| 3 | Type Guards | HIGH | guards- |
validators-hex - Use validHex() for hex string validationvalidators-address - Validate Ethereum addressesfilters-message-types - Filter by message typefilters-sender - Filter out self-messagesfilters-content - Check for defined contentguards-codec - Use usesCodec() instead of type assertionsguards-content-type - Use filter helpers for type safetyRead individual rule files for detailed explanations:
rules/validators-hex.md
rules/filters-message-types.md
rules/guards-codec.md