Agent skill

Quarter Clone Conversation

by ykdojo in ykdojo/claude-code-tips

Starts a new Claude Code session from only the last quarter of the current conversation, dropping earlier context to save tokens while keeping recent work.

Custom licenceAuto-check passedAgent Workflows

Install Quarter Clone Conversation

skills CLI
$ npx skills add ykdojo/claude-code-tips --skill quarter-clone -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ykdojo/claude-code-tips quarter-clone --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ykdojo/claude-code-tips.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/quarter-clone .claude/skills/quarter-clone && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
quarter-clone
GitHub stars
10k
Token cost
~401 tokens
SKILL.md length
198 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
Custom licence

At a glance

Starts a new Claude Code session from only the last quarter of the current conversation, dropping earlier context to save tokens while keeping recent work.

  • Works in 5 steps: Get the current session ID and project… → Find half-clone-conversation.sh with… → Preview the conversation to verify the… → …
  • Cutting token usage in a long session while keeping recent work
  • Calls claude and jq
  • Continuing a conversation without most of its earlier context

What it does

This skill makes a trimmed copy of the current Claude Code conversation that keeps only its final quarter. The agent reads the latest entry of ~/.claude/history.jsonl to get the session ID and project path, then locates half-clone-conversation.sh under ~/.claude, preferring the highest version when several copies exist, whether it came from a plugin or a manual symlink. The same script handles half and quarter cloning, with --quarter selecting quarter mode.

Before cloning, the agent previews the conversation and checks that its first and last messages match the current one, then runs the clone with the project path from the history entry rather than the working directory. The script prints the new session ID, appends a reference to the original conversation at the end of the cloned file, and tags the new session as a quarter clone with a timestamp. The agent then hands you the exact claude --resume command to continue it.

When your agent uses it

  • Cutting token usage in a long session while keeping recent work
  • Continuing a conversation without most of its earlier context

Example prompts

  • “This session has gotten long, so clone just the last quarter and let me continue cheaply.”
  • “Start a trimmed copy of this conversation and give me the resume command.”

Requirements

  • half-clone-conversation.sh installed under ~/.claude
  • jq and a Unix shell

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Get the current session ID and project path: tail -1 ~/.claude/history.jsonl | jq -r '[.sessionId, .project] | @tsv'
  2. Find half-clone-conversation.sh with bash: find ~/.claude -name "half-clone-conversation.sh" 2>/dev/null | sort -V | tail -1
  3. Preview the conversation to verify the session ID: --preview
  4. Run the clone: --quarter
  5. The script prints the new session ID (the New session: line). Give the user the exact command to resume it directly, no picker needed

What it can do on your machine

Read from SKILL.md and the folder at commit 577ac89. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • claude
    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Quarter Clone Conversation loads about 401 tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 198 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~36
When it runs · the whole SKILL.md, loaded when a task matches
~401

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 198 words (~401 tokens).

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

— opening of SKILL.md by ykdojo, Custom licence
name
quarter-clone

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/quarter-clone of ykdojo/claude-code-tips.

Open the folder on GitHubat commit 577ac89

Compare with similar skills

Quarter Clone Conversation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Quarter Clone Conversation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Quarter Clone Conversation this skillykdojo/claude-code-tips10k—~401Automated safety check: PassCustom licence
Memory Systemsguanyang/open-agent-hub9772 repos~4.1kAutomated safety check: PassMIT
Knowledge Session State And Context Project Auto MemoryechoVic/blade-code181—~1.3kAutomated safety check: PassMIT
Context Mode Output Sandboxmksglu/context-mode26k—~4.1kAutomated safety check: PassCustom licence
Memori Long-Term MemoryMemoriLabs/Memori17k—~2kAutomated safety check: NotesCustom licence
Context Mode for Antigravity CLImksglu/context-mode26k—~850Automated safety check: PassCustom licence

Similar skills

  • Memory Systems

    guanyang/open-agent-hub

    This skill should be used for persistent semantic memory in agent systems: cross-session knowledge retention, entity tracking, temporal validity, graph or vector retrieval, memory consolidation, and…

    977 GitHub starsUsed in 2 repos~4.1k tokens
    Agent WorkflowsAuto-check passed
  • 覆盖项目级 MEMORY.md 索引、主题文件、MemoryRead/MemoryWrite 工具和压缩后启发式巩固. An agent skill from echoVic/blade-code.

    181 GitHub stars~1.3k tokensUpdated 12 days ago
    Agent WorkflowsAuto-check passed
  • Context Mode Output Sandbox

    mksglu/context-mode

    Routes large command, file, API and browser output through context-mode tools so only the needed result enters the agent's context, instead of dumping it via Bash.

    26k GitHub stars~4.1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Memori Long-Term Memory

    MemoriLabs/Memori

    Connects Claude Code to Memori Cloud for long-term memory, recalling stored context before substantive replies and saving new context afterward.

    17k GitHub stars~2k tokensUpdated 6 days ago
    Agent WorkflowsAuto-check: notes
  • Routing rules for using context-mode MCP tools in Antigravity CLI: sandboxed code runs, file analysis, indexed search and web fetches that keep large output out of the conversation.

    26k GitHub stars~850 tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Context Fundamentals

    guanyang/open-agent-hub

    This skill should be used to explain or reason about the foundational concepts of context engineering: what context is, the anatomy of a context window, how attention mechanics work, the U-shaped…

    977 GitHub starsUsed in 2 repos~4.2k tokens
    Agent WorkflowsAuto-check passed

More from ykdojo/claude-code-tips

All 9 skills in this repo
  • Hacker News Summarizer

    ykdojo/claude-code-tips

    Fetches Hacker News top stories, a chosen story with its comment thread and the linked article through the official APIs, then summarizes them.

    10k GitHub stars~942 tokensUpdated 14 days ago
    Auto-check passed
  • Reddit JSON Fetcher

    ykdojo/claude-code-tips

    Fetches Reddit posts, threads and search results as JSON through a browser session, using a DuckDuckGo redirect to get past Reddit's automated-access block.

    10k GitHub stars~1.4k tokensUpdated 14 days ago
    Auto-check passed
  • Claude Code Version Check

    ykdojo/claude-code-tips

    Recommends whether to stay on the installed Claude Code version, update, or pin another one by comparing npm tags, release timing and the changelog.

    10k GitHub stars~1.8k tokensUpdated 14 days ago
    Auto-check passed
  • Private GitHub Repo Search

    ykdojo/claude-code-tips

    Full-text searches across every one of the user's GitHub repos, including private ones, using a local mirror and ripgrep instead of GitHub's own search.

    10k GitHub stars~444 tokensUpdated 14 days ago
    Auto-check passed
  • CLAUDE.md Review

    ykdojo/claude-code-tips

    Mines your recent Claude Code conversations for rules that were broken, missing or stale, and suggests edits to global and project CLAUDE.md files.

    10k GitHub stars~677 tokensUpdated 14 days ago
    Auto-check passed
  • Conversation Half-Clone

    ykdojo/claude-code-tips

    Clones only the later half of the current Claude Code session into a fresh one, cutting token usage while keeping the recent work intact.

    10k GitHub stars~372 tokensUpdated 14 days ago
    Auto-check passed

Categories

Questions about Quarter Clone Conversation

What does Quarter Clone Conversation do?

Starts a new Claude Code session from only the last quarter of the current conversation, dropping earlier context to save tokens while keeping recent work. This skill makes a trimmed copy of the current Claude Code conversation that keeps only its final quarter.claude, preferring the highest version when several copies exist, whether it came from a plugin or a manual symlink.

When should I use Quarter Clone Conversation?

Quarter Clone Conversation fits situations like: cutting token usage in a long session while keeping recent work; continuing a conversation without most of its earlier context.

How do I install Quarter Clone Conversation in Claude Code?

Run `npx skills add ykdojo/claude-code-tips --skill quarter-clone -a claude-code`. Or copy the skill folder (skills/quarter-clone in ykdojo/claude-code-tips) into .claude/skills/quarter-clone in your project. Claude Code loads it when a task matches its description.

How do I install Quarter Clone Conversation in Codex?

Run `npx skills add ykdojo/claude-code-tips --skill quarter-clone -a codex`. Or copy the skill folder (skills/quarter-clone in ykdojo/claude-code-tips) into .agents/skills/quarter-clone in your project. Codex loads it when a task matches its description.

Can I use Quarter Clone Conversation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ykdojo/claude-code-tips --skill quarter-clone -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/quarter-clone, .gemini/skills/quarter-clone, .github/skills/quarter-clone and .opencode/skills/quarter-clone in your project.

What does Quarter Clone Conversation need to run?

Going by SKILL.md and its folder, Quarter Clone Conversation needs the command-line tools its instructions call (claude and jq). Our summary lists: half-clone-conversation.sh installed under ~/.claude; jq and a Unix shell.

Does Quarter Clone Conversation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Quarter Clone Conversation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Quarter Clone Conversation use?

Quarter Clone Conversation has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Quarter Clone Conversation use?

About 401 tokens (SKILL.md is roughly 1.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Quarter Clone Conversation?

Skills that share tags, products or a category with Quarter Clone Conversation: Memory Systems (guanyang/open-agent-hub, 977 stars), Knowledge Session State And Context Project Auto Memory (echoVic/blade-code, 181 stars), Context Mode Output Sandbox (mksglu/context-mode, 26k stars) and Memori Long-Term Memory (MemoriLabs/Memori, 17k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Quarter Clone Conversation?

ykdojo (a GitHub user) maintains it in ykdojo/claude-code-tips, which has 10,202 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on September 25, 2026.

Source: ykdojo/claude-code-tips on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.