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/builder.md

builder

purpose

Guided workflow for creating new micro-experts — from scoping and research through drafting, validation, and wiring into the routing system.

rules

  1. One expert, one topic. Each expert file covers a single, well-bounded topic. If the scope needs an "and" to describe it, split into two experts.

  2. Minimum depth threshold. Only create a standalone expert if the topic warrants 8+ rules and 2+ code patterns. Below that threshold, add the knowledge to an existing expert instead.

  3. Reusability over specificity. The expert must apply to future tasks, not just the current one-off request. If the knowledge is project-specific, it belongs in a CLAUDE.md or README, not an expert.

  4. Research before writing. Never draft rules or patterns from memory alone. Every rule must trace to official docs, SDK source, or verified behavior. If you cannot confirm a claim, mark it [unverified].

  5. Language-agnostic filenames when appropriate. Use {topic}-ts.md when the expert is TypeScript-specific. Use {topic}.md (no language suffix) when the expert applies regardless of language (e.g., architecture patterns, workflow guides, platform concepts).

  6. Canonical section order. Every expert MUST follow the section layout in the expert structure reference below. Omit optional sections entirely rather than leaving them empty.

  7. Rules are imperatives, not observations. Write "Always call ack() before async work" not "ack is important." Each rule must tell the reader exactly what to do or avoid.

  8. Patterns are minimal and self-contained. Each code snippet demonstrates one concept with all necessary imports. No "see above" references between patterns.

  9. Pitfalls earn their place. Only include pitfalls that are non-obvious, have bitten real users, or contradict reasonable assumptions. "Don't forget to save the file" is not a pitfall.

  10. No fabricated API signatures. If a web search yields no confirmation for an API shape, omit it or mark it [unverified]. Wrong patterns are worse than missing patterns.

  11. Wire it or it doesn't exist. An expert that isn't reachable through the routing system (domain index.md + root index.md signals) will never be loaded. Integration is not optional.

  12. Keep files under 300 lines. If an expert grows beyond 300 lines, split it into focused sub-experts under the same domain.

interview

Q1 — Topic & Language
question: "What topic should this expert cover, and is it language-specific?"
header: "Topic"
options:
  - label: "TypeScript-specific"
    description: "Expert targets TypeScript patterns and APIs. File will be named {topic}-ts.md."
  - label: "Language-agnostic"
    description: "Expert covers concepts that apply across languages. File will be named {topic}.md."
  - label: "You Decide Everything"
    description: "Accept recommended defaults for all decisions and skip remaining questions."
multiSelect: false
Q2 — Research Depth
question: "How much research should go into this expert before drafting?"
header: "Research"
options:
  - label: "Full deep research (Recommended)"
    description: "Web search official docs, SDK source, and community guides for each rule and pattern. Thorough but slower."
  - label: "Light research"
    description: "Quick scan of official docs only. Good when you already have strong domain knowledge."
  - label: "Stub only"
    description: "Create the file structure with a research prompt but no content yet. Fill in later with the researcher workflow."
multiSelect: false
Q3 — Placement
question: "Where should this expert live in the folder structure?"
header: "Placement"
options:
  - label: "Existing domain folder"
    description: "Place in an existing domain (languages/, tools/, .project/). You'll specify which."
  - label: "New domain folder"
    description: "Create a new domain folder. Only if 3+ experts will belong to it and it has distinct signal words."
  - label: "Root .experts/ folder"
    description: "Place at the root level alongside fallback.md. For system-level utilities only."
multiSelect: false
defaults table
QuestionDefault
Q1TypeScript-specific ({topic}-ts.md)
Q2Full deep research
Q3Existing domain folder

workflow

phase 1 — scope
  1. Run the interview above (or use defaults if the developer opted out).

  2. Confirm the topic doesn't overlap with an existing expert. Read the target domain's index.md file inventory and scan for coverage.

  3. If overlap exists, recommend updating the existing expert instead and stop.

  4. Decide the filename: {topic}-ts.md (language-specific) or {topic}.md (language-agnostic).

  5. Decide the target folder: existing domain, new domain, or root .experts/.

phase 2 — research
  1. Write a Deep Research prompt for the topic. Include: SDK/platform name, key concepts, specific APIs to cover, and pattern areas.

  2. Execute the prompt as a series of targeted web searches:

    • Break into discrete topics (one per API surface, concept, or pattern area).

    • Search each individually. Prefer official docs, SDK source, and type definitions.

    • For each result, capture: API signatures, parameter types, return types, defaults, and gotchas.

  3. If interview answer was "Stub only," write the research prompt into ## research and skip to phase 5 (integration). The expert will be a stub.

  4. If interview answer was "Light research," do a quick scan of official docs only — skip community guides and deep dives.

phase 3 — draft

Write the expert file following the canonical section layout from the expert structure reference below.

  1. ## purpose — One line. What does this expert cover?

  2. ## rules — Numbered list of actionable imperatives. Minimum 8 rules for a non-stub expert. Each rule should cite its source (doc link or observed SDK behavior).

  3. ## interview (optional) — Include only if the expert requires developer decisions before implementation. Follow the AskUserQuestion format shown in the expert structure reference below.

  4. ## patterns — Code snippets showing canonical usage. Each snippet is self-contained with imports. Minimum 2 patterns for a non-stub expert.

  5. ## pitfalls — Non-obvious mistakes, breaking changes, version gotchas.

  6. ## references — URLs to official docs and SDK source used during research.

  7. ## instructions — When to use this expert, what it pairs with (Pair with: {other-expert}).

  8. ## research — The Deep Research prompt (preserved for future re-research).

phase 4 — validate

Run through this checklist before considering the expert done:

  • [ ] Minimum depth: 8+ rules, 2+ patterns (unless intentionally a stub).

  • [ ] Pattern isolation: Every code snippet compiles in isolation (imports included, no "see above").

  • [ ] No fabrication: Every API signature confirmed via research. Unverified claims marked [unverified].

  • [ ] File size: Under 300 lines. If over, identify split points.

  • [ ] Section completeness: All required sections present (purpose, rules, instructions, research). Optional sections either fully populated or entirely absent.

  • [ ] Rules are imperatives: Each rule tells the reader what to do/avoid, not what "is" or "exists."

  • [ ] Pitfalls are non-obvious: No trivial advice. Each pitfall would surprise a competent developer.

  • [ ] Cross-references set: ## instructions includes Pair with: entries for related experts.

phase 5 — integrate

Wire the new expert into the routing system so it's reachable:

  1. Domain index.md — Open the target domain's index.md:

    • Add the file to the appropriate task cluster's Read: list (or create a new cluster with a When: description).

    • Add Depends on: / Cross-domain deps: if applicable.

    • Add the filename to ## file inventory in alphabetical order.

  2. Root index.md — Open .experts/index.md:

    • If the new expert introduces signal words not already in the domain's Signals: line, add them.

    • If this is a new domain, add a full routing entry under ## routing rules.

  3. Verify routing — Mentally trace a request that should reach this expert: root router signals → domain router → task cluster → expert file. Confirm the path is unbroken.

expert structure reference

This is the canonical section layout every expert must follow. Required sections are marked; optional sections should be omitted entirely if not needed.

# {topic}-ts | {topic}                    ← filename without .md

## purpose                                 ← REQUIRED. One line.

## rules                                   ← REQUIRED. Numbered imperatives.

## interview                               ← OPTIONAL. Delete if no upfront decisions needed.
### Q1 — {Decision}
(AskUserQuestion format)
### defaults table
(Required if interview exists)

## patterns                                ← REQUIRED for non-stubs. Code snippets.

## pitfalls                                ← RECOMMENDED. Non-obvious gotchas.

## references                              ← RECOMMENDED. Source URLs.

## instructions                            ← REQUIRED. When to use, Pair with.

## research                                ← REQUIRED. Deep Research prompt.

pitfalls

  • Creating experts for one-off knowledge. If the topic won't come up again, don't create an expert. Add a note to the relevant domain expert or CLAUDE.md instead.

  • Skipping integration (phase 5). The most common failure mode. An expert that isn't wired into the routing system is invisible and will never be loaded.

  • Writing rules from memory without research. Even experienced developers misremember API details. Always verify against current docs — APIs change between SDK versions.

  • Cramming multiple topics into one file. An expert on "state management and adaptive cards and function calling" should be three experts. The scope test: can you describe it without "and"?

  • Empty optional sections. An empty ## pitfalls section signals the author didn't try. Either populate it with real gotchas or omit the section entirely.

  • Forgetting the language suffix decision. A TypeScript-specific expert named caching.md (without -ts) will confuse future users about whether it's language-agnostic. Be deliberate about the naming.

instructions

Use this expert when creating any new micro-expert file.

Trigger phrases: "create expert," "new expert," "build expert," "add expert," "make expert," "write expert."

Pair with: fallback.md (if the builder is invoked because fallback detected a knowledge gap that warrants a new expert).

research

Deep Research prompt:

"Write a meta-expert for creating micro-expert prompt files in a modular AI expert system. Cover: scoping criteria (when to create vs. update), research methodology (web search strategies for SDK docs, source code, type definitions), canonical section layout for expert files, quality validation checklists (minimum rules, pattern isolation, no fabrication), integration steps (domain router wiring, signal word updates), and common failure modes in expert authoring. Include guidance on language-agnostic vs. language-specific naming conventions."

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