teams-messages
Compose, route, draft, or send Microsoft Teams messages with exact destination resolution, real user mentions, and Teams-native DM or channel routing.
- License 许可
- MIT
- 最近更新
- 2026-07-19
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- teams-messages
- description
- Compose, route, draft, or send Microsoft Teams messages with exact destination resolution, real user mentions, and Teams-native DM or channel routing.
02 资源文件 1
- 参考文档agents/openai.yaml356 B
03 SKILL.md 正文
Teams Messages
Overview
Use this skill to compose, rewrite, route, or send Teams messages. Apply it when the next step involves posting to a chat, replying in a thread, creating a new chat, starting a channel thread, or writing message text that could be sent later.
Workflow
- Identify the intended destination first: existing chat, new DM, new group chat, channel post, or thread reply.
- Determine from the request whether the user wants draft text or an actual send, and use the matching path.
- Resolve exact IDs before writing:
- teams or channels:
resolve_team,resolve_channel - existing chats:
resolve_chat - people for new chats or mentions:
resolve_user
- teams or channels:
- Use
validate_write_targetwhen the destination is described in natural language and it is unclear whether the user means an existing target or a create-style action. - Route to the correct write action:
- existing chat:
send_chat_message - new DM or group chat:
create_chat, thensend_chat_message - new channel thread:
send_channel_message - reply in an existing chat or channel thread:
reply_to_messageorreply_to_channel_message - new channel:
create_channel
- existing chat:
Mention Rules
- Resolve people before writing when the message should tag someone.
- Use structured Teams mention inputs with exact Entra user IDs plus display names.
- Do not rely on plain
@nametext to create a real Teams mention. - If the target user cannot be resolved confidently, say so and return draft text without implying the mention will work.
Routing Rules
- For an existing direct conversation, prefer the existing two-person chat even if Teams labels it as
groupinstead ofoneOnOne. - For a new direct chat, call
create_chat(chat_type='oneOnOne')with exactly one resolved recipient user ID. - If one-on-one creation fails with a caller-membership mismatch, fetch the caller profile and fall back to a two-person
groupchat containing the caller and the intended recipient. - For note-to-self requests, prefer an obvious existing self-chat target. If none is exposed, create a one-member
groupchat containing only the caller and send the note there. - For channel replies, prefer replying by canonical message path instead of inferring the target from quoted text alone.
Support Boundaries
- Teams drafts here are returned text only. There is no native persisted draft object.
- Do not claim support for Teams tags, reactions, file uploads, message edits, message deletes, or Slack-style canvases.
- Do not imply broad channel-notification behavior beyond what a normal Teams post or structured mention can do.
Output Conventions
- For drafts, return only the message text unless the user asked for explanation.
- For multiple routing candidates, present the smallest useful disambiguation rather than guessing.
- When a send is blocked, say whether the blocker is destination ambiguity, missing user resolution, or a Teams product rule.
04 同仓库更多 Skills
Zotero
Use Zotero Desktop from Codex to enable/probe the local API, search a local Zotero library, list items/collections/tags, export BibTeX, insert citation keys into LaTeX or Markdown drafts, read indexed full text when requested, and import BibTeX/RIS records into Zotero through the connector server. Use when the user mentions Zotero, citations, references.bib, BibTeX export, local Zotero API, localhost:23119, or adding citations from a Zotero library.
zoom-apps-sdk
Use when using Apps SDK.
youtube
Obtain accurate, timestamped YouTube video transcripts (preferring manual captions over auto-generated) as the primary deliverable, then derive summaries, key claims, or notes from that transcript. Use when the user provides a YouTube URL (or video ID) and wants the transcript, a faithful summary, key claims with attribution, timestamped notes, or "what does this video actually say". The skill is transcript-first: never substitute metadata, title, description, or search snippets for the spoken content. Triggers: "youtube transcript", "get the transcript of this video", "summarize this youtube video", "what did they say in https://youtube.com/...", "key claims from this talk".
yeet
Publish local changes to GitHub by confirming scope, committing intentionally, pushing the branch, and opening a draft PR through the GitHub app from this plugin, with `gh` used only as a fallback where connector coverage is insufficient.
x-post-creator
Create X-ready post threads and co-located story packages from the active conversation or referenced project material. Use when the user says turn this into an X-post, /x-post, make this into an X thread, or wants plain-language social posts with supporting images saved to docs/x-posts/[story-name]/.
x-api
Search, read, and write X posts through the local X API MCP server (the same backend used by the Codex x-api skill). Use for searching X/x.com, reading threads and replies, creating lists, staging/publishing posts for @alltheputs, finding high-visibility reply targets for research outreach, ingesting public context, or any request that mentions /x-api or "search X".