agent-framework-builder-dotnet
Что он делает
Скилл помогает создавать приложения на .NET (C#) с Microsoft Agent Framework, включая агентов, рабочие процессы, инструменты и размещение. Он нужен разработчикам, которые хотят встроить ИИ-помощника в приложение на C#.
Когда использовать
- ✓Когда вы хотите создать ИИ-агента в приложении .NET.
- ✓Когда нужен многошаговый рабочий процесс, который координирует несколько агентов или инструментов.
- ✓Когда вы хотите проверить существующее приложение с агентом на .NET по актуальным версиям фреймворка.
Ссылка на скилл
https://github.com/microsoft/agent-framework/blob/main/skills/agent-framework-builder-dotnet/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Можешь помочь добавить ИИ-агента с инструментом поиска в моё приложение на C# с помощью Microsoft Agent Framework?”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент изучает ваш проект, выбирает самый простой подходящий шаблон из агентов, рабочих процессов или других вариантов и читает только нужное руководство. Затем он вносит минимальное изменение и запускает целевую проверку.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Agent Framework builder for .NET
Use this skill as the entry point for .NET Agent Framework application work. Choose the smallest framework pattern that preserves the required behavior, load only the relevant references, and validate against current APIs instead of relying on remembered preview-era syntax.
Workflow
- Inspect the existing solution: target frameworks, SDK version, package management (central package management or
per-project), and installed
Microsoft.Agents.AI.*packages and versions. - Choose the simplest matching path from the table below.
- Resolve design questions only when they materially change the implementation.
- Read only the linked reference for the selected path.
- Implement the smallest coherent change and run the narrowest validation that exercises it.
Core abstractions
- A chat client is a
Microsoft.Extensions.AI.IChatClient. It sends messages and options to a model provider and returns chat responses or streaming updates. Agent Framework builds onMicrosoft.Extensions.AItypes such asChatMessage,AIFunction, andChatOptionsinstead of redefining them. - An agent derives from
AIAgentand exposesRunAsync(...)andRunStreamingAsync(...).ChatClientAgentis the standard implementation: it wraps anIChatClientwith instructions, tools, context providers, a chat history provider, and session handling. Provider packages usually create one through anAsAIAgent(...)extension method. - A harness agent is a
HarnessAgentfromMicrosoft.Agents.AI.Harness. It wraps aChatClientAgentwith an opinionated set of context providers and agent decorators; it is still anAIAgent. - A workflow (
Microsoft.Agents.AI.Workflows) coordinates explicit execution paths between executors and agents.AgentWorkflowBuilderprovides standard sequential, concurrent, handoff, group-chat, and Magentic patterns overAIAgentparticipants. A workflow can be exposed as anAIAgentwhen callers need the agent contract.
User interface options
- DevUI (
Microsoft.Agents.AI.DevUI) is a local development, testing, and debugging tool for interacting with agents and workflows. Never run or deploy DevUI as a production application host. - AG-UI is the application-facing protocol integration for connecting an agent or workflow to an AG-UI-compatible
frontend. Use
Microsoft.Agents.AI.Hosting.AGUI.AspNetCore(server) when the product needs streaming UI events, tool interactions, shared state, interrupts, or resume behavior.
Choose the build path
| Path | Choose it when | Details |
|---|---|---|
| Plain agent | One model-driven actor owns the task and tools, sessions, context, and middleware are sufficient. | Plain agents |
| Harness agent | The product needs an operating loop with todos, modes, memory, approvals, skills, optional file access, background agents, shell, compaction, or repeated execution. | Harness agents |
| Workflow or orchestration | Explicit stages, routing, parallelism, multiple participants, checkpointing, human input, or intermediate outputs are central to correctness. | Workflows |
| Declarative definition | YAML should be the source of truth for a supported agent or workflow. | Declarative definitions |
| Evaluation | Expected outputs, tool calls, failed runs, or quality regressions are the main concern. | Evaluation |
| Observability | The task is diagnosing or monitoring runtime behavior with traces, logs, and metrics. | Observability |
| Extensibility | The application needs a custom chat client, agent, context provider, chat history provider, or middleware. | Extensibility |
| Integration | The task is choosing or wiring a provider, protocol, memory store, tool service, UI, or platform extension. | Integrations |
| Hosting and deployment | Working Agent Framework code needs a process host, protocol endpoint, identity contract, or deployment shape. | Hosting and deployment |
Defaults
- Target a currently supported .NET release. The packages multi-target current and recent LTS .NET versions, and some also support .NET Standard 2.0 and .NET Framework 4.7.2. Prefer the latest supported SDK unless th
Частые вопросы
Нужно ли знать, какой шаблон выбрать?
Нет. Скилл помогает выбрать самый простой шаблон, который сохраняет нужное поведение.
Будет ли он использовать актуальные API?
Да. Скилл требует проверять актуальные API, а не полагаться на старые примеры предварительных версий.
Охватывает ли он размещение?
Да. Он охватывает размещение, а также инструменты, сессии, промежуточное ПО и оценку.
Подробности
Оригинальное описание автора
Use this skill when building, modifying, reviewing, evaluating, integrating, or hosting .NET (C#) applications with Microsoft Agent Framework. Use it for Agent Framework agents, harness agents, workflows, orchestrations, declarative definitions, tools, sessions, middleware, evaluation, observability, integrations, or hosting, even when the user has not yet chosen the correct framework pattern.
Популярность
- Звёзды на GitHub
- 14k
- Место в рейтинге
- #11139
- Лицензия
- MIT
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
Похожие скиллы
api-connector-builder
280kАгент создаёт новые подключения к API по существующему шаблону. Используйте, когда нужна ещё одна интеграция без нового способа делать то же самое.
api-design
280kПомогает агенту проектировать REST API по лучшим практикам: как API общаются, как показываются ошибки и как организовать данные.
backend-patterns
280kПомогает агенту с архитектурными паттернами серверной части и оптимизацией баз данных. Полезен при создании и проверке серверного кода.