[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DYKFJW1RHDRSREHVSKAWG6":3,"skill-same:01M6DYKFJW1RHDRSREHVSKAWG6":91},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":56,"ownerDescription":57,"updatedAt":58,"install":59,"resources":72},"01M6DYKFJW1RHDRSREHVSKAWG6","semantic-kernel",null,"Build AI-enabled .NET applications with Semantic Kernel using services, plugins, prompts, and function-calling patterns that remain testable and maintainable. USE FOR: adding AI-driven prompts, plugins, or orchestration to a .NET app; reviewing kernel construction, service registration, or plugin usage; building function-calling. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.","managedcode\u002Fdotnet-skills","managedcode","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F78253589?v=4","01M6DYDJR3EG8KB5G4PC65XCTT","Managed Code","01M6DYDJX0ZT432N04NYJW89DN",515,"MIT","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FFrameworks\u002FSemantic-Kernel\u002Fskills\u002Fsemantic-kernel\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"semantic kernel","semantic","kernel","files","when","inspect","function-calling","relevant","app","commands","calling","patterns","do","registration","unrelated","use","context","edit","applications","repository","run","packages","tasks","orchestration","2026-11-10 10:12:30",false,"---\nname: semantic-kernel\ndescription: \"Build AI-enabled .NET applications with Semantic Kernel using services, plugins, prompts, and function-calling patterns that remain testable and maintainable. USE FOR: adding AI-driven prompts, plugins, or orchestration to a .NET app; reviewing kernel construction, service registration, or plugin usage; building function-calling. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.\"\ncompatibility: \"Requires Semantic Kernel 1.x packages (.NET 8+).\"\n---\n\n# Semantic Kernel for .NET\n\n## Trigger On\n\n- adding AI-driven prompts, plugins, or orchestration to a .NET app\n- reviewing kernel construction, service registration, or plugin usage\n- building function-calling patterns with LLMs\n- migrating older Semantic Kernel code to current APIs\n\n## Documentation\n\n- [Semantic Kernel Overview](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fsemantic-kernel\u002Foverview\u002F)\n- [Plugins and Functions](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fsemantic-kernel\u002Fconcepts\u002Fplugins\u002F)\n- [Agent Functions](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fsemantic-kernel\u002Fframeworks\u002Fagent\u002Fagent-functions)\n- [GitHub Repository](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-kernel)\n- [Semantic Kernel .NET 1.80.1 release](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-kernel\u002Freleases\u002Ftag\u002Fdotnet-1.80.1)\n- [Microsoft Agent Framework](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fsemantic-kernel\u002Fframeworks\u002Fagent\u002F)\n\n### References\n\n- [patterns.md](references\u002Fpatterns.md) - Plugin patterns, function calling patterns, multi-agent patterns, prompt templates, and RAG patterns\n- [anti-patterns.md](references\u002Fanti-patterns.md) - Common Semantic Kernel mistakes and how to avoid them\n\n## Core Concepts\n\n| Concept | Description |\n|---------|-------------|\n| **Kernel** | Central orchestrator for AI services and plugins |\n| **Plugin** | Collection of functions exposed to the LLM |\n| **Function** | Native C# method or prompt template |\n| **Chat Completion** | LLM service for generating responses |\n| **Memory** | Vector storage for semantic search |\n\n## Workflow\n\n1. **Build the Kernel** with required services\n2. **Create Plugins** with well-described functions\n3. **Configure Function Calling** for automatic tool use\n4. **Handle Responses** and manage conversation state\n5. **Test and Observe** AI behavior with logging\n6. For Semantic Kernel `dotnet-1.79.0` and later, keep OpenAPI plugin server URL validation enabled, do not re-enable automatic redirects on the default `HttpPlugin` or `WebFileDownloadPlugin` clients without an explicit trusted-host policy, and use the current Microsoft Agent Framework-compatible migration samples when moving SK agent code to Agent Framework.\n7. Re-test Cosmos DB vector-store queries, file and document plugins, OpenAPI server-variable URLs, and Ollama reasoning settings after upgrading to `1.79.0`. The release fixes the Cosmos vector-store path, rejects mixed-separator UNC paths, URL-encodes OpenAPI server variables, adds Ollama `Think`, and allows deterministic `TimePlugin` tests through `TimeProvider` injection.\n8. Treat the Prompty.Core `2.0.0-beta.3` update in `1.79.0` as a breaking dependency change. Re-run prompt-template tests and remove security workarounds that are no longer needed after the vulnerable transitive version is gone.\n9. In `1.80.0`, re-test OpenAPI plugin HTTP-client defaults and Gemini calls that restrict `FunctionChoiceBehavior` to a supplied function list. The migrated .NET MEVD providers are no longer owned by Semantic Kernel; follow their redirect guidance and keep vector-provider package references explicit during upgrades.\n\nFor `1.80.1`, update migrated vector-provider references to the current CommunityToolkit.VectorData package names and re-run connector and OpenAPI plugin tests after the dependency refresh. The release removes retired OpenAI Assistants integration tests; do not interpret that removal as a working Assistants migration path. Use Responses or the current Agent Framework migration guidance for affected integrations.\n\n## Kernel Setup\n\n### Basic Configuration\n```csharp\nvar builder = Kernel.CreateBuilder();\n\nbuilder.AddAzureOpenAIChatCompletion(\n    deploymentName: \"gpt-4\",\n    endpoint: config[\"AzureOpenAI:Endpoint\"]!,\n    apiKey: config[\"AzureOpenAI:ApiKey\"]!);\n\n\u002F\u002F Or OpenAI\nbuilder.AddOpenAIChatCompletion(\n    modelId: \"gpt-4\",\n    apiKey: config[\"OpenAI:ApiKey\"]!);\n\nvar kernel = builder.Build();\n```\n\n### With Dependency Injection\n```csharp\nbuilder.Services.AddKernel()\n    .AddAzureOpenAIChatCompletion(\n        deploymentName: \"gpt-4\",\n        endpoint: config[\"AzureOpenAI:Endpoint\"]!,\n        apiKey: config[\"AzureOpenAI:ApiKey\"]!);\n\n\u002F\u002F Register plugins\nbuilder.Services.AddSingleton\u003CWeatherPlugin>();\nbuilder.Services.AddSingleton\u003COrderPlugin>();\n\n\u002F\u002F In your service\npublic class AiService(Kernel kernel)\n{\n    public async Task\u003Cstring> ChatAsync(string message)\n    {\n        var response = await kernel.InvokePromptAsync(message);\n        return response.ToString();\n    }\n}\n```\n\n## Plugin Patterns\n\n### Creating a Plugin\n```csharp\npublic class WeatherPlugin\n{\n    [KernelFunction]\n    [Description(\"Gets the current weather for a specified city\")]\n    public async Task\u003Cstring> GetWeather(\n        [Description(\"The city name, e.g., 'Seattle'\")] string city,\n        [Description(\"Temperature unit: 'celsius' or 'fahrenheit'\")] string unit = \"celsius\")\n    {\n        \u002F\u002F Call actual weather API\n        var weather = await _weatherService.GetCurrentAsync(city);\n        return $\"Weather in {city}: {weather.Temperature}° {unit}, {weather.Condition}\";\n    }\n\n    [KernelFunction]\n    [Description(\"Gets the weather forecast for the next N days\")]\n    public async Task\u003Cstring> GetForecast(\n        [Description(\"The city name\")] string city,\n        [Description(\"Number of days (1-7)\")] int days = 3)\n    {\n        var forecast = await _weatherService.GetForecastAsync(city, days);\n        return FormatForecast(forecast);\n    }\n}\n```\n\n### Plugin Best Practices\n\n| Practice | Why It Matters |\n|----------|----------------|\n| Clear `[Description]` | LLM uses this to decide when to call |\n| Specific parameter names | Helps LLM map user intent |\n| Idempotent functions | Safe to retry on failures |\n| Return meaningful strings | LLM needs to understand results |\n| Validate inputs | LLM may hallucinate parameters |\n\n## Function Calling\n\n### Automatic Function Calling\n```csharp\nvar settings = new OpenAIPromptExecutionSettings\n{\n    FunctionChoiceBehavior = FunctionChoiceBehavior.Auto()\n};\n\nkernel.Plugins.AddFromObject(new WeatherPlugin(), \"Weather\");\nkernel.Plugins.AddFromObject(new OrderPlugin(), \"Orders\");\n\nvar result = await kernel.InvokePromptAsync(\n    \"What's the weather in Seattle and do I have any pending orders?\",\n    new KernelArguments(settings));\n```\n\n### Manual Function Selection\n```csharp\nvar settings = new OpenAIPromptExecutionSettings\n{\n    FunctionChoiceBehavior = FunctionChoiceBehavior.Required(\n        [kernel.Plugins[\"Weather\"][\"GetWeather\"]])\n};\n```\n\n## Chat Completion Patterns\n\n### Multi-Turn Conversation\n```csharp\nvar chatService = kernel.GetRequiredService\u003CIChatCompletionService>();\nvar history = new ChatHistory();\n\nhistory.AddSystemMessage(\"You are a helpful assistant.\");\nhistory.AddUserMessage(userMessage);\n\nvar response = await chatService.GetChatMessageContentAsync(\n    history,\n    executionSettings: new OpenAIPromptExecutionSettings\n    {\n        FunctionChoiceBehavior = FunctionChoiceBehavior.Auto()\n    },\n    kernel: kernel);\n\nhistory.AddAssistantMessage(response.Content!);\n```\n\n### Streaming Response\n```csharp\nawait foreach (var chunk in chatService.GetStreamingChatMessageContentsAsync(\n    history, executionSettings, kernel))\n{\n    Console.Write(chunk.Content);\n}\n```\n\n## Multi-Agent Plugin Isolation\n\n```csharp\n\u002F\u002F WRONG - agents share plugins\nvar sharedKernel = Kernel.CreateBuilder().Build();\nsharedKernel.Plugins.AddFromObject(new AllPlugins());\n\nvar agent1 = new ChatCompletionAgent { Kernel = sharedKernel };\nvar agent2 = new ChatCompletionAgent { Kernel = sharedKernel };\n\u002F\u002F Both agents have same plugins!\n\n\u002F\u002F CORRECT - isolated kernels\nvar kernel1 = CreateKernelForAgent1();\nkernel1.Plugins.AddFromObject(new WeatherPlugin());\n\nvar kernel2 = CreateKernelForAgent2();\nkernel2.Plugins.AddFromObject(new OrderPlugin());\n\nvar agent1 = new ChatCompletionAgent { Kernel = kernel1 };\nvar agent2 = new ChatCompletionAgent { Kernel = kernel2 };\n```\n\n## Anti-Patterns to Avoid\n\n| Anti-Pattern | Why It's Bad | Better Approach |\n|--------------|--------------|-----------------|\n| Vague `[Description]` | LLM won't call at right time | Be specific and actionable |\n| Sharing kernel across agents | Plugin leakage | Clone or create new kernels |\n| No input validation | Hallucinated parameters | Validate and return errors |\n| Using deprecated Planners | Removed in favor of function calling | Use `FunctionChoiceBehavior` |\n| Ignoring logging | Can't debug AI decisions | Enable Semantic Kernel logging |\n\n## Error Handling\n\n```csharp\n[KernelFunction]\n[Description(\"Places an order for a product\")]\npublic async Task\u003Cstring> PlaceOrder(\n    [Description(\"Product ID\")] string productId,\n    [Description(\"Quantity (1-100)\")] int quantity)\n{\n    \u002F\u002F Validate inputs\n    if (string.IsNullOrEmpty(productId))\n        return \"Error: Product ID is required\";\n\n    if (quantity \u003C 1 || quantity > 100)\n        return \"Error: Quantity must be between 1 and 100\";\n\n    try\n    {\n        var order = await _orderService.CreateAsync(productId, quantity);\n        return $\"Order {order.Id} placed successfully for {quantity} units\";\n    }\n    catch (ProductNotFoundException)\n    {\n        return $\"Error: Product '{productId}' not found\";\n    }\n}\n```\n\n## Testing Plugins\n\n```csharp\n[Fact]\npublic async Task GetWeather_ReturnsFormattedWeather()\n{\n    var mockWeatherService = new Mock\u003CIWeatherService>();\n    mockWeatherService.Setup(w => w.GetCurrentAsync(\"Seattle\"))\n        .ReturnsAsync(new Weather { Temperature = 20, Condition = \"Sunny\" });\n\n    var plugin = new WeatherPlugin(mockWeatherService.Object);\n\n    var result = await plugin.GetWeather(\"Seattle\", \"celsius\");\n\n    Assert.Contains(\"20°\", result);\n    Assert.Contains(\"Sunny\", result);\n}\n```\n\n## Microsoft Agent Framework\n\nFor complex multi-agent scenarios, consider `microsoft-agent-framework`:\n- Multi-agent orchestration\n- Agent-to-agent communication\n- Enterprise patterns\n\n## Deliver\n\n- kernel setup with clear service and plugin composition\n- AI features that fit naturally into the existing .NET app\n- observable and testable function-calling behavior\n- proper plugin isolation for multi-agent scenarios\n\n## Validate\n\n- plugins have clear, specific descriptions\n- function calling works as expected\n- AI flows are logged and debuggable\n- input validation prevents hallucination issues\n- kernel instances are properly scoped\n- deprecated APIs are not used\n","# Semantic Kernel for .NET\n\n## Trigger On\n\n- adding AI-driven prompts, plugins, or orchestration to a .NET app\n- reviewing kernel construction, service registration, or plugin usage\n- building function-calling patterns with LLMs\n- migrating older Semantic Kernel code to current APIs\n\n## Documentation\n\n- [Semantic Kernel Overview](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fsemantic-kernel\u002Foverview\u002F)\n- [Plugins and Functions](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fsemantic-kernel\u002Fconcepts\u002Fplugins\u002F)\n- [Agent Functions](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fsemantic-kernel\u002Fframeworks\u002Fagent\u002Fagent-functions)\n- [GitHub Repository](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-kernel)\n- [Semantic Kernel .NET 1.80.1 release](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-kernel\u002Freleases\u002Ftag\u002Fdotnet-1.80.1)\n- [Microsoft Agent Framework](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fsemantic-kernel\u002Fframeworks\u002Fagent\u002F)\n\n### References\n\n- [patterns.md](references\u002Fpatterns.md) - Plugin patterns, function calling patterns, multi-agent patterns, prompt templates, and RAG patterns\n- [anti-patterns.md](references\u002Fanti-patterns.md) - Common Semantic Kernel mistakes and how to avoid them\n\n## Core Concepts\n\n| Concept | Description |\n|---------|-------------|\n| **Kernel** | Central orchestrator for AI services and plugins |\n| **Plugin** | Collection of functions exposed to the LLM |\n| **Function** | Native C# method or prompt template |\n| **Chat Completion** | LLM service for generating responses |\n| **Memory** | Vector storage for semantic search |\n\n## Workflow\n\n1. **Build the Kernel** with required services\n2. **Create Plugins** with well-described functions\n3. **Configure Function Calling** for automatic tool use\n4. **Handle Responses** and manage conversation state\n5. **Test and Observe** AI behavior with logging\n6. For Semantic Kernel `dotnet-1.79.0` and later, keep OpenAPI plugin server URL validation enabled, do not re-enable automatic redirects on the default `HttpPlugin` or `WebFileDownloadPlugin` clients without an explicit trusted-host policy, and use the current Microsoft Agent Framework-compatible migration samples when moving SK agent code to Agent Framework.\n7. Re-test Cosmos DB vector-store queries, file and document plugins, OpenAPI server-variable URLs, and Ollama reasoning settings after upgrading to `1.79.0`. The release fixes the Cosmos vector-store path, rejects mixed-separator UNC paths, URL-encodes OpenAPI server variables, adds Ollama `Think`, and allows deterministic `TimePlugin` tests through `TimeProvider` injection.\n8. Treat the Prompty.Core `2.0.0-beta.3` update in `1.79.0` as a breaking dependency change. Re-run prompt-template tests and remove security workarounds that are no longer needed after the vulnerable transitive version is gone.\n9. In `1.80.0`, re-test OpenAPI plugin HTTP-client defaults and Gemini calls that restrict `FunctionChoiceBehavior` to a supplied function list. The migrated .NET MEVD providers are no longer owned by Semantic Kernel; follow their redirect guidance and keep vector-provider package references explicit during upgrades.\n\nFor `1.80.1`, update migrated vector-provider references to the current CommunityToolkit.VectorData package names and re-run connector and OpenAPI plugin tests after the dependency refresh. The release removes retired OpenAI Assistants integration tests; do not interpret that removal as a working Assistants migration path. Use Responses or the current Agent Framework migration guidance for affected integrations.\n\n## Kernel Setup\n\n### Basic Configuration\n```csharp\nvar builder = Kernel.CreateBuilder();\n\nbuilder.AddAzureOpenAIChatCompletion(\n    deploymentName: \"gpt-4\",\n    endpoint: config[\"AzureOpenAI:Endpoint\"]!,\n    apiKey: config[\"AzureOpenAI:ApiKey\"]!);\n\n\u002F\u002F Or OpenAI\nbuilder.AddOpenAIChatCompletion(\n    modelId: \"gpt-4\",\n    apiKey: config[\"OpenAI:ApiKey\"]!);\n\nvar kernel = builder.Build();\n```\n\n### With Dependency Injection\n```csharp\nbuilder.Services.AddKernel()\n    .AddAzureOpenAIChatCompletion(\n        deploymentName: \"gpt-4\",\n        endpoint: config[\"AzureOpenAI:Endpoint\"]!,\n        apiKey: config[\"AzureOpenAI:ApiKey\"]!);\n\n\u002F\u002F Register plugins\nbuilder.Services.AddSingleton\u003CWeatherPlugin>();\nbuilder.Services.AddSingleton\u003COrderPlugin>();\n\n\u002F\u002F In your service\npublic class AiService(Kernel kernel)\n{\n    public async Task\u003Cstring> ChatAsync(string message)\n    {\n        var response = await kernel.InvokePromptAsync(message);\n        return response.ToString();\n    }\n}\n```\n\n## Plugin Patterns\n\n### Creating a Plugin\n```csharp\npublic class WeatherPlugin\n{\n    [KernelFunction]\n    [Description(\"Gets the current weather for a specified city\")]\n    public async Task\u003Cstring> GetWeather(\n        [Description(\"The city name, e.g., 'Seattle'\")] string city,\n        [Description(\"Temperature unit: 'celsius' or 'fahrenheit'\")] string unit = \"celsius\")\n    {\n        \u002F\u002F Call actual weather API\n        var weather = await _weatherService.GetCurrentAsync(city);\n        return $\"Weather in {city}: {weather.Temperature}° {unit}, {weather.Condition}\";\n    }\n\n    [KernelFunction]\n    [Description(\"Gets the weather forecast for the next N days\")]\n    public async Task\u003Cstring> GetForecast(\n        [Description(\"The city name\")] string city,\n        [Description(\"Number of days (1-7)\")] int days = 3)\n    {\n        var forecast = await _weatherService.GetForecastAsync(city, days);\n        return FormatForecast(forecast);\n    }\n}\n```\n\n### Plugin Best Practices\n\n| Practice | Why It Matters |\n|----------|----------------|\n| Clear `[Description]` | LLM uses this to decide when to call |\n| Specific parameter names | Helps LLM map user intent |\n| Idempotent functions | Safe to retry on failures |\n| Return meaningful strings | LLM needs to understand results |\n| Validate inputs | LLM may hallucinate parameters |\n\n## Function Calling\n\n### Automatic Function Calling\n```csharp\nvar settings = new OpenAIPromptExecutionSettings\n{\n    FunctionChoiceBehavior = FunctionChoiceBehavior.Auto()\n};\n\nkernel.Plugins.AddFromObject(new WeatherPlugin(), \"Weather\");\nkernel.Plugins.AddFromObject(new OrderPlugin(), \"Orders\");\n\nvar result = await kernel.InvokePromptAsync(\n    \"What's the weather in Seattle and do I have any pending orders?\",\n    new KernelArguments(settings));\n```\n\n### Manual Function Selection\n```csharp\nvar settings = new OpenAIPromptExecutionSettings\n{\n    FunctionChoiceBehavior = FunctionChoiceBehavior.Required(\n        [kernel.Plugins[\"Weather\"][\"GetWeather\"]])\n};\n```\n\n## Chat Completion Patterns\n\n### Multi-Turn Conversation\n```csharp\nvar chatService = kernel.GetRequiredService\u003CIChatCompletionService>();\nvar history = new ChatHistory();\n\nhistory.AddSystemMessage(\"You are a helpful assistant.\");\nhistory.AddUserMessage(userMessage);\n\nvar response = await chatService.GetChatMessageContentAsync(\n    history,\n    executionSettings: new OpenAIPromptExecutionSettings\n    {\n        FunctionChoiceBehavior = FunctionChoiceBehavior.Auto()\n    },\n    kernel: kernel);\n\nhistory.AddAssistantMessage(response.Content!);\n```\n\n### Streaming Response\n```csharp\nawait foreach (var chunk in chatService.GetStreamingChatMessageContentsAsync(\n    history, executionSettings, kernel))\n{\n    Console.Write(chunk.Content);\n}\n```\n\n## Multi-Agent Plugin Isolation\n\n```csharp\n\u002F\u002F WRONG - agents share plugins\nvar sharedKernel = Kernel.CreateBuilder().Build();\nsharedKernel.Plugins.AddFromObject(new AllPlugins());\n\nvar agent1 = new ChatCompletionAgent { Kernel = sharedKernel };\nvar agent2 = new ChatCompletionAgent { Kernel = sharedKernel };\n\u002F\u002F Both agents have same plugins!\n\n\u002F\u002F CORRECT - isolated kernels\nvar kernel1 = CreateKernelForAgent1();\nkernel1.Plugins.AddFromObject(new WeatherPlugin());\n\nvar kernel2 = CreateKernelForAgent2();\nkernel2.Plugins.AddFromObject(new OrderPlugin());\n\nvar agent1 = new ChatCompletionAgent { Kernel = kernel1 };\nvar agent2 = new ChatCompletionAgent { Kernel = kernel2 };\n```\n\n## Anti-Patterns to Avoid\n\n| Anti-Pattern | Why It's Bad | Better Approach |\n|--------------|--------------|-----------------|\n| Vague `[Description]` | LLM won't call at right time | Be specific and actionable |\n| Sharing kernel across agents | Plugin leakage | Clone or create new kernels |\n| No input validation | Hallucinated parameters | Validate and return errors |\n| Using deprecated Planners | Removed in favor of function calling | Use `FunctionChoiceBehavior` |\n| Ignoring logging | Can't debug AI decisions | Enable Semantic Kernel logging |\n\n## Error Handling\n\n```csharp\n[KernelFunction]\n[Description(\"Places an order for a product\")]\npublic async Task\u003Cstring> PlaceOrder(\n    [Description(\"Product ID\")] string productId,\n    [Description(\"Quantity (1-100)\")] int quantity)\n{\n    \u002F\u002F Validate inputs\n    if (string.IsNullOrEmpty(productId))\n        return \"Error: Product ID is required\";\n\n    if (quantity \u003C 1 || quantity > 100)\n        return \"Error: Quantity must be between 1 and 100\";\n\n    try\n    {\n        var order = await _orderService.CreateAsync(productId, quantity);\n        return $\"Order {order.Id} placed successfully for {quantity} units\";\n    }\n    catch (ProductNotFoundException)\n    {\n        return $\"Error: Product '{productId}' not found\";\n    }\n}\n```\n\n## Testing Plugins\n\n```csharp\n[Fact]\npublic async Task GetWeather_ReturnsFormattedWeather()\n{\n    var mockWeatherService = new Mock\u003CIWeatherService>();\n    mockWeatherService.Setup(w => w.GetCurrentAsync(\"Seattle\"))\n        .ReturnsAsync(new Weather { Temperature = 20, Condition = \"Sunny\" });\n\n    var plugin = new WeatherPlugin(mockWeatherService.Object);\n\n    var result = await plugin.GetWeather(\"Seattle\", \"celsius\");\n\n    Assert.Contains(\"20°\", result);\n    Assert.Contains(\"Sunny\", result);\n}\n```\n\n## Microsoft Agent Framework\n\nFor complex multi-agent scenarios, consider `microsoft-agent-framework`:\n- Multi-agent orchestration\n- Agent-to-agent communication\n- Enterprise patterns\n\n## Deliver\n\n- kernel setup with clear service and plugin composition\n- AI features that fit naturally into the existing .NET app\n- observable and testable function-calling behavior\n- proper plugin isolation for multi-agent scenarios\n\n## Validate\n\n- plugins have clear, specific descriptions\n- function calling works as expected\n- AI flows are logged and debuggable\n- input validation prevents hallucination issues\n- kernel instances are properly scoped\n- deprecated APIs are not used\n",{"name":5,"description":7,"compatibility":48},"Requires Semantic Kernel 1.x packages (.NET 8+).","main","497cc9aba79a931ac6fb8d36a48cc22fe3d6d74b","catalog\u002FFrameworks\u002FSemantic-Kernel\u002Fskills\u002Fsemantic-kernel",41,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills","https:\u002F\u002Fskills.managed-code.com","https:\u002F\u002Fgithub.com\u002Fmanagedcode","https:\u002F\u002Fwww.managed-code.com","Open Source Community for .NET Developers: Reliable, Actively Maintained, and Community-Driven. Made in Ukraine 🇺🇦 with ❤️","2026-11-14 19:05:44",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add managedcode\u002Fdotnet-skills --skill semantic-kernel",{"tool":65,"command":66},"bunx","bunx skills add managedcode\u002Fdotnet-skills --skill semantic-kernel",{"tool":68,"command":69},"pnpm","pnpm dlx skills add managedcode\u002Fdotnet-skills --skill semantic-kernel","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FFrameworks\u002FSemantic-Kernel\u002Fskills\u002Fsemantic-kernel\u002FSKILL.md",true,[73,79,83,87],{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"index.json","REFERENCE","参考文档",500,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fsoc-operations-onboarding\u002Findex.json",{"path":80,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":81,"sourceHtmlUrl":82},"manifest.json",93,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FFrameworks\u002FSemantic-Kernel\u002Fskills\u002Fsemantic-kernel\u002Fmanifest.json",{"path":84,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fanti-patterns.md",16177,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FFrameworks\u002FSemantic-Kernel\u002Fskills\u002Fsemantic-kernel\u002Freferences\u002Fanti-patterns.md",{"path":88,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Fpatterns.md",14882,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FFrameworks\u002FSemantic-Kernel\u002Fskills\u002Fsemantic-kernel\u002Freferences\u002Fpatterns.md",[92,113,129,158,167,194],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":43},"01M6DYQE1Y9FHAQHEDTVFQ3447","xtwitter-scraper","Use XTwitterScraper when a .NET application needs typed access to Xquik's X automation REST API for tweet search, user lookup, posting workflows, extraction jobs, monitors, webhooks, or giveaway draws. USE FOR: integrating the XTwitterScraper NuGet package; reviewing Xquik API client usage; modeling API-key configuration, pagination, binary exports, raw responses, retries, and webhook\u002Fevent flows in .NET. DO NOT USE FOR: unrelated stacks; direct browser automation; generic social-media strategy; or code that does not call Xquik. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FLibraries\u002FXTwitterScraper\u002Fskills\u002Fxtwitter-scraper\u002FSKILL.md",[],[99,100,101,39,102,103,104,38,105,106,107,108,36,33,109,22,110,28,111,112],"xtwitter scraper","browser automation","workflows","code","browser","search","api","Media","api client","access","webhooks","social","modeling","webhook",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":43},"01M6DYQ9S4PE1H6G8MCH9T21HR","sep","Use Sep for high-performance separated-value parsing and writing in .NET, including delimiter inference, explicit parser\u002Fwriter options, and low-allocation row\u002Fcolumn workflows. USE FOR: delimited data needs are performance-sensitive and allocation-aware; project needs explicit control over separator inference, escaping, trimming, and header behavior;. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FLibraries\u002FSep\u002Fskills\u002Fsep\u002FSKILL.md",[],[115,120,121,101,41,39,38,122,123,124,36,35,33,22,31,125,126,127,28,128],"writing","performance","data","parsing","parser","writer","options","project","high-performance",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":43},"01M6DZS2DNEPXCGGF6SSCW6G5V","webgpu-threejs-tsl","Comprehensive guide for developing WebGPU-enabled Three.js applications using TSL (Three.js Shading Language). Covers WebGPU renderer setup, TSL syntax and node materials, compute shaders, post-processing effects, and WGSL integration. Use this skill when working with Three.js WebGPU, TSL shaders, node materials, or GPU compute in Three.js.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fwebgpu-claude-skill\u002Fskills\u002Fwebgpu-threejs-tsl\u002FSKILL.md",[],[136,137,138,139,140,141,142,37,143,144,145,146,34,147,148,149,150,151,152,153,154,155,156,157,23],"webgpu","threejs","webgpu threejs tsl","setup","shaders","gpu","integration","js","node","syntax","guide","language","three","compute","post","processing","with","renderer","for","materials","wgsl","effects",{"skillNo":159,"name":160,"nameZh":6,"description":161,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":162,"categories":163,"keywords":164,"publishedAt":43},"01M6DZS0BQXW2B56A289XF1X76","roslynk","Use Roslynk for semantic inspection and edits of *.cs, *.razor and *.cshtml solution files.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Froslynk\u002Fskills\u002Froslynk\u002FSKILL.md",[],[160,34,22,20,165,154,166],"razor","inspection",{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":43},"01M6DZRW6MEJCVW80K3S4XV60K","system-text-json-net11","Imperative guidance for the System.Text.Json APIs added in .NET 11: the built-in `JsonNamingPolicy.PascalCase` naming policy, and the strongly-typed generic `JsonSerializerOptions.GetTypeInfo` and `JsonSerializerOptions.TryGetTypeInfo` metadata accessors (generic overloads that return a typed `JsonTypeInfo`). USE ONLY when the user is targeting net11.0 or later and needs PascalCase JSON property or dictionary-key names without writing a custom naming policy, a strongly-typed generic `JsonTypeInfo` instead of the non-generic `JsonTypeInfo`, or a no-throw way to probe whether a type's serialization metadata is resolved. DO NOT USE when the target is earlier than net11.0, the requested behavior uses an established pre-net11 naming policy, or the user explicitly selected another JSON library.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet11\u002Fskills\u002Fsystem-text-json-net11\u002FSKILL.md",[],[174,175,176,177,120,178,179,180,181,182,183,34,184,185,186,187,31,188,189,190,191,154,192,193,23],"system","json","text","system text json net11","policy","metadata","library","serialization","behavior","user","only","probe","guidance","later","type","dictionary","naming","targeting","custom","generic",{"skillNo":195,"name":196,"nameZh":6,"description":197,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":198,"categories":199,"keywords":200,"publishedAt":43},"01M6DZRRJP3S662NFSG1RSPQQ7","process-api-net11","Provides guidance on the new System.Diagnostics.Process APIs introduced in .NET 11: Process.Run, Process.RunAndCaptureText, Process.StartAndForget, Process.ReadAllText\u002FBytes\u002FLines, KillOnParentExit, InheritedHandles, and StartDetached. USE FOR: starting, orchestrating, or capturing output from external processes in applications targeting net11.0 or later. DO NOT USE FOR: applications targeting .NET 10 or earlier, or basic pre-.NET 11 Process.Start usage without new APIs.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet11\u002Fskills\u002Fprocess-api-net11\u002FSKILL.md",[],[105,201,202,203,39,204,37,174,34,186,187,31,205,206,207,208,191,154,209],"process","process api net11","diagnostics","start","basic","processes","output","usage","new"]