quarter-clone
What it does
This skill makes a new copy of the last quarter of your current conversation, dropping the earlier context. It is for people whose chat is long and who want to keep only the most recent work.
When to use it
- ✓When your conversation is very long and only its latest work matters right now.
- ✓When you want an even shorter copy of a chat than the half-clone skill makes.
- ✓When you need a shorter session that uses fewer tokens for each new message.
Skill link
https://github.com/ykdojo/claude-code-tips/blob/main/skills/quarter-clone/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Make a quarter-clone of this conversation so I can keep working with less context.”
5 new skills a week. 1 minute to read.
How it works
The skill finds the current session, previews the copy to confirm the messages match, and runs a script to create a new session from the last quarter. It then gives you a command to open it.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Clone the last quarter 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
- The same script handles both half and quarter cloning;
--quarterselects quarter mode
- 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> --quarter <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:
The script automatically appends a reference to the original conversation at the end of the cloned file. (The new session is also markedclaude --resume <new-session-id>[QUARTER-CLONE <timestamp>], e.g.[QUARTER-CLONE Jan 7 14:30], soclaude -rand picking it works as a fallback.)
FAQ
How is this different from half-clone?
It keeps only the last quarter of the conversation, so the copy is shorter than a half clone.
Will I lose my latest messages?
No. The copy keeps the most recent part of the conversation.
How do I open the new session?
The skill gives you a command with the new session ID so you can resume it directly.
Details
Original description by the author
Clone the last quarter of the current conversation, discarding earlier context to reduce token usage while preserving recent work.
repo: ykdojo/claude-code-tips
Popularity
- GitHub stars
- 10k
- Ranking position
- #11903
- License
- —
- Updated
- 9/25/2026
Comments
- …
More skills from this repository
gha
10kHelps your agent find out why a GitHub Actions workflow failed, and whether the same job keeps failing.
half-clone
10kHelps your agent copy the later half of a long chat into a new session, using fewer tokens while keeping your recent work.
handoff
10kHelps your agent write a handoff document that lets a new chat pick up your project with clear goals, progress and next steps.
hn-summarize
10kHelps your agent summarize the top Hacker News stories, or one story and its comments, using the official Hacker News data.
Similar skills
blucli
394kHelps your agent find, play, pause, group, and adjust the volume of Bluesound and NAD speakers through the blu command.
camsnap
394kHelps your agent grab snapshots, short clips, or motion events from network cameras and local webcams that you have set up.
eightctl
394kHelps your agent check and control an Eight Sleep pod, including its temperature, alarms, and sleep schedules.