npx skills add smithery/ykdojo --skill half-clone
ykdojo/claude-code-tips
half-clone
Clone the later half of the current conversation, discarding earlier context to reduce token usage while preserving recent work.
Installation
npx skills add ykdojo/claude-code-tips --skill half-clone
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Extract any website's design system into an agent-ready DESIGN.md using Firecrawl scrape eviden…
32.6K installsExtract any website's design system into an agent-ready DESIGN.md using Firecrawl scrape eviden…
37 installsFork a GitHub repo and clone it locally with proper remote setup
2.9K installsReverse-engineer and clone one or more websites in one shot — extracts assets, CSS, and content…
1.9K installsReverse-engineer and clone one or more websites in one shot — extracts assets, CSS, and content…
1.4K installs网站复刻 / ? ? 复刻某个交互/WebGL/Canvas/Three.js 效果。提供「? 搭工程 → 替换? WebGL-Canvas 重…
10 installsAlso in this package
Other skills from ykdojo/claude-code-tips.
npx skills add ykdojo/claude-code-tips
More details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Also listed on
Alternate registries and mirrors of this skill.
Repository health
main
Skill metadata
Parsed from SKILL.md frontmatter.
Package contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md1,486 B -
docs
SUMMARY.md146 B
History
- First seen on skills.sh
- First recorded snapshot · 86 installs
SKILL.md
Clone the later half of the current conversation, discarding earlier context to reduce token usage while preserving recent work.
Steps:
- Get the current session ID and project path:
tail -1 ~/.claude/history.jsonl | jq -r '[.sessionId, .project] | @tsv' - Find half-clone-conversation.sh with bash:
find ~/.claude -name "half-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
- Preview the conversation to verify the session ID:
<script-path> --preview <session-id> <project-path>
- Check that the first and last messages match the current conversation
- Run the clone:
<script-path> <session-id> <project-path>
- Always pass the project path from the history entry, not the current working directory
- The script prints the new session ID (the
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.)