--- name: generate-handover description: Generate handover document for session or person transfer. --- # Skill: generate-handover Generate handover document for session or person transfer. ## Invoked by 📝 DocGen mode (or 🪃 Orchestrator) ## Required Inputs | Input | Source | Example | |-------|--------|---------| | `TICKET_KEY` | Jira issue key | `PROJECT-123` | | `MODULE` | Module/component name | `auth`, `api`, `core` | | `SESSION_ID` | BigMind session to hand over (optional) | `d8a0f4fa-...` | ## Output Markdown file: `docs///-handover-.md` ## Steps ### 1. Read BigMind session context ```python memory_get_session_detail(session_id=SESSION_ID) memory_search_facts("") memory_search_chunks("") ``` ### 2. Read git status ```bash cd git branch --show-current git status git log origin/main..HEAD --oneline git diff origin/main --stat ``` ### 3. Read Jira ticket status ```python ticket = retrieve_ticket_details(TICKET_KEY) checklist = get_checklist(TICKET_KEY) ``` ### 4. Read existing documentation Check `docs///` for assessment, plan, testplan, solution, review docs. ### 5. Analyze what's done vs. remaining Cross-reference Jira checklist, git commits, test plan status, and plan steps. ### 6. Generate handover document ```markdown # Handover: **Date:** **Module:** **Author:** Lumen (DocGen) **BigMind Session:** `` **Branch:** --- ## 1. Current State **Jira Status:** **Progress:** / checklist items complete <1-3 sentence summary> ## 2. Completed Work | # | Description | Files | Commit | |---|------------|-------|--------| | 1 | | ``, `` | `` | ## 3. Remaining Work | # | Description | Priority | Estimated Effort | |---|------------|----------|-----------------| | 1 | | High/Medium/Low | | ## 4. Open Questions / Blockers | # | Question/Blocker | Context | Contact | |---|-----------------|---------|---------| | 1 | | | | ## 5. Key Decisions | Decision | Rationale | Date | |----------|----------|------| | | | | ## 6. Technical Notes - - - ## 7. Context Recovery For continuing this work: - **Worktree:** `` - **Branch:** `` - **BigMind Session:** `` — `memory_get_session_detail("")` for details - **Documentation:** `docs///` ``` ### 7. Store in BigMind ```python memory_store_fact( category="codebase", fact=f"{TICKET_KEY}: Handover doc created. Status: {done}/{total} items done." ) ``` ## 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 |