Repository
ag2ai/build-with-ag2 agent skills
- skills
- 16
- GitHub stars
- 252
GitHub description: “Sample code and application showcases to get you going with AG2 (formally AutoGen)”
- Stars
- 252 (85 forks)
- Licence
- Apache-2.0
- Last push
- Sep 2026
- Created
- Nov 2024
- Homepage
- ag2ai.github.io/build-with-ag2/
Install all skills
npx skills add ag2ai/build-with-ag2Add --skill <name> for a single skill and -a <agent> to choose the agent (see the agent guides).
Skills in ag2ai/build-with-ag2, ranked
Ranked by score. Sort bymost stars,trending,newest,recently updated
| # | Skill | Repository | Stars | Used in | Tokens | Auto-check | Licence | Updated |
|---|---|---|---|---|---|---|---|---|
| 1 | Add a custom Python tool to an AG2 beta Agent using the @tool decorator. | ag2ai/ | 252 | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | 1 mo ago |
| 2 | Intercept the AG2 beta agent loop with BaseMiddleware — wrap full turns (onturn), each LLM call (onllmcall), each tool execution (ontoolexecution), or each human-input request (onhumaninput). | ag2ai/ | 252 | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | 1 mo ago |
| 3 | Wire AG2 beta's shipped tools into an Agent — both provider-native server-side tools (web search, web fetch, code execution, MCP, image generation, memory) and locally-executed common toolkits… | ag2ai/ | 252 | — | ~1.3k | Automated safety check: Pass | Apache-2.0 | 1 mo ago |
| 4 | Persist agent state across runs, shape what the LLM sees per turn, and cap history to fit a context window. | ag2ai/ | 252 | — | ~2.9k | Automated safety check: Pass | Apache-2.0 | 1 mo ago |
| 5 | Monitor an AG2 beta agent's stream — log events, detect repeated tool calls, track token spend, build trigger-driven observers, route observer alerts to the model, and halt on FATAL conditions. | ag2ai/ | 252 | — | ~2.5k | Automated safety check: Pass | Apache-2.0 | 1 mo ago |
| 6 | Build a minimal AG2 beta Agent end to end — pick a model provider, set a prompt, call agent.ask(), then continue the conversation with reply.ask() (multi-turn). | ag2ai/ | 252 | — | ~1.7k | Automated safety check: Notes | Apache-2.0 | 1 mo ago |
| 7 | Get a typed Python value back from an AG2 beta Agent instead of free text. | ag2ai/ | 252 | — | ~1.8k | Automated safety check: Pass | Apache-2.0 | 1 mo ago |
| 8 | Delegate work from one AG2 beta Agent to another. An agent skill from ag2ai/build-with-ag2. | ag2ai/ | 252 | — | ~2.3k | Automated safety check: Pass | Apache-2.0 | 1 mo ago |
| 9 | Expose an AG2 beta Agent over the AG-UI protocol so a frontend (CopilotKit, custom React/Next.js, or any AG-UI client) can stream responses, render tool calls, sync shared state, and surface… | ag2ai/ | 252 | — | ~1.7k | Automated safety check: Pass | Apache-2.0 | 1 mo ago |
| 10 | 10.Ag2 Hitl Pause an AG2 beta Agent mid-run to collect human input via context.input(), or gate a tool call with approvalrequired() middleware. | ag2ai/ | 252 | — | ~1.6k | Automated safety check: Pass | Apache-2.0 | 1 mo ago |
| 11 | Send images, audio, video, or documents into an AG2 beta Agent alongside text. | ag2ai/ | 252 | — | ~1.7k | Automated safety check: Pass | Apache-2.0 | 1 mo ago |
| 12 | Give an AG2 beta Agent the ability to run shell commands. An agent skill from ag2ai/build-with-ag2. | ag2ai/ | 252 | — | ~2k | Automated safety check: Notes | Apache-2.0 | 1 mo ago |
| 13 | Add OpenTelemetry traces to an AG2 beta Agent via TelemetryMiddleware (autogen.beta.middleware.builtin). | ag2ai/ | 252 | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | 1 mo ago |
| 14 | 14.Ag2 Testing Test AG2 beta agents and tools without hitting a real LLM provider. | ag2ai/ | 252 | — | ~1.3k | Automated safety check: Pass | Apache-2.0 | 1 mo ago |
| 15 | 15.Calculator Evaluate arithmetic expressions using a sandboxed Python script. | ag2ai/ | 252 | — | ~182 | Automated safety check: Pass | Apache-2.0 | 1 mo ago |
| 16 | 16.Ag2 Overview Map of AG2 beta capabilities and which sibling skill to reach for. | ag2ai/ | 252 | — | ~1.3k | Automated safety check: Notes | Apache-2.0 | 1 mo ago |
Questions, answered from the data.
What is the best skill in ag2ai/build-with-ag2?
Ag2 Add Custom Tool from ag2ai/build-with-ag2 ranks first of the 16 skills in ag2ai/build-with-ag2 listed here, with the highest score: its repository has 252 GitHub stars, its SKILL.md loads about 1.9k tokens and it passes the automated safety check with no findings. Next come Ag2 Middleware and Ag2 Use Builtin Tools.
Are the skills in ag2ai/build-with-ag2 official?
None yet. All 16 skills in ag2ai/build-with-ag2 listed here come from community repositories; a skill counts as official when the product's own GitHub organization publishes it.
How do I install all skills from ag2ai/build-with-ag2?
Run npx skills add ag2ai/build-with-ag2 in your project: the open-source skills CLI installs the repository's skills into your coding agent's skills folder. To install a single skill, open its page here for the exact command.
How are these skills ranked?
By Skill Navigator score, which combines the GitHub stars of the skill's repository (shared across that repo's skills and discounted for large collections), how many other GitHub owners carry a copy of the skill, and automated SKILL.md quality checks, minus penalties for safety-check warnings and for each further skill from the same repository. Skills that fail the safety check are not listed.