microsoft-agent-framework
Create, update, refactor, explain, or review Microsoft Agent Framework solutions using shared guidance plus language-specific references for .NET and Python.
Security Assessment
About microsoft-agent-framework
Microsoft Agent Framework guidance for building, updating, refactoring, explaining, and reviewing agent-based solutions in either .NET or Python. Positioned as the unified successor to Semantic Kernel and AutoGen, the framework is in public preview and evolves rapidly, so the central discipline is grounding every recommendation in current official documentation and samples rather than potentially stale knowledge. The first decision point is language selection: .NET workflows apply when a repository contains .cs, .csproj, .sln, or .slnx files (or the user asks for C#), while Python workflows apply for .py, pyproject.toml, or requirements.txt. Mixed repositories follow the files being edited, and ambiguous cases prompt an inspection of the workspace before choosing a language-specific reference. Once the language is set, contributors consult the matching reference file for package names, repository paths, and sample locations. Shared cross-language practices include async patterns for agent and workflow operations, explicit error handling and logging, strong typing with clear interfaces, and DefaultAzureCredential for Azure authentication. The skill distinguishes two building blocks: agents handle autonomous decision-making, ad hoc planning, conversation flows, tool usage, and MCP server interactions, while workflows handle multi-step orchestration, predefined execution graphs, long-running tasks, and human-in-the-loop scenarios. It supports multiple model providers such as Azure AI Foundry, Azure OpenAI, and OpenAI, while favoring Azure AI Foundry for new projects, and applies advanced patterns like thread-based state, context providers, middleware, checkpointing, routing, and orchestration where they fit. Migration is a first-class concern: existing Semantic Kernel or AutoGen code is treated as input to be ported using the official migration guides, preserving behavior first and adopting native patterns incrementally. When repository examples diverge from current documentation, the difference is explained and the supported pattern is followed. Use this when starting new agent projects, modernizing legacy orchestration code, or reviewing existing Agent Framework applications for alignment with current best practices.
FAQ
Which languages does this skill support?
.NET (C#) and Python, each with its own reference file. It selects the workflow based on the project files present or the user's stated target.
How does it decide between the .NET and Python workflow?
It looks for language-specific project files (.cs/.csproj/.sln/.slnx for .NET, .py/pyproject.toml/requirements.txt for Python), follows the files being edited when both exist, and inspects the workspace if still ambiguous.
When should I use an agent versus a workflow?
Use agents for autonomous decision-making, ad hoc planning, conversation flows, tool usage, and MCP server interactions; use workflows for multi-step orchestration, predefined execution graphs, long-running tasks, and human-in-the-loop scenarios.
Can it help migrate from Semantic Kernel or AutoGen?
Yes. It treats older Semantic Kernel and AutoGen patterns as migration inputs, points to the official migration guides, and advises preserving behavior first before adopting native Agent Framework patterns incrementally.
Why does it emphasize checking live documentation?
Because the framework is in public preview and changes quickly, so implementation choices are grounded in the latest official docs and samples (using the Microsoft Docs MCP tooling when available) rather than stale assumptions.
Install microsoft-agent-framework
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
github/awesome-copilot