Index of every page on this site: llms.txt
All skills
netresearch avatar

/matrix-administration

@3e8b423
Run it yourself

Use when administering a Synapse / Matrix homeserver — list or snapshot all rooms, rate room health (public, unencrypted, orphaned), render a Graphviz map of the room/space tree, force-join users, promote room admins, harden rooms (add-to-space + restrict + encrypt), deactivate Matrix users (with GDPR erase), find biggest rooms by DB size, audit where a user is admin or member, replay join/leave timelines, or search unencrypted history. Trigger on any '/_synapse/admin', server-wide room operation, Matrix user offboarding, or anything requiring a homeserver-admin token — even without 'admin API' in the prompt. Companion to matrix-communication.

Use this Skill: https://skilld.dev/gh/netresearch/matrix-skill/matrix-administration

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesroom-health-checks.md

≈754 tokens on demand. Your agent reads this file only when SKILL.md points to it.

<!-- SPDX-License-Identifier: CC-BY-SA-4.0 --> <!-- SPDX-FileCopyrightText: Netresearch DTT GmbH -->

Room health checks

synapse-rate-rooms.py and synapse-graph.py each run every room through the same set of checks (see _lib/rating.py). Results are graded:

  • ✅ SUCCESS — the rule is satisfied.
  • ⚠️ WARNING — minor / advisory.
  • ❌ FAIL — serious or blocking.

The overall room rating is the worst result across all applicable rules.

Why "home spaces"?

Several checks compare each room to a list of spaces you consider "home" — passed via --space '!ID:server' (repeatable) or via home_space_ids / default_space_id in the config. The skill ships no homeserver-specific data; if you do not pass any space IDs, the in-space checks are skipped (no FAIL/WARN, no SUCCESS).

Rules — non-space rooms

Rule Result What it means How to fix
Is a public room ❌ FAIL m.room.join_rules is public — anyone on the federation can join. Switch to restricted or invite (or use synapse-migrate-room.py).
Joinable from our spaces ✅ SUCCESS Room is restricted and at least one allow entry is a home space. —
Not joinable from our spaces ❌ FAIL Room is restricted but no allow entry is a home space. Add the relevant home space to m.room.join_rules.allow.
In one of our spaces ✅ SUCCESS Some home space lists this room as m.space.child. —
Not in one of our spaces ⚠️ WARNING No home space lists this room. synapse-add-to-space.py.
Predecessor was in one of our spaces ❌ FAIL The room replaced an older one (m.room.tombstone) that was in a home space; the new room isn't. Re-link the new room into the parent space.
Encrypted ✅ SUCCESS m.room.encryption is set. —
Not encrypted ⚠️ WARNING Room transmits messages in plaintext. Enable encryption (irreversible — see safety guide).

Rules — spaces

Rule Result What it means How to fix
Is a public space ❌ FAIL m.room.join_rules on the space is public. Switch to invite or restricted.
One of our spaces ✅ SUCCESS Space ID is listed in home_space_ids. —
Not one of our spaces ⚠️ WARNING Space exists on the homeserver but isn't part of your home tree. Add it to home_space_ids if it should be, or leave it.

Restricted joins and room version

The restricted join rule requires room version > 9 (Matrix v1.2). Older rooms cannot use it; synapse-migrate-room.py skips the join-rule step and prints a red ❌ when this happens. To upgrade a room version, use Element's "Upgrade room" UI — there is no script in this skill for room upgrades.

EN/DE phrasing

Pass --language de (or set LANGUAGE=de) on either rater script to emit German messages. Both phrasings are baked into _lib/rating.py.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

2 warnings13d3 checks · Risk SAFE
  • Gen Agent Trust Hub13d

    This skill provides a set of administrative tools for Matrix Synapse homeservers using standard Python scripts. It correctly handles sensitive admin tokens with redirect protections and follows established security practices for server administration tools.

  • Socket13d

    1 alert: gptSecurity

  • Snyk13d

    Risk: MEDIUM · 1 issue

Signed by skilld at 3e8b423. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 days ago
What it can do
Runs commands
All 1 allowed tools
Bash(uv run ${CLAUDE_SKILL_DIR}/scripts/*) Bash(uv run skills/matrix-administration/scripts/*) Bash(dot:*) Read Write
Other metadata
compatibility
Requires uv (runs the scripts on Python 3.11 or later; stdlib only) + a Matrix access token belonging to a Synapse server-admin user. Optional: graphviz `dot` for SVG. Synapse 1.x with admin API enabled.
metadata
{
  "author": "Netresearch DTT GmbH",
  "version": "4.4.2",
  "repository": "https://github.com/netresearch/matrix-skill"
}

README badge

README badge for netresearch/matrix-skill/matrix-administration