handoff
Was er macht
Dieses Tool erstellt eine Datei namens `HANDOFF.md`. Sie fasst zusammen, was du erreichen willst, was funktioniert hat, was fehlgeschlagen ist und was die nächsten Schritte sind. Die Datei ist wie eine Übergabenotiz, damit jemand anderes (oder du selbst später) genau dort weitermachen kann, wo die Arbeit aufgehört hat.
Wann du ihn nutzt
- ✓Wenn das Gespräch mit der KI zu lang und unübersichtlich wird.
- ✓Wenn die KI immer wieder dieselbe Lösung versucht, die nicht funktioniert.
- ✓Wenn du die Arbeit unterbrechen und später fortsetzen musst.
Link zum Skill
https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/handoff/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Erstelle eine Zusammenfassungsdatei, damit ich diese Arbeit weiterführen kann.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Das Tool analysiert das Hauptziel, den aktuellen Stand des Projekts (was funktioniert und was nicht), die geänderten Dateien, die fehlgeschlagenen Versuche und die nächsten Schritte. Alles wird in einem Dokument übersichtlich zusammengefasst, damit du leicht weitermachen kannst.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
…
Häufige Fragen
Warum brauche ich diese Datei?
Sie sorgt dafür, dass jeder (auch eine neue KI-Sitzung) schnell versteht, wie weit die Arbeit gekommen ist, und weitermachen kann, ohne wichtige Informationen zu verlieren oder Fehler zu wiederholen.
Was mache ich, nachdem die Datei `HANDOFF.md` erstellt wurde?
Starte eine neue Sitzung mit der KI und bitte sie, die Datei `HANDOFF.md` zu lesen, um die Arbeit fortzusetzen.
Soll ich die Datei `HANDOFF.md` in meinem Projekt behalten?
Nein, meist ist sie nur eine temporäre Datei. Du solltest sie löschen, nachdem die neue KI-Sitzung sie gelesen hat und die Arbeit wieder aufgenommen wurde. Alternativ kannst du sie zu deiner `.gitignore` hinzufügen, damit sie nicht dauerhaft gespeichert wird.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 101k
- Platz im Ranking
- #1271
- Lizenz
- Apache-2.0
- Aktualisiert
- 15.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
Agent Cost Report
101kLässt deinen Agenten detaillierte Kostenberichte für seine Aktivitäten erstellen. Zeigt, wie viel für Tokens und Dienste ausgegeben wurde.
claude-mem-install
101kHilft deinem Agenten, Claude-Mem in verschiedenen Umgebungen einzurichten. Wähle zwischen lokalen oder entfernten Workern und konfiguriere die Beobachtung.
mem-search
101kLässt deinen Agenten frühere Erinnerungen durchsuchen. Nützlich, um alte Lösungen oder Arbeit aus früheren Sitzungen wiederzufinden.
host-observer
101kHilft deinem Agenten, auf Aufgaben des Claude-Mem Observers zu antworten. Er antwortet nur mit „skip_summary“ oder einer vollständigen XML-Beobachtung.
Ähnliche Skills
knowledge-automation
394kHilft deinem Agenten, einen wiederkehrenden Auftrag einzurichten, der regelmäßig neue Inhalte in deinen Knowledge-Vault bringt, und danach zu prüfen, ob er läuft.
knowledge-source-ingest
394kHilft deinem Agenten, den Knowledge-Vault mit neuen Einträgen aus Chat-Kanälen, Feeds oder Postfächern aktuell zu halten, ohne bereits Vorhandenes erneut hinzuzufügen.
benchmark
280kHilft deinem Agenten, die Geschwindigkeit und Performance von Code zu messen. Nützlich, um Tempo sicherzustellen und Bremsen zu finden.