/teamem:space list|leave|kick <member>|rotate-codefrom teamem
Space governance — list, leave, kick, rotate-code. Disband and restore live in their own /teamem:disband and /teamem:restore commands.
Ships in teamem. Installing the plugin adds it to Claude Code.
User input: $ARGUMENTS
Steps:
Parse $ARGUMENTS:
list → use /teamem:status instead. That command surfaces every space in the user's local credentials file and is the supported v1 path. Tell the user to run /teamem:status and stop.leave → call mcp__teamem__space_leave with {}. The bridge fills space_id and principal from the verified JWT.kick <member_name> → confirm with the user (destructive — kicked member's next API call returns 401), then call mcp__teamem__space_kick with { member_name: "<arg>" }. Creator-only.rotate-code → call mcp__teamem__space_rotate_code with {}. Creator-only — rotation invalidates the standing invite code for everyone. Surface the new room code to the user with a reminder it must be shared via a SECURE channel./teamem:disband and /teamem:restore have their own slash commands.For destructive subcommands (kick, leave): show the user what will happen and ask for explicit "yes" confirmation before invoking the MCP tool.
Branch on the typed error code:
creator_must_disband (leave): tell the user the creator can't leave; they must /teamem:disband instead.not_creator (kick, rotate-code): tell the user only the creator can kick members or rotate the room code.cannot_self_kick: refuse — use /teamem:disband if the creator wants to leave the team.target_not_found (kick): the named member is not in the space.member_kicked / space_disbanded (any): the user's own JWT is rejecting; redirect to /teamem:setup.After rotate-code, remind the user the new code expires in 30 days and must be shared securely.
This command does NOT activate Teamem — it's pure space governance. Activation happens through the Teamem-aware claude launcher. Disband + restore use their own dedicated slash commands so the destructive label-confirmation flow is isolated. Listing local credentials is a local-only read; /teamem:status is the supported entry point.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub rubiyh/teamem --plugin teamem21 commands in this plugin
/briefingFetch the current Teamem briefing (current plan, active claims, recent decisions, active risks, recent progress)./clear-queueClear QueueClear all your pending_edit rows in this space (the auto-skip waiting list). Cleared entries produce no peer event; the only effect is that you stop receiving conflict_resolved alerts for those queued paths./coord-prefCoord PrefSet your coordination preference for scope conflicts. `auto-skip` is the only active plugin mode; `auto-discuss` is postponed pending a future negotiator-runtime return./decideRecord an architectural / process / product / plan decision so teammates see it in their next briefing./denyDeny a pending legacy/internal edit-permission request from a teammate (compatibility path). Your claim is unchanged; the requester's gate-claim long-poll returns with skip and they fall through to the auto-skip queue — they will be alerted when you eventually release./disbandDisband the current space (creator only). Soft-tombstone with a 7-day grace window — data is retained and `/teamem:restore` can undo within that window. After grace, the space is hard-deleted by GC.