From matrix
Set up the Matrix channel — save the homeserver URL and access token, review access policy. Use when the user pastes a Matrix access token, asks to configure Matrix, or wants to check channel status.
How this skill is triggered — by the user, by Claude, or both
Slash command
/matrix:configureThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Writes the homeserver and access token to `~/.claude/channels/matrix/.env` and
Writes the homeserver and access token to ~/.claude/channels/matrix/.env and
orients the user on access policy. The server reads both files at boot.
Arguments passed: $ARGUMENTS
Read both state files and give the user a complete picture:
Credentials — check ~/.claude/channels/matrix/.env for
MATRIX_HOMESERVER and MATRIX_ACCESS_TOKEN. Show set/not-set; if set,
show homeserver and first 10 chars of token masked (syt_abc...).
Access — read ~/.claude/channels/matrix/access.json (missing file =
defaults: dmPolicy: "allowlist", empty allowlist). Show:
What next — end with a concrete next step based on state:
/matrix:configure <homeserver> <access_token>"/matrix:access allow @you:server"<homeserver> <access_token> — save credentials$ARGUMENTS. First arg is the homeserver URL, second is the access
token. The homeserver should be a full URL like https://matrix.org.mkdir -p ~/.claude/channels/matrix.env if present; update/add the MATRIX_HOMESERVER= and
MATRIX_ACCESS_TOKEN= lines, preserve other keys. Write back, no quotes./reload-plugins for changes to take
effect."clear — remove credentialsDelete the MATRIX_HOMESERVER= and MATRIX_ACCESS_TOKEN= lines (or the file
if those are the only lines).
If the user asks how to get a token, guide them:
syt_ on newer homeservers)curl -X POST https://matrix.org/_matrix/client/v3/login \
-H 'Content-Type: application/json' \
-d '{"type":"m.login.password","user":"@bot:matrix.org","password":"..."}'
The response contains access_token..env once at boot. Credential changes need a session
restart or /reload-plugins. Say so after saving.access.json is re-read on every inbound message — policy changes via
/matrix:access take effect immediately, no restart.npx claudepluginhub solastrius/claude-plugins --plugin matrixCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.