handoff

handoff is a skill for Claude Code, Codex from Marvae/teams-claude-bot. It costs 16 tokens per session (555 once invoked), scanned B, original, MIT.

A way to move the current Claude Code session to Microsoft Teams so work can continue on a phone or another device. It sends a summary of the session and any unfinished tasks.

In plain words
What is it for?
Use it to hand off the current session, including its working folder, summary, session identifier, and remaining tasks, to Teams.
Why use it?
It avoids losing context when leaving the development environment and gives the next session the information needed to continue.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/marvae/teams-claude-bot/handoff
Any agent
npx skills add Marvae/teams-claude-bot --skill handoff
Clone the repo
git clone --depth 1 https://github.com/Marvae/teams-claude-bot

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for handoff

README.md
[![agentmods](https://agentmods.dev/badge/skills/marvae/teams-claude-bot/handoff.svg)](https://agentmods.dev/skills/marvae/teams-claude-bot/handoff)
Your own site
<a href="https://agentmods.dev/skills/marvae/teams-claude-bot/handoff"><img src="https://agentmods.dev/badge/skills/marvae/teams-claude-bot/handoff.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 555 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.00555
Opus 5 $0.00008 $0.00278
Sonnet 5 $0.00003 $0.00111
Haiku 4.5 $0.00002 $0.00056

Measured 5d ago against content hash c2652d68ccb4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade B, and why

handoff scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

-H "x-handoff-token: $(cat "$HOME/.claude/teams-bot/handoff-token" 2>/dev/null)" \

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

allowed-tools: Bash(curl *)
skills/handoff/SKILL.md · 43 lines

What it actually says

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):

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.

  1. Parse the JSON response. If success is true: Handoff sent! Check Teams to continue. You can keep working here — both sides are independent.
  2. 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
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 43 lines · 16 tokens per session scan B c2652d68ccb4

Subscribe to this mod's changes

handoff is a skill published in the GitHub repository Marvae/teams-claude-bot (11 stars, last pushed 4mo ago), licensed MIT. It adds 16 tokens to every session and 555 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

octo-mail

OCTO Agent Mail operations for reading, searching, policy-aware sending, preparing drafts, and checking delivery status exclusively through octo-cli.

Mininglamp-OSS/octo-cli · 32 tokens

octo-messaging

Messaging domain — send/edit/sync messages, read receipts, message search (search/all/files/media/around/groups, in-channel or cross-channel), groups and threads (User Bot), and event polling. Covers App Bot DM-only constraints. Load after octo-shared.

Mininglamp-OSS/octo-cli · 59 tokens

conscientiousness

Thoroughness and diligence in execution — systematic checking, completeness verification, follow-through on commitments, and the discipline of finishing well. Maps the personality trait of conscientiousness to AI task execution: not cutting corners, verifying results, and ensuring that what was promised is what was…

pjt222/agent-almanac · 108 tokens

microsoft365-expert

Expert in Microsoft 365 ecosystem, Power Platform, SharePoint Online, Microsoft Teams, Graph API, and Microsoft 365 administration. Use when the user mentions Microsoft platforms, Office 365, productivity, cloud, the Power Platform, or SharePoint, or when the task involves Microsoft 365 Services, Power Platform, Graph…

personamanagmentlayer/pcl · 78 tokens

teams-expert

Expert in Microsoft Teams bot development, tabs, messaging extensions, adaptive cards, Graph API integration, and Teams app deployment. Use when the user mentions Microsoft platforms Microsoft Teams, Microsoft Teams, communication, collaboration, Microsoft platforms, or Microsoft Teams bot, or when the task involves…

personamanagmentlayer/pcl · 71 tokens

breathe

AI micro-reset between actions — the lightest self-care unit. A single conscious pause to check alignment before the next step. Where meditate is a full clearing session, breathe is one deliberate moment of awareness between tool calls or reasoning steps. Use mid-task when drift might be accumulating, between reading…

pjt222/agent-almanac · 89 tokens