[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EAJGKXN3X3X6TYAP0PEZM9":3,"skill-same:01M6EAJGKXN3X3X6TYAP0PEZM9":124},{"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":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":60,"commitSha":61,"skillDirectory":62,"forksCount":63,"repositoryHtmlUrl":64,"repositoryHomepageUrl":6,"ownerHtmlUrl":65,"ownerBlogUrl":6,"ownerDescription":66,"updatedAt":67,"install":68,"resources":81},"01M6EAJGKXN3X3X6TYAP0PEZM9","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.","luokai0\u002Fai-agent-skills-by-luo-kai","luokai0","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F266954973?v=4","01M6E16VNT42JB8B3X3254QWJ7","luo kai","01M6E16VTFVP6S5XJF1V1MPV90",14,"MIT","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F18-ai-agents-and-automation (by Luo Kai)\u002F16-other-agents\u002Fcrewai\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"crewai multi agent","multi","crewai","multi agent","orchestration framework","agent orchestration","langchain dependencies","lean","autonomous","specialized","langchain","multi-agent","execution","Tools","framework","teams","tasks","workflows","orchestration","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.\nversion: 1.0.0\nauthor: luo-kai\nlicense: MIT\ntags: [Agents, CrewAI, Multi-Agent, Orchestration, Collaboration, Role-Based, Autonomous, Workflows, Memory, Production]\ndependencies: [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\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 = eval(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\n### Project structure\n\n```\nmy_project\u002F\n├── src\u002Fmy_project\u002F\n│   ├── config\u002F\n│   │   ├── agents.yaml    # Agent definitions\n│   │   └── tasks.yaml     # Task definitions\n│   ├── crew.py            # Crew assembly\n│   └── main.py            # Entry point\n└── pyproject.toml\n```\n\n### agents.yaml\n\n```yaml\nresearcher:\n  role: \"{topic} Senior Data Researcher\"\n  goal: \"Uncover cutting-edge developments in {topic}\"\n  backstory: >\n    You're a seasoned researcher with a knack for uncovering\n    the latest developments in {topic}. Known for your ability\n    to find relevant information and present it clearly.\n\nreporting_analyst:\n  role: \"Reporting Analyst\"\n  goal: \"Create detailed reports based on research data\"\n  backstory: >\n    You're a meticulous analyst who transforms raw data into\n    actionable insights through well-structured reports.\n```\n\n### tasks.yaml\n\n```yaml\nresearch_task:\n  description: >\n    Conduct thorough research about {topic}.\n    Find the most relevant information for {year}.\n  expected_output: >\n    A list with 10 bullet points of the most relevant\n    information about {topic}.\n  agent: researcher\n\nreporting_task:\n  description: >\n    Review the research and create a comprehensive report.\n    Focus on key findings and recommendations.\n  expected_output: >\n    A detailed report in markdown format with executive\n    summary, findings, and recommendations.\n  agent: reporting_analyst\n  output_file: report.md\n```\n\n### crew.py\n\n```python\nfrom crewai import Agent, Crew, Process, Task\nfrom crewai.project import CrewBase, agent, crew, task\nfrom crewai_tools import SerperDevTool\n\n@CrewBase\nclass MyProjectCrew:\n    \"\"\"My Project crew\"\"\"\n\n    @agent\n    def researcher(self) -> Agent:\n        return Agent(\n            config=self.agents_config['researcher'],\n            tools=[SerperDevTool()],\n            verbose=True\n        )\n\n    @agent\n    def reporting_analyst(self) -> Agent:\n        return Agent(\n            config=self.agents_config['reporting_analyst'],\n            verbose=True\n        )\n\n    @task\n    def research_task(self) -> Task:\n        return Task(config=self.tasks_config['research_task'])\n\n    @task\n    def reporting_task(self) -> Task:\n        return Task(\n            config=self.tasks_config['reporting_task'],\n            output_file='report.md'\n        )\n\n    @crew\n    def crew(self) -> Crew:\n        return Crew(\n            agents=self.agents,\n            tasks=self.tasks,\n            process=Process.sequential,\n            verbose=True\n        )\n```\n\n### main.py\n\n```python\nfrom my_project.crew import MyProjectCrew\n\ndef run():\n    inputs = {\n        'topic': 'AI Agents',\n        'year': 2025\n    }\n    MyProjectCrew().crew().kickoff(inputs=inputs)\n\nif __name__ == \"__main__\":\n    run()\n```\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 (25k+ stars)\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","# 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\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 = eval(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\n### Project structure\n\n```\nmy_project\u002F\n├── src\u002Fmy_project\u002F\n│   ├── config\u002F\n│   │   ├── agents.yaml    # Agent definitions\n│   │   └── tasks.yaml     # Task definitions\n│   ├── crew.py            # Crew assembly\n│   └── main.py            # Entry point\n└── pyproject.toml\n```\n\n### agents.yaml\n\n```yaml\nresearcher:\n  role: \"{topic} Senior Data Researcher\"\n  goal: \"Uncover cutting-edge developments in {topic}\"\n  backstory: >\n    You're a seasoned researcher with a knack for uncovering\n    the latest developments in {topic}. Known for your ability\n    to find relevant information and present it clearly.\n\nreporting_analyst:\n  role: \"Reporting Analyst\"\n  goal: \"Create detailed reports based on research data\"\n  backstory: >\n    You're a meticulous analyst who transforms raw data into\n    actionable insights through well-structured reports.\n```\n\n### tasks.yaml\n\n```yaml\nresearch_task:\n  description: >\n    Conduct thorough research about {topic}.\n    Find the most relevant information for {year}.\n  expected_output: >\n    A list with 10 bullet points of the most relevant\n    information about {topic}.\n  agent: researcher\n\nreporting_task:\n  description: >\n    Review the research and create a comprehensive report.\n    Focus on key findings and recommendations.\n  expected_output: >\n    A detailed report in markdown format with executive\n    summary, findings, and recommendations.\n  agent: reporting_analyst\n  output_file: report.md\n```\n\n### crew.py\n\n```python\nfrom crewai import Agent, Crew, Process, Task\nfrom crewai.project import CrewBase, agent, crew, task\nfrom crewai_tools import SerperDevTool\n\n@CrewBase\nclass MyProjectCrew:\n    \"\"\"My Project crew\"\"\"\n\n    @agent\n    def researcher(self) -> Agent:\n        return Agent(\n            config=self.agents_config['researcher'],\n            tools=[SerperDevTool()],\n            verbose=True\n        )\n\n    @agent\n    def reporting_analyst(self) -> Agent:\n        return Agent(\n            config=self.agents_config['reporting_analyst'],\n            verbose=True\n        )\n\n    @task\n    def research_task(self) -> Task:\n        return Task(config=self.tasks_config['research_task'])\n\n    @task\n    def reporting_task(self) -> Task:\n        return Task(\n            config=self.tasks_config['reporting_task'],\n            output_file='report.md'\n        )\n\n    @crew\n    def crew(self) -> Crew:\n        return Crew(\n            agents=self.agents,\n            tasks=self.tasks,\n            process=Process.sequential,\n            verbose=True\n        )\n```\n\n### main.py\n\n```python\nfrom my_project.crew import MyProjectCrew\n\ndef run():\n    inputs = {\n        'topic': 'AI Agents',\n        'year': 2025\n    }\n    MyProjectCrew().crew().kickoff(inputs=inputs)\n\nif __name__ == \"__main__\":\n    run()\n```\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 (25k+ stars)\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",{"name":5,"tags":44,"author":55,"license":15,"version":56,"description":7,"dependencies":57},[45,46,47,48,49,50,51,52,53,54],"Agents","CrewAI","Multi-Agent","Orchestration","Collaboration","Role-Based","Autonomous","Workflows","Memory","Production","luo-kai","1.0.0",[58,59],"crewai>=1.2.0","crewai-tools>=1.2.0","main","4d2fb89cdfb75f3f6fd3c6c5ec9ad90ea129eb3c","ai-agent-skills\u002F18-ai-agents-and-automation (by Luo Kai)\u002F16-other-agents\u002Fcrewai",2,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai","https:\u002F\u002Fgithub.com\u002Fluokai0","a solo builder.","2026-05-06 04:29:04",{"source":8,"skillName":5,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill crewai-multi-agent",{"tool":74,"command":75},"bunx","bunx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill crewai-multi-agent",{"tool":77,"command":78},"pnpm","pnpm dlx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill crewai-multi-agent","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F18-ai-agents-and-automation (by Luo Kai)\u002F16-other-agents\u002Fcrewai\u002FSKILL.md",true,[82,88,92,96,100,106,112,116,120],{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"core\u002Feasing.py","SCRIPT","脚本",6265,"https:\u002F\u002Fgithub.com\u002Fa1627418541\u002F-\u002Fblob\u002Fmain\u002F.kilocode\u002Fskills\u002Fslack-gif-creator\u002Fcore\u002Feasing.py",{"path":89,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":90,"sourceHtmlUrl":91},"core\u002Fframe_composer.py",4548,"https:\u002F\u002Fgithub.com\u002Fa1627418541\u002F-\u002Fblob\u002Fmain\u002F.kilocode\u002Fskills\u002Fslack-gif-creator\u002Fcore\u002Fframe_composer.py",{"path":93,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":94,"sourceHtmlUrl":95},"core\u002Fgif_builder.py",9847,"https:\u002F\u002Fgithub.com\u002Fa1627418541\u002F-\u002Fblob\u002Fmain\u002F.kilocode\u002Fskills\u002Fslack-gif-creator\u002Fcore\u002Fgif_builder.py",{"path":97,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":98,"sourceHtmlUrl":99},"core\u002Fvalidators.py",3785,"https:\u002F\u002Fgithub.com\u002Fa1627418541\u002F-\u002Fblob\u002Fmain\u002F.kilocode\u002Fskills\u002Fslack-gif-creator\u002Fcore\u002Fvalidators.py",{"path":101,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":104,"sourceHtmlUrl":105},"LICENSE.txt","LICENSE","许可证",11345,"https:\u002F\u002Fgithub.com\u002Fa1627418541\u002F-\u002Fblob\u002Fmain\u002F.kilocode\u002Fskills\u002Fslack-gif-creator\u002FLICENSE.txt",{"path":107,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":110,"sourceHtmlUrl":111},"references\u002Fflows.md","REFERENCE","参考文档",9846,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F18-ai-agents-and-automation (by Luo Kai)\u002F16-other-agents\u002Fcrewai\u002Freferences\u002Fflows.md",{"path":113,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":114,"sourceHtmlUrl":115},"references\u002Ftools.md",10283,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F18-ai-agents-and-automation (by Luo Kai)\u002F16-other-agents\u002Fcrewai\u002Freferences\u002Ftools.md",{"path":117,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":118,"sourceHtmlUrl":119},"references\u002Ftroubleshooting.md",8933,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F18-ai-agents-and-automation (by Luo Kai)\u002F16-other-agents\u002Fcrewai\u002Freferences\u002Ftroubleshooting.md",{"path":121,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":122,"sourceHtmlUrl":123},"requirements.txt",66,"https:\u002F\u002Fgithub.com\u002Fa1627418541\u002F-\u002Fblob\u002Fmain\u002F.kilocode\u002Fskills\u002Fslack-gif-creator\u002Frequirements.txt",[125,152,169,193,220,245],{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":39},"01M6F2SKTE208174C7S7JJCZC7","write-contracts","Generates secure Aptos Move V2 smart contracts with Object model, Digital Asset integration, security patterns, and storage type guidance. Includes comprehensive storage decision framework for optimal data structure selection. Triggers on: 'write contract', 'create NFT collection', 'build marketplace', 'implement minting', 'generate Move module', 'create token contract', 'build DAO', 'implement staking'. Ask storage questions when: 'store', 'track', 'registry', 'mapping', 'list', 'collection'.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fwrite-contracts\u002FSKILL.md",[],[132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151],"write","contracts","write contracts","storage","secure","create","generate","collection","model","decision","ask","smart-contracts","selection","objects","structure","nft","token","aptos","critical","move",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":39},"01M6F2RFXJ6T9MKW0A7N7GM45B","web-search","通用网络搜索技能，支持多引擎搜索（百度、必应、DuckDuckGo），无需API密钥即可获取实时信息","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fweb-search-ex-skill\u002FSKILL.md",[],[159,160,161,162,163,164,165,166,167,168],"web","search","web search","搜索","baidu","bing","duckduckgo","百度","多引擎","internet",{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":39},"01M6F2K968G1FZEZFPW2E6B222","solo-build","Execute implementation plan tasks with TDD workflow, auto-commit, and phase gates. Use when user says \"build it\", \"start building\", \"execute plan\", \"implement tasks\", \"ship it\", or references a track ID. Do NOT use for planning (use \u002Fplan) or scaffolding (use \u002Fscaffold).","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fsolo-build\u002FSKILL.md",[],[176,177,178,179,180,181,35,182,160,183,184,185,132,186,187,188,189,190,191,192],"build","solo","solo build","MCP","workflow","commit","code","Bash","plan","read","auto","references","context7","query","scaffolding","ship it","project",{"skillNo":194,"name":195,"nameZh":6,"description":196,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":197,"categories":198,"keywords":199,"publishedAt":39},"01M6F2GKN39SGHSPWYB3662YC8","react-email","Use when building HTML email templates with React components, adding a visual email editor to an application using the React Email visual editor, rendering emails to HTML, or sending emails with Resend. Covers welcome emails, password resets, notifications, order confirmations, newsletters, transactional emails, and the embeddable email editor component.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Freact-email-skills\u002FSKILL.md",[],[200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219],"react","email","react email","github","editor","components","react components","component","welcome","https","notifications","password","node","use","html","resend","visual","emails","rendering","with",{"skillNo":221,"name":222,"nameZh":6,"description":223,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":224,"categories":225,"keywords":226,"publishedAt":39},"01M6F2FBVGVDFSG8SSFJGXA40C","APITester Agent-Driven API Testing","Test API endpoints and document responses. Define tests in plain English, run them, get formatted results. Agent-driven Postman alternative.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fopenclaw-api-tester\u002FSKILL.md",[],[227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244],"testing","api","api testing","driven","APITester Agent Driven API Testing","test","run","postman","results","plain english","tester","endpoints","document","get","define","tests","english","api-tester",{"skillNo":246,"name":247,"nameZh":6,"description":248,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":249,"categories":250,"keywords":251,"publishedAt":39},"01M6F273Y3NGAPVJZ608BC0G9G","hubspot-implementation-plan","Generate a phased implementation plan from a HubSpot audit report. Creates prioritized, sequenced cleanup processes with effort estimates, dependencies, and automation feasibility. Use after running \u002Fhubspot-audit.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fhubspot-implementation-plan\u002FSKILL.md",[],[184,252,253,254,255,256,257,138,258,259,260,261,262,213,263,264,219,265],"implementation","hubspot","hubspot implementation plan","automation","feasibility","cleanup","planning","report","audit","audit report","phased implementation","dependencies","processes","hubspot audit"]