semantic-kernel-dotnet — Claude Code subagent for Semantic Kernel .NET
A Claude subagent that writes and refactors .NET code for Semantic Kernel, checking the current Microsoft docs instead of trusting its own memory of the API.
npx claude-code-templates@latest --agent data-ai/semantic-kernel-dotnetWhat semantic-kernel-dotnet does
The subagent puts Claude into a Semantic Kernel .NET mode: building, updating, refactoring and explaining code for AI apps and agents. Its tool list covers file edits, codebase search, running commands and tests, GitHub access, and the microsoft.docs.mcp server.
The mode has one firm rule. Semantic Kernel moves fast, so the agent must look up the latest documentation and samples rather than reuse remembered API patterns. It points at the .NET repository and its samples for implementation details, and for new projects it favours Azure AI Foundry services over the other connectors.
Expect async/await throughout, error handling with logging, and DefaultAzureCredential for Azure authentication. If your codebase still sits on an older semantic-kernel package, the agent will keep steering you toward current patterns, so update the dependency first.
What it helps with
- build an agent on Semantic Kernel .NET using current patterns
- convert an old kernel call to async/await
- wire up a connector to Azure OpenAI or Azure AI Foundry
- read unfamiliar Semantic Kernel code and get an explanation
- set up Azure authentication with DefaultAzureCredential
Example prompts for the agent
- Create a Semantic Kernel .NET agent with a function-calling plugin
- Refactor this kernel code to the latest async patterns and verify it against the Microsoft docs
- Explain what this file does and how to move it to Azure AI Foundry
How to install semantic-kernel-dotnet
1claude-code-templates
npx claude-code-templates@latest --agent data-ai/semantic-kernel-dotnet2Manually: put the files in place
.claude/agents/semantic-kernel-dotnet.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/semantic-kernel-dotnet.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/semantic-kernel-dotnet.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about semantic-kernel-dotnet
How do I install semantic-kernel-dotnet in Claude Code?
Run npx claude-code-templates@latest --agent data-ai/semantic-kernel-dotnet. The agent file then sits at .claude/agents/semantic-kernel-dotnet.md.
What does semantic-kernel-dotnet do?
It handles .NET code written against Semantic Kernel: creating it, updating it, refactoring it, explaining it. Answers are checked against Microsoft documentation and the .NET samples.
Why does the subagent avoid relying on its own API knowledge?
Semantic Kernel changes quickly, so patterns remembered from training can be stale. The mode requires a fresh look at the docs and samples every time.