compact-chat-history

Compress the current conversation into a structured summary and save it via compact_chat_history.

5.0k|548|Updated May 14, 2025
One-click install
npx skills add https://github.com/dtyq/magic --skill compact-chat-history
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: compact-chat-history
Source: https://github.com/dtyq/magic/tree/main/backend/super-magic/agents/skills/compact-chat-history
Command: npx skills add https://github.com/dtyq/magic --skill compact-chat-history

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Compress long conversations into a concise, structured context snapshot to preserve continuity across interactions.

Core Features & Use Cases

  • Reduces lengthy transcripts into a structured summary that captures key decisions, themes, and action items.
  • Enables seamless handoffs between agents by preserving context, file locations, and important results.
  • Use Case: when a session grows unwieldy, generate a context snapshot that can be reloaded later for continuity.

Quick Start

Use this skill to generate a thorough summary of the current conversation and save it via the compact_chat_history tool.

Frequently Asked Questions about compact-chat-history

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

FAQPage Schema
How do I compress AI conversation history to maintain context across sessions?▼

Compress AI conversation history by generating a structured summary of key decisions and action items, then saving it via the compact_chat_history tool to ensure seamless context restoration across sessions.

What is the best way to summarize a long chat transcript for an AI agent?▼

Summarizing a long chat transcript involves reducing the conversation into a structured context snapshot that captures themes, decisions, and file locations, enabling seamless handoffs between agents.

When do I need to compact chat history for continuity?▼

You need to compact chat history when a session grows unwieldy or when explicitly requested, generating a context snapshot that can be reloaded later to preserve continuity across interactions.

Does compacting chat history require manual configuration to save context?▼

Compacting chat history does not always require manual configuration; system-triggered cases inject instructions automatically without requiring a manual read, while explicit requests save summaries via the compact_chat_history tool.

Can I preserve file locations and continuity notes when summarizing a conversation?▼

You can preserve file locations and continuity notes by generating a structured summary that records these details, ensuring seamless context restoration across sessions and agent handoffs.