quarter-clone
하는 일
이 스킬은 현재 대화의 마지막 4분의 1로 새 사본을 만들고, 앞부분의 맥락은 버립니다. 채팅이 길고 가장 최근 작업만 남기고 싶은 사람들을 위한 것입니다.
사용하는 경우
- ✓대화가 매우 길고, 지금은 최신 작업만 중요할 때.
- ✓half-clone보다 더 짧은 채팅 사본을 원할 때.
- ✓새 메시지마다 토큰을 적게 쓰는 더 짧은 세션이 필요한 경우.
스킬 링크
https://github.com/ykdojo/claude-code-tips/blob/main/skills/quarter-clone/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 대화의 quarter-clone을 만들어서 맥락을 줄인 채로 계속 작업할 수 있게 해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 현재 세션을 찾고, 메시지가 일치하는지 확인하도록 복사본을 미리 보여 준 뒤, 마지막 4분의 1로 새 세션을 만드는 스크립트를 실행합니다. 그다음 새 세션을 여는 명령을 알려 줍니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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.)
자주 묻는 질문
half-clone과 무엇이 다른가요?
대화의 마지막 4분의 1만 남기므로, half-clone 복사본보다 더 짧습니다.
최근 메시지를 잃나요?
아닙니다. 복사본에는 대화의 가장 최근 부분이 남습니다.
새 세션은 어떻게 여나요?
새 세션 ID가 있는 명령을 제공하므로, 그 명령으로 바로 이어서 작업할 수 있습니다.
상세 정보
작성자의 원본 설명
Clone the last quarter of the current conversation, discarding earlier context to reduce token usage while preserving recent work.
repo: ykdojo/claude-code-tips
인기도
- GitHub 스타
- 10k
- 순위
- #11903
- 라이선스
- —
- 업데이트
- 2026. 9. 25.
댓글
- …
이 저장소의 다른 스킬
gha
10k에이전트가 GitHub Actions 워크플로가 실패한 이유와 같은 작업이 계속 실패하는지 알아보도록 돕습니다.
half-clone
10k에이전트가 긴 채팅의 뒤쪽 절반을 새 세션으로 복사해, 최근 작업은 남기고 토큰 사용을 줄이도록 돕습니다.
handoff
10k에이전트가 새 채팅이 목표, 진행 상황, 다음 단계를 분명히 이어받을 수 있도록 인수인계 문서를 쓰도록 돕습니다.
hn-summarize
10k에이전트가 공식 Hacker News 데이터를 사용해 상위 뉴스 또는 한 기사와 그 댓글을 요약하도록 돕습니다.