Microsoft-Teams-Samples
Copilot instructions1.4k starsChanged 19 months agoMITView on GitHub
This file provides custom instructions for GitHub Copilot to prioritize Microsoft Teams-specific samples and patterns when generating code suggestions. It ensures that Copilot references the official Microsoft Teams samples repository and follows Teams-specific development practices.
We split this copilot-instructions.md into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Always reference Microsoft Teams samples and documentation first.
- Distinctive: line 13
Use Teams-specific terminology and conventions.
- Very specific: line 21
Teams Bot Development: Use patterns from samples/bot-* directories.
- Very specific: line 23
Teams Tabs: Follow samples/tab-* examples.
- Very specific: line 24
Teams Authentication: Use samples/app-auth-* patterns.
≈ “Common” is an estimate: at least 1 in 5 of the 3,669 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub Copilot Instructions for Microsoft Teams Development
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. -->This file provides custom instructions for GitHub Copilot to prioritize Microsoft Teams-specific samples and patterns when generating code suggestions. It ensures that Copilot references the official Microsoft Teams samples repository and follows Teams-specific development practices.
Development Priority Guidelines
1. Teams-First Approach
- Always reference Microsoft Teams samples and documentation first.
- Prioritize Teams Platform APIs over generic Bot Framework patterns.
- Use Teams-specific terminology and conventions.
2. Sample Prioritization Order
- Microsoft Teams Samples (https://github.com/OfficeDev/Microsoft-Teams-Samples) - PRIMARY
- Teams Platform Documentation - SECONDARY
- Bot Framework v4 SDK - TERTIARY (only for foundational concepts)
3. Teams-Specific Resource Preferences
- Teams Bot Development: Use patterns from
samples/bot-*directories. - Messaging Extensions: Reference
samples/msgext-*implementations. - Teams Tabs: Follow
samples/tab-*examples. - Teams Authentication: Use
samples/app-auth-*patterns.
Repository Information
- Official Microsoft Teams Samples: https://github.com/OfficeDev/Microsoft-Teams-Samples
- Agent Patterns Sample: https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/app-hello-world/nodejs
- Maintained by: Microsoft OfficeDev team
- Current Date: June 27, 2025
Instructions for GitHub Copilot
This file is intended to guide GitHub Copilot in generating code and providing suggestions for Microsoft Teams development. Always prioritize the resources and patterns outlined in this document.
Keywords for Copilot
- TeamsActivityHandler
- Adaptive Cards
- Teams manifest
- Teams Graph API
- Teams Tabs
- Messaging Extensions
- Teams Authentication
Code Generation Guidelines
Teams Bot Development
// PREFERRED: Teams-specific patterns
class TeamsBot extends TeamsActivityHandler {
// Teams-specific implementation
}
// AVOID: Generic bot patterns when Teams-specific exists
class GenericBot extends ActivityHandler {
// Generic implementation
}Teams API Integration
// PREFERRED: Teams Graph API
const teamInfo = await this.graphClient.teams(teamId).get();
// AVOID: Generic Microsoft Graph when Teams-specific exists
const genericInfo = await this.graphClient.groups(groupId).get();Trending
Quiet since June.about the whole repository
Who's talking about OfficeDev/Microsoft-Teams-Samples
- Stack Overflow“Adaptivecards Send POST call to external API in MS Teams”Stack Overflow · Jun 27, 2022 · 2 votes
- lcarli/kami-shim-csharp“Baseline”GitHub · Sep 17, 2025 · 1 reactions
- microsoft/Agents-for-python“Test Sample teams_sso not working for Agents SDK and Python”GitHub · Jun 27, 2025 · 1 reactions
- OfficeDev/microsoft-teams-library-js“TeamsApp with multiple tabs do not load in correctly in web "Microsoft 365" app”GitHub · Nov 6, 2024 · 1 reactions
- Stack Overflow“OAuthPrompt and TeamsBotSsoPrompt and AdaptiveCard are not work for SSO in Teams Bot”Stack Overflow · Oct 14, 2024 · 1 votes
The biggest 5 of 61 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 61
Talked about on GitHub, Stack Overflow and Hacker News (61 times).
On GitHub · 30
- Sep 17, 2025Baseline — lcarli/kami-shim-csharp1 reaction
- Jun 27, 2025Test Sample teams_sso not working for Agents SDK and Python — microsoft/Agents-for-python1 reaction · 15 comments
- Nov 6, 2024TeamsApp with multiple tabs do not load in correctly in web "Microsoft 365" app — OfficeDev/microsoft-teams-library-js1 reaction · 8 comments
- Jun 13, 2024Archived sample code teams-start-thread-in-channel not working anymore start from Jun 10th — microsoft/BotBuilder-Samples1 reaction · 4 comments
- Jan 17, 2023Provided sample code snippet are not available in the sample code linked to this page. — MicrosoftDocs/msteams-docs1 reaction · 6 comments
25 more on GitHub
- Jun 17, 2026Fix TeamClient.GetConversationsAsync deserialization — microsoft/teams.net0 reactions
- May 31, 2026[Doc Practice] [send-proactive-messages.md] — Aman-Sam/Aman-Tech-Writing-Projects0 reactions
- Mar 17, 2026fix: update graph-rsc-helper download path after repo restructure — OfficeDev/microsoft-365-agents-toolkit-samples0 reactions
- Mar 10, 2026Agents Playground breaks markdown rendering when suggestedActions is present on the activity — microsoft/Agents0 reactions
- Oct 1, 2025Theodw 2310 update teams webhookv2 — Planning-Inspectorate/odw-synapse-workspace0 reactions
- Dec 16, 2024AAE-28530 Fix ReportPortal launch key — Alfresco/alfresco-build-tools0 reactions · 1 comment
- Aug 2, 2024new reactions in teams — i-dot-ai/caddy-chatbot0 reactions
- Jul 8, 2024Add support for geolocation in New Teams — OfficeDev/microsoft-teams-library-js0 reactions · 12 comments
- Apr 24, 2024Fix update_activity in messages — microsoft/botbuilder-python0 reactions · 7 comments
- Apr 1, 2024office dve — wu89053/gaokaodjff0 reactions
- Mar 26, 2024[Doc Update] document hostRedirectUrl for external OAuth flow — MicrosoftDocs/msteams-docs0 reactions · 18 comments
- Feb 12, 2024[Doc Improvement] Update tab sso article with promise-based TeamsJS v2 pattern — MicrosoftDocs/msteams-docs0 reactions · 5 comments
- Nov 6, 2023fix: thumbnail path for external sample — OfficeDev/microsoft-365-agents-toolkit-samples0 reactions
- Sep 20, 2023Migrate webhooks from rocketchat to ms teams — bcgov/bcparks-ar-api0 reactions · 5 comments
- Sep 20, 2023Migrate webhooks from rocketchat to ms teams — bcgov/parks-reso-api0 reactions
- Sep 20, 2023Migrate webhooks from rocketchat to ms teams — bcgov/parks-data-register0 reactions · 3 comments
- Aug 11, 2023Typo "Azure Open AI"→"Azure OpenAI" — hyoshioka0128/Microsoft-Teams-Samples0 reactions
- Mar 16, 2023Project: Microsoft Teams Bot - Schedule Meetings for a Team and send the meeting link by e-mail for all members — microsoft/hack-together0 reactions · 2 comments
- Mar 10, 2023V2.9.1 - getAuthToken => Error: Definition not found — OfficeDev/microsoft-teams-library-js0 reactions · 11 comments
- Mar 3, 2023teams-file-upload-sample bug fix — microsoft/BotBuilder-Samples0 reactions · 2 comments
- Jan 24, 2023Logo and App Name is not visible while receiving card sent through Messaging Extension — MicrosoftDocs/msteams-docs0 reactions · 10 comments
- Nov 24, 2022Updated bot builder docs (code sample links) to refer Microsoft Teams samples — microsoft/BotBuilder-Samples0 reactions · 1 comment
- Nov 18, 2022Archive Teams samples — microsoft/BotBuilder-Samples0 reactions · 2 comments
- Aug 31, 2022NEW LAB REQUEST: Conversational Tab — microsoft/app-camp0 reactions
- Dec 15, 2021Outdated sample app — OfficeDev/microsoft-teams-ui-component-library0 reactions · 1 comment
On Stack Overflow · 30
- Jun 27, 2022Adaptivecards Send POST call to external API in MS Teams2 votes
- Oct 14, 2024OAuthPrompt and TeamsBotSsoPrompt and AdaptiveCard are not work for SSO in Teams Bot1 vote · 1 answer
- Jan 29, 2024MS Teams Bot: Sometimes finding no members1 vote
- Jan 3, 2024Microsoft Teams download attached file1 vote
- Aug 22, 2023Is there any we can connect with task module from html parsed adaptive card?1 vote
25 more on Stack Overflow
- Aug 7, 2023Open pinned tab from a Teams App while joining a Meeting1 vote
- Jun 20, 2023TaskModuleResponseFactory.CreateResponse("") is not closing the TaskModule popup window1 vote
- May 3, 2023Microsoft Bot Framework API Add Button with Custom Form in Teams1 vote · 1 answer
- Jan 20, 2023How to pass custom query parameters to the tab using deep link1 vote
- Nov 16, 2022Unable to cast object of type 'Microsoft.BotBuilderSamples.AdapterWithErrorHandler' to type 'Microsoft.Bot.Builder.BotFrameworkAdapter'1 vote
- Dec 30, 2021getPSTNcall Javascript error Microsoft graph1 vote
- Nov 8, 2021CallingBotSample does not throw welcome Text with Adaptive Card1 vote · 1 answer
- Sep 11, 2025Teams bot not getting Meeting Info/0 votes
- Jul 12, 2024Debugging Bot Framework Bot in Teams0 votes · 1 answer
- Feb 12, 2024How to reply to a message(existing conversation) in channel using teams bot0 votes · 1 answer
- Feb 1, 2024Welcome message Microsoft teams extension0 votes
- Jan 23, 2024MSTeams Bot -how to get localTimeStamp of user when the bot is installed in a team0 votes
- Jan 20, 2024Does an MS Teams bot require an Azure AI Bot registration?0 votes · 1 answer
- Nov 29, 2023How to handle 'Forbidden' exception in Teams bot app when trying to send meeting notifications?0 votes
- Jun 22, 2023Teams Outgoing Webhook Bot is not sending 'imBack' or 'messageBack' to my Bot0 votes
- Jun 7, 2023Build Microsoft Teams Message Extension for Action Command0 votes
- Mar 13, 2023How to add SSO for cardAction in a ConversationBot which generated from Teams Toolkit?0 votes
- Oct 17, 2022How to implement Onedrive filepicker inside Microsoft Teams App if it needs to use window.open?0 votes
- Oct 14, 2022How to send data back from modal Task popup back to home tab with Teams Adaptive Card Tab app0 votes
- Oct 14, 2022Suggested Actions throwing error in teams using Bot Framework Composer0 votes
- Oct 12, 2022How to send data back from modal Task popup back to home tab with Teams Adaptive Card Tab app0 votes · 1 answer
- Oct 6, 2022How to Transfer a Party between two Teams Calls, via the Calls Graph API0 votes · 1 answer
- Jan 17, 2022Dynamic typeahead in Adaptive Card Task flow0 votes
- Jan 5, 2022Unable to run "List teamworkTags" API in my angular application0 votes
- Oct 29, 2021The bot encountered an error or bug. To continue to run this bot, please fix the bot source code0 votes · 1 answer
On Hacker News · 1
- Sep 20, 2023Microsoft drops support for Python SDK for Teams1 point · 1 comment
Where files are headingNew Copilot instructions files have more rules about branches and pull requests, and fewer about code style.
Of the Copilot instructions files we read, the 2,297 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

