microsoft-agent-framework
它能做什么
这个工具可以帮助你创建、改进、解释或审查使用 Microsoft Agent Framework 构建的程序。它融合了旧工具(Semantic Kernel 和 AutoGen)的优点,用来构建更智能的智能体和工作流。
适用场景
- ✓开始一个使用 Microsoft Agent Framework 的新项目时。
- ✓需要理解或修改现有代码时。
- ✓从 Semantic Kernel 或 AutoGen 等旧工具迁移时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/microsoft-agent-framework/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我想用 Python 和 Microsoft Agent Framework 创建一个智能体,用来回答我文档中的问题,该怎么做?”
每周 5 个新技能,1 分钟读完。
工作原理
工具会先检查你使用的是 .NET 还是 Python。然后查阅微软最新的官方文档,提供最合适的说明和示例,确保你的代码是最新的。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Microsoft Agent Framework
Use this skill when working with applications, agents, workflows, or migrations built on Microsoft Agent Framework.
Microsoft Agent Framework is the unified successor to Semantic Kernel and AutoGen, combining their strengths with new capabilities. Because it is still in public preview and changes quickly, always ground implementation advice in the latest official documentation and samples rather than relying on stale knowledge.
Determine the target language first
Choose the language workflow before making recommendations or code changes:
- Use the .NET workflow when the repository contains
.cs,.csproj,.sln,.slnx, or other .NET project files, or when the user explicitly asks for C# or .NET guidance. Follow references/dotnet.md. - Use the Python workflow when the repository contains
.py,pyproject.toml,requirements.txt, or the user explicitly asks for Python guidance. Follow references/python.md. - If the repository contains both ecosystems, match the language used by the files being edited or the user's stated target.
- If the language is ambiguous, inspect the current workspace first and then choose the closest language-specific reference.
Always consult live documentation
- Read the Microsoft Agent Framework overview first: https://learn.microsoft.com/agent-framework/overview/agent-framework-overview
- Prefer official docs and samples for the current API surface.
- Use the Microsoft Docs MCP tooling when available to fetch up-to-date framework guidance and examples.
- Treat older Semantic Kernel or AutoGen patterns as migration inputs, not as the default implementation model.
Shared guidance
When working with Microsoft Agent Framework in any language:
- Use async patterns for agent and workflow operations.
- Implement explicit error handling and logging.
- Prefer strong typing, clear interfaces, and maintainable composition patterns.
- Use
DefaultAzureCredentialwhen Azure authentication is appropriate. - 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.
- Support model providers such as Azure AI Foundry, Azure OpenAI, OpenAI, and others, but prefer Azure AI Foundry services for new projects when that matches user needs.
- Use thread-based or equivalent state handling, context providers, middleware, checkpointing, routing, and orchestration patterns when they fit the problem.
Migration guidance
- If migrating from Semantic Kernel, use the official migration guide: https://learn.microsoft.com/agent-framework/migration-guide/from-semantic-kernel/
- If migrating from AutoGen, use the official migration guide: https://learn.microsoft.com/agent-framework/migration-guide/from-autogen/
- Preserve behavior first, then adopt native Agent Framework patterns incrementally.
Workflow
- Determine the target language and read the matching reference file.
- Fetch the latest official docs and samples before making implementation choices.
- Apply the shared agent and workflow guidance from this skill.
- Use the language-specific package, repository, sample paths, and coding practices from the chosen reference.
- When examples in the repo differ from current docs, explain the difference and follow the current supported pattern.
References
Completion criteria
- Recommendations match the target language.
- Package names, repository paths, and sample locations match the selected ecosystem.
- Guidance reflects current Microsoft Agent Framework documentation rather than legacy assumptions.
- Migration advice calls out Semantic Kernel and AutoGen only when relevant.
常见问题
什么是 Microsoft Agent Framework?
这是微软推出的新工具,融合了 Semantic Kernel 和 AutoGen,用于构建更高级的 AI 应用和智能体。
使用它需要懂 .NET 或 Python 吗?
需要懂其中一种即可,因为工具两者都支持。它会根据你使用的代码类型或你的提问,选择正确的说明。
什么是“智能体”和“工作流”?
智能体就像能够自主做决定的智能助手。工作流则是为较长的任务或需要人工审批的任务设计的一系列步骤。
详情
作者的原始描述
Create, update, refactor, explain, or review Microsoft Agent Framework solutions using shared guidance plus language-specific references for .NET and Python.
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7289
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。