smart-clear

Summarize chat content and save context for auto-restore via SessionStart hook.

2|Updated Apr 27, 2026
One-click install
npx skills add https://github.com/zunyiqingfeng-code/skills --skill smart-clear
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: smart-clear
Source: https://github.com/zunyiqingfeng-code/skills/tree/main/smart-clear
Command: npx skills add https://github.com/zunyiqingfeng-code/skills --skill smart-clear

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Intelligent context clearing analyzes ongoing conversations to extract key decisions and preferences, saves a concise summary for later restoration, and guides users to rehydrate context via a session-ready flow.

Core Features & Use Cases

  • Automated context summarization: identifies essential elements of a conversation and stores them for reference.
  • Context restoration guidance: directs users to the /clear flow to re-establish prior context automatically.
  • Use Case: ideal when conversations grow long or multiple tasks are handled in one session, enabling quick resume with preserved context.

Quick Start

Ask me to clear context and I will summarize the conversation, save it, and guide you to /clear for auto-restore.

Frequently Asked Questions about smart-clear

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I save conversation context before clearing a long chat session?

To save conversation context before clearing, this skill automatically analyzes your chat, extracts key decisions and preferences, and stores a concise summary file for later restoration.

How does automatic context restoration work after clearing a session?

Automatic context restoration works by coordinating with a SessionStart hook that rehydrates your previously saved summary, allowing you to resume multi-task sessions seamlessly after a /clear command.

Can I summarize and restore context for multi-task sessions without losing key decisions?

Yes, you can summarize and restore context for multi-task sessions without losing key decisions, as the skill identifies essential conversation elements and preserves them for quick resumption.

What's the best way to quickly resume a long conversation without hitting context limits?

The best way to quickly resume long conversations is to generate a concise context summary, clear the session, and use the auto-restore flow to rehydrate only the essential information.

Do I need a SessionStart hook to auto-restore conversation summaries?

Yes, you need a SessionStart hook to auto-restore conversation summaries, as the skill coordinates with this hook to automatically rehydrate your saved context when a new session begins.

Why does my conversation context disappear after using the /clear command?

Conversation context disappears after /clear because the session is reset, but this skill prevents permanent loss by saving a summary beforehand and guiding you through an auto-restore flow.