# semantic-kernel-dotnet

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.

- subagent · `type=agent` · Claude Code · 189 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/agents/data-ai/semantic-kernel-dotnet.md
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/agents/semantic-kernel-dotnet

## What it 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.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --agent data-ai/semantic-kernel-dotnet
```

2. **Manually: put the files in place**
- File: `.claude/agents/semantic-kernel-dotnet.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/semantic-kernel-dotnet.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/semantic-kernel-dotnet.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/agents/data-ai/semantic-kernel-dotnet.md

## When to use it
- 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
- 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

## Similar
- [semantic-kernel](https://affpapa.org/en/nevibecode/skills/semantic-kernel.md) — skill · 1700 installs
- [dotnet-best-practices](https://affpapa.org/en/nevibecode/skills/dotnet-best-practices.md) — skill · 15752 installs
- [azure-ai-voicelive-dotnet](https://affpapa.org/en/nevibecode/skills/azure-ai-voicelive-dotnet.md) — skill · 1 install
- [azure-ai-document-intelligence-dotnet](https://affpapa.org/en/nevibecode/skills/azure-ai-document-intelligence-dotnet.md) — skill · 1 install
- [arifOS — Constitutional AI Kernel](https://affpapa.org/en/nevibecode/mcp/arifos-constitutional-ai-kernel.md) — MCP server · ★ 54
- [dotnet-local-tools](https://affpapa.org/en/nevibecode/skills/dotnet-local-tools.md) — skill · 526 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 361 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
