askill
matrix-communication

matrix-communicationSafety 95Repository

Use when sending messages to Matrix rooms, interacting with Matrix chat, or automating team notifications via Matrix protocol.

2 stars
1.2k downloads
Updated 3/5/2026

Package Files

Loading files...
SKILL.md

Matrix Communication

Send messages to Matrix chat rooms on behalf of users.

When to Use

Automatically activate when you encounter:

  • Room references: #room:server, !roomid:server
  • Chat requests: "send to matrix", "post in chat", "notify the team"
  • Matrix URLs: https://matrix.*/, https://element.*/
  • Setup requests: "configure matrix", "set up matrix skill"

Quick Reference

# Send message (E2EE preferred)
uv run skills/matrix-communication/scripts/matrix-send-e2ee.py room-name "Hello!"

# Send by room alias
uv run skills/matrix-communication/scripts/matrix-send-e2ee.py "#room:server" "Hello!"

# List joined rooms
uv run skills/matrix-communication/scripts/matrix-rooms.py

# Read recent messages (E2EE)
uv run skills/matrix-communication/scripts/matrix-read-e2ee.py room-name --limit 10

# React to a message
uv run skills/matrix-communication/scripts/matrix-react.py room-name '$eventId' "✅"

# Thread reply
uv run skills/matrix-communication/scripts/matrix-send-e2ee.py room-name "Update" --thread '$rootEventId'

# Emote message (like /me)
uv run skills/matrix-communication/scripts/matrix-send-e2ee.py room-name "is deploying" --emote

# Fetch missing keys from other devices
uv run skills/matrix-communication/scripts/matrix-fetch-keys.py room-name --sync-time 60

# Restore keys from server backup (decrypt old messages)
uv run skills/matrix-communication/scripts/matrix-key-backup.py --recovery-key "EsTj ..." --import-keys

# Health check / auto-install deps
python3 skills/matrix-communication/scripts/matrix-doctor.py --install

Scripts Overview

Always prefer E2EE scripts (*-e2ee.py) -- most Matrix rooms are encrypted.

OperationE2EE Script (preferred)Non-E2EE Fallback
Send messagematrix-send-e2ee.pymatrix-send.py
Read messagesmatrix-read-e2ee.pymatrix-read.py
Edit messagematrix-edit-e2ee.pymatrix-edit.py
Reactmatrix-react.py(same)
Redactmatrix-redact.py(same)

Other: matrix-rooms.py, matrix-resolve.py, matrix-e2ee-setup.py, matrix-e2ee-verify.py, matrix-fetch-keys.py, matrix-key-backup.py.

Room Identification

FormatExampleDescription
Room nameagent-workEasiest -- matched from joined rooms
Room ID!sZBo...Q22EDirect, from matrix-rooms.py output
Room alias#room:serverResolved via Matrix directory

Config

File: ~/.config/matrix/config.json

FieldRequiredDescription
homeserverYesMatrix server URL
user_idYesFull Matrix user ID (@user:server)
bot_prefixNoPrefix for messages (e.g., bot emoji)
access_tokenNoAuto-created by E2EE setup

E2EE Notes

  • First run slow (~5-10s) due to key sync. [Unable to decrypt] = missing keys, recoverable via key backup
  • Use --json for programmatic analysis; reactions are m.reaction events (see references/messaging-guide.md)
  • Verify with Element Desktop/Android (not Element X). Use --timeout 180 for verification

Error Handling

ErrorSolution
M_FORBIDDENJoin room first in Element
M_UNKNOWN_TOKENGet new token from Element
Could not find roomUse matrix-rooms.py to list available rooms
Multiple matchesUse more specific name or room ID

References

  • references/setup-guide.md -- Setup walkthrough
  • references/e2ee-guide.md -- E2EE details, key recovery, verification
  • references/messaging-guide.md -- Formatting, reactions, common patterns
  • references/api-reference.md -- Matrix API endpoints
  • Source: netresearch/matrix-skill

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

88/100Analyzed 3/8/2026

High-quality Matrix communication skill with excellent structure and comprehensive coverage. Provides concrete commands, clear tables for scripts/config/errors, and includes When to Use triggers. Located in proper skills folder with generic tags. Scores well on all dimensions - highly actionable, clear, reusable, and safe. Only minor gap is lack of detailed setup walkthrough in the main document (referenced separately)."

95
90
85
75
85

Metadata

Licenseunknown
Version-
Updated3/5/2026
Publishernetresearch

Tags

apigithub