clone

GitHub

用于克隆当前对话会话,使用户能够分叉并尝试不同的方法。通过获取会话ID和项目路径,执行克隆脚本生成新副本,用户可通过claude -r命令访问带有时间戳标记的克隆对话。

skills/clone/SKILL.md ykdojo/claude-code-tips

Trigger Scenarios

用户希望基于当前对话创建分支 用户想尝试不同解决方案而不影响原对话

Install

npx skills add ykdojo/claude-code-tips --skill clone -g -y
More Options

Use without installing

npx skills use ykdojo/claude-code-tips@clone

指定 Agent (Claude Code)

npx skills add ykdojo/claude-code-tips --skill clone -a claude-code -g -y

安装 repo 全部 skill

npx skills add ykdojo/claude-code-tips --all -g -y

预览 repo 内 skill

npx skills add ykdojo/claude-code-tips --list

SKILL.md

Frontmatter
{
    "name": "clone",
    "description": "Clone the current conversation so the user can branch off and try a different approach."
}

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])

Version History

  • 332912a Current 2026-07-05 14:56

Same Skill Collection

skills/gha/SKILL.md
skills/half-clone/SKILL.md
skills/handoff/SKILL.md
skills/hn-summarize/SKILL.md
skills/reddit-fetch/SKILL.md
skills/review-claudemd/SKILL.md
skills/version-check/SKILL.md

Metadata

Files
0
Version
332912a
Hash
4cc24833
Indexed
2026-07-05 14:56

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-09 01:56
浙ICP备14020137号-1 $bản đồ khách truy cập$