MCPInstall
ykdojo avatar

clone

Clone the current conversation so the user can branch off and try a different approach.

Installs
88
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/ykdojo/claude-code-tips --skill clone
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads clone automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Clone the current conversation so the user can branch off and try a different approach.

Steps:

  1. Get the current session ID and project path: tail -1 ~/.claude/history.jsonl | jq -r '[.sessionId, .project] | @tsv'
  2. 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
  3. Run: <script-path> <session-id> <project-path>
    • Always pass the project path from the history entry, not the current working directory
  4. Tell the user they can access the cloned conversation with claude -r and look for the one marked [CLONED <timestamp>] (e.g., [CLONED Jan 7 14:30])

FAQ

What does the clone skill do?

Clone the current conversation so the user can branch off and try a different approach.

How do I install clone?

Run npx skills add https://github.com/ykdojo/claude-code-tips --skill clone in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/clone/ (personal) or .claude/skills/clone/ (project).

Which AI agents can use clone?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is clone safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains clone?

It is published by ykdojo in ykdojo/claude-code-tips. It has 88 recorded installs.

More from ykdojo/claude-code-tips

View all →
ykdojo avatar

reddit-fetch

ykdojo/claude-code-tips

Fetch content from Reddit via its JSON API using a browser session (DuckDuckGo-hop unlock). Use when accessing Reddit URLs, researching topics on Reddit, or when Reddit returns 403/blocked errors.

Marketing & SEO402 installs
ykdojo avatar

review-claudemd

ykdojo/claude-code-tips

Review recent conversations to find improvements for CLAUDE.md files.

ykdojo avatar

handoff

ykdojo/claude-code-tips

Write or update a handoff document so the next agent with fresh context can continue this work.

ykdojo avatar

half-clone

ykdojo/claude-code-tips

Clone the later half of the current conversation, discarding earlier context to reduce token usage while preserving recent work.

91 installs
ykdojo avatar

gha

ykdojo/claude-code-tips

Analyze GitHub Actions failures and identify root causes

DevOps & Cloud87 installs
ykdojo avatar

quarter-clone

ykdojo/claude-code-tips

Clone the last quarter of the current conversation, discarding earlier context to reduce token usage while preserving recent work.

0 installs

Popular other skills

View category →
heygen-com avatar

hyperframes-cli

heygen-com/hyperframes

The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.

1.7M installs
mattpocock avatar

triage

mattpocock/skills

Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.

1.1M installs
mattpocock avatar

ask-matt

mattpocock/skills

Ask which skill or flow fits your situation. A router over the skills in this repo.

877.3K installs
mattpocock avatar

to-questionnaire

mattpocock/skills

Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

605.3K installs
mattpocock avatar

wait-what

mattpocock/skills

Stop. That last message did not land: re-pitch it.

556.8K installs
mattpocock avatar

loop-me

mattpocock/skills

Grill me about specs for the workflows I want to build, within this workspace.

518.8K installs