ms-teams-cli

ms-teams-cli is a skill for Claude Code, Codex from abdullahkhawer/devops-skills. It costs 33 tokens per session (1,010 once invoked), scanned B, original, Apache-2.0.

A command-line skill for Microsoft Teams, a collaboration service for team and channel messaging. It uses Microsoft's Graph API, a web interface for accessing Teams data, to list teams and channels, look up users, and post messages.

In plain words
What is it for?
Use it to list teams and channels, find users, and send messages to Teams channels.
Why use it?
It provides command-line access even though Teams has no official first-party command-line tool. It keeps the access token in a protected file instead of putting it directly in commands.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to list teams and channels, find users, and send messages to Teams channels.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/abdullahkhawer/devops-skills/ms-teams-cli
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.

Any agent
npx skills add abdullahkhawer/devops-skills --skill ms-teams-cli
Clone the repo
git clone --depth 1 https://github.com/abdullahkhawer/devops-skills

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 ms-teams-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/ms-teams-cli/github.svg)](https://agentmods.dev/skills/abdullahkhawer/devops-skills/ms-teams-cli)
Your own site
<a href="https://agentmods.dev/skills/abdullahkhawer/devops-skills/ms-teams-cli"><img src="https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/ms-teams-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ms-teams-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/abdullahkhawer/devops-skills/ms-teams-cli"><img src="https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/ms-teams-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,010 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00033 $0.01010
Opus 5.5 $0.00013 $0.00404
Sonnet 5.5 $0.00007 $0.00202
Haiku 4.5 $0.00003 $0.00101

Measured 23d ago against content hash ba978159d59b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

ms-teams-cli 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 23d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

mkdir -p ~/.msteams && echo "<your-access-token>" > ~/.msteams/token && chmod 600 ~/.msteams/token

Makes network callslowCapability

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

description: Perform Microsoft Teams operations using the Microsoft Graph API via curl. Use for posting channel messages, listing teams/channels, and looking up users.
skills/ms-teams-cli/SKILL.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Microsoft Teams CLI Skill

Microsoft Teams has no official first-party CLI — use the Microsoft Graph API via curl for all operations.

Configuration

Update the tenant details below before using this skill:

Setting Value
Azure AD Tenant ID <your-tenant-id>
App Registration Client ID <your-client-id>
Token File ~/.msteams/token

Prerequisites (one-time setup by user)

Register an Azure AD application with ChannelMessage.Send, Team.ReadBasic.All, and Channel.ReadBasic.All Graph API permissions (admin consent required for most Teams scopes), then obtain an OAuth token and save it to the token file. Never print or display the token value. Do not perform these steps yourself.

mkdir -p ~/.msteams && echo "<your-access-token>" > ~/.msteams/token && chmod 600 ~/.msteams/token

Command Format

All API calls use curl with the token read from the token file:

curl -s -H "Authorization: Bearer $(cat ~/.msteams/token)" \
  "https://graph.microsoft.com/v1.0/<endpoint>" | jq .

Available API Endpoints

Read-only (safe, no confirmation needed)

Endpoint Method Description
/v1.0/me/joinedTeams GET List teams the authenticated user has joined
/v1.0/teams/<team-id>/channels GET List channels in a team
/v1.0/teams/<team-id>/channels/<channel-id>/messages GET List messages in a channel
/v1.0/teams/<team-id>/channels/<channel-id>/messages/<message-id> GET Get a specific message
/v1.0/users?$filter=<query> GET Look up users
/v1.0/users/<user-id> GET Get a specific user

Mutating operations (confirm with user before running)

Endpoint Method Description
/v1.0/teams/<team-id>/channels/<channel-id>/messages POST Post a message to a channel (confirm channel and text with user first)
/v1.0/teams/<team-id>/channels POST Create a new channel
/v1.0/chats/<chat-id>/messages POST Send a 1:1 or group chat message

Read the full file on GitHub · 85 lines

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. 23d ago First seen · 85 lines · 33 tokens per session scan B ba978159d59b

Subscribe to this mod's changes

ms-teams-cli is a skill published in the GitHub repository abdullahkhawer/devops-skills (8 stars, last pushed 24d ago), licensed Apache-2.0. It adds 33 tokens to every session and 1,010 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.

Related

Other skills, from other repositories

skill-iterative-loop

Run tasks in a loop until goals are met — use for iterative refinement, polling, or convergence.

nyldn/claude-octopus · 25 tokens

lore

SpecStory Lore - mine your SpecStory coding histories (any agent - Claude Code, Codex, Cursor, Gemini, and more) into a persistent corpus, surface your reproducible workflows with corroborated evidence, and interactively forge the chosen ones into skills installed across all your agent harnesses. Use when the user…

specstoryai/getspecstory · 109 tokens

docs-manage

Manage the Grounded Docs MCP Server documentation index. Covers scraping and indexing documentation from URLs or local files, refreshing existing indexes with changed content, removing libraries from the index, and compacting the SQLite store. Use when you need to add, update, or delete indexed documentation, or…

arabold/docs-mcp-server · 67 tokens

fetch-url

Fetch a single URL and convert its content to Markdown. Use when you need to read a web page, documentation page, or API reference without indexing it. The content is returned as plain Markdown text on stdout.

arabold/docs-mcp-server · 45 tokens

workthreads

SpecStory Workthreads - a weekly work-thread rollup across a team's repos from SpecStory coding histories (any agent - Claude Code, Codex, Cursor, Gemini, and more). It groups the window's sessions into threads of work per project and labels each new / open / recently closed, so a lead sees what shipped, what is still…

specstoryai/getspecstory · 126 tokens

sys-configure

Configure Claude Octopus — redirects to /octo:setup interactive wizard.

nyldn/claude-octopus · 18 tokens