Session Handoff — Session Handoff Document Generation
When to Invoke
When Chunyun (or any user) says any of the following keywords, this Skill must be invoked immediately:
- "会话交接" (session handoff)
- "会话整理" (session organization)
- "交接文档" (handoff document)
- "做交接" (do handoff)
- "session handoff"
- "handoff"
- "生成交接" (generate handoff)
- "会话总结" (session summary)
- Any expression indicating "this session is ending, and the next session’s person/AI needs to know what happened"
Objective
Generate a structured Markdown handoff document and save it to the workspace root directory. The document must allow an AI or human with no prior context to accurately take over after reading it.
Output Specification
File Name Format
会话交接文档_主题名_YYYYMMDD_vN.md
主题名= Core task or theme extracted from the conversation context, suggested 2–6 Chinese words, remove colons, dashes, and other special characters, connect words with underscores. If no clear theme can be extracted, use未分类YYYYMMDD= Current datevN= Version number, starting from v1. If a document with the same date and theme already exists in the workspace, increment the version number
Eight Mandatory Sections
| # | Section | Must Cover |
|---|---|---|
| 1 | Session Summary | Goal of this session, time period, list of main achievements |
| 2 | Latest User Persona | Extract from user_rules; if no rules exist, infer from conversation and note as "Inferred" |
| 3 | Completed Work | What was done specifically, which files were produced (attach file paths and names), key data or results |
| 4 | Current Progress | Current status: what has been confirmed, what remains to be progressed |
| 5 | Unresolved Issues | Blockers, pending decisions, items requiring further investigation, legacy technical debt |
| 6 | Rules and Constraints | Newly confirmed non-changeable boundaries from this session (naming conventions, forbidden words in writing, tool limitations, etc.) |
| 7 | Handoff Guide for New Session | What the first step should be, where to start, any notices |
| 8 | Original Dialogue Appendix (Optional) | Key dialogue excerpts or quotes to help the new AI understand context |
Writing Requirements
- User Information First: If user_rules contains Chunyun’s persona (occupation, preferences, tool ecosystem, writing conventions, etc.), quote them fully in Section 2, do not omit anything
- Full File Paths: All mentioned output files must include the full path relative to the workspace
- Explicitly Mark Exceptions: If any information is inferred (not explicitly stated by the user), annotate it with "🤖 Inferred"
- Follow User Language: The handoff document must use the language Chunyun is currently using
Workflow
User triggers (e.g., "帮我做会话交接" [help me do session handoff])
↓
① Scan workspace root directory file list
② Read user_rules to get persona and fixed preferences
③ Review current conversation context, extract key information
④ Extract session theme name (2–6 Chinese words, for file name)
⑤ Organize content into the 8 sections above
⑥ Save to workspace following naming convention
↓
Notify user that document has been generated and provide file link
Usage Example
User says: "帮我做个会话交接" (Help me do a session handoff)
AI should:
- Immediately invoke this Skill
- Scan workspace files
- Review conversation context
- Extract theme name, e.g.,
公众号长文优化(public account long article optimization) - Generate
会话交接文档_公众号长文优化_20260719_v1.md - Reply: "春云,交接文档已生成:[链接]" (Chunyun, the handoff document has been generated: [link])
User says: "整理一下当前的进度,后面的人来接手" (Organize the current progress, someone will take over later)
AI also triggers this Skill and generates a standard handoff document.