handoff
하는 일
이 도구는 `HANDOFF.md`라는 파일을 만듭니다. 달성하려는 목표, 잘 된 것, 실패한 것, 다음 단계를 정리합니다. 다른 사람이나 나중의 자신이 작업을 정확히 이어 갈 수 있도록 하는 인수인계 메모와 같습니다.
사용하는 경우
- ✓AI와의 대화가 너무 길고 복잡해졌을 때.
- ✓AI가 작동하지 않는 같은 해결책을 계속 시도할 때.
- ✓작업을 멈추고 나중에 다시 이어 가야 할 때.
스킬 링크
https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/handoff/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 작업을 이어 가기 위한 요약 파일을 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
도구는 주요 목표, 프로젝트의 현재 상태(잘 되는 것과 안 되는 것), 변경된 파일, 실패한 시도, 다음 단계를 분석합니다. 이 모든 내용을 이어 가기 쉬운 문서로 정리합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Handoff
Generate a structured HANDOFF.md file that gives a fresh Claude session everything it needs to continue this work without dragging the current degraded context forward.
claude-mem already injects recent observations into every new session, so the fresh agent starts with a timeline of what happened. The handoff adds what that timeline cannot: the goal, the failed attempts and why they failed, the current theory, and exact next steps, plus pointers into memory for deeper recall.
When to Use
- The session is long and Claude feels confused or repetitive
- Claude keeps trying the same failing solution over and over
- The user wants to step away and resume later
/compactran but Claude still lacks clear direction- The user says "handoff", "generate a handoff", "I want to start fresh", or "write a handoff doc"
What to Capture
Think hard about the full arc of this conversation before writing. The handoff must be useful to a Claude instance that has never seen this conversation.
Required Sections
Goal — One paragraph. What is the user actually trying to accomplish? State the end state, not the current sub-task. Be specific enough that a fresh agent can orient immediately.
Current State — What is working right now? What is broken? What is the exact symptom of the problem? Include error messages verbatim if relevant.
Files in Play — List every file that has been read, edited, or created during this session that is relevant to the current task. Use absolute or repo-relative paths. Include a one-line note on why each file matters.
What Has Been Tried (and Why It Failed) — This is the most important section. List every approach attempted that did not work, and explain WHY it failed (not just that it failed). A fresh agent that skips this section will repeat the same mistakes.
Current Best Theory — What do you currently believe is the right path forward, even if you haven't proven it yet? Include any evidence or reasoning that supports it.
Next Steps — Concrete, ordered actions for the fresh agent to take. Be specific: file paths, function names, commands to run. The fresh agent should be able to start on step 1 immediately.
Key Constraints and Context — Any non-obvious constraints: environment specifics, user preferences expressed during this session, things the user explicitly said NOT to do, external dependencies, performance requirements, etc.
Memory Pointers — If claude-mem's search tools are available, run
searchfor this task's key terms and list the few observation IDs that matter most (a decision, the root cause, a failed approach), so the fresh agent can pull full details withget_observations. Also list one or twosearchqueries worth re-running. Skip this section if the tools are not available.
Writing Rules
- Write the handoff for a fresh Claude, not for the user. The user knows what happened; the fresh Claude does not.
- Be ruthlessly specific. Vague next steps are useless. "Fix the auth" is bad. "In
src/auth/middleware.ts:47, the token expiry check usesDate.now()but should usereq.timestamp— change the comparison on line 52" is good. - Include exact error messages, stack traces, or test output that captures the failure mode.
- Do not pad. Every sentence should be load-bearing information for the fresh agent.
- Do not write the handoff from the user's perspective. Write it as a briefing document addressed to the incoming agent.
Output
Write the handoff to HANDOFF.md in the current working directory (the project root).
Use this structure:
# Handoff
> Generated: [timestamp]
> Project: [project name or directory]
> Session summary: [one sentence describing what this session was about]
## Goal
[What the user is trying to accomplish — the actual end state]
## Current State
**Working:**
- [list what is confirmed working]
**Broken:**
- [exact symptom, error message, or failure mode]
## Files in Play
| File | Why It Matters |
|------|---------------|
| `path/to/file.ts` | [one line] |
## What Has Been Tried (and Why It Failed)
### Attempt 1: [short name]
- **What:** [what was done]
- **Why it failed:** [root cause, not just "it didn't work"]
### Attempt 2: [short name]
...
## Current Best Theory
[What you currently believe is the correct approach and why]
## Next Steps
1. [Specific, actionable step with file path or command]
2. [Next step]
3. ...
## Key Constraints
…
자주 묻는 질문
왜 이 파일이 필요한가요?
누구든(새 AI 세션을 포함해) 작업의 진행 상황을 빠르게 이해하고, 중요한 정보를 잃거나 같은 실수를 반복하지 않고 이어 갈 수 있도록 합니다.
`HANDOFF.md` 파일을 만든 뒤에는 무엇을 해야 하나요?
새 AI 세션을 시작하고, AI에게 `HANDOFF.md` 파일을 읽고 작업을 이어 가 달라고 요청하세요.
`HANDOFF.md` 파일을 프로젝트에 남겨 두어야 하나요?
아닙니다. 보통 임시 파일입니다. 새 AI 세션이 읽고 작업을 재개한 뒤에는 삭제하거나, 영구 저장되지 않도록 `.gitignore`에 추가하세요.
상세 정보
작성자의 원본 설명
Generate a HANDOFF.md that captures goal, current state, files touched, failed attempts, and next steps — so a fresh Claude session can continue exactly where this one left off. Use when sessions are getting long, Claude keeps retrying the same broken solution, or the user wants to step away and resume later.
repo: thedotmack/claude-mem
인기도
- GitHub 스타
- 101k
- 순위
- #1271
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
Agent Cost Report
101k에이전트가 활동에 대한 자세한 비용 보고서를 만듭니다. 토큰과 서비스에 얼마를 썼는지 보여 줍니다.
claude-mem-install
101k여러 환경에서 Claude-Mem을 설정하도록 에이전트를 돕습니다. 로컬 또는 원격 워커를 고르고 관찰을 설정할 수 있습니다.
mem-search
101k에이전트가 과거의 기억을 검색하도록 합니다. 이전 해결책이나 오래된 세션의 작업을 떠올리는 데 유용합니다.
host-observer
101kClaude-Mem 관찰자 작업에 에이전트가 응답하도록 돕습니다. 'skip_summary' 또는 전체 XML 관찰 내용으로만 응답합니다.