/matrix-client:read-messagesfrom matrix-client
Read recent Matrix messages in a room (last N, incl. your own) or wait for new ones. Use on "what's new on Matrix".
Ships in matrix-client. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read-only. Needs the CLI logged in (cli-login).
list-rooms. Omit for the default room.MC_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/matrix-commander"
M="matrix-commander -c $MC_DIR/credentials.json -s $MC_DIR/store"
cd /tmp && timeout 90 $M --room '<room>' --tail <N> --listen-self --output json 2>/dev/null \
| jq -c '{ts: (.source.origin_server_ts/1000|todate), sender: .source.sender, type: .source.type, body: .source.content.body}'
--listen-self is needed, otherwise the account's own messages are left out. Drop
--output json and the jq for readable text.
Output runs newest first. Non-message events (joins, state changes) have body: null; filter
on type == "m.room.message" for messages only.timeout 300 $M --room '<room>' --listen once --listen-self 2>/dev/null
--listen forever runs until killed; only use it in a background task.cli-login
step 5). Not yet confirmed on a live encrypted room (2026-11-17).--tail 3 without --listen-self returned nothing,
with it returned the 3 latest events.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/check-loginCheck whether Element Desktop and the matrix-commander CLI are logged in to Matrix, and as which user. Use on "am I logged in to Matrix"./cli-loginLog the matrix-commander CLI in to a Matrix account (password or SSO) as a new device, then verify it. Use on "log the Matrix CLI in"./install-clientInstall a Matrix client on this computer: Element Desktop (GUI) and the matrix-commander CLI. Use on "install Matrix", "set up Element"./list-roomsList the Matrix rooms the logged-in account is in, with names, aliases, encryption and members. Use on "which Matrix rooms am I in".matrix-client@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin matrix-client