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

half-clone

하는 일

이 스킬은 현재 대화의 뒤쪽 절반으로 새 사본을 만들고, 앞부분은 버립니다. 채팅이 길어져 맥락을 줄이고 계속 작업하고 싶은 사람들을 위한 것입니다.

사용하는 경우

  • ✓대화가 너무 길어져서 계속하기 느리거나 어려울 때.
  • ✓최근 작업은 남기고 채팅의 초반 부분은 버리고 싶을 때.
  • ✓새 메시지마다 쓰는 토큰 수를 줄이고 싶은 경우.

스킬 링크

https://github.com/ykdojo/claude-code-tips/blob/main/skills/half-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/half-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에게 요청하는 예시

“채팅이 너무 깁니다. 이 대화의 half-clone을 만들어서 계속 작업할 수 있게 해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 현재 세션을 찾고, 스크립트를 실행해 뒤쪽 절반을 새 세션으로 복사합니다. 그다음 새 세션을 여는 명령을 알려 줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Clone the later half 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
  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> <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 [HALF-CLONE <timestamp>], e.g. [HALF-CLONE Jan 7 14:30], so claude -r and picking it works as a fallback.)
자주 묻는 질문

최근 메시지를 잃나요?

아닙니다. 복사본에는 최근 작업이 담긴 대화의 뒤쪽 절반이 남습니다.

새 세션은 어떻게 여나요?

새 세션 ID가 있는 명령을 제공하므로, 그 명령으로 바로 이어서 작업할 수 있습니다.

원래 대화는 보관되나요?

새 사본의 끝에 원래 대화에 대한 참조가 추가됩니다.

상세 정보

작성자의 원본 설명

Clone the later half of the current conversation, discarding earlier context to reduce token usage while preserving recent work.

repo: ykdojo/claude-code-tips

인기도

GitHub 스타
10k
순위
#11899
라이선스
—
업데이트
2026. 9. 25.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬