Skip to content
collab-cleanup logo

Collab Cleanup

collab-cleanup

Close out a collab session - archive or delete design artifacts

SKILL.md

Full skill instructions

Collab Cleanup

Browser-Based Questions

When a collab session is active, use render_ui for all user interactions.

Component selection:

Question TypeComponent
Yes/​NoCard with action buttons
Choose 1 of 2-5RadioGroup
Choose 1 of 6+MultipleChoice
Free textTextInput or TextArea

Example - Yes/​No:

Tool: mcp__plugin_mermaid-collab_mermaid__render_ui
Args: {
  "project": "<cwd>",
  "session": "<session>",
  "ui": {
    "type": "Card",
    "props": { "title": "<question context>" },
    "children": [{ "type": "Markdown", "props": { "content": "<question>" } }],
    "actions": [
      { "id": "yes", "label": "Yes", "primary": true },
      { "id": "no", "label": "No" }
    ]
  },
  "blocking": true
}

Terminal prompts only when: No collab session exists (pre-session selection).

Overview

Close a collab session after development is complete. Offers choices to archive design artifacts, delete them, or keep the session open for reference.

Announce at start: "I'm using the collab-cleanup skill to close this session."

Workflow

Step 1: Identify Current Session

  1. Call mcp__plugin_mermaid-collab_mermaid__list_sessions to get all sessions across projects:
    Tool: mcp__plugin_mermaid-collab_mermaid__list_sessions
    Args: {}
    
  2. Filter results to current project (match project field against absolute cwd path)
  3. If sessions found for current project:
    • For each session, fetch phase via mcp__plugin_mermaid-collab_mermaid__get_session_state:
      Tool: mcp__plugin_mermaid-collab_mermaid__get_session_state
      Args: { "project": "<cwd>", "session": "<session-name>" }
      
    • Display list with phases:
      Sessions in this project:
      1. glowing-sunny-mesa (phase: rough-draft)
      2. bright-calm-river (phase: implementation)
      
    • Ask: "Which session to clean up?" (or if only one, confirm it)
  4. If no sessions for current project:
    • Display: "No collab sessions found in this project."
    • Exit

Step 2: Show Session Summary

Display session details:

Session: [name]
Template: [feature/​bugfix/​refactor/​spike]
Phase: [current phase]

Artifacts:
- Documents: [list .md files]
- Diagrams: [list .mmd files]

Step 3: Ask User Choice

What would you like to do with the design artifacts?

1. Archive - Copy to docs/​designs/[session-name]/
2. Delete - Remove without saving
3. Keep - Leave session in place, exit without cleanup
4. Archive & Continue - Archive with timestamp, reset session for new work

Step 4: Execute Choice

If Archive:

  1. Create docs/​designs/[session-name]/ directory
  2. Copy all documents including per-item documents:
    • .collab/[session]/​documents/​design.md
    • .collab/[session]/​documents/​interface-item-*.md
    • .collab/[session]/​documents/​pseudocode-item-*.md
    • .collab/[session]/​documents/​skeleton-item-*.md
  3. Copy .collab/[session]/​diagrams/​* to docs/​designs/[session-name]/
  4. Delete .collab/[session]/ folder
  5. Report what was archived (including count of per-item documents)

If Delete:

  1. Confirm: "Delete session [name]? This cannot be undone."
    1. Yes, delete
    2. No, go back
    
  2. If 1 (Yes): Delete .collab/[session]/ folder
  3. If 2 (No): Return to Step 3

If Keep:

  1. Exit without changes
  2. Remind user: "Session kept open. Run /​collab-cleanup when ready to close."

If Archive & Continue:

  1. Generate timestamp: [session-name]-[YYYY-MM-DD-HHmmss]
  2. Create archive directory: docs/​designs/[session-name]-[timestamp]/
  3. Copy .collab/[session]/​documents/​* to archive directory
  4. Copy .collab/[session]/​diagrams/​* to archive directory
  5. Clear Work Items section in .collab/[session]/​documents/​design.md:
    • Keep "## Session Context" and its content intact
    • Replace "## Work Items" section with empty placeholder
  6. Reset collab state via MCP:
    Tool: mcp__plugin_mermaid-collab_mermaid__update_session_state
    Args: {
      "project": "<absolute-path-to-cwd>",
      "session": "<session-name>",
      "phase": "brainstorming",
      "currentItem": null
    }
    
    Note: lastActivity is automatically updated by the MCP tool.
  7. Report: "Session [name] archived to docs/​designs/[name]-[timestamp]/. Session reset for new work."
  8. Loop back to gather-session-goals skill to start work on new items

Step 5: Confirm

Display completion message:

  • Archive: "Session [name] archived to docs/​designs/[name]/"
  • Delete: "Session [name] deleted."
  • Keep: "Session [name] kept open."
  • Archive & Continue: "Session [name] archived to docs/​designs/[name]-[timestamp]/. Ready for new work items."

Integration

Called by:

  • finishing-a-development-branch skill at completion
  • User directly via /​collab-cleanup command

Collab workflow position:

collab → brainstorming → rough-draft → executing-plans → finishing-a-development-branch → collab-cleanup
                                                                                              ↑
                                                                                        (you are here)

Common Mistakes

Archiving without checking contents

  • Problem: Archived files might be incomplete or contain sensitive info
  • Fix: Always show session summary before archiving

Deleting active session

  • Problem: User accidentally deletes session they're still working on
  • Fix: Confirm deletion, check if phase is not "implementation"

Red Flags

Never:

  • Delete without confirmation
  • Archive to a location that already exists (overwrite)
  • Clean up if there are pending verification issues

Always:

  • Show session summary before action
  • Confirm destructive actions
  • Report what was done

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View