Skip to content
Back to skills

Collab Clear

ASecurity

Ask user about clearing context, then proceed to next skill

  • 666 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added February 8, 2026
tools

Works with

  • terminal
  • mcp

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill collab-clear --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Collab Clear?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Collab Clear
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-collab-clear/badge)](https://www.skillsdirectory.com/skills/majiayu000-collab-clear)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: collab-clear
description: Ask user about clearing context, then proceed to next skill
user-invocable: true
allowed-tools: mcp__plugin_mermaid-collab_mermaid__*, Read
---

# Collab Clear

Asks user whether to clear context before proceeding.

## Step 1: Ask User

```
Tool: mcp__plugin_mermaid-collab_mermaid__render_ui
Args: {
  "project": "<cwd>",
  "session": "<session>",
  "ui": {
    "type": "Card",
    "props": { "title": "Context Management" },
    "children": [{ "type": "Markdown", "props": { "content": "Clear context and start fresh?" } }],
    "actions": [
      { "id": "yes", "label": "Yes, clear", "primary": true },
      { "id": "no", "label": "No, continue" }
    ]
  },
  "blocking": true
}
```

If UI times out, ask in terminal.

## Step 2: Get Next Skill

```
Tool: mcp__plugin_mermaid-collab_mermaid__complete_skill
Args: { "project": "<cwd>", "session": "<session>", "skill": "collab-clear" }
```

## Step 3: Handle Choice

**If user chose "Yes, clear":**
1. Save snapshot with next_skill as activeSkill
2. Update state: hasSnapshot = true
3. Display: "Context saved. Triggering /clear..."
4. Invoke /clear (user will run /collab to resume)

**If user chose "No, continue":**
1. Invoke result.next_skill directly (skip the clear)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.