[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EE9BQ6VM8GNB3ZBJ79P7JW":3,"skill-same:01M6EE9BQ6VM8GNB3ZBJ79P7JW":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M6EE9BQ6VM8GNB3ZBJ79P7JW","ag2",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fag2\u002FSKILL.md",[],[5],"2026-11-10 10:12:30",false,"# AG2 (AutoGen) — Multi-Agent Conversation Framework\n\nYou are an expert in AG2 (formerly AutoGen), the open-source multi-agent conversation framework. You help developers build systems where multiple AI agents collaborate through structured conversations — with tool use, human-in-the-loop, code execution, group chat orchestration, and nested conversations — for complex tasks like software development, research, and data analysis.\n\n## Core Capabilities\n\n### Two-Agent Conversation\n\n```python\nfrom autogen import ConversableAgent, UserProxyAgent\n\n# AI assistant agent\nassistant = ConversableAgent(\n    name=\"Engineer\",\n    system_message=\"\"\"You are a senior software engineer.\n    Write clean, tested Python code. Explain your design decisions.\"\"\",\n    llm_config={\"model\": \"gpt-4o\", \"temperature\": 0.2},\n)\n\n# Human proxy (can auto-approve or require human input)\nuser_proxy = UserProxyAgent(\n    name=\"User\",\n    human_input_mode=\"NEVER\",             # NEVER \u002F ALWAYS \u002F TERMINATE\n    max_consecutive_auto_reply=10,\n    is_termination_msg=lambda msg: \"TERMINATE\" in msg.get(\"content\", \"\"),\n    code_execution_config={\n        \"work_dir\": \"workspace\",\n        \"use_docker\": True,               # Safe code execution in Docker\n    },\n)\n\n# Start conversation — agents talk until task is complete\nresult = user_proxy.initiate_chat(\n    assistant,\n    message=\"Create a FastAPI app with user authentication using JWT. Include tests.\",\n)\n# Engineer writes code → User proxy executes → Engineer reviews output → iterates\n```\n\n### Group Chat (Multiple Agents)\n\n```python\nfrom autogen import GroupChat, GroupChatManager\n\n# Specialist agents\narchitect = ConversableAgent(\n    name=\"Architect\",\n    system_message=\"You design system architecture. Focus on scalability, reliability, and clean interfaces.\",\n    llm_config={\"model\": \"gpt-4o\"},\n)\n\ndeveloper = ConversableAgent(\n    name=\"Developer\",\n    system_message=\"You implement features based on the architect's design. Write production-quality code.\",\n    llm_config={\"model\": \"gpt-4o\"},\n)\n\nreviewer = ConversableAgent(\n    name=\"Reviewer\",\n    system_message=\"You review code for bugs, security issues, and best practices. Be thorough but constructive.\",\n    llm_config={\"model\": \"gpt-4o\"},\n)\n\ntester = ConversableAgent(\n    name=\"Tester\",\n    system_message=\"You write comprehensive tests. Cover edge cases and integration scenarios.\",\n    llm_config={\"model\": \"gpt-4o\"},\n)\n\n# Group chat with round-robin or AI-selected speaker\ngroup_chat = GroupChat(\n    agents=[user_proxy, architect, developer, reviewer, tester],\n    messages=[],\n    max_round=20,\n    speaker_selection_method=\"auto\",      # LLM picks next speaker based on context\n)\n\nmanager = GroupChatManager(groupchat=group_chat, llm_config={\"model\": \"gpt-4o\"})\n\nuser_proxy.initiate_chat(\n    manager,\n    message=\"Build a real-time notification service with WebSocket support, Redis pub\u002Fsub, and rate limiting.\",\n)\n# Architect designs → Developer implements → Reviewer catches issues → Developer fixes → Tester adds tests\n```\n\n### Tool Use\n\n```python\nfrom autogen import register_function\n\ndef search_codebase(query: str, file_pattern: str = \"*.py\") -> str:\n    \"\"\"Search the codebase for specific patterns.\n\n    Args:\n        query: Search query (regex supported)\n        file_pattern: File glob pattern to search in\n    \"\"\"\n    import subprocess\n    result = subprocess.run([\"grep\", \"-rn\", query, \"--include\", file_pattern, \".\"],\n                           capture_output=True, text=True)\n    return result.stdout[:2000]\n\ndef run_tests(test_path: str = \"tests\u002F\") -> str:\n    \"\"\"Run pytest on the specified test directory.\n\n    Args:\n        test_path: Path to test files or directory\n    \"\"\"\n    import subprocess\n    result = subprocess.run([\"python\", \"-m\", \"pytest\", test_path, \"-v\", \"--tb=short\"],\n                           capture_output=True, text=True)\n    return f\"STDOUT:\\n{result.stdout}\\nSTDERR:\\n{result.stderr}\"\n\n# Register tools for specific agents\nregister_function(search_codebase, caller=developer, executor=user_proxy,\n    description=\"Search the codebase for code patterns\")\nregister_function(run_tests, caller=tester, executor=user_proxy,\n    description=\"Run tests to verify code correctness\")\n```\n\n## Installation\n\n```bash\npip install ag2                           # Or: pip install pyautogen\n```\n\n## Best Practices\n\n1. **Clear system messages** — Define each agent's role precisely; vague instructions lead to unfocused conversations\n2. **Speaker selection** — Use `auto` for LLM-selected speakers in group chat; `round_robin` for predictable flow\n3. **Termination conditions** — Set `is_termination_msg` and `max_consecutive_auto_reply`; prevent infinite loops\n4. **Docker for code execution** — Enable `use_docker: True` for safe code execution; agents can run untrusted code\n5. **Human-in-the-loop** — Use `TERMINATE` mode for approval on critical actions; `NEVER` for fully autonomous\n6. **Tool registration** — Register tools with specific caller\u002Fexecutor pairs; not every agent needs every tool\n7. **Nested chats** — Use nested conversations for sub-tasks; agent can spawn a side conversation and return results\n8. **Cost control** — Set `max_round` and `max_consecutive_auto_reply`; monitor token usage in group chats\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Fag2",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill ag2",{"tool":37,"command":38},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill ag2",{"tool":40,"command":41},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill ag2","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fag2\u002FSKILL.md",true,[],[46,55,64,73,79,85],{"skillNo":47,"name":48,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[52,53,54],"model","model hierarchy","model hierarchy skill",{"skillNo":56,"name":57,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[61,62,63],"MCP","zoom","zoom mcp",{"skillNo":65,"name":66,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[70,71,72,62],"sdk","zoom apps sdk","apps",{"skillNo":74,"name":75,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[75],{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[81],{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[87]]