This skill helps you quickly clone only the latest half of a conversation to save tokens while preserving recent work.
npx playbooks add skill ykdojo/claude-code-tips --skill half-clone
Clone the later half of the current conversation, discarding earlier context to reduce token usage while preserving recent work.
Steps:
tail -1 ~/.claude/history.jsonl | jq -r '[.sessionId, .project] | @tsv'find ~/.claude -name "half-clone-conversation.sh" 2>/dev/null | sort -V | tail -1<script-path> --preview <session-id> <project-path><script-path> <session-id> <project-path>New session: <id> line). Give the user the exact command to resume it directly, no picker needed: claude --resume <new-session-id>
The script automatically appends a reference to the original conversation at the end of the cloned file. (The new session is also marked [HALF-CLONE <timestamp>], e.g. [HALF-CLONE Jan 7 14:30], so claude -r and picking it works as a fallback.)
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.