[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6QE8DH0SNXHJTKVG56SY643":3,"skill-same:01M6QE8DH0SNXHJTKVG56SY643":102},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":55,"commitSha":56,"skillDirectory":57,"forksCount":14,"repositoryHtmlUrl":58,"repositoryHomepageUrl":59,"ownerHtmlUrl":60,"ownerBlogUrl":61,"ownerDescription":62,"updatedAt":63,"install":64,"resources":77},"01M6QE8DH0SNXHJTKVG56SY643","crewai-multi-agent",null,"Multi-agent orchestration framework for autonomous AI collaboration. Use when building teams of specialized agents working together on complex tasks, when you need role-based agent collaboration with memory, or for production workflows requiring sequential\u002Fhierarchical execution. Built without LangChain dependencies for lean, fast execution.","Tashima-Tarsh\u002FDisha6.6","Tashima-Tarsh","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F269906498?v=4","01M6PBH98X03XERH0HFT4PFB1P","NITISH KUMAR","01M6PBH9DA0M6KM3Z12P848F0K",0,"MIT","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-crewai-multi-agent\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"crewai multi agent","crewai","multi","multi agent","autonomous","for","you","Role-Based","agent orchestration","langchain dependencies","use","lean","specialized","langchain","multi-agent","orchestration framework","applications","collaboration","workflows","memory","2026-11-10 10:12:30",false,"---\nname: crewai-multi-agent\ndescription: Multi-agent orchestration framework for autonomous AI collaboration. Use when building teams of specialized agents working together on complex tasks, when you need role-based agent collaboration with memory, or for production workflows requiring sequential\u002Fhierarchical execution. Built without LangChain dependencies for lean, fast execution.\nlicense: MIT\nmetadata:\n  version: 1.0.0\n  category: llm-applications\n  maintainer: Kalaris Labs\n  tags: Agents, CrewAI, Multi-Agent, Orchestration, Collaboration, Role-Based, Autonomous, Workflows, Memory, Production\n  dependencies: crewai>=1.2.0, crewai-tools>=1.2.0\n---\n\n# CrewAI - Multi-Agent Orchestration Framework\n\nBuild teams of autonomous AI agents that collaborate to solve complex tasks.\n\n## When to use CrewAI\n\n**Use CrewAI when:**\n- Building multi-agent systems with specialized roles\n- Need autonomous collaboration between agents\n- Want role-based task delegation (researcher, writer, analyst)\n- Require sequential or hierarchical process execution\n- Building production workflows with memory and observability\n- Need simpler setup than LangChain\u002FLangGraph\n\n**Key features:**\n- **Standalone**: No LangChain dependencies, lean footprint\n- **Role-based**: Agents have roles, goals, and backstories\n- **Dual paradigm**: Crews (autonomous) + Flows (event-driven)\n- **50+ tools**: Web scraping, search, databases, AI services\n- **Memory**: Short-term, long-term, and entity memory\n- **Production-ready**: Tracing, enterprise features\n\n**Use alternatives instead:**\n- **LangChain**: General-purpose LLM apps, RAG pipelines\n- **LangGraph**: Complex stateful workflows with cycles\n- **AutoGen**: Microsoft ecosystem, multi-agent conversations\n- **LlamaIndex**: Document Q&A, knowledge retrieval\n\n## Quick start\n\n### Installation\n\n```bash\n# Core framework\npip install crewai\n\n# With 50+ built-in tools\npip install 'crewai[tools]'\n```\n\n### Create project with CLI\n\n```bash\n# Create new crew project\ncrewai create crew my_project\ncd my_project\n\n# Install dependencies\ncrewai install\n\n# Run the crew\ncrewai run\n```\n\n### Simple crew (code-only)\n\n```python\nfrom crewai import Agent, Task, Crew, Process\n\n# 1. Define agents\nresearcher = Agent(\n    role=\"Senior Research Analyst\",\n    goal=\"Discover cutting-edge developments in AI\",\n    backstory=\"You are an expert analyst with a keen eye for emerging trends.\",\n    verbose=True\n)\n\nwriter = Agent(\n    role=\"Technical Writer\",\n    goal=\"Create clear, engaging content about technical topics\",\n    backstory=\"You excel at explaining complex concepts to general audiences.\",\n    verbose=True\n)\n\n# 2. Define tasks\nresearch_task = Task(\n    description=\"Research the latest developments in {topic}. Find 5 key trends.\",\n    expected_output=\"A detailed report with 5 bullet points on key trends.\",\n    agent=researcher\n)\n\nwrite_task = Task(\n    description=\"Write a blog post based on the research findings.\",\n    expected_output=\"A 500-word blog post in markdown format.\",\n    agent=writer,\n    context=[research_task]  # Uses research output\n)\n\n# 3. Create and run crew\ncrew = Crew(\n    agents=[researcher, writer],\n    tasks=[research_task, write_task],\n    process=Process.sequential,  # Tasks run in order\n    verbose=True\n)\n\n# 4. Execute\nresult = crew.kickoff(inputs={\"topic\": \"AI Agents\"})\nprint(result.raw)\n```\n\n## Core concepts\n\n### Agents - Autonomous workers\n\n```python\nfrom crewai import Agent\n\nagent = Agent(\n    role=\"Data Scientist\",                    # Job title\u002Frole\n    goal=\"Analyze data to find insights\",     # What they aim to achieve\n    backstory=\"PhD in statistics...\",         # Background context\n    llm=\"gpt-4o\",                             # LLM to use\n    tools=[],                                 # Tools available\n    memory=True,                              # Enable memory\n    verbose=True,                             # Show reasoning\n    allow_delegation=True,                    # Can delegate to others\n    max_iter=15,                              # Max reasoning iterations\n    max_rpm=10                                # Rate limit\n)\n```\n\n### Tasks - Units of work\n\n```python\nfrom crewai import Task\n\ntask = Task(\n    description=\"Analyze the sales data for Q4 2024. {context}\",\n    expected_output=\"A summary report with key metrics and trends.\",\n    agent=analyst,                            # Assigned agent\n    context=[previous_task],                  # Input from other tasks\n    output_file=\"report.md\",                  # Save to file\n    async_execution=False,                    # Run synchronously\n    human_input=False                         # No human approval needed\n)\n```\n\n### Crews - Teams of agents\n\n```python\nfrom crewai import Crew, Process\n\ncrew = Crew(\n    agents=[researcher, writer, editor],      # Team members\n    tasks=[research, write, edit],            # Tasks to complete\n    process=Process.sequential,               # Or Process.hierarchical\n    verbose=True,\n    memory=True,                              # Enable crew memory\n    cache=True,                               # Cache tool results\n    max_rpm=10,                               # Rate limit\n    share_crew=False                          # Opt-in telemetry\n)\n\n# Execute with inputs\nresult = crew.kickoff(inputs={\"topic\": \"AI trends\"})\n\n# Access results\nprint(result.raw)                             # Final output\nprint(result.tasks_output)                    # All task outputs\nprint(result.token_usage)                     # Token consumption\n```\n\n## Process types\n\n### Sequential (default)\n\nTasks execute in order, each agent completing their task before the next:\n\n```python\ncrew = Crew(\n    agents=[researcher, writer],\n    tasks=[research_task, write_task],\n    process=Process.sequential  # Task 1 → Task 2 → Task 3\n)\n```\n\n### Hierarchical\n\nAuto-creates a manager agent that delegates and coordinates:\n\n```python\ncrew = Crew(\n    agents=[researcher, writer, analyst],\n    tasks=[research_task, write_task, analyze_task],\n    process=Process.hierarchical,  # Manager delegates tasks\n    manager_llm=\"gpt-4o\"           # LLM for manager\n)\n```\n\n## Using tools\n\n### Built-in tools (50+)\n\n```bash\npip install 'crewai[tools]'\n```\n\n```python\nfrom crewai_tools import (\n    SerperDevTool,           # Web search\n    ScrapeWebsiteTool,       # Web scraping\n    FileReadTool,            # Read files\n    PDFSearchTool,           # Search PDFs\n    WebsiteSearchTool,       # Search websites\n    CodeDocsSearchTool,      # Search code docs\n    YoutubeVideoSearchTool,  # Search YouTube\n)\n\n# Assign tools to agent\nresearcher = Agent(\n    role=\"Researcher\",\n    goal=\"Find accurate information\",\n    backstory=\"Expert at finding data online.\",\n    tools=[SerperDevTool(), ScrapeWebsiteTool()]\n)\n```\n\n### Custom tools\n\n```python\nfrom crewai.tools import BaseTool\nfrom pydantic import Field\nfrom scripts.safe_arithmetic import calculate\n\nclass CalculatorTool(BaseTool):\n    name: str = \"Calculator\"\n    description: str = \"Performs mathematical calculations. Input: expression\"\n\n    def _run(self, expression: str) -> str:\n        try:\n            result = calculate(expression)\n            return f\"Result: {result}\"\n        except Exception as e:\n            return f\"Error: {str(e)}\"\n\n# Use custom tool\nagent = Agent(\n    role=\"Analyst\",\n    goal=\"Perform calculations\",\n    tools=[CalculatorTool()]\n)\n```\n\n## YAML configuration (recommended)\n\nDetails, code examples and parameter tables: [references\u002Fyaml-configuration-recommended.md](references\u002Fyaml-configuration-recommended.md). Read it when this step applies.\n\n## Flows - Event-driven orchestration\n\nFor complex workflows with conditional logic, use Flows:\n\n```python\nfrom crewai.flow.flow import Flow, listen, start, router\nfrom pydantic import BaseModel\n\nclass MyState(BaseModel):\n    confidence: float = 0.0\n\nclass MyFlow(Flow[MyState]):\n    @start()\n    def gather_data(self):\n        return {\"data\": \"collected\"}\n\n    @listen(gather_data)\n    def analyze(self, data):\n        self.state.confidence = 0.85\n        return analysis_crew.kickoff(inputs=data)\n\n    @router(analyze)\n    def decide(self):\n        return \"high\" if self.state.confidence > 0.8 else \"low\"\n\n    @listen(\"high\")\n    def generate_report(self):\n        return report_crew.kickoff()\n\n# Run flow\nflow = MyFlow()\nresult = flow.kickoff()\n```\n\nSee [Flows Guide](references\u002Fflows.md) for complete documentation.\n\n## Memory system\n\n```python\n# Enable all memory types\ncrew = Crew(\n    agents=[researcher],\n    tasks=[research_task],\n    memory=True,           # Enable memory\n    embedder={             # Custom embeddings\n        \"provider\": \"openai\",\n        \"config\": {\"model\": \"text-embedding-3-small\"}\n    }\n)\n```\n\n**Memory types:** Short-term (ChromaDB), Long-term (SQLite), Entity (ChromaDB)\n\n## LLM providers\n\n```python\nfrom crewai import LLM\n\nllm = LLM(model=\"gpt-4o\")                              # OpenAI (default)\nllm = LLM(model=\"claude-sonnet-4-5-20250929\")                       # Anthropic\nllm = LLM(model=\"ollama\u002Fllama3.1\", base_url=\"http:\u002F\u002Flocalhost:11434\")  # Local\nllm = LLM(model=\"azure\u002Fgpt-4o\", base_url=\"https:\u002F\u002F...\")              # Azure\n\nagent = Agent(role=\"Analyst\", goal=\"Analyze data\", llm=llm)\n```\n\n## CrewAI vs alternatives\n\n| Feature | CrewAI | LangChain | LangGraph |\n|---------|--------|-----------|-----------|\n| **Best for** | Multi-agent teams | General LLM apps | Stateful workflows |\n| **Learning curve** | Low | Medium | Higher |\n| **Agent paradigm** | Role-based | Tool-based | Graph-based |\n| **Memory** | Built-in | Plugin-based | Custom |\n\n## Best practices\n\n1. **Clear roles** - Each agent should have a distinct specialty\n2. **YAML config** - Better organization for larger projects\n3. **Enable memory** - Improves context across tasks\n4. **Set max_iter** - Prevent infinite loops (default 15)\n5. **Limit tools** - 3-5 tools per agent max\n6. **Rate limiting** - Set max_rpm to avoid API limits\n\n## Common issues\n\n**Agent stuck in loop:**\n```python\nagent = Agent(\n    role=\"...\",\n    max_iter=10,           # Limit iterations\n    max_rpm=5              # Rate limit\n)\n```\n\n**Task not using context:**\n```python\ntask2 = Task(\n    description=\"...\",\n    context=[task1],       # Explicitly pass context\n    agent=writer\n)\n```\n\n**Memory errors:**\n```python\n# Use environment variable for storage\nimport os\nos.environ[\"CREWAI_STORAGE_DIR\"] = \".\u002Fmy_storage\"\n```\n\n## References\n\n- **[Flows Guide](references\u002Fflows.md)** - Event-driven workflows, state management\n- **[Tools Guide](references\u002Ftools.md)** - Built-in tools, custom tools, MCP\n- **[Troubleshooting](references\u002Ftroubleshooting.md)** - Common issues, debugging\n\n## Resources\n\n- **GitHub**: https:\u002F\u002Fgithub.com\u002FcrewAIInc\u002FcrewAI\n- **Docs**: https:\u002F\u002Fdocs.crewai.com\n- **Tools**: https:\u002F\u002Fgithub.com\u002FcrewAIInc\u002FcrewAI-tools\n- **Examples**: https:\u002F\u002Fgithub.com\u002FcrewAIInc\u002FcrewAI-examples\n- **Version**: 1.2.0+\n- **License**: MIT\n\n## Agent operating procedure\n\n1. **Check the environment.** Confirm the framework version, model provider, API keys and rate limits.\n2. **Pin down the inputs.** Confirm formats, identifiers and parameters from the data or the user. Ask rather than guess any value that changes the result.\n3. **Run a small version first.** Test a single call or chain with a known input and inspect raw outputs.\n4. **Execute the full task** using the instructions and references above.\n5. **Validate the result.** Evaluate on a small labeled set; check structured outputs against their schema; log prompts and responses.\n6. **Report.** State what was run (versions, commands, parameters), what was checked, and what is still uncertain.\n\n| If this happens | Do this |\n|---|---|\n| Outputs do not match the expected schema | Add validation and retries, tighten the schema, or simplify the prompt. |\n| A function, flag or endpoint in these instructions is missing in the installed version | Check the installed version's own documentation (`help()`, `--help`, official docs), adapt, and tell the user. Never invent an API. |\n| A required input, identifier or parameter is ambiguous | Ask the user, or state the assumption explicitly before running. |\n\n**Integrity rules**\n\n- Never fabricate results, parameters, identifiers, citations or statistics. If something cannot be run or verified, say so plainly.\n- Never send private or sensitive data to external APIs without the user's consent.\n- Treat version-specific details here as possibly outdated: confirm them against the official documentation for the installed version.\n- Ask before actions that cost money, consume shared GPUs or cloud quota, touch personal or patient data, or cannot be undone.\n\n## Related skills\n\n- `autogpt-agents`: Autonomous AI agent platform for building and deploying continuous agents.\n- `langchain`: Framework for building LLM-powered applications with agents, chains, and RAG.\n- `aeon`: This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly det…\n","# CrewAI - Multi-Agent Orchestration Framework\n\nBuild teams of autonomous AI agents that collaborate to solve complex tasks.\n\n## When to use CrewAI\n\n**Use CrewAI when:**\n- Building multi-agent systems with specialized roles\n- Need autonomous collaboration between agents\n- Want role-based task delegation (researcher, writer, analyst)\n- Require sequential or hierarchical process execution\n- Building production workflows with memory and observability\n- Need simpler setup than LangChain\u002FLangGraph\n\n**Key features:**\n- **Standalone**: No LangChain dependencies, lean footprint\n- **Role-based**: Agents have roles, goals, and backstories\n- **Dual paradigm**: Crews (autonomous) + Flows (event-driven)\n- **50+ tools**: Web scraping, search, databases, AI services\n- **Memory**: Short-term, long-term, and entity memory\n- **Production-ready**: Tracing, enterprise features\n\n**Use alternatives instead:**\n- **LangChain**: General-purpose LLM apps, RAG pipelines\n- **LangGraph**: Complex stateful workflows with cycles\n- **AutoGen**: Microsoft ecosystem, multi-agent conversations\n- **LlamaIndex**: Document Q&A, knowledge retrieval\n\n## Quick start\n\n### Installation\n\n```bash\n# Core framework\npip install crewai\n\n# With 50+ built-in tools\npip install 'crewai[tools]'\n```\n\n### Create project with CLI\n\n```bash\n# Create new crew project\ncrewai create crew my_project\ncd my_project\n\n# Install dependencies\ncrewai install\n\n# Run the crew\ncrewai run\n```\n\n### Simple crew (code-only)\n\n```python\nfrom crewai import Agent, Task, Crew, Process\n\n# 1. Define agents\nresearcher = Agent(\n    role=\"Senior Research Analyst\",\n    goal=\"Discover cutting-edge developments in AI\",\n    backstory=\"You are an expert analyst with a keen eye for emerging trends.\",\n    verbose=True\n)\n\nwriter = Agent(\n    role=\"Technical Writer\",\n    goal=\"Create clear, engaging content about technical topics\",\n    backstory=\"You excel at explaining complex concepts to general audiences.\",\n    verbose=True\n)\n\n# 2. Define tasks\nresearch_task = Task(\n    description=\"Research the latest developments in {topic}. Find 5 key trends.\",\n    expected_output=\"A detailed report with 5 bullet points on key trends.\",\n    agent=researcher\n)\n\nwrite_task = Task(\n    description=\"Write a blog post based on the research findings.\",\n    expected_output=\"A 500-word blog post in markdown format.\",\n    agent=writer,\n    context=[research_task]  # Uses research output\n)\n\n# 3. Create and run crew\ncrew = Crew(\n    agents=[researcher, writer],\n    tasks=[research_task, write_task],\n    process=Process.sequential,  # Tasks run in order\n    verbose=True\n)\n\n# 4. Execute\nresult = crew.kickoff(inputs={\"topic\": \"AI Agents\"})\nprint(result.raw)\n```\n\n## Core concepts\n\n### Agents - Autonomous workers\n\n```python\nfrom crewai import Agent\n\nagent = Agent(\n    role=\"Data Scientist\",                    # Job title\u002Frole\n    goal=\"Analyze data to find insights\",     # What they aim to achieve\n    backstory=\"PhD in statistics...\",         # Background context\n    llm=\"gpt-4o\",                             # LLM to use\n    tools=[],                                 # Tools available\n    memory=True,                              # Enable memory\n    verbose=True,                             # Show reasoning\n    allow_delegation=True,                    # Can delegate to others\n    max_iter=15,                              # Max reasoning iterations\n    max_rpm=10                                # Rate limit\n)\n```\n\n### Tasks - Units of work\n\n```python\nfrom crewai import Task\n\ntask = Task(\n    description=\"Analyze the sales data for Q4 2024. {context}\",\n    expected_output=\"A summary report with key metrics and trends.\",\n    agent=analyst,                            # Assigned agent\n    context=[previous_task],                  # Input from other tasks\n    output_file=\"report.md\",                  # Save to file\n    async_execution=False,                    # Run synchronously\n    human_input=False                         # No human approval needed\n)\n```\n\n### Crews - Teams of agents\n\n```python\nfrom crewai import Crew, Process\n\ncrew = Crew(\n    agents=[researcher, writer, editor],      # Team members\n    tasks=[research, write, edit],            # Tasks to complete\n    process=Process.sequential,               # Or Process.hierarchical\n    verbose=True,\n    memory=True,                              # Enable crew memory\n    cache=True,                               # Cache tool results\n    max_rpm=10,                               # Rate limit\n    share_crew=False                          # Opt-in telemetry\n)\n\n# Execute with inputs\nresult = crew.kickoff(inputs={\"topic\": \"AI trends\"})\n\n# Access results\nprint(result.raw)                             # Final output\nprint(result.tasks_output)                    # All task outputs\nprint(result.token_usage)                     # Token consumption\n```\n\n## Process types\n\n### Sequential (default)\n\nTasks execute in order, each agent completing their task before the next:\n\n```python\ncrew = Crew(\n    agents=[researcher, writer],\n    tasks=[research_task, write_task],\n    process=Process.sequential  # Task 1 → Task 2 → Task 3\n)\n```\n\n### Hierarchical\n\nAuto-creates a manager agent that delegates and coordinates:\n\n```python\ncrew = Crew(\n    agents=[researcher, writer, analyst],\n    tasks=[research_task, write_task, analyze_task],\n    process=Process.hierarchical,  # Manager delegates tasks\n    manager_llm=\"gpt-4o\"           # LLM for manager\n)\n```\n\n## Using tools\n\n### Built-in tools (50+)\n\n```bash\npip install 'crewai[tools]'\n```\n\n```python\nfrom crewai_tools import (\n    SerperDevTool,           # Web search\n    ScrapeWebsiteTool,       # Web scraping\n    FileReadTool,            # Read files\n    PDFSearchTool,           # Search PDFs\n    WebsiteSearchTool,       # Search websites\n    CodeDocsSearchTool,      # Search code docs\n    YoutubeVideoSearchTool,  # Search YouTube\n)\n\n# Assign tools to agent\nresearcher = Agent(\n    role=\"Researcher\",\n    goal=\"Find accurate information\",\n    backstory=\"Expert at finding data online.\",\n    tools=[SerperDevTool(), ScrapeWebsiteTool()]\n)\n```\n\n### Custom tools\n\n```python\nfrom crewai.tools import BaseTool\nfrom pydantic import Field\nfrom scripts.safe_arithmetic import calculate\n\nclass CalculatorTool(BaseTool):\n    name: str = \"Calculator\"\n    description: str = \"Performs mathematical calculations. Input: expression\"\n\n    def _run(self, expression: str) -> str:\n        try:\n            result = calculate(expression)\n            return f\"Result: {result}\"\n        except Exception as e:\n            return f\"Error: {str(e)}\"\n\n# Use custom tool\nagent = Agent(\n    role=\"Analyst\",\n    goal=\"Perform calculations\",\n    tools=[CalculatorTool()]\n)\n```\n\n## YAML configuration (recommended)\n\nDetails, code examples and parameter tables: [references\u002Fyaml-configuration-recommended.md](references\u002Fyaml-configuration-recommended.md). Read it when this step applies.\n\n## Flows - Event-driven orchestration\n\nFor complex workflows with conditional logic, use Flows:\n\n```python\nfrom crewai.flow.flow import Flow, listen, start, router\nfrom pydantic import BaseModel\n\nclass MyState(BaseModel):\n    confidence: float = 0.0\n\nclass MyFlow(Flow[MyState]):\n    @start()\n    def gather_data(self):\n        return {\"data\": \"collected\"}\n\n    @listen(gather_data)\n    def analyze(self, data):\n        self.state.confidence = 0.85\n        return analysis_crew.kickoff(inputs=data)\n\n    @router(analyze)\n    def decide(self):\n        return \"high\" if self.state.confidence > 0.8 else \"low\"\n\n    @listen(\"high\")\n    def generate_report(self):\n        return report_crew.kickoff()\n\n# Run flow\nflow = MyFlow()\nresult = flow.kickoff()\n```\n\nSee [Flows Guide](references\u002Fflows.md) for complete documentation.\n\n## Memory system\n\n```python\n# Enable all memory types\ncrew = Crew(\n    agents=[researcher],\n    tasks=[research_task],\n    memory=True,           # Enable memory\n    embedder={             # Custom embeddings\n        \"provider\": \"openai\",\n        \"config\": {\"model\": \"text-embedding-3-small\"}\n    }\n)\n```\n\n**Memory types:** Short-term (ChromaDB), Long-term (SQLite), Entity (ChromaDB)\n\n## LLM providers\n\n```python\nfrom crewai import LLM\n\nllm = LLM(model=\"gpt-4o\")                              # OpenAI (default)\nllm = LLM(model=\"claude-sonnet-4-5-20250929\")                       # Anthropic\nllm = LLM(model=\"ollama\u002Fllama3.1\", base_url=\"http:\u002F\u002Flocalhost:11434\")  # Local\nllm = LLM(model=\"azure\u002Fgpt-4o\", base_url=\"https:\u002F\u002F...\")              # Azure\n\nagent = Agent(role=\"Analyst\", goal=\"Analyze data\", llm=llm)\n```\n\n## CrewAI vs alternatives\n\n| Feature | CrewAI | LangChain | LangGraph |\n|---------|--------|-----------|-----------|\n| **Best for** | Multi-agent teams | General LLM apps | Stateful workflows |\n| **Learning curve** | Low | Medium | Higher |\n| **Agent paradigm** | Role-based | Tool-based | Graph-based |\n| **Memory** | Built-in | Plugin-based | Custom |\n\n## Best practices\n\n1. **Clear roles** - Each agent should have a distinct specialty\n2. **YAML config** - Better organization for larger projects\n3. **Enable memory** - Improves context across tasks\n4. **Set max_iter** - Prevent infinite loops (default 15)\n5. **Limit tools** - 3-5 tools per agent max\n6. **Rate limiting** - Set max_rpm to avoid API limits\n\n## Common issues\n\n**Agent stuck in loop:**\n```python\nagent = Agent(\n    role=\"...\",\n    max_iter=10,           # Limit iterations\n    max_rpm=5              # Rate limit\n)\n```\n\n**Task not using context:**\n```python\ntask2 = Task(\n    description=\"...\",\n    context=[task1],       # Explicitly pass context\n    agent=writer\n)\n```\n\n**Memory errors:**\n```python\n# Use environment variable for storage\nimport os\nos.environ[\"CREWAI_STORAGE_DIR\"] = \".\u002Fmy_storage\"\n```\n\n## References\n\n- **[Flows Guide](references\u002Fflows.md)** - Event-driven workflows, state management\n- **[Tools Guide](references\u002Ftools.md)** - Built-in tools, custom tools, MCP\n- **[Troubleshooting](references\u002Ftroubleshooting.md)** - Common issues, debugging\n\n## Resources\n\n- **GitHub**: https:\u002F\u002Fgithub.com\u002FcrewAIInc\u002FcrewAI\n- **Docs**: https:\u002F\u002Fdocs.crewai.com\n- **Tools**: https:\u002F\u002Fgithub.com\u002FcrewAIInc\u002FcrewAI-tools\n- **Examples**: https:\u002F\u002Fgithub.com\u002FcrewAIInc\u002FcrewAI-examples\n- **Version**: 1.2.0+\n- **License**: MIT\n\n## Agent operating procedure\n\n1. **Check the environment.** Confirm the framework version, model provider, API keys and rate limits.\n2. **Pin down the inputs.** Confirm formats, identifiers and parameters from the data or the user. Ask rather than guess any value that changes the result.\n3. **Run a small version first.** Test a single call or chain with a known input and inspect raw outputs.\n4. **Execute the full task** using the instructions and references above.\n5. **Validate the result.** Evaluate on a small labeled set; check structured outputs against their schema; log prompts and responses.\n6. **Report.** State what was run (versions, commands, parameters), what was checked, and what is still uncertain.\n\n| If this happens | Do this |\n|---|---|\n| Outputs do not match the expected schema | Add validation and retries, tighten the schema, or simplify the prompt. |\n| A function, flag or endpoint in these instructions is missing in the installed version | Check the installed version's own documentation (`help()`, `--help`, official docs), adapt, and tell the user. Never invent an API. |\n| A required input, identifier or parameter is ambiguous | Ask the user, or state the assumption explicitly before running. |\n\n**Integrity rules**\n\n- Never fabricate results, parameters, identifiers, citations or statistics. If something cannot be run or verified, say so plainly.\n- Never send private or sensitive data to external APIs without the user's consent.\n- Treat version-specific details here as possibly outdated: confirm them against the official documentation for the installed version.\n- Ask before actions that cost money, consume shared GPUs or cloud quota, touch personal or patient data, or cannot be undone.\n\n## Related skills\n\n- `autogpt-agents`: Autonomous AI agent platform for building and deploying continuous agents.\n- `langchain`: Framework for building LLM-powered applications with agents, chains, and RAG.\n- `aeon`: This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly det…\n",{"name":5,"license":15,"metadata":49,"description":7},{"tags":50,"version":51,"category":52,"maintainer":53,"dependencies":54},"Agents, CrewAI, Multi-Agent, Orchestration, Collaboration, Role-Based, Autonomous, Workflows, Memory, Production","1.0.0","llm-applications","Kalaris Labs","crewai>=1.2.0, crewai-tools>=1.2.0","main","0da4485785ee599388900be50db1635489d53056",".agents\u002Fskills\u002Fkal-crewai-multi-agent","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6","https:\u002F\u002Fdisha6.6.thenitishkr.in\u002F","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh","www.thenitishkr","thenitishkr | AI • Cyber-security • Research\r\n","2026-11-08 03:33:25",{"source":8,"skillName":5,"commands":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add Tashima-Tarsh\u002FDisha6.6 --skill crewai-multi-agent",{"tool":70,"command":71},"bunx","bunx skills add Tashima-Tarsh\u002FDisha6.6 --skill crewai-multi-agent",{"tool":73,"command":74},"pnpm","pnpm dlx skills add Tashima-Tarsh\u002FDisha6.6 --skill crewai-multi-agent","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-crewai-multi-agent\u002FSKILL.md",true,[78,84,88,92,96],{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fflows.md","REFERENCE","参考文档",9846,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-crewai-multi-agent\u002Freferences\u002Fflows.md",{"path":85,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Ftools.md",10162,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-crewai-multi-agent\u002Freferences\u002Ftools.md",{"path":89,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Ftroubleshooting.md",8933,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-crewai-multi-agent\u002Freferences\u002Ftroubleshooting.md",{"path":93,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fyaml-configuration-recommended.md",2848,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-crewai-multi-agent\u002Freferences\u002Fyaml-configuration-recommended.md",{"path":97,"resourceType":98,"resourceTypeDesc":99,"sizeBytes":100,"sourceHtmlUrl":101},"scripts\u002Fsafe_arithmetic.py","SCRIPT","脚本",1295,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-crewai-multi-agent\u002Fscripts\u002Fsafe_arithmetic.py",[103,132,156,181,205,227],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":112,"publishedAt":44},"01M6QRD07D4TGNDK6VJ4EHF8BV","youtube-full","Use when the user needs YouTube transcripts, video search, channel browsing, playlist extraction, or content monitoring. Trigger phrases: 'get the transcript for', 'search YouTube for', 'what are the latest videos on', 'list this playlist', 'monitor this channel', or any request involving a YouTube URL, video ID, or @handle. Do NOT use for downloading video or audio files, YouTube engagement data (likes, comments), or private\u002Fage-restricted videos.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fyoutube-full\u002FSKILL.md",[109],{"categoryNo":110,"categoryName":111,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000016","图像与多媒体",[113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,29,129,130,131],"youtube full","youtube","full","transcript","search","monitoring","data","Video","Audio","list","files","do","get","age","trigger","URL","browsing","request","youtube transcripts",{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":44},"01M6QRCJ3112VYPA97YG7KGMC2","x-twitter-growth","X\u002FTwitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X\u002FTwitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fx-twitter-growth\u002FSKILL.md",[],[139,140,141,142,117,143,144,145,146,147,148,149,150,151,34,152,153,154,155,29],"twitter","x twitter growth","growth","research","content","engineering","plan","web search","competitors","analyze","engine","write","strategy","platform","grow","posting","competitive",{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":163,"publishedAt":44},"01M6QRBN3EHQNJY42RERP7A149","write-a-skill","Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, build, or author a new skill.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwrite-a-skill\u002FSKILL.md",[162],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[164,150,165,166,167,168,169,170,34,171,172,55,173,174,175,176,177,178,179,180],"write a skill","github","create","https","productivity","matt pocock","direct","example","build","new skill","structure","new agent","resources","with","tree","progressive disclosure","author",{"skillNo":182,"name":183,"nameZh":6,"description":184,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":185,"categories":186,"keywords":187,"publishedAt":44},"01M6QRB6G8P33PNGAF9Y69EJ9T","wrap-up","Close out a launched Claude Managed Agent — recap every primitive the founder now owns, regenerate the single-file overview page, and suggest the next 1-2 upgrades. Use when the user says \"wrap up\", \"close this out\", \"what do I own now\", \"give me the summary\", \"recap the agent\", or when the orchestrator routes phase=wrap-up. primitives_inventory.py tables everything owned (agent, environment, session, memory, outcome, deployment); overview_page.py regenerates a self-contained .\u002Fmy-agent\u002Fagent-overview.html; upgrade_suggester.py ranks the next moves from recorded deferrals plus standing hardening steps. Companion to run-without-you; the last stop before phase=done.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwrap-up\u002FSKILL.md",[],[188,189,190,191,192,193,194,195,196,34,197,124,198,199,200,201,30,202,203,204],"wrap up","up","wrap","gemini","deployment","run","file","hardening","closeout","stop","upgrade","founder","close","companion","tables","directions","phase",{"skillNo":206,"name":207,"nameZh":6,"description":208,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":209,"categories":210,"keywords":212,"publishedAt":44},"01M6QRA5AYC1RBFZ39GTWGS3N8","workflow-builder","Design and write deterministic multi-agent workflow scripts (.js files in .claude\u002Fworkflows\u002F) for Claude Code's Workflow tool. Use when a user wants to build, create, author, scaffold, or run a custom Claude Code workflow, orchestrate sub-agents (fan-out, pipeline, loop, judge-panel), or automate a repeatable multi-step task across fresh-context agents.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fworkflow-builder\u002FSKILL.md",[211],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[213,214,215,216,42,166,193,217,218,219,220,38,150,221,123,222,223,224,225,226],"workflow","workflow builder","builder","design","code","orchestrate","pipeline","loop","context","across","fresh","scripts","judge","claude code workflow",{"skillNo":228,"name":229,"nameZh":6,"description":230,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":231,"categories":232,"keywords":233,"publishedAt":44},"01M6QR7QMCZESKQA0ERW1E657M","weekly-review","Use when someone wants to run a weekly review, close open loops, audit stalled projects and commitments, get their system back to trusted, restart a lapsed review habit, or says \"\u002Fcs:weekly-review\". Walks David Allen's three-phase loop — GET CLEAR, GET CURRENT, GET CREATIVE — with deterministic scripts that inventory open loops, gate the checklist with named gaps, and score commitment health 0-100.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweekly-review\u002FSKILL.md",[],[234,235,236,237,238,239,240,241,242,220,243,244,245,246,247,248,125,249,250,204],"review","weekly review","weekly","deterministic scripts","reflect","feeds","inventory","open","team","projects","project-management","scanner","conversation","back","project","sprint","cadence"]