agent-framework
Create AI agents and workflows using Microsoft Agent Framework SDK. Supports single-agent and multi-agent workflow patterns. USE FOR: create agent, build agent, scaffold agent, new agent, agent framework, workflow pattern, multi-agent, MCP tools, create workflow. DO NOT USE FOR: deploying agents (use deploy), evaluating agents (use agent/evaluate), Azure AI Foundry agents without Agent Framework SDK.
Best use case
agent-framework is best used when you need a repeatable AI agent workflow instead of a one-off prompt. It is especially useful for teams working in multi. Create AI agents and workflows using Microsoft Agent Framework SDK. Supports single-agent and multi-agent workflow patterns. USE FOR: create agent, build agent, scaffold agent, new agent, agent framework, workflow pattern, multi-agent, MCP tools, create workflow. DO NOT USE FOR: deploying agents (use deploy), evaluating agents (use agent/evaluate), Azure AI Foundry agents without Agent Framework SDK.
Create AI agents and workflows using Microsoft Agent Framework SDK. Supports single-agent and multi-agent workflow patterns. USE FOR: create agent, build agent, scaffold agent, new agent, agent framework, workflow pattern, multi-agent, MCP tools, create workflow. DO NOT USE FOR: deploying agents (use deploy), evaluating agents (use agent/evaluate), Azure AI Foundry agents without Agent Framework SDK.
Users should expect a more consistent workflow output, faster repeated execution, and less time spent rewriting prompts from scratch.
Practical example
Example input
Use the "agent-framework" skill to help with this workflow task. Context: Create AI agents and workflows using Microsoft Agent Framework SDK. Supports single-agent and multi-agent workflow patterns. USE FOR: create agent, build agent, scaffold agent, new agent, agent framework, workflow pattern, multi-agent, MCP tools, create workflow. DO NOT USE FOR: deploying agents (use deploy), evaluating agents (use agent/evaluate), Azure AI Foundry agents without Agent Framework SDK.
Example output
A structured workflow result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.
When to use this skill
- Use this skill when you want a reusable workflow rather than writing the same prompt again and again.
When not to use this skill
- Do not use this when you only need a one-off answer and do not need a reusable workflow.
- Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/agent-framework/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How agent-framework Compares
| Feature / Agent | agent-framework | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Create AI agents and workflows using Microsoft Agent Framework SDK. Supports single-agent and multi-agent workflow patterns. USE FOR: create agent, build agent, scaffold agent, new agent, agent framework, workflow pattern, multi-agent, MCP tools, create workflow. DO NOT USE FOR: deploying agents (use deploy), evaluating agents (use agent/evaluate), Azure AI Foundry agents without Agent Framework SDK.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
SKILL.md Source
# Create Agent with Microsoft Agent Framework Build AI agents, agentic apps, and multi-agent workflows using Microsoft Agent Framework SDK. ## Quick Reference | Property | Value | |----------|-------| | **SDK** | Microsoft Agent Framework (Python) | | **Patterns** | Single Agent, Multi-Agent Workflow | | **Server** | Azure AI Agent Server SDK (HTTP) | | **Debug** | AI Toolkit Agent Inspector + VSCode | | **Best For** | Enterprise agents with type safety, checkpointing, orchestration | ## When to Use This Skill Use when the user wants to: - **Create** a new AI agent or agentic application - **Scaffold** an agent with tools (MCP, function calling) - **Build** multi-agent workflows with orchestration patterns - **Add** HTTP server mode to an existing agent - **Configure** F5/debug support for VSCode ## Defaults - **Language**: Python - **SDK**: Microsoft Agent Framework (pin version `1.0.0b260107`) - **Server**: HTTP via Azure AI Agent Server SDK - **Environment**: Virtual environment (create or detect existing) ## References | Topic | File | Description | |-------|------|-------------| | Server Pattern | [references/agent-as-server.md](references/agent-as-server.md) | HTTP server wrapping (production) | | Debug Setup | [references/debug-setup.md](references/debug-setup.md) | VS Code configs for Agent Inspector | | Agent Samples | [references/agent-samples.md](references/agent-samples.md) | Single agent, tools, MCP, threads | | Workflow Basics | [references/workflow-basics.md](references/workflow-basics.md) | Executor types, handler signatures, edges, WorkflowBuilder — start here for any workflow | | Workflow Agents | [references/workflow-agents.md](references/workflow-agents.md) | Agents as executor nodes, linear pipeline, run_stream event consumption | | Workflow Foundry | [references/workflow-foundry.md](references/workflow-foundry.md) | Foundry agents with bidirectional edges, loop control, register_executor factories | > 💡 **Tip:** For advanced patterns (Reflection, Switch-Case, Fan-out/Fan-in, Loop, Human-in-Loop), search `microsoft/agent-framework` on GitHub. ## MCP Tools This skill delegates to `microsoft-foundry` MCP tools for model and project operations: | Tool | Purpose | |------|---------| | `foundry_models_list` | Browse model catalog for selection | | `foundry_models_deployments_list` | List deployed models for selection | | `foundry_resource_get` | Get project endpoint | ## Creation Workflow 1. Gather context (read agent-as-server.md + debug-setup.md + code samples) 2. Select model & configure environment 3. Implement agent/workflow code + HTTP server mode + `.vscode/` configs 4. Install dependencies (venv + requirements.txt) 5. Verify startup (Run-Fix loop) 6. Documentation ### Step 1: Gather Context Read reference files based on user's request: **Always read these references:** - Server pattern: **agent-as-server.md** (required — HTTP server is the default) - Debug setup: **debug-setup.md** (required — always generate `.vscode/` configs) **Read the relevant code sample:** - Code samples: agent-samples.md, workflow-basics.md, workflow-agents.md, or workflow-foundry.md **Model Selection**: Use `microsoft-foundry` skill's model catalog to help user select and deploy a model. **Recommended**: Search `microsoft/agent-framework` on GitHub for advanced patterns. ### Step 2: Select Model & Configure Environment *Decide on the model BEFORE coding.* If user hasn't specified a model, use `microsoft-foundry` skill to list deployed models or help deploy one. **ALWAYS create/update `.env` file**: ```bash FOUNDRY_PROJECT_ENDPOINT=<project-endpoint> FOUNDRY_MODEL_DEPLOYMENT_NAME=<model-deployment-name> ``` - **Standard flow**: Populate with real values from user's Foundry project - **Deferred Config**: Use placeholders, remind user to update before running ### Step 3: Implement Code **All three are required by default:** 1. **Agent/Workflow code**: Use gathered context to structure the agent or workflow 2. **HTTP Server mode**: Wrap with Agent-as-Server pattern from `agent-as-server.md` — this is the default entry point 3. **Debug configs**: Generate `.vscode/launch.json` and `.vscode/tasks.json` using templates from `debug-setup.md` > ⚠️ **Warning:** Only skip server mode or debug configs if the user explicitly requests a "minimal" or "no server" setup. ### Step 4: Install Dependencies 1. Generate/update `requirements.txt` ```text # pin version to avoid breaking changes # agent framework agent-framework-azure-ai==1.0.0b260107 agent-framework-core==1.0.0b260107 # agent server (for HTTP server mode) azure-ai-agentserver-core==1.0.0b10 azure-ai-agentserver-agentframework==1.0.0b10 # debugging support debugpy agent-dev-cli ``` 2. Use a virtual environment to avoid polluting the global Python installation > ⚠️ **Warning:** Never use bare `python` or `pip` — always use the venv-activated versions or full paths (e.g., `.venv/bin/pip`). ### Step 5: Verify Startup (Run-Fix Loop) Enter a run-fix loop until no startup errors: 1. Run the main entrypoint using the venv's Python (e.g., `.venv/Scripts/python main.py` on Windows, `.venv/bin/python main.py` on macOS/Linux) 2. **If startup fails**: Fix error → Rerun 3. **If startup succeeds**: Stop server immediately **Guardrails**: - ✅ Perform real run to catch startup errors - ✅ Cleanup after verification (stop HTTP server) - ✅ Ignore environment/auth/connection/timeout errors - ❌ Don't wait for user input - ❌ Don't create separate test scripts - ❌ Don't mock configuration ### Step 6: Documentation Create/update `README.md` with setup instructions and usage examples. ## Error Handling | Error | Cause | Resolution | |-------|-------|------------| | `ModuleNotFoundError` | Missing SDK | Run `pip install agent-framework-azure-ai==1.0.0b260107` in venv | | `AgentRunResponseUpdate` not found | Wrong SDK version | Pin to `1.0.0b260107` (breaking rename in newer versions) | | Agent name validation error | Invalid characters | Use alphanumeric + hyphens, start/end with alphanumeric, max 63 chars | | Async credential error | Wrong import | Use `azure.identity.aio.DefaultAzureCredential` (not `azure.identity`) |
Related Skills
startup-metrics-framework
This skill should be used when the user asks about "key startup metrics", "SaaS metrics", "CAC and LTV", "unit economics", "burn multiple", "rule of 40", "marketplace metrics", or requests guidance on tracking and optimizing business performance metrics.
metasploit-framework
This skill should be used when the user asks to "use Metasploit for penetration testing", "exploit vulnerabilities with msfconsole", "create payloads with msfvenom", "perform post-exploitation", "use auxiliary modules for scanning", or "develop custom exploits". It provides comprehensive guidance for leveraging the Metasploit Framework in security assessments.
framework-migration-legacy-modernize
Orchestrate a comprehensive legacy system modernization using the strangler fig pattern, enabling gradual replacement of outdated components while maintaining continuous business operations through ex
framework-migration-deps-upgrade
You are a dependency management expert specializing in safe, incremental upgrades of project dependencies. Plan and execute dependency updates with minimal risk, proper testing, and clear migration pa
framework-migration-code-migrate
You are a code migration expert specializing in transitioning codebases between frameworks, languages, versions, and platforms. Generate comprehensive migration plans, automated migration scripts, and
data-quality-frameworks
Implement data quality validation with Great Expectations, dbt tests, and data contracts. Use when building data quality pipelines, implementing validation rules, or establishing data contracts.
backtesting-frameworks
Build robust backtesting systems for trading strategies with proper handling of look-ahead bias, survivorship bias, and transaction costs. Use when developing trading algorithms, validating strategies, or building backtesting infrastructure.
agent-framework-azure-ai-py
Build Azure AI Foundry agents using the Microsoft Agent Framework Python SDK (agent-framework-azure-ai). Use when creating persistent agents with AzureAIAgentsProvider, using hosted tools (code interpreter, file search, web search), integrating MCP servers, managing conversation threads, or implementing streaming responses. Covers function tools, structured outputs, and multi-tool agents.
react-server-components-framework
Design and implement React Server Components with Next.js 15 App Router. Master server-first architecture, streaming SSR, Server Actions, and modern data fetching patterns for 2025+ frontend development.
api-design-framework
Use this skill when designing REST, GraphQL, or gRPC APIs. Provides comprehensive API design patterns, versioning strategies, error handling conventions, authentication approaches, and OpenAPI/AsyncAPI templates. Ensures consistent, well-documented, and developer-friendly APIs across all backend services.
tool-selection-framework
Design systematic decision frameworks for selecting appropriate AI tools (Claude Code vs Gemini CLI) based on context requirements, codebase size, reasoning depth needs, and task complexity. Use this skill when starting projects with unclear tool requirements, optimizing context-constrained workflows, or designing multi-phase strategies that leverage multiple tools' strengths. This skill helps match tool capabilities to task characteristics, preventing wasted context and ensuring optimal resource allocation.
planning-framework
Apply structured thinking before coding. Use when: starting new features, making architectural decisions, refactoring large components, or evaluating implementation approaches. Includes Musk's 5-step algorithm and ICE scoring framework.