From matrix
Set up the Matrix channel — save credentials and review access policy. Use when the user pastes Matrix bot credentials, asks to configure Matrix, asks "how do I set this up" or "who can reach me," or wants to check channel status.
npx claudepluginhub dave700r/claude-code-matrix-channelThis skill is limited to using the following tools:
Writes bot credentials to `~/.claude/channels/matrix/.env` and orients the
Suggests manual /compact at logical task boundaries in long Claude Code sessions and multi-phase tasks to avoid arbitrary auto-compaction losses.
Share bugs, ideas, or general feedback.
Writes bot credentials 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, MATRIX_USER_ID, MATRIX_ACCESS_TOKEN,
MATRIX_DEVICE_ID. Show set/not-set for each. If token is set, show
first 10 chars masked (syt_claud...).
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 with the details."/matrix:access allow @you:server.com."Push toward lockdown — always. The default policy is allowlist, which is
correct. If the policy is set to pairing, drive toward locking it down once
the needed users are added.
<homeserver> <user_id> <access_token> [device_id] — save credentials$ARGUMENTS as space-separated values.mkdir -p ~/.claude/channels/matrix.env if present; update/add the credential lines,
preserve other keys. Write back, no quotes around values.
MATRIX_HOMESERVER=<homeserver>MATRIX_USER_ID=<user_id>MATRIX_ACCESS_TOKEN=<access_token>MATRIX_DEVICE_ID=<device_id> (if provided)chmod 600 ~/.claude/channels/matrix/.env — credentials are sensitive.clear — remove credentialsDelete the credential lines from .env (or the file if those are the only
lines).
.env once at boot. Credential changes need a session
restart. Say so after saving.access.json is re-read on every inbound message — policy changes via
/matrix:access take effect immediately, no restart.