agent-framework-builder-dotnet
O que ela faz
Esta skill orienta a criação de aplicações .NET (C#) com o Microsoft Agent Framework, incluindo agentes, fluxos de trabalho, ferramentas e hospedagem. Ela é para desenvolvedores que querem um assistente de IA dentro de um app em C#.
Quando usar
- ✓Quando você quiser criar um agente de IA em uma aplicação .NET.
- ✓Quando precisar de um fluxo de trabalho com várias etapas que coordene vários agentes ou ferramentas.
- ✓Quando quiser verificar um app de agente .NET existente contra as versões atuais do framework.
Link da skill
https://github.com/microsoft/agent-framework/blob/main/skills/agent-framework-builder-dotnet/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Você pode me ajudar a adicionar um agente de IA com uma ferramenta de busca ao meu app em C# usando o Microsoft Agent Framework?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente inspeciona o seu projeto, escolhe o padrão mais simples entre agentes, fluxos de trabalho ou outras opções e lê apenas o guia de que precisa. Depois faz a menor mudança possível e roda uma verificação focada.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Preciso saber qual padrão usar?
Não. A skill ajuda a escolher o padrão mais simples que mantém o comportamento que você precisa.
Ela vai usar APIs atuais?
Sim. A skill manda o agente verificar as APIs atuais, em vez de confiar em exemplos antigos da fase de prévia.
Ela cobre hospedagem?
Sim. Ela cobre hospedagem, além de ferramentas, sessões, middleware e avaliação.
Detalhes
Descrição original do autor
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.
Popularidade
- Estrelas no GitHub
- 14 mil
- Posição no ranking
- #11139
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
Skills parecidas
api-connector-builder
280 milFaz seu agente construir novas conexões com APIs seguindo o padrão já existente. Use quando precisar adicionar mais uma integração sem criar um novo jeito de fazer.
api-design
280 milAjuda seu agente a projetar APIs REST seguindo as melhores práticas. É útil para definir como as APIs se comunicam, como os erros são mostrados e como organizar os dados.
backend-patterns
280 milAjuda seu agente com padrões de arquitetura do lado do servidor e otimização de banco de dados. É útil para construir ou revisar o código que roda no servidor.