semantic-kernel
它能做什么
帮助你为 Semantic Kernel(一个用于构建 AI 应用的工具)创建、更新、审查或解释代码。它会确保代码遵循最佳实践和官方文档。
适用场景
- ✓当你开始一个新的 Semantic Kernel 项目时。
- ✓当你需要理解或修复已有代码时。
- ✓当你要把 AI 应用的不同部分整合在一起时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/semantic-kernel/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我如何在 Python 中使用 Semantic Kernel 创建插件?”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会先判断你使用的是 .NET 还是 Python。然后,它会获取官方文档中的最新信息,并结合通用及特定语言的最佳实践,给出最合适的回答。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Semantic Kernel
Use this skill when working with applications, plugins, function-calling flows, or AI integrations built on Semantic Kernel.
Always ground implementation advice in the latest Semantic Kernel documentation and samples rather than memory alone.
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, 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 Semantic Kernel overview first: https://learn.microsoft.com/semantic-kernel/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.
Shared guidance
When working with Semantic Kernel in any language:
- Use async patterns for kernel operations.
- Follow official plugin and function-calling patterns.
- Implement explicit error handling and logging.
- Prefer strong typing, clear abstractions, and maintainable composition patterns.
- Use built-in connectors for Azure AI Foundry, Azure OpenAI, OpenAI, and other AI services, while preferring Azure AI Foundry services for new projects when that fits the task.
- Use the kernel's memory and context-management capabilities when they simplify the solution.
- Use
DefaultAzureCredentialwhen Azure authentication is appropriate.
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 Semantic Kernel 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 Semantic Kernel documentation rather than stale assumptions.
常见问题
什么是 Semantic Kernel?
它是一个帮助开发者构建 AI 应用的库,可以把大语言模型(例如 OpenAI 提供的模型)与传统代码连接起来。
什么是“插件”和“函数调用”(function-calling)?
插件就像可以添加到 Semantic Kernel 中的扩展,让它执行特定任务。“函数调用”是 AI 模型调用这些函数(插件)以获取信息或执行操作的能力。
为什么要使用官方文档?
官方文档总是包含最新的功能和最佳使用方式,能确保你的代码正确且安全地运行。
详情
作者的原始描述
Create, update, refactor, explain, or review Semantic Kernel solutions using shared guidance plus language-specific references for .NET and Python.
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7421
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。