본문으로 건너뛰기
Skillpedia
기타10k · #11903

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/ykdojo/claude-code-tips/blob/main/skills/quarter-clone/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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:

  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
    • 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; --quarter selects quarter mode
  3. 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
  4. Run the clone: <script-path> --quarter <session-id> <project-path>
    • Always pass the project path from the history entry, not the current working directory
  5. 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 [QUARTER-CLONE <timestamp>], e.g. [QUARTER-CLONE Jan 7 14:30], so claude -r and 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬