add-teams — Claude Code skill: what it does, how to install
The add-teams skill connects Microsoft Teams to a Power Apps code app and helps configure chat messages or channel posts.
MIT ★ 1,167 updated 2026-10-29
/plugin marketplace add microsoft/power-platform-skills
/plugin install code-apps-preview@power-platform-skillsWhat add-teams does
The skill adds the Teams connector to a Power Apps app with pa app add data-source. It checks memory-bank.md first, then looks up a connection ID by running the /list-connections skill. If no Teams connection is available, it guides the user through creating one in the active Power Apps environment.
Next, it asks which Teams operations the app needs and configures them through TeamsService. For chat messages, it uses PostMessageToConversation with the Flow bot. The skill then runs npm run build; TypeScript errors must be fixed before moving on. It does not deploy at this stage. The skill also records the connector, configured operations, and build status in memory-bank.md. A connection ID is required to add the data source.
What it helps with
- connect Teams to a Power Apps app
- find or create a Teams connection
- configure chat messages sent by the Flow bot
- run a build after adding the connector
Example prompts for the agent
/add-teamsConnect Teams to my Power Apps app and set up chat messages./add-teamsAdd Teams channel posting to the app, then run the build./add-teamsCheck the Teams connection and record the configured operations inmemory-bank.md.
How to install add-teams
1Plugin marketplace
/plugin marketplace add microsoft/power-platform-skills/plugin install code-apps-preview@power-platform-skillsThis installs the whole code-apps-preview plugin with all its skills
2Skills CLI (Vercel)
npx skills add microsoft/power-platform-skills --skill add-teams -a claude-code3Manually: put the files in place
~/.claude/skills/add-teams/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/add-teams/
1Skills CLI (Vercel)
npx skills add microsoft/power-platform-skills --skill add-teams -a codex2Manually: put the files in place
.agents/skills/add-teams/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add microsoft/power-platform-skills --skill add-teams -a cursor2Manually: put the files in place
.cursor/skills/add-teams/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install microsoft/power-platform-skills plugins/code-apps/skills/add-teams2Manually: put the files in place
.github/skills/add-teams/SKILL.md1Skills CLI (Vercel)
npx skills add microsoft/power-platform-skills --skill add-teams -a gemini-cli2Platform CLI
gemini skills install https://github.com/microsoft/power-platform-skills --path plugins/code-apps/skills/add-teamsManually: put the files in place
.devin/skills/add-teams/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about add-teams
How do I install add-teams in Claude Code?
Run /plugin marketplace add microsoft/power-platform-skills, followed by /plugin install code-apps-preview@power-platform-skills.
What does add-teams do?
It adds the Microsoft Teams connector to a Power Apps app and helps configure operations such as sending chat messages. It then builds the app and updates memory-bank.md.
Does add-teams need an existing Teams connection?
It needs a connection ID to add the data source. The skill checks for one with /list-connections and guides the user to create a connection in the active Power Apps environment if needed.
Source text
SKILL.md · MIT
---
name: add-teams
description: Adds Microsoft Teams connector to a Power Apps code app. Use when sending Teams messages, posting to channels, or integrating with Teams chat.
user-invocable: true
allowed-tools: Read, Edit, Write, Grep, Glob, Bash, LSP, TaskCreate, TaskUpdate, TaskList, TaskGet, AskUserQuestion, Skill
model: sonnet
---
**📋 Shared Instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.
# Add Teams
## Workflow
1. Check Memory Bank → 2. Add Connector → 3. Configure → 4. Build → 5. Update Memory Bank
---
### Step 1: Check Memory Bank
Check for `memory-bank.md` per [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md).
### Step 2: Add Connector
**First, find the connection ID** (see [connector-reference.md](${PLUGIN_ROOT}/shared/connector-reference.md)):
Run the `/list-connections` skill. Find the Teams connection in the output. If none exists, direct the user to create one using the environment-specific Connections URL — construct it from the active environment ID in context (from `power.config.json` or a prior step): `https://make.powerapps.com/environments/<environment-id>/connections` → **+ New connection** → search for the connector → Create.
```bash
pa app add data-source --connector teams -c <connection-id>
```
### Step 3: Configure
Ask the user what Teams operations they need (send message, post to channel, etc.).
**PostMessageToConversation** -- sends a chat message via Flow bot:
```typescript
await TeamsService.PostMessageToConversation({
"Post as": "Flow bot",
"Post in": "Chat with Flow bot",
"Post message request": {
recipient: "<recipient-upn-or-id>", // UPN or Entra object ID
messageBody: "<p>HTML message</p>", // HTML format
isAlert: false,
feedbackLoopEnabled: false
}
});
```
Use `Grep` to find specific methods in `src/generated/services/TeamsService.ts` (generated files can be very large -- see [connector-reference.md](${PLUGIN_ROOT}/shared/connector-reference.md#inspecting-large-generated-files)).
### Step 4: Build
```bash
npm run build
```
Fix TypeScript errors before proceeding. Do NOT deploy yet.
### Step 5: Update Memory Bank
Update `memory-bank.md` with: connector added, configured operations, build status.
© Microsoft · MIT · microsoft/power-platform-skills