crewai-multi-agent
できること
このスキルは、それぞれ役割、目標、タスクを持つAIエージェントのチームを構築するフレームワークであるCrewAIを説明します。明確な順序で協力させたい開発者に向けたものです。
使う場面
- ✓タスクを研究者、執筆者、分析者などの専門的な役割に分けるのが最適なとき。
- ✓エージェントを順番に、またはマネージャーのエージェントの下で動かす必要があるとき。
- ✓エージェントに、ステップをまたいで短期と長期のメモリを持たせたいとき。
スキルのリンク
https://github.com/Orchestra-Research/AI-Research-SKILLs/blob/main/14-agents/crewai/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“三つのAIエージェントのチームを作ってください。一つはトピックを調べ、一つは記事を書き、一つは誤りがないか確認します。”
毎週5つの新しいスキル。1分で読めます。
仕組み
役割、目標、経歴を持つエージェントを定義し、その後タスクを定義して、クルーにまとめます。クルーはタスクを順番または階層で実行し、エージェントは結果を受け渡します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
CrewAI - Multi-Agent Orchestration Framework
Build teams of autonomous AI agents that collaborate to solve complex tasks.
When to use CrewAI
Use CrewAI when:
- Building multi-agent systems with specialized roles
- Need autonomous collaboration between agents
- Want role-based task delegation (researcher, writer, analyst)
- Require sequential or hierarchical process execution
- Building production workflows with memory and observability
- Need simpler setup than LangChain/LangGraph
Key features:
- Standalone: No LangChain dependencies, lean footprint
- Role-based: Agents have roles, goals, and backstories
- Dual paradigm: Crews (autonomous) + Flows (event-driven)
- 50+ tools: Web scraping, search, databases, AI services
- Memory: Short-term, long-term, and entity memory
- Production-ready: Tracing, enterprise features
Use alternatives instead:
- LangChain: General-purpose LLM apps, RAG pipelines
- LangGraph: Complex stateful workflows with cycles
- AutoGen: Microsoft ecosystem, multi-agent conversations
- LlamaIndex: Document Q&A, knowledge retrieval
Quick start
Installation
# Core framework
pip install crewai
# With 50+ built-in tools
pip install 'crewai[tools]'
Create project with CLI
# Create new crew project
crewai create crew my_project
cd my_project
# Install dependencies
crewai install
# Run the crew
crewai run
Simple crew (code-only)
from crewai import Agent, Task, Crew, Process
# 1. Define agents
researcher = Agent(
role="Senior Research Analyst",
goal="Discover cutting-edge developments in AI",
backstory="You are an expert analyst with a keen eye for emerging trends.",
verbose=True
)
writer = Agent(
role="Technical Writer",
goal="Create clear, engaging content about technical topics",
backstory="You excel at explaining complex concepts to general audiences.",
verbose=True
)
# 2. Define tasks
research_task = Task(
description="Research the latest developments in {topic}. Find 5 key trends.",
expected_output="A detailed report with 5 bullet points on key trends.",
agent=researcher
)
write_task = Task(
description="Write a blog post based on the research findings.",
expected_output="A 500-word blog post in markdown format.",
agent=writer,
context=[research_task] # Uses research output
)
# 3. Create and run crew
crew = Crew(
agents=[researcher, writer],
tasks=[research_task, write_task],
process=Process.sequential, # Tasks run in order
verbose=True
)
# 4. Execute
result = crew.kickoff(inputs={"topic": "AI Agents"})
print(result.raw)
Core concepts
Agents - Autonomous workers
from crewai import Agent
agent = Agent(
role="Data Scientist", # Job title/role
goal="Analyze data to find insights", # What they aim to achieve
backstory="PhD in statistics...", # Background context
llm="gpt-4o", # LLM to use
tools=[], # Tools available
memory=True, # Enable memory
verbose=True, # Show reasoning
allow_delegation=True, # Can delegate to others
max_iter=15, # Max reasoning iterations
max_rpm=10 # Rate limit
)
Tasks - Units of work
from crewai import Task
task = Task(
description="Analyze the sales data for Q4 2024. {context}",
expected_output="A summary report with key metrics and trends.",
agent=analyst, # Assigned agent
context=[previous_task], # Input from other tasks
output_file="report.md", # Save to file
async_execution=False, # Run synchronously
human_input=False # No human approval needed
)
Crews - Teams of agents
from crewai import Crew, Process
crew = Crew(
agents=[researcher, writer, editor], # Team members
tasks=[research, write, edit], # Tasks to complete
process=Process.sequential, # Or Process.hierarchical
verbose=True,
memory=True, # Enable crew memory
cache=True, # Cache tool results
max_rpm=10, # Rate limit
よくある質問
LangChainが必要ですか?
いいえ。CrewAIは単独で動き、LangChainへの依存はないとスキルは述べています。
新しいプロジェクトはどう始めますか?
crewai create crew my_projectを実行し、そこに示された依存関係をインストールします。
ツールは含まれていますか?
はい。Web検索やスクレイピングなど、50以上の組み込みツールに触れています。
詳細
作者による元の説明
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/hierarchical execution. Built without LangChain dependencies for lean, fast execution.
人気
- GitHubのスター
- 14k
- ランキング
- #11221
- ライセンス
- MIT
- 更新日
- 2026/10/10
コメント
- …
このリポジトリの他のスキル
autoresearch
14kエージェントが、大まかなアイデアから実験、執筆まで、文献レビューを含むAI研究プロジェクト全体を、テストと見直しを繰り返しながら進められるよう支援します。
prompt-guard
14kエージェントが、Metaの小さな分類器を使い、AIアプリに届く前のテキストにプロンプトインジェクションやジェイルブレイクの試みがないか確認できるよう支援します。
pytorch-fsdp2
14kエージェントが、大規模なモデルを複数のGPUに分割して正しく保存できるよう、PyTorchのFSDP2を学習スクリプトに追加する方法を示します。
ml-training-recipes
14kエージェントが、モデルの選択、オプティマイザー、学習率、損失の急上昇への対処を含む、ニューラルネットワーク学習の実証済みの手順を使えるよう支援します。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。