Generated banner for Teams App Developer
Generated logo for Teams App Developer

Teams App Developer

MicrosoftOfficialPublished by Microsoft

  • Skill
  • Tool integration
  • Software development
  • MIT
  • Medium risk

From the author

Builds, tests, and deploys Microsoft 365 apps and agents for Teams and Copilot. Includes sub-skills for project creation, local testing, cloud deployment, troubleshooting, and Slack-to-Teams migration. USE FOR: Teams agent, bot, tab, message extension, Declarative Agents, Custom Engine Agents, local testing, Agents Playground, Azure resource provision, remote deployment, Slack to Teams migration, cross-platform bot development, Block Kit to Adaptive Cards conversion. DO NOT USE FOR: general web development, non-bot/non-Teams projects.
— the description by Microsoft

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

The teams-app-developer skill provides a structured framework for managing the lifecycle of Microsoft 365 agents and Teams applications. It leverages the ATK CLI to handle project scaffolding, local testing via the Agents Playground, cloud provisioning on Azure, and troubleshooting. The skill includes specialized guidance for migrating Slack bots to Teams, including converting Block Kit UI to Adaptive Cards, and provides access to an extensive library of micro-expert documentation for cross-platform development.

What it does

  • Scaffolds new Microsoft 365 agents and Teams applications from templates.
  • Facilitates local testing using the Agents Playground or Teams-specific environments.
  • Automates Azure resource provisioning and cloud deployment workflows.
  • Provides diagnostic procedures for common authentication and configuration errors.
  • Supports migration of Slack bots to the Teams platform.
  • Manages project configuration and environment variables for ATK-based projects.

When to use it

  • When starting a new Teams app, bot, or Declarative Agent project.
  • When you need to test an agent locally before deploying to the cloud.
  • When migrating existing Slack bots to the Microsoft Teams ecosystem.
  • When troubleshooting deployment or authentication issues in a Teams project.
  • When you need to provision Azure infrastructure for a Teams application.

Advantages

  • Streamlines the development lifecycle with standardized CLI commands.
  • Reduces development time by offering a local testing playground.
  • Provides expert-level guidance for complex cross-platform migrations.
  • Ensures consistent configuration management across development environments.
  • Includes robust error-handling protocols for common platform-specific pitfalls.

Usage examples

“Create a new Teams bot project using the default template.”
The agent will initialize a new project folder, configure the necessary YAML files, and guide you through the initial setup using the ATK CLI.
“How do I migrate my Slack bot to Microsoft Teams?”
The agent will initiate the slack-to-teams workflow, providing access to cross-platform bridging experts and guidance on converting UI components.
“My Teams bot is returning a 401 error, how do I fix it?”
The agent will trigger the troubleshooting workflow, checking your environment variables, tunnel status, and authentication configuration.

Install

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/microsoft/teams-app-developer/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip teams-app-developer.zip -d .agents/skills

Documentation by Microsoft

Microsoft 365 Agents Toolkit Skill

Build Microsoft 365 agents and Teams apps using the ATK CLI.

AI Behavior Guidelines

  1. Testing Strategy: Recommend Agents Playground first (faster, no M365 needed). Use Teams workflow only if user explicitly requests it.

  2. Environment Variables: NEVER hardcode secrets or make up placeholder values. Always ask users for real values.

  3. Error Handling: Read error messages carefully. Check env/.env.local, .localConfigs, and atk auth list. Common pitfalls:

    • AADSTS7000229 → aadApp/create missing generateServicePrincipal: true in YAML — add it and re-provision

    • Missing TENANT_ID in .localConfigs → SDK uses wrong token authority → 401 from Bot Connector

    • 401 persists after auth fix → devtunnel URL may be blacklisted — create a fresh tunnel

    • See troubleshoot/troubleshoot.md for full diagnostic steps

  4. Long-Running Commands — WAIT for completion:

    • atk new, atk provision, atk deploy can take several minutes

    • Always wait for completion before running the next step (timeout 120000ms+)

  5. Local Service Startup — Hangs terminal (expected):

    • npm run dev, npm start, python app.py, devtunnel host, etc. will hang — the process keeps running indefinitely

    • ALWAYS run as a background process (isBackground=true) — NEVER use isBackground=false for these commands

    • Do NOT wait for it to "finish" — verify startup by checking output for "listening on port" or tunnel URL

    • If errors appear, read logs, diagnose, fix, restart

    • Use a NEW terminal to launch Agents Playground or open Teams sideloading URL

  6. Monitor App Logs: Periodically check background terminal output for runtime errors. If the app crashes, read the error, fix the root cause, and restart.

  7. Telemetry Tagging: Before running any atk CLI commands, set the session environment variable so all CLI invocations are tagged as skill-initiated:

    export ATK_CLI_SKILL=true

    Run this once at the start of the session. All subsequent atk commands in the same terminal will inherit it.

ATK CLI Setup

atk --version  # Must be > 1.1.5-beta

If ATK is not found or version is too old:

npm i -g @microsoft/m365agentstoolkit-cli@beta

CLI Global Options

OptionMeaningRecommendation
-iInteractive modeAlways use -i false in automation to avoid hanging
-fProject folderDefault to be current directory, used when specifying a custom folder. When scaffolding a new project, this is the parent folder where the project folder will be created under.
-hCommand helpUse atk <command> -h for quick syntax checks

Sub-Skills

Sub-SkillWhen to UseReference
create-projectScaffold new project from template, choose template, atk newcreate-project/create-project.md
test-playgroundTest locally with Agents Playground, agentsplayground, quick testingtest-playground/test-playground.md
test-teamsRun on Teams, devtunnel, sideload, Teams testing, test in Copilottest-teams/test-teams.md
provision-deployProvision Azure resources, deploy to cloud, atk provision, atk deployprovision-deploy/provision-deploy.md
troubleshootFix errors, 401, port conflicts, YAML errors, stale botstroubleshoot/troubleshoot.md
slack-to-teamsMigrate Slack bot to Teams, cross-platform bridging, Block Kit to Adaptive Cardsslack-to-teams/SKILL.md

MANDATORY: Before executing any workflow, read the corresponding sub-skill document.

Shared References

  • manifest-and-yaml.md — Project files, YAML config, env vars, .localConfigs flow

  • commands.md — ATK CLI commands: package, validate, share, collaborate

  • templates.md — Complete template catalog with language support

  • experts/ — 100+ micro-expert files: Teams SDK, Slack SDK, cross-platform bridging, deploy, AI models, security, language conversion

  • docs/ — Platform comparison guides: UI, messaging, identity, infrastructure, feature gaps

Workflow Chains

Match user intent to the smallest valid workflow.

User IntentWorkflow (read in order)
Build new app from scratchcreate-project → test-playground
Test existing project locallytest-playground (recommended) or test-teams
Deploy to Azureprovision-deploy
Fix broken bottroubleshoot → re-test
Migrate Slack bot to Teamsslack-to-teams

MANDATORY: Before executing any slack-to-teams workflow, read slack-to-teams/SKILL.md first. The sub-skill contains a routed expert system with 100+ micro-expert files for cross-platform bot development.

ATK Project Context Resolution

Resolve config values only when missing. If a value is already known in the session, reuse it.

Step 1: Detect ATK Project

If m365agentstoolkit*.yml exists in the current folder, treat it as an ATK project and parse configuration.

Step 2: Resolve Common Configuration

Resolve variables referenced in m365agentstoolkit*.yml. Common variables: AZURE_OPENAI_API_KEY AZURE_OPENAI_ENDPOINT AZURE_OPENAI_DEPLOYMENT_NAME

Step 3: Collect Missing Values

If required values are missing, ask the user for only the missing ones.

Refer to manifest-and-yaml.md for full config-file details.

Files

experts/teams/runtime.manifest-ts.md

runtime.manifest-ts

purpose

Teams app manifest (manifest.json) structure, schema, bots config, permissions, compose extensions, commands, and deployment packaging.

rules

  1. Use schema version 1.20 with "$schema": "https://developer.microsoft.com/json-schemas/teams/v1.20/MicrosoftTeams.schema.json" and "manifestVersion": "1.20". This is the current stable schema for Teams SDK v2 projects. learn.microsoft.com -- Manifest schema

  2. Required top-level fields are: $schema, version, manifestVersion, id, name (with short max 30 chars and full max 100 chars), description (with short max 80 chars and full max 4000 chars), developer (with name, websiteUrl, privacyUrl, termsOfUseUrl), icons (outline and color), and accentColor. Omitting any causes validation failure on upload. learn.microsoft.com -- Manifest schema

  3. The bots array defines bot registrations. Each entry requires botId (the Azure Bot ID, typically a placeholder like ${{BOT_ID}}), scopes (array of "personal", "team", "groupChat"), and optional flags isNotificationOnly, supportsCalling, supportsVideo, supportsFiles. Scopes determine where the bot can receive activities. learn.microsoft.com -- Bots in manifest

  4. Add composeExtensions for message extensions. Each entry needs botId, type ("query" or "action"), and a commands array. Each command has id, type, title, and parameters for query commands or fetchTask: true for action commands. learn.microsoft.com -- Compose extensions

  5. The validDomains array lists domains the bot is allowed to open in web views and task modules. Always include "*.botframework.com" and your bot's domain. Omitting a domain causes blank task modules. learn.microsoft.com -- Valid domains

  6. The webApplicationInfo section provides SSO configuration with id (the bot/app ID) and resource (the application ID URI, typically "api://botid-${{BOT_ID}}"). Required for OAuth/SSO flows. learn.microsoft.com -- webApplicationInfo

  7. Icons must be: color.png at exactly 192x192 pixels and outline.png at exactly 32x32 pixels with a transparent background. Both are PNG format. Place them in the appPackage/ directory alongside manifest.json. learn.microsoft.com -- App icons

  8. Package the app as a .zip file containing manifest.json, color.png, and outline.png from the appPackage/ directory. The zip must contain these files at the root level (not nested in subdirectories). Use atk package to generate the zip with placeholders resolved, or manually zip and upload via Teams > Apps > Upload a custom app, or through Teams Admin Center. learn.microsoft.com -- App package

  9. Use placeholder variables like ${{TEAMS_APP_ID}}, ${{BOT_ID}}, and ${{BOT_DOMAIN}} in the manifest for values that change between environments. The M365 Agents Toolkit resolves these during packaging. For manual deployment, replace them with actual values before zipping. learn.microsoft.com -- Agents Toolkit

  10. Add staticTabs for personal-scope tab experiences. The two default entries (conversations and about) are recommended for all bots. Add commands inside bot entries for slash-command discoverability in the Teams compose box. learn.microsoft.com -- Static tabs

patterns

Minimal bot manifest
// appPackage/manifest.json
const manifest = {
  "$schema": "https://developer.microsoft.com/json-schemas/teams/v1.20/MicrosoftTeams.schema.json",
  "version": "1.0.0",
  "manifestVersion": "1.20",
  "id": "${{TEAMS_APP_ID}}",
  "name": {
    "short": "My Bot",
    "full": "My Teams Bot Application"
  },
  "developer": {
    "name": "Contoso",
    "mpnId": "",
    "websiteUrl": "https://example.com",
    "privacyUrl": "https://example.com/privacy",
    "termsOfUseUrl": "https://example.com/terms"
  },
  "description": {
    "short": "A helpful Teams bot",
    "full": "A Teams bot built with Teams SDK v2 that helps users with tasks."
  },
  "icons": {
    "outline": "outline.png",
    "color": "color.png"
  },
  "accentColor": "#FFFFFF",
  "staticTabs": [
    { "entityId": "conversations", "scopes": ["personal"] },
    { "entityId": "about", "scopes": ["personal"] }
  ],
  "bots": [
    {
      "botId": "${{BOT_ID}}",
      "scopes": ["personal", "team", "groupChat"],
      "isNotificationOnly": false,
      "supportsCalling": false,
      "supportsVideo": false,
      "supportsFiles": false
    }
  ],
  "validDomains": ["${{BOT_DOMAIN}}", "*.botframework.com"],
  "webApplicationInfo": {
    "id": "${{BOT_ID}}",
    "resource": "api://botid-${{BOT_ID}}"
  }
};
Manifest with message extensions
// appPackage/manifest.json -- adding composeExtensions for a search command
const manifestWithExtensions = {
  "$schema": "https://developer.microsoft.com/json-schemas/teams/v1.20/MicrosoftTeams.schema.json",
  "version": "1.0.0",
  "manifestVersion": "1.20",
  "id": "${{TEAMS_APP_ID}}",
  "name": {
    "short": "Search Bot",
    "full": "Search Bot with Message Extension"
  },
  "developer": {
    "name": "Contoso",
    "mpnId": "",
    "websiteUrl": "https://example.com",
    "privacyUrl": "https://example.com/privacy",
    "termsOfUseUrl": "https://example.com/terms"
  },
  "description": {
    "short": "Search and share results in Teams",
    "full": "A Teams bot with a search-based message extension."
  },
  "icons": {
    "outline": "outline.png",
    "color": "color.png"
  },
  "accentColor": "#FFFFFF",
  "bots": [
    {
      "botId": "${{BOT_ID}}",
      "scopes": ["personal", "team", "groupChat"],
      "isNotificationOnly": false
    }
  ],
  "composeExtensions": [
    {
      "botId": "${{BOT_ID}}",
      "commands": [
        {
          "id": "searchCmd",
          "type": "query",
          "title": "Search",
          "description": "Search for items",
          "parameters": [
            {
              "name": "query",
              "title": "Search query",
              "description": "Enter search terms",
              "inputType": "text"
            }
          ]
        },
        {
          "id": "createCmd",
          "type": "action",
          "title": "Create Item",
          "description": "Create a new item",
          "fetchTask": true
        }
      ]
    }
  ],
  "validDomains": ["${{BOT_DOMAIN}}", "*.botframework.com"],
  "webApplicationInfo": {
    "id": "${{BOT_ID}}",
    "resource": "api://botid-${{BOT_ID}}"
  }
};
Packaging the app for sideloading
// Build script or manual steps to create the app package
// Preferred: atk package --env <environment> (resolves placeholders automatically)
// Manual steps below:

// 1. Ensure appPackage/ contains:
//    - manifest.json (with placeholders replaced)
//    - color.png   (192x192 pixels)
//    - outline.png (32x32 pixels, transparent background)

// 2. Replace placeholders before zipping:
//    ${{TEAMS_APP_ID}} -> your Azure AD app registration ID
//    ${{BOT_ID}}       -> your Azure Bot resource ID
//    ${{BOT_DOMAIN}}   -> your deployment domain (e.g., mybot.azurewebsites.net)

// 3. Create zip from the appPackage directory:
//    cd appPackage && zip -r ../mybot.zip manifest.json color.png outline.png

// 4. Upload in Teams:
//    Teams > Apps > Manage your apps > Upload a custom app > Upload mybot.zip

pitfalls

  • Wrong icon dimensions: Teams silently rejects or distorts icons that are not exactly 192x192 (color) and 32x32 (outline). Validate dimensions before packaging.

  • Nested zip structure: The zip must contain manifest.json, color.png, and outline.png at the root. If they are in a subdirectory inside the zip (e.g., appPackage/manifest.json), Teams cannot read them.

  • Missing scopes: If bots[0].scopes does not include "team", the bot cannot be added to channels and never receives channel messages. If "personal" is missing, 1:1 chat does not work. Always verify scopes match your intended deployment.

  • Unresolved placeholders: Shipping ${{BOT_ID}} literally in the manifest causes the bot registration to fail. Either use the M365 Agents Toolkit to auto-resolve or manually replace all ${{...}} values before zipping.

  • validDomains missing your domain: Task modules, web views, and link unfurling that reference domains not listed in validDomains show blank content or fail silently.

  • Schema version mismatch: Using features from a newer schema version (e.g., 1.17 features with manifestVersion: "1.13") causes validation errors on upload. Keep manifestVersion and $schema in sync.

  • Forgetting composeExtensions for message extensions: Registering app.on('message.ext.query', ...) in code without a matching composeExtensions entry in the manifest means the extension never appears in Teams.

  • webApplicationInfo misconfigured for SSO: The resource field must match the Application ID URI configured in Azure AD. A mismatch causes the SSO token exchange to fail silently.

references

instructions

This expert covers the Teams app manifest (manifest.json) and packaging for deployment. Use it when you need to:

  • Create or modify appPackage/manifest.json for a Teams bot project

  • Configure the bots section with correct botId and scopes

  • Add composeExtensions for search or action-based message extensions

  • Set up validDomains for task modules and web views

  • Configure webApplicationInfo for OAuth/SSO

  • Prepare icons (color.png 192x192, outline.png 32x32)

  • Package the app as a zip for sideloading or admin deployment

  • Resolve placeholder variables (${{BOT_ID}}, ${{TEAMS_APP_ID}}, etc.)

Pair with project.scaffold-files-ts.md for the full project file structure and runtime.app-init-ts.md for the corresponding code-side initialization. Pair with project.scaffold-files-ts.md for appPackage directory structure, and ui.message-extensions-ts.md when adding composeExtensions to the manifest.

research

Deep Research prompt:

"Write a micro expert on Microsoft Teams app manifest.json for SDK v2 bots (TypeScript). Cover the v1.20 schema, all required fields (id, name, description, developer, icons, accentColor, manifestVersion), bots section (botId, scopes, isNotificationOnly, supportsCalling, supportsVideo, supportsFiles), composeExtensions for message extensions (query and action types, commands, parameters, fetchTask), staticTabs, validDomains, webApplicationInfo for SSO, icon requirements (192x192 color PNG, 32x32 outline PNG with transparency), placeholder variable patterns (${{BOT_ID}}), zip packaging rules, and common validation errors. Include a complete manifest template and a manifest-with-extensions template."

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs an API key, Needs Python, Needs Node.js

Security

What our scanner noticed· Medium risk

  • Possible data-exfiltration endpoints
  • Instructions that use the network
  • Downloads piped into a shell

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
Microsoft
Publisher
Microsoft (Official)
Source
microsoft/skills · .github/plugins/microsoft-365-agents-toolkit/skills/teams-app-developer · commit 0696600
Licence
MIT License (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Microsoft.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download teams-app-developer.zip