AgentSkillsCN

transcript-recovery

在上下文压缩后恢复完整的对话历史。当上下文窗口被压缩且 Claude 需要访问对话早期部分、用户询问之前讨论的内容,或 Claude 需要从先前会话继续工作时使用。读取 /mnt/transcripts/ 目录。

SKILL.md
--- frontmatter
name: transcript-recovery
description: Recover full conversation history after context compaction. Use when context window is compacted and Claude needs to access earlier parts of the conversation, when user asks about what was discussed before, or when Claude needs to continue work from a previous session. Reads from /mnt/transcripts/ directory.

Transcript Recovery

Recover full conversation history from /mnt/transcripts/ after context compaction.

Quick Start

bash
# Copy script to working directory and run
cp /path/to/skill/scripts/get_transcript.py /home/claude/
python3 /home/claude/get_transcript.py --list

Usage

CommandDescription
--listList all available transcripts
--allCombine all transcripts chronologically
--messagesExtract clean human/assistant messages
--search <query>Search across all transcripts
--file <n>Read specific transcript
--tail <n>Last N lines only
--output <path>Save to file

Common Workflows

After Compaction - Recover Context

bash
python3 /home/claude/get_transcript.py --all --messages

Find Specific Discussion

bash
python3 /home/claude/get_transcript.py --search "topic keyword"

Export Full History for User

bash
python3 /home/claude/get_transcript.py --all --messages -o /mnt/user-data/outputs/history.txt

Notes

  • Transcripts location: /mnt/transcripts/ (read-only)
  • Files contain JSON with unicode escapes - script decodes to UTF-8 automatically
  • journal.txt contains transcript metadata and descriptions
  • Script must be copied to /home/claude/ before execution