Skip to main content

Claude Code

Claude Code can run shell commands directly. Keep Teams access scoped to a named profile and a test team during pilot work.

teams --profile pilot auth doctor --output json
teams --profile pilot message send --chat "$CHAT_ID" --body "Pilot update" --output json

Do not grant autonomous delete/archive permissions without explicit policy.

Agent skills​

The CLI repository ships agent skills that teach Claude Code, Codex and other agents how to sign in, read the JSON envelope and exit codes, send messages, administer teams, and run webhooks:

npx skills add osodevops/ms-teams-cli
npx skills add osodevops/ms-teams-cli --skill teams-cli-messaging

The skills are teams-cli-setup, teams-cli-messaging, teams-cli-admin and teams-cli-automation. Each one tells the agent to confirm destructive commands with the user first.