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

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

可直接粘贴的消息

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

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

  1. 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.
  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

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 DefaultAzureCredential when Azure authentication is appropriate.

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 Semantic Kernel 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 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能