matrix-mentions-patch
Use when a user reports Matrix @mentions not working, notifications not triggering, asks to fix/update the mentions patch, or asks to install/apply the patch. This skill should only be used when explicitly requested.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/biociao/matrix-mentions-patchMatrix Mentions Patch
Patches OpenClaw's Matrix plugin to attach m.mentions to outbound messages so clients like Element properly notify mentioned users.
When to Use
- User reports @mentions not triggering notifications
- User asks to "fix Matrix mentions" or "update the mentions patch"
- User asks to "install" or "apply" the mentions patch
Only apply when requested. Do not auto-apply.
Patch Status Check
Before applying, check if already patched:
grep -l "extractMentionsFromText" ~/.nvm/versions/node/v22.22.0/lib/node_modules/openclaw/extensions/matrix/src/matrix/send/formatting.ts
- Already patched: Output will show the file. No action needed — just use correct @mention format.
- Not patched: No output. Proceed to apply the patch.
How to Apply (First-time Setup)
Step 1: Run the patch script
node ~/.openclaw/workspace/skills/matrix-mentions-patch/patch-matrix-mentions.mjs
The script will:
- Locate
auth-profiles-*.jsin OpenClaw's dist/ - Create a
.bakbackup automatically - Patch in-place
Step 2: Restart the gateway
openclaw gateway restart
Step 3: Verify
Send a message with a full Matrix ID mention:
@username:matrix.biochao.cc
The mentioned user should see a notification.
Routine Use (After Patched)
Once patched, no further action needed. Just ensure correct @mention format:
正确格式:
@username:matrix.biochao.cc
错误格式:
- Markdown link:
[](https://matrix.to/#/@user) - HTML span:
<span>@user</span> - 任何包装格式
直接发送纯文本 Matrix ID,客户端即可正确识别并通知。
Re-applying After Updates
Every openclaw update may overwrite the patch. Re-apply by running:
node ~/.openclaw/workspace/skills/matrix-mentions-patch/patch-matrix-mentions.mjs
openclaw gateway restart
Undoing the Patch
Restore from backup:
cp ~/.nvm/versions/node/v22.22.0/lib/node_modules/openclaw/dist/auth-profiles-*.js.bak \
~/.nvm/versions/node/v22.22.0/lib/node_modules/openclaw/dist/auth-profiles-*.js
openclaw gateway restart
Target File
~/.nvm/versions/node/v22.22.0/lib/node_modules/openclaw/dist/auth-profiles-*.js
Requirements
- OpenClaw core
- Matrix plugin configured and working
- Node.js runtime
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-biociao-matrix-mentions-patch": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
piclaw-agent-academic-team-collaboration
AI科研团队智能协作助手。用于:(1) 管理团队知识库和项目进度追踪 (2) 协助会议纪要整理、文献综述、实验记录 (3) 代码辅助和数据分析 (4) 按团队协议执行日/周工作循环。当团队成员在Issue、PR或即时通讯中@AI,或需要知识管理、项目进度监控、文档协作时触发。
literature-daily-report
每日科研文献日报生成与管理。当用户请求生成科研日报、更新文献收集脚本或分析研究趋势时激活。支持:(1) 自动抓取 PubMed/bioRxiv/arXiv 最新文献,(2) 语义筛选 AI/生信/病原/真菌等领域,(3) LLM 智能总结与编辑排版,(4) 中文格式报告输出,(5) Zotero 自动录入,(6) 知识图谱同步。
literature-daily-report
每日科研文献日报生成与管理。当用户请求生成科研日报、更新文献收集脚本或分析研究趋势时激活。支持:(1) 自动抓取 PubMed/bioRxiv/arXiv 最新文献,(2) 语义筛选 AI/生信/病原/真菌等领域,(3) LLM 智能总结与编辑排版,(4) 中文格式报告输出与定时任务管理。
agent-onboarding
新成员加入群聊后的快速上手指南。当新 agent 加入 Meeting 群或任何项目群时,使用此 skill 指导其:更新自己的 AGENTS.md、建立群组笔记、掌握发言规范、搭建设记忆体系。触发场景:被要求"教新成员"、"更新 AGENTS.md"、"建立项目文档"、"快速上手群聊"。