跳到正文
Skillpedia
通用编程40k · #7289

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/github/awesome-copilot/blob/main/skills/microsoft-agent-framework/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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:

  1. 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.
  2. 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.
  3. If the repository contains both ecosystems, match the language used by the files being edited or the user's stated target.
  4. 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 DefaultAzureCredential when 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

Workflow

  1. Determine the target language and read the matching reference file.
  2. Fetch the latest official docs and samples before making implementation choices.
  3. Apply the shared agent and workflow guidance from this skill.
  4. Use the language-specific package, repository, sample paths, and coding practices from the chosen reference.
  5. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能