matrix-fix
修复 Matrix Channel 常见问题:加密模块安装、token 过期处理、重新登录等。 Use when: Matrix channel 无法正常工作、加密模块报错、token 失效等问题。
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/boms/matrix-fixWhat This Skill Does
The matrix-fix skill is an essential diagnostic and maintenance utility designed for OpenClaw users running Matrix channels. It acts as a comprehensive toolkit to resolve common communication failures, environment misconfigurations, and authentication errors that frequently plague Matrix integrations. By centralizing repair procedures, this skill automates the remediation of missing encryption modules, handles token expiry issues, assists in DNS troubleshooting, and guides users through complete channel resets. It serves as a bridge between the OpenClaw gateway and the Matrix homeserver, ensuring that your bot remains consistently reachable and fully functional.
Installation
To install this skill, use the following command in your terminal:
clawhub install openclaw/skills/skills/boms/matrix-fix
Ensure that you have the appropriate permissions to modify the OpenClaw installation directory, as some repair operations require elevated system access to perform node module re-builds or configuration updates.
Use Cases
This skill is designed for scenarios where the Matrix integration fails to synchronize or initialize correctly. Common use cases include:
- Resolving 'E2EE disabled' errors caused by missing Node.js crypto binaries.
- Recovering from 'M_UNKNOWN_TOKEN' errors after a long period of inactivity or server-side password changes.
- Troubleshooting connection timeouts caused by DNS resolution failures between the OpenClaw gateway and your specific homeserver.
- Resetting the configuration entirely when moving to a new homeserver or changing bot credentials.
- Batch-leaving noisy or problematic rooms when the bot has joined too many chats.
Example Prompts
- "OpenClaw, my Matrix channel is throwing an E2EE initialization error, please help me fix the crypto modules."
- "I'm getting M_UNKNOWN_TOKEN errors, can you help me reset my authentication token and restart the gateway?"
- "My Matrix bot is acting up; please run a full diagnostic probe and show me the recent logs related to the channel."
Tips & Limitations
- Permissions: Always verify that you are running the
matrix-fixcommands from the correct root directory (/usr/local/lib/node_modules/openclaw) for operations involving module reinstallation. - Diagnostics: Always utilize the
openclaw channels status --probecommand before attempting a reset; it provides granular data about connectivity that can save you time. - Security: When resetting tokens or reconfiguring passwords, ensure you are working within a secure environment. Avoid logging your cleartext password in shell history.
- Scope: This skill is focused specifically on the Matrix protocol. If you are experiencing network-wide outages across all channels, this may be an OpenClaw system-level issue rather than a specific Matrix channel error.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-boms-matrix-fix": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution, network-access