handoff
Hand off the current Claude Code session to Microsoft Teams for mobile continuation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Hand off the current Claude Code session to Microsoft Teams for mobile continuation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | handoff |
| description | Hand off the current Claude Code session to Microsoft Teams for mobile continuation |
| allowed-tools | Bash(curl *) |
Session ID: ${CLAUDE_SESSION_ID}
When the user runs /handoff:
The session ID is already available above via template variable. If it shows as empty or literal ${CLAUDE_SESSION_ID}, ask the user to run /status and paste their Session ID.
Generate a session summary based on the current conversation, in the same language as the conversation (do NOT default to English). Construct the full JSON body with these fields:
workDir: current working directory (forward slashes only, e.g. C:/Users/...)sessionId: the session ID from abovetitle: card title (e.g. "Session Summary" / "会话摘要")summary: 1-2 sentence summary of what was discussed/donetodos: array of {"content": "...", "done": true/false} — omit if nonebuttonText: accept button label (e.g. "Continue" / "继续")Send via curl with a single-quoted heredoc (no shell expansion, safe for unicode and special chars):
curl -s -X POST "${TEAMS_BOT_URL:-http://localhost:3978}/api/handoff" \
-H "Content-Type: application/json" \
-H "x-handoff-token: $(cat "$HOME/.claude/teams-bot/handoff-token" 2>/dev/null)" \
-w "\nHTTP_STATUS:%{http_code}" \
-d @- <<'EOF'
YOUR_JSON_HERE
EOF
IMPORTANT: Replace YOUR_JSON_HERE with the actual JSON from step 2. The heredoc is single-quoted — content is passed verbatim, no escaping needed.
success is true: Handoff sent! Check Teams to continue. You can keep working here — both sides are independent.success is false or HTTP_STATUS is not 200: show the error field from the response. Common errors:
teams-bot start