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

analyzer

purpose

Scan a project codebase, identify its technology stack, and recommend micro-experts to create based on coverage gaps against the existing .experts/ inventory.

rules

  1. Scan manifests first. Start with package manifests and lock files — they reveal the full dependency tree in seconds. Priority order: package.json / package-lock.json / yarn.lock / pnpm-lock.yaml, Cargo.toml / Cargo.lock, go.mod / go.sum, pyproject.toml / requirements.txt / Pipfile, pom.xml / build.gradle, *.csproj / *.sln, Gemfile, Package.swift, build.gradle.kts.

  2. Examine directory structure for framework signals. Look for conventional directories: src/app/ or app/ (Next.js/Remix), src/routes/ (SvelteKit), pages/ (Next.js Pages Router), components/, middleware/, migrations/, prisma/, terraform/, .github/workflows/, .circleci/, docker/, k8s/, helm/.

  3. Read config files for tooling signals. Check for: tsconfig.json, .eslintrc.*, .prettierrc, jest.config.*, vitest.config.*, playwright.config.*, cypress.config.*, .dockerignore, Dockerfile, docker-compose.yml, nginx.conf, webpack.config.*, vite.config.*, tailwind.config.*, .env.example.

  4. Catalog the full tech stack. Produce a structured inventory: language(s), framework(s), build tool(s), test framework(s), CI/CD platform(s), infrastructure/deployment tool(s), notable libraries (ORM, HTTP client, state management, etc.).

  5. Cross-reference against existing .experts/ inventory. Read every domain index.md and list all expert files. Map each technology in the stack to the expert(s) that cover it. Mark technologies with no expert coverage as gaps.

  6. Score gaps by usage frequency and impact. A framework used across every file (React, Express) scores higher than a dev-only tool used in one config file (Husky). Prioritize gaps that affect daily development decisions.

  7. Route library/framework experts to languages/{lang}/libraries/, not .project/. When a gap is a language-specific framework or library (Next.js, Django, Spring Boot, Axum, etc.), place the expert under the relevant language's libraries/ subfolder — e.g., languages/typescript/libraries/nextjs.md. This keeps framework knowledge co-located with the language it's written in and lets the language router load it alongside idioms and patterns. Reserve .project/ for truly cross-cutting project-specific concerns that don't belong to a single language (CI/CD pipelines, infrastructure, project-specific workflows, multi-language prompt template conventions).

  8. Distinguish recommendation types. Group into three categories: (a) Populate stubs — existing expert files that are placeholders; (b) New project experts — topics specific to this codebase's stack (frameworks, ORMs, CI/CD, etc.); (c) General expert gaps — topics that would benefit the general system (flag these but don't auto-create; they require broader applicability review).

  9. Output structured recommendations. Each recommendation must include: filename, target domain (languages/{lang}/libraries/ for language-specific frameworks, .project/ for cross-cutting concerns), evidence (which files/deps triggered it), priority (high/medium/low), and a one-line expert purpose.

  10. Prioritize populating existing stubs over creating new experts. Stubs represent already-identified knowledge gaps that the system is designed to hold. Filling them first maximizes coverage per effort.

  11. Update the target domain's index.md as experts are created. After each expert is built, add it to the appropriate router's task clusters and file inventory. For library experts, update languages/{lang}/libraries/index.md. For cross-cutting experts, update .project/index.md. Keep routers current so the system can find new experts.

  12. Pair output with builder.md for handoff. The analyzer identifies what to build; builder.md handles how to build it. Format recommendations so they can be directly fed into builder.md's Phase 1 scoping with the target domain pre-filled (languages/{lang}/libraries/ or .project/).

  13. Scan for prompt template patterns. Projects that use LLMs almost always have a prompt templating layer — and the implementation varies wildly. Scan for: LLM SDK imports (OpenAI, Anthropic, Azure OpenAI, LangChain, LlamaIndex, Semantic Kernel, Vercel AI SDK, etc.), prompt file conventions (a prompts/ or templates/ directory, .prompt, .hbs, .jinja2, .mustache files containing LLM instructions), string construction patterns (template literals, f-strings, or concatenation building system/user messages), and prompt management utilities (helper functions that assemble, format, or inject variables into prompts). When any of these signals are found, recommend a prompt template expert that documents: where templates live, which templating mechanism is used, how variables are injected, how system/user/assistant messages are constructed, and which LLM SDK the project calls. If the project uses a single language for LLM calls, place the expert under languages/{lang}/libraries/prompt-templates.md. If prompt construction spans multiple languages, place it under .project/prompt-templates.md. This expert pairs with tools/prompt-engineer.md — the general expert provides the design principles, the project expert provides the local conventions.

  14. Score prompt template gaps as high priority when LLM usage is core. If the project's primary purpose involves LLM calls (an AI agent, a chatbot, a RAG pipeline, a prompt-driven workflow), the prompt template expert is high priority — it affects nearly every feature. If LLM calls are peripheral (e.g., a single summarization endpoint in a larger app), score it as medium.

patterns

Manifest scanning sequence
1. List root directory → identify project type
2. Read primary manifest:
   - Node.js → package.json (dependencies, devDependencies, scripts)
   - Rust    → Cargo.toml (dependencies, features)
   - Go      → go.mod (require, module path)
   - Python  → pyproject.toml or requirements.txt
   - Java    → pom.xml or build.gradle
   - C#      → *.csproj (PackageReference)
   - Ruby    → Gemfile
3. Read secondary signals:
   - CI/CD   → .github/workflows/*.yml, .gitlab-ci.yml, Jenkinsfile
   - Infra   → Dockerfile, docker-compose.yml, terraform/, k8s/
   - Config  → tsconfig.json, .eslintrc.*, vite.config.*, etc.
4. Scan src/ structure for framework conventions
5. Check for monorepo signals: workspaces, lerna.json, nx.json, turbo.json
Prompt template scanning sequence
1. Check for LLM SDK dependencies in manifests:
   - Node.js → openai, @anthropic-ai/sdk, @azure/openai, langchain,
               llamaindex, @ai-sdk/*, semantic-kernel
   - Python  → openai, anthropic, langchain, llama-index,
               semantic-kernel, guidance, promptflow
   - C#      → Azure.AI.OpenAI, Anthropic, Microsoft.SemanticKernel,
               Microsoft.Extensions.AI
   - Go      → github.com/sashabaranov/go-openai, github.com/anthropics/...
   - Rust    → async-openai, anthropic-rs

2. Scan for prompt file conventions:
   - Directories: prompts/, templates/, agents/, instructions/
   - File types:  *.prompt, *.txt, *.md, *.hbs, *.jinja2, *.mustache,
                  *.liquid containing LLM instructions
   - Naming:      *system*, *prompt*, *agent*, *instruction* in filenames

3. Scan source code for prompt construction patterns:
   - Template literals / f-strings building message content
   - System/user/assistant role message arrays
   - Section tag patterns: <SECTION_NAME> style markers
   - Variable interpolation: {{var}}, {var}, ${var}, {{ var }}
   - Prompt builder/formatter utility functions or classes

4. Identify the prompt architecture:
   - Storage:     files on disk, inline in code, database, CMS
   - Templating:  native string interpolation, Handlebars, Jinja2,
                  Mustache, Liquid, custom
   - Structure:   section tags, markdown headers, XML tags, plain text
   - Multi-turn:  message array construction, conversation history mgmt
   - Variables:   how context is injected (retrieval, user input, state)

5. Catalog findings for the project prompt template expert:
   - SDK + client setup pattern
   - Where templates live (path conventions)
   - Templating mechanism + variable syntax
   - Message construction pattern (system/user/assistant)
   - Section/structure conventions used in prompts
Coverage gap output template
## Expert Coverage Analysis

### Tech Stack
| Category     | Technology       | Version  |
|-------------|-----------------|----------|
| Language     | TypeScript       | 5.x      |
| Framework    | Next.js          | 14.x     |
| ORM          | Prisma           | 5.x      |
| Testing      | Vitest           | 1.x      |
| CI/CD        | GitHub Actions   | —        |

### Coverage Map
| Technology       | Expert Coverage              | Status |
|-----------------|------------------------------|--------|
| TypeScript       | languages/typescript/*.md     | ✅ Full |
| Git workflows    | tools/git.md                  | ✅ Full |
| Prompt design    | tools/prompt-engineer.md      | ✅ General |
| Next.js          | —                            | ❌ Gap  |
| Prisma           | —                            | ❌ Gap  |
| Prompt templates | —                            | ❌ Gap (project-specific) |
| Vitest           | —                            | ❌ Gap  |
| GitHub Actions   | —                            | ❌ Gap  |

### Recommendations
| # | File                  | Domain                          | Priority | Purpose                                    |
|---|----------------------|---------------------------------|----------|--------------------------------------------|
| 1 | nextjs.md            | languages/typescript/libraries/ | High     | Next.js App Router patterns and conventions |
| 2 | prisma.md            | languages/typescript/libraries/ | High     | Prisma schema design, queries, migrations  |
| 3 | prompt-templates.md  | .project/                       | High     | Project prompt template conventions, SDK patterns, variable injection (pairs with tools/prompt-engineer.md) |
| 4 | vitest.md            | languages/typescript/libraries/ | Medium   | Vitest configuration and testing patterns  |
| 5 | github-actions.md    | .project/                       | Medium   | GitHub Actions workflow patterns (cross-cutting, not language-specific) |
Builder.md handoff

After generating recommendations, offer to start building:

To create any of these experts, I'll hand off to builder.md with the
scoping already pre-filled:

  "Create expert: {filename} in {target domain} — {purpose}.
   Evidence: {manifest signals}. Priority: {level}."

Which experts should I create? (Select numbers, or "all high priority")

pitfalls

  • Don't recommend experts for one-off dependencies. A single lodash import or a chalk dependency doesn't warrant an expert. Focus on technologies that shape architectural decisions and daily workflows.

  • devDependencies don't always mean active use. Many projects accumulate unused dev dependencies. Cross-reference with config files and import statements before recommending experts based on devDependencies alone.

  • Stubs are not coverage. An expert file that exists but contains only a research prompt (stub) provides zero guidance. Count stubs as gaps when assessing coverage.

  • Prioritize ruthlessly in monorepos. A monorepo with 50 packages and 20 technologies needs 4-6 high-impact experts, not 20. Focus on shared technologies that affect the most packages.

  • Don't confuse project-specific config with general expertise. A project's custom webpack config doesn't need an expert — webpack itself might. Experts cover reusable knowledge, not project-specific setup.

  • Don't skip prompt template scanning because "it's just strings." Prompt construction is often spread across utility functions, config files, and inline code with no obvious directory convention. Projects that use LLMs always have prompt patterns — they're just not always in a prompts/ folder. Search SDK imports and message construction calls, not just file names.

  • Don't duplicate tools/prompt-engineer.md in the project expert. The project prompt template expert captures how this project builds prompts (file locations, template syntax, SDK setup, variable injection). The general prompt-engineer.md expert covers how to design prompts well. The project expert should reference and pair with the general expert, not restate its principles.

instructions

Use this expert when the developer wants to assess their project's technology stack and identify which micro-experts would be most valuable to create.

Trigger phrases: "explore the codebase," "recommend experts," "analyze project," "audit experts," "expert coverage," "gap analysis," "what experts should I create," "scan my project."

Pair with: builder.md for creating the recommended experts. The analyzer produces the roadmap; the builder executes it. Pair with: tools/prompt-engineer.md — when a project prompt template expert is created in .project/, it should declare Pair with: tools/prompt-engineer.md so the general prompt design principles are loaded alongside the project-specific conventions.

research

Deep Research prompt:

"Write a meta-expert for scanning software project codebases and recommending micro-experts to create. Cover: manifest file scanning strategies (package.json, Cargo.toml, go.mod, pyproject.toml, pom.xml, *.csproj, Gemfile), directory structure analysis for framework detection, config file signals for tooling identification, tech stack cataloging methodology, coverage gap analysis against an existing expert inventory, recommendation prioritization (usage frequency, architectural impact, daily development relevance), structured output formats for recommendations, handoff protocol to an expert-building workflow, and common analysis pitfalls (one-off deps, unused devDependencies, monorepo sprawl, stubs vs coverage)."

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