Hand off the current Claude Code session to Microsoft Teams for mobile continuation
Scanned 5/27/2026
Install via CLI
openskills install Marvae/teams-claude-bot---
name: handoff
description: Hand off the current Claude Code session to Microsoft Teams for mobile continuation
allowed-tools: Bash(curl *)
---
# Handoff to Teams
Session ID: ${CLAUDE_SESSION_ID}
When the user runs `/handoff`:
1. 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.
2. **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 above
- `title`: card title (e.g. "Session Summary" / "会话摘要")
- `summary`: 1-2 sentence summary of what was discussed/done
- `todos`: array of `{"content": "...", "done": true/false}` — omit if none
- `buttonText`: accept button label (e.g. "Continue" / "继续")
3. Send via curl with a single-quoted heredoc (no shell expansion, safe for unicode and special chars):
```bash
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.
4. Parse the JSON response. If `success` is true: `Handoff sent! Check Teams to continue. You can keep working here — both sides are independent.`
5. If `success` is false or HTTP_STATUS is not 200: show the `error` field from the response. Common errors:
- "First time setup: send any message to the bot in Teams first" → user needs to message the bot once
- "Conversation expired" → user needs to send a message to refresh
- "Teams rejected" / "bot token" → bot credentials issue
- Connection refused → bot is not running, try `teams-bot start`
No comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.
SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.
Python backend development expertise for FastAPI, security patterns, database operations, Upstash integrations, and code quality. Use when: (1) Building REST APIs with FastAPI, (2) Implementing JWT/OAuth2 authentication, (3) Setting up SQLAlchemy/async databases, (4) Integrating Redis/Upstash caching, (5) Refactoring AI-generated Python code (deslopification), (6) Designing API patterns, or (7) Optimizing backend performance.
Drive the full internationalization journey for a project — detect the stack, recommend a library, set up the chosen library, wrap existing strings, and optionally connect a translation platform. Use when the user asks to add or configure i18n, internationalization, localization, multi-language support, or translations — including when they explicitly mention LinguiJS, Lingui, next-intl, "wrap strings", "find hardcoded text", "make my app translatable", or "set up translations". Triggers on g...
PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.