Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Builds AI-enabled .NET applications with Semantic Kernel, covering kernel services, plugins, prompts, and function calling.
77% 95%+18 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 17 of 22 without it.
3 of 3 safety checks passed
Each plugin should focus on one domain or capability.
// Good: focused plugin
public class InventoryPlugin
{
private readonly IInventoryService _inventory;
public InventoryPlugin(IInventoryService inventory) => _inventory = inventory;
[KernelFunction]
[Description("Checks if a product is in stock")]
public async Task<string> CheckStock(
[Description("Product SKU")] string sku)
{
var quantity = await _inventory.GetQuantityAsync(sku);
return quantity > 0
? $"Product {sku} is in stock ({quantity} available)"
: $"Product {sku} is out of stock";
}
[KernelFunction]
[Description("Reserves inventory for an order")]
public async Task<string> ReserveStock(
[Description("Product SKU")] string sku,
[Description("Quantity to reserve")] int quantity)
{
var result = await _inventory.ReserveAsync(sku, quantity);
return result.Success
? $"Reserved {quantity} units of {sku}"
: $"Failed to reserve: {result.Reason}";
}
}
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.