Collaboration Session Management

VerifiedSafe

Handles collaborative session lifecycle: checks Mermaid server health, lists existing sessions, creates new sessions with auto-generated or custom names, and resumes sessions with snapshot restoration. Helps when starting or rejoining a collaborative workflow without manually managing state transitions.

Sby Skills Guide Bot
ProductivityIntermediate
1506/2/2026
Claude Code
#collab#session-management#mermaid#workflow

Recommended for

Our review

Manages starting and resuming collaborative sessions using an MCP server and state machine.

Strengths

  • Automatically delegates to the next step via the MCP state machine.
  • Supports resuming existing sessions with or without a snapshot.
  • Simplifies session creation by generating names and initializing state.

Limitations

  • Requires the MCP server to be running.
  • Only manages sessions, not direct diagram editing.
  • Depends on the Mermaid-collab plugin for all advanced features.
When to use it

When you need to start a new collaborative diagramming session or resume an existing one.

When not to use it

If you need to directly edit diagrams without the state machine or if the MCP server is unavailable.

Security analysis

Safe
Quality score90/100

The skill only calls dedicated MCP tools for session management and does not engage in destructive or exfiltrating behavior. Although Bash is in allowed-tools, the skill steps do not use it.

No concerns found

Examples

Start new session
Start a new collab session for our project.
Resume existing session
Resume the last collab session we worked on.

name: collab description: Start or resume a collab session - session management only user-invocable: true allowed-tools: mcp__plugin_mermaid-collab_mermaid__*, Read, Glob, Grep, Bash

Collab Sessions

Entry point for collab workflow. Handles session management and delegates to MCP state machine.

Step 1: Check Server

Tool: mcp__plugin_mermaid-collab_mermaid__check_server_health
Args: {}

If not healthy: "Server not running. Start with: bun run bin/mermaid-collab.ts start" STOP if server not running.

Step 2: Find/Create Session

List sessions for this project:

Tool: mcp__plugin_mermaid-collab_mermaid__list_sessions
Args: {}

If sessions exist: Present list with "Create new" option If no sessions: Go to Step 3

Step 3: Create New Session

  1. Generate name: mcp__plugin_mermaid-collab_mermaid__generate_session_name()
  2. Ask user to confirm or pick own name
  3. Initialize state:
    Tool: mcp__plugin_mermaid-collab_mermaid__update_session_state
    Args: { "project": "<cwd>", "session": "<name>", "phase": "brainstorming", "currentItem": null }
    
  4. Get first skill from state machine:
    Tool: mcp__plugin_mermaid-collab_mermaid__complete_skill
    Args: { "project": "<cwd>", "session": "<name>", "skill": "collab-start" }
    
  5. Invoke: result.next_skill

Step 4: Resume Existing Session

  1. Get session state: mcp__plugin_mermaid-collab_mermaid__get_session_state()
  2. Check for snapshot:
    • If snapshot exists: Load it, delete it, invoke snapshot.activeSkill
    • If no snapshot: Call complete_skill with current phase's skill, invoke result.next_skill

No Manual Routing

This skill does NOT:

  • Route by item type (MCP state machine does this)
  • Invoke brainstorming/rough-draft directly (complete_skill returns next skill)
  • Manage the work item loop (routing nodes handle this)
Related skills