Agent skill
clone
Clone the current conversation so the user can branch off and try a different approach.
Install this agent skill to your Project
npx add-skill https://github.com/ykdojo/claude-code-tips/tree/main/skills/clone
SKILL.md
Clone the current conversation so the user can branch off and try a different approach.
Steps:
- Get the current session ID and project path:
tail -1 ~/.claude/history.jsonl | jq -r '[.sessionId, .project] | @tsv' - Find clone-conversation.sh with bash:
find ~/.claude -name "clone-conversation.sh" 2>/dev/null | sort -V | tail -1- This finds the script whether installed via plugin or manual symlink
- Uses version sort to prefer the latest version if multiple exist
- Run:
<script-path> <session-id> <project-path>- Always pass the project path from the history entry, not the current working directory
- Tell the user they can access the cloned conversation with
claude -rand look for the one marked[CLONED <timestamp>](e.g.,[CLONED Jan 7 14:30])
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gha
Analyze GitHub Actions failures and identify root causes
reddit-fetch
Fetch content from Reddit using Gemini CLI or curl JSON API fallback. Use when accessing Reddit URLs, researching topics on Reddit, or when Reddit returns 403/blocked errors.
half-clone
Clone the later half of the current conversation, discarding earlier context to reduce token usage while preserving recent work.
review-claudemd
Review recent conversations to find improvements for CLAUDE.md files.
handoff
Write or update a handoff document so the next agent with fresh context can continue this work.
gemini
Use Gemini CLI for web research, multimodal tasks (PDFs, images), or as a second opinion.
Didn't find tool you were looking for?