用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/UltronCore/claude-skill-vault --skill semantic-kernel命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Validate environment configuration files across local, staging, and production environments. Ensure required secrets, database URLs, API keys, and public variables are properly scoped and set. Use this skill when setting up environments, validating configuration, checking for missing secrets, auditing environment variables, ensuring proper scoping of public vs private vars, or troubleshooting environment issues. Trigger terms include env, environment variables, secrets, configuration, .env file, environment validation, missing variables, config check, NEXT_PUBLIC, env vars, database URL, API keys.
Validate environment configuration files across local, staging, and production environments. Ensure required secrets, database URLs, API keys, and public variables are properly scoped and set. Use this skill when setting up environments, validating configuration, checking for missing secrets, auditing environment variables, ensuring proper scoping of public vs private vars, or troubleshooting environment issues. Trigger terms include env, environment variables, secrets, configuration, .env file, environment validation, missing variables, config check, NEXT_PUBLIC, env vars, database URL, API keys.
Build Raycast extensions using the Raycast API: commands, list views, forms, and preferences. Triggers on: Raycast, @raycast/api, raycast extension, raycast command, showToast, List.Item, Action.
基于 SOC 职业分类
| name | semantic-kernel |
| description | Microsoft's AI orchestration SDK for integrating LLMs into .NET, Python, and Java apps |
| version | 1.0.0 |
| tags | ["llm","orchestration","microsoft","dotnet","python","plugins","agents"] |
Semantic Kernel (SK) is Microsoft's open-source AI orchestration SDK for building enterprise AI applications in .NET, Python, and Java. It provides a plugin architecture where native functions and LLM prompts are treated as interchangeable "skills," enabling composable AI pipelines. Features include automatic function calling, memory (vector stores), planning, and agent patterns. Used heavily in Microsoft 365 Copilot and Azure AI integrations.
GitHub: https://github.com/microsoft/semantic-kernel (24k+ stars)
# Python
pip install semantic-kernel
# .NET
dotnet add package Microsoft.SemanticKernel
import asyncio
from semantic_kernel import Kernel
from semantic_kernel.connectors.ai.open_ai import OpenAIChatCompletion
from semantic_kernel.connectors.ai.function_choice_behavior import FunctionChoiceBehavior
async def main():
kernel = Kernel()
# Add AI service
kernel.add_service(
OpenAIChatCompletion(
service_id="chat",
ai_model_id="gpt-4o-mini",
api_key="your-api-key",
)
)
# Simple invocation
result = await kernel.invoke_prompt(
"What is the capital of {{$country}}?",
country="France",
)
print(result)
asyncio.run(main())
from semantic_kernel.functions import kernel_function
from semantic_kernel.plugin_definition import kernel_plugin_definition
@kernel_plugin_definition
class WeatherPlugin:
@kernel_function(description="Get current weather for a city")
def get_weather(self, city: str) -> str:
"""Get weather information for the specified city."""
# Simulate API call
return f"Weather in {city}: 72°F, partly cloudy"
@kernel_function(description="Convert temperature from Celsius to Fahrenheit")
def celsius_to_fahrenheit(self, celsius: float) -> float:
return (celsius * 9/5) + 32
# Register and use
kernel.add_plugin(WeatherPlugin(), plugin_name="Weather")
result = await kernel.invoke_prompt(
"What's the weather in Tokyo and convert 25°C to Fahrenheit?",
settings=OpenAIChatPromptExecutionSettings(
function_choice_behavior=FunctionChoiceBehavior.Auto(),
),
)
from semantic_kernel.memory import SemanticTextMemory
from semantic_kernel.connectors.memory.chroma import ChromaMemoryStore
memory = SemanticTextMemory(
storage=ChromaMemoryStore(host="localhost", port=8000),
embeddings_generator=kernel.get_service("embedding"),
)
# Save memories
await memory.save_information(
collection="company-docs",
id="policy-001",
text="Our return policy allows 30-day returns for all products.",
)
# Search
results = await memory.search(
collection="company-docs",
query="return policy",
limit=3,
)
for result in results:
print(f"[{result.relevance:.2f}] {result.text}")
from semantic_kernel.contents import ChatHistory
from semantic_kernel.connectors.ai.open_ai import OpenAIChatPromptExecutionSettings
async def chat():
kernel = Kernel()
kernel.add_service(OpenAIChatCompletion(service_id="chat", ai_model_id="gpt-4o-mini"))
chat_service = kernel.get_service("chat")
history = ChatHistory()
history.add_system_message("You are a helpful coding assistant.")
while True:
user_input = input("You: ")
if user_input == "exit":
break
history.add_user_message(user_input)
result = await chat_service.get_chat_message_content(
chat_history=history,
settings=OpenAIChatPromptExecutionSettings(max_tokens=500),
)
print(f"Assistant: {result}")
history.add_assistant_message(str(result))
from semantic_kernel.connectors.ai.open_ai import AzureChatCompletion
kernel.add_service(
AzureChatCompletion(
service_id="azure-chat",
deployment_name="gpt-4o",
endpoint="https://your-resource.openai.azure.com",
api_key="your-azure-key",
)
)
using Microsoft.SemanticKernel;
var builder = Kernel.CreateBuilder();
builder.AddOpenAIChatCompletion("gpt-4o-mini", "your-api-key");
var kernel = builder.Build();
// Invoke prompt
var result = await kernel.InvokePromptAsync(
"Summarize: {{$content}}",
new KernelArguments { ["content"] = longText }
);
Console.WriteLine(result);
// With plugin
kernel.ImportPluginFromType<WeatherPlugin>();
var response = await kernel.InvokePromptAsync(
"What's the weather in Paris?",
new KernelArguments(),
executionSettings: new OpenAIPromptExecutionSettings {
ToolCallBehavior = ToolCallBehavior.AutoInvokeKernelFunctions
}
);
from semantic_kernel.agents import ChatCompletionAgent
from semantic_kernel.agents.group_chat import AgentGroupChat
agent1 = ChatCompletionAgent(
service_id="chat",
kernel=kernel,
name="Writer",
instructions="You write creative content.",
)
agent2 = ChatCompletionAgent(
service_id="chat",
kernel=kernel,
name="Critic",
instructions="You critique content and suggest improvements. Say APPROVED when done.",
)
group_chat = AgentGroupChat(agents=[agent1, agent2])
async for response in group_chat.invoke(task="Write a tagline for an AI company."):
print(f"[{response.name}]: {response.content}")
service_id; multiple services need explicit selectionasyncio.run() or use async contextautogen — alternative multi-agent frameworklangchain — alternative LLM orchestration frameworkvector-rag-advanced — production RAG patternsazure-cloud-architect — Azure AI service integrationagent-loop-patterns — agent design patternstool: semantic-kernel
category: llm-orchestration
tier: library
interface: python-sdk, dotnet-sdk
platform: cross-platform
stars: 24000+