Agent skill

Autogen

by magnus919 in magnus919/agent-skills

Build conversational multi-agent systems with Microsoft AutoGen.

MITAuto-check passedAI & LLM Engineering

Install Autogen

skills CLI
$ npx skills add magnus919/agent-skills --skill autogen -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install magnus919/agent-skills autogen --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/magnus919/agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/autogen .claude/skills/autogen && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
autogen
GitHub stars
115
Token cost
~1.7k tokens
SKILL.md length
587 words
Files
17 (incl. scripts, references)
Skills in repo
131
Repo updated
First seen
Licence
MIT

At a glance

Build conversational multi-agent systems with Microsoft AutoGen.

  • Works in 6 steps: Conversations are the orchestration… → Keep human input and code execution… → GroupChat routes between agents.… → …
  • Building conversation-driven multi-agent systems
  • SKILL.md covers Core Paradigm, Core Principles, Where to Start and Quick Reference, plus 5 more sections
  • Runs Python scripts from its folder; calls python

What it does

Autogen is an agent skill from magnus919/agent-skills. Build conversational multi-agent systems with Microsoft AutoGen. AssistantAgent, UserProxyAgent, GroupChat, code execution, nested chats, cancellation tokens, tool integration, and MCP support. Use when building conversation-driven multi-agent systems or comparing agent frameworks. Do not use this skill for unrelated requests; route to the nearest named specialist.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 20 other files, including scripts and reference files (for example `README.md`, `evals/evals.json` and `references/agent-types.md`).

It sits in AI & LLM Engineering, covering Building AI agents. It works with Model Context Protocol and Docker. The repository describes itself as: Curated collection of AI agent skills for Hermes and other agent frameworks. The licence is MIT.

When your agent uses it

  • Building conversation-driven multi-agent systems
  • Comparing agent frameworks
  • Unrelated requests
  • Route to the nearest named specialist

Example prompts

  • “/autogen”

Requirements

  • Python 3
  • Docker

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Conversations are the orchestration primitive. Agents send messages, receive replies, and the conversation structure determines the…
  2. Keep human input and code execution separate. Use UserProxyAgent for a human participant; use CodeExecutorAgent with a CodeExecutor for…
  3. GroupChat routes between agents. RoundRobinGroupChat cycles fixed-order. SelectorGroupChat uses an LLM to pick the next speaker.
  4. Nested chats delegate work. An agent can spawn a sub-conversation between specialist agents and return the result.
  5. Docker is the safe code execution mode. Local code execution (LocalCommandLineCodeExecutor) runs LLM-generated code on your machine — use…
  6. Cancellation tokens stop runaway agents. Always pass CancellationToken for long-running tasks.

What it can do on your machine

Read from SKILL.md and the folder at commit 22b4723. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Autogen loads about 1.7k tokens when it runs, and up to ~6.3k if it reads all its reference files. Until then it costs about 94 tokens; SKILL.md has 587 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~94
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from magnus919/agent-skills at commit 22b4723, republished under its MIT licence (© magnus919). 587 words, ~1,658 tokens.

Download SKILL.mdSave it as .claude/skills/autogen/SKILL.md (or your agent's skills folder). This skill also uses 16 other files; get the full folder from GitHub.
name
autogen
description
Build conversational multi-agent systems with Microsoft AutoGen. AssistantAgent, UserProxyAgent, GroupChat, code execution, nested chats, cancellation tokens, tool integration, and MCP support. Use when building conversation-driven multi-agent systems or comparing agent frameworks. Do not use this skill for unrelated requests; route to the nearest named specialist.
license
MIT
metadata.author
Magnus Hedemark
metadata.version
1.2.0
metadata.source
https://microsoft.github.io/autogen

AutoGen Expert Skill

This skill targets the AutoGen AgentChat 0.7.5 API on Python 3.10+. AutoGen (by Microsoft Research) is a framework for conversational multi-agent AI. Unlike LangGraph's explicit graph topology or CrewAI's role-based crews, AutoGen uses agent-to-agent conversations as the orchestration primitive. Agents communicate through structured chat, with built-in patterns for group chat routing, human input, and code execution.

Core Paradigm

python
from autogen_agentchat.agents import AssistantAgent
from autogen_agentchat.ui import Console
from autogen_ext.models.openai import OpenAIChatCompletionClient

model_client = OpenAIChatCompletionClient(model="gpt-4o-mini")

assistant = AssistantAgent(
    name="assistant",
    system_message="You are a helpful assistant.",
    model_client=model_client,
)

Role split in AgentChat 0.7.5: UserProxyAgent represents a human and obtains replies through input_func. CodeExecutorAgent executes code blocks using a CodeExecutor. They are separate agents; neither accepts the legacy human_input_mode option.

Core Principles

  1. Conversations are the orchestration primitive. Agents send messages, receive replies, and the conversation structure determines the workflow.
  2. Keep human input and code execution separate. Use UserProxyAgent for a human participant; use CodeExecutorAgent with a CodeExecutor for code.
  3. GroupChat routes between agents. RoundRobinGroupChat cycles fixed-order. SelectorGroupChat uses an LLM to pick the next speaker.
  4. Nested chats delegate work. An agent can spawn a sub-conversation between specialist agents and return the result.
  5. Docker is the safe code execution mode. Local code execution (LocalCommandLineCodeExecutor) runs LLM-generated code on your machine — use Docker in production.
  6. Cancellation tokens stop runaway agents. Always pass CancellationToken for long-running tasks.

Where to Start

You already have...Start here
Nothing — exploring AutoGenCreate an assistant chat or a team with a human UserProxyAgent
Agents that need to coordinateBuild a GroupChat with multiple agents
Agents that need code executionConfigure Docker code executor
A complex multi-step taskUse nested chats for sub-tasks

Quick Reference

TaskApproachReference
Human-in-the-loop chatAssistantAgent + UserProxyAgentreferences/agent-types.md
Multi-agent groupGroupChat with RoundRobinGroupChatreferences/group-chat.md
Code executionDockerCommandLineCodeExecutorreferences/code-execution.md
Tool integrationregister_function() or @toolreferences/tool-integration.md
Nested chatAgentTool or a team run from a toolreferences/conversation-patterns.md
CancellationCancellationTokenreferences/conversation-patterns.md
MCP toolsMcpWorkbenchreferences/tool-integration.md

Framework Routing Guide

ScenarioReach forWhy
Conversation-driven multi-agentAutoGenNative agent-to-agent chat as orchestration
Role-based multi-agent teamsCrewAIRole/Goal/Backstory is the native abstraction
State-machine multi-agentLangGraphGraph topology, subgraphs, human-in-the-loop
Chain/agent compositionLangChainLCEL pipe operator for general chains
Show full SKILL.md (250 more words)Show less

Reference Files

ReferenceLoad whenFile
Agent TypesAssistantAgent, UserProxyAgentreferences/agent-types.md
Conversation PatternsSend/receive, nested chats, cancellationreferences/conversation-patterns.md
Group ChatRoundRobin, Selector, MagenticOnereferences/group-chat.md
Code ExecutionDocker, local, cancellation tokensreferences/code-execution.md
Tool Integrationregister_function, @tool, MCP integrationreferences/tool-integration.md
v0.4 Migrationv0.2->v0.4 migration, AgentTool, streaming, terminationreferences/v04-migration.md
Validation AuditResearch validation of all API claimsreferences/validation-audit.md
FAQ & TroubleshootingCommon errors and fixesreferences/faq-and-troubleshooting.md

Install the exact package versions used by the templates with python -m pip install -r requirements.txt from this skill directory. The code-execution example uses Docker and requires a working Docker daemon.

Templates

TemplateWhen to useFile
Two-Agent ChatAssistant + human inputtemplates/two-agent-chat.py
Group ChatMulti-agent team with speaker routingtemplates/group-chat.py
Code Execution AgentAssistant + Docker-backed code executortemplates/code-execution.py

Troubleshooting

SymptomLikely causeFixReference
Agent loops foreverNo team termination conditionAdd a TerminationCondition such as MaxMessageTerminationreferences/conversation-patterns.md
Code execution failsDocker not runningStart Docker or use LocalCommandLineCodeExecutorreferences/code-execution.md
Nested chat never returnsCancellation token not passedPass CancellationToken with timeoutreferences/conversation-patterns.md
v0.2 code doesn't workv0.4 API changedFollow migration guidereferences/faq-and-troubleshooting.md
GroupChat speaker selection loopsSelectorGroupChat with no clear nextUse RoundRobinGroupChat for fixed orderreferences/group-chat.md
UserProxyAgent waits for inputIt is a human participant and its input_func is waitingSupply an appropriate input function or use an automated agentreferences/agent-types.md

When NOT to Use AutoGen

  • Simple single-agent task — overkill, use direct API call
  • Need fine-grained graph control — use LangGraph
  • Need role-based teams with fixed processes — use CrewAI
  • Need chain composition — use LangChain LCEL

© magnus919, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 16 other files (scripts, references) in autogen of magnus919/agent-skills.

  • SKILL.md
  • README.md
  • evals/evals.json
  • references/agent-types.md
  • references/code-execution.md
  • references/conversation-patterns.md
  • references/faq-and-troubleshooting.md
  • references/group-chat.md
  • references/tool-integration.md
  • references/v04-migration.md
  • references/validation-audit.md
  • requirements.txt
  • scripts/check-setup.py
  • scripts/test_templates.py
  • templates/code-execution.py
  • templates/group-chat.py
  • templates/two-agent-chat.py

Open the folder on GitHubat commit 22b4723

Compare with similar skills

Autogen next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Autogen compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Autogen this skillmagnus919/agent-skills115—~1.7kAutomated safety check: PassMIT
Codebase Managementgiancarloerra/SocratiCode3.3k1 repos~1.8kAutomated safety check: PassAGPL-3.0
Agent Squad Python Guide2FastLabs/agent-squad7.8k—~4.7kAutomated safety check: PassApache-2.0
SynalinksSynaLinks/synalinks-skills907—~4.8kAutomated safety check: PassApache-2.0
AgentSquad for Swift2FastLabs/agent-squad7.8k—~3.5kAutomated safety check: PassApache-2.0
Agent Squad for TypeScript2FastLabs/agent-squad7.8k—~4.3kAutomated safety check: PassApache-2.0

Similar skills

  • Codebase Management

    giancarloerra/SocratiCode

    Set up, index, and manage SocratiCode codebase indexing. An agent skill from giancarloerra/SocratiCode.

    3.3k GitHub starsUsed in 1 repo~1.8k tokens
    AI & LLM EngineeringAuto-check passed
  • Agent Squad Python Guide

    2FastLabs/agent-squad

    Map of the agent-squad Python framework for async multi-agent orchestration: which agent, classifier, storage and tool provider to pick, and the pitfalls to avoid.

    7.8k GitHub stars~4.7k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed
  • Synalinks

    SynaLinks/synalinks-skills

    A skill your agent uses for anything involving the Synalinks neuro-symbolic LM framework (Keras-inspired): DataModel/Field/Input, JSON operators (+ & | ^ ~), synalinks.ops…

    907 GitHub stars~4.8k tokensUpdated 12 days ago
    AI & LLM EngineeringAuto-check passed
  • AgentSquad for Swift

    2FastLabs/agent-squad

    Guides building on-device multi-agent apps in Swift with the AgentSquad framework: which agent, orchestrator, classifier, storage or voice type fits each situation.

    7.8k GitHub stars~3.5k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed
  • Agent Squad for TypeScript

    2FastLabs/agent-squad

    Guide to building Node.js and TypeScript apps on the agent-squad package: orchestrator, agent types, classifier routing, storage, retrievers and MCP tools.

    7.8k GitHub stars~4.3k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed
  • Workflow AI Coding

    w8123/EnterpriseAgentFramework

    Edit, validate, debug, publish, and inspect ReachAI Workflow drafts through the Workflow AI Coding REST API.

    865 GitHub stars~3.7k tokensUpdated 3 days ago
    AI & LLM EngineeringAuto-check passed

More from magnus919/agent-skills

All 131 skills in this repo
  • Artifact Pyramids

    magnus919/agent-skills

    Organize durable agent research outputs as summaries, analysis, and evidence dossiers.

    119 GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • Ascii City Engine

    magnus919/agent-skills

    Build portable, first-person colored ASCII city engines and small GIS-derived city packs.

    119 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Color Management

    magnus919/agent-skills

    Manage color workflows with ICC profiles, working spaces, gamut mapping, and color science.

    119 GitHub stars~2.6k tokensUpdated today
    Auto-check: notes
  • Data Scientist

    magnus919/agent-skills

    A skill your agent uses for PhD-level expertise in data science, statistics, and machine learning: rigorous statistical analysis, experimental design, causal inference, advanced modeling, research…

    119 GitHub stars~4.1k tokensUpdated today
    Auto-check passed
  • Docker Compose

    magnus919/agent-skills

    Use Docker Compose to define, run, debug, and harden multi-container applications.

    115 GitHub stars~2k tokensUpdated yesterday
    Auto-check: notes
  • Fpga Development

    magnus919/agent-skills

    Design, review, simulate, and verify FPGA logic using explicit RTL contracts, clock and reset models, CDC analysis, timing constraints, and reproducible implementation evidence.

    115 GitHub stars~2.7k tokensUpdated yesterday
    Auto-check passed

Questions about Autogen

What does Autogen do?

Build conversational multi-agent systems with Microsoft AutoGen. Autogen is an agent skill from magnus919/agent-skills. Build conversational multi-agent systems with Microsoft AutoGen.

When should I use Autogen?

Autogen fits situations like: building conversation-driven multi-agent systems; comparing agent frameworks; unrelated requests; route to the nearest named specialist.

How do I install Autogen in Claude Code?

Run `npx skills add magnus919/agent-skills --skill autogen -a claude-code`. Or copy the skill folder (autogen in magnus919/agent-skills) into .claude/skills/autogen in your project. Claude Code loads it when a task matches its description.

How do I install Autogen in Codex?

Run `npx skills add magnus919/agent-skills --skill autogen -a codex`. Or copy the skill folder (autogen in magnus919/agent-skills) into .agents/skills/autogen in your project. Codex loads it when a task matches its description.

Can I use Autogen in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add magnus919/agent-skills --skill autogen -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/autogen, .gemini/skills/autogen, .github/skills/autogen and .opencode/skills/autogen in your project.

What does Autogen need to run?

Going by SKILL.md and its folder, Autogen needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3; Docker.

Does Autogen access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Autogen safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Autogen use?

Autogen is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Autogen use?

About 1.7k tokens (SKILL.md is roughly 6.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.6k tokens, read only when the agent opens those files.

What are the alternatives to Autogen?

Skills that share tags, products or a category with Autogen: Codebase Management (giancarloerra/SocratiCode, 3.3k stars), Agent Squad Python Guide (2FastLabs/agent-squad, 7.8k stars), Synalinks (SynaLinks/synalinks-skills, 907 stars) and AgentSquad for Swift (2FastLabs/agent-squad, 7.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Autogen?

magnus919 (a GitHub user) maintains it in magnus919/agent-skills, which has 115 GitHub stars. The repository holds 131 skills in this directory. The repository was last updated on October 10, 2026.

Source: magnus919/agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.