--- name: generate-handover description: Generate handover document for session or person transfer. --- > **IMPORTANT:** Never list Roo as author or co-author. The Author field must always be "Patrick Plate" only. # Skill: generate-handover Generate handover document for session or person transfer. ## Invoked by 📝 DocGen mode (or đŸȘƒ Orchestrator delegating to DocGen) ## Required Inputs | Input | Source | Example | |-------|--------|---------| | `TICKET_KEY` | Jira issue key | `ESIDEPAISY-12081` | | `MODULE` | PAISY module name | `eau`, `eubp`, `svmeldungen` | | `SESSION_ID` | BigMind session to hand over (optional) | `d8a0f4fa-59ee-48c0-b863-a51bc6294331` | ## Output Markdown file: `docs///-handover-.md` ## Steps ### 1. Read BigMind session context ```python # If SESSION_ID provided, get the full session detail memory_get_session_detail(session_id=SESSION_ID) # Also search for all facts related to this ticket memory_search_facts("") memory_search_chunks("") ``` ### 2. Read git status ```bash cd /Users/pplate/git/paisy- git branch --show-current git status git log origin/current..HEAD --oneline git diff origin/current --stat ``` ### 3. Read Jira ticket status ```python ticket = retrieve_ticket_details(TICKET_KEY) # Extract: status, assignee, summary, checklist state checklist = get_checklist(TICKET_KEY) comments = retrieve_ticket_comments(TICKET_KEY) ``` ### 4. Read existing documentation ```bash ls docs/// ``` Read all available docs: - Assessment (`*-assessment.md`) - Plan (`*-plan.md`) - Test plan (`*-testplan.md`) - Solution doc (`*-solution.md`) - Review (`*-review.md`) ### 5. Analyze what's done vs. remaining Cross-reference: - Jira checklist items (done vs. open) - Git commits (what's been implemented) - Test plan status (which tests pass/fail/pending) - Plan document (which steps are complete) ### 6. Generate handover document Write `docs///-handover-.md`: ```markdown # Handover: — **Datum:** **Modul:** **Autor:** Patrick Plate **BigMind Session:** `` **Branch:** --- ## 1. Aktueller Stand **Jira-Status:** **Fortschritt:** / Checklist-Punkte erledigt <1-3 sentence summary of where things stand> ## 2. Erledigte Arbeiten | # | Beschreibung | Dateien | Commit | |---|-------------|---------|--------| | 1 | | ``, `` | `` | | 2 | | `` | `` | ## 3. Offene Arbeiten | # | Beschreibung | PrioritĂ€t | GeschĂ€tzter Aufwand | |---|-------------|-----------|-------------------| | 1 | | Hoch/Mittel/Niedrig | | | 2 | | Hoch/Mittel/Niedrig | | ## 4. Offene Fragen / Blocker | # | Frage/Blocker | Kontext | Ansprechpartner | |---|-------------|---------|----------------| | 1 | | | | ## 5. Wichtige Entscheidungen | Entscheidung | BegrĂŒndung | Datum | |-------------|-----------|-------| | | | | ## 6. Technische Hinweise - - - ## 7. Kontext-Wiederherstellung FĂŒr die Weiterarbeit: - **Worktree:** `/Users/pplate/git/paisy-` - **Branch:** `` - **BigMind Session:** `` — `memory_get_session_detail("")` fĂŒr Details - **Relevante BigMind Facts:** - **Dokumentation:** `docs///` ``` ### 7. Store in BigMind ```python memory_store_fact( category="codebase", fact=f"{TICKET_KEY}: Handover doc created at docs/{MODULE}/{TICKET_KEY}/{TICKET_KEY}-handover-{date}.md. Status: {done}/{total} items done." ) memory_append_chunk( session_id=SESSION_ID, content=f"Handover for {TICKET_KEY}: ", flag_reason="handover documentation" ) ``` ## Expected Output - Handover document at `docs///-handover-.md` - Complete picture of done/remaining work - Context recovery instructions for the next person/session - BigMind fact stored for traceability ## Error Handling | Error | Resolution | |-------|------------| | No BigMind session found | Generate handover from git + Jira only — note missing session context | | No worktree found | Check if work was done in main repo with branch checkout | | No plan/assessment docs | Generate handover from Jira ticket + git history only | | Empty git history | Branch may not have diverged from `current` yet — note "no commits" | ## When to Use | Scenario | Trigger | |----------|---------| | End of day | Capture progress before stopping work | | Person transfer | Handing ticket to another developer | | Session recovery | After IDE crash, use to restore context | | Long pause | Before vacation or multi-day break | | Mode switch | When Orchestrator hands off between modes | ## Language - Document content: **German** - Technical terms (class names, branch names, BigMind IDs): English as-is - Section headers: German