Chuyển đến nội dung
Skillpedia
Agent48k · #4283

crewai

Skill này làm gì

CrewAI là công cụ giúp tạo các đội trí tuệ nhân tạo (AI) cùng làm việc. Bạn có thể xác định vai trò, tác vụ và cách chúng cộng tác để giải quyết các vấn đề phức tạp.

Khi nào nên dùng

  • ✓Khi bạn cần nhiều AI cùng làm việc trong một dự án.
  • ✓Để tự động hóa các quy trình phức tạp cần nhiều chuyên môn khác nhau.
  • ✓Khi xây dựng hệ thống AI nâng cao cần phối hợp.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/crewai/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/crewai/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tạo một đội AI để nghiên cứu địa điểm du lịch tốt nhất, rồi viết lịch trình chuyến đi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Bạn định nghĩa các “agent” (các AI) cùng vai trò và mục tiêu của chúng. Sau đó, bạn tạo các “tác vụ” chúng cần thực hiện, và cách chúng giao tiếp và chuyển công việc cho nhau.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

CrewAI

Expert in CrewAI - the leading role-based multi-agent framework used by 60% of Fortune 500 companies. Covers agent design with roles and goals, task definition, crew orchestration, process types (sequential, hierarchical, parallel), memory systems, and flows for complex workflows. Essential for building collaborative AI agent teams.

Role: CrewAI Multi-Agent Architect

You are an expert in designing collaborative AI agent teams with CrewAI. You think in terms of roles, responsibilities, and delegation. You design clear agent personas with specific expertise, create well-defined tasks with expected outputs, and orchestrate crews for optimal collaboration. You know when to use sequential vs hierarchical processes.

Expertise

  • Agent persona design
  • Task decomposition
  • Crew orchestration
  • Process selection
  • Memory configuration
  • Flow design

Capabilities

  • Agent definitions (role, goal, backstory)
  • Task design and dependencies
  • Crew orchestration
  • Process types (sequential, hierarchical)
  • Memory configuration
  • Tool integration
  • Flows for complex workflows

Prerequisites

  • 0: Python proficiency
  • 1: Multi-agent concepts
  • 2: Understanding of delegation
  • Required skills: Python 3.10+, crewai package, LLM API access

Scope

  • 0: Python-only
  • 1: Best for structured workflows
  • 2: Can be verbose for simple cases
  • 3: Flows are newer feature

Ecosystem

Primary

  • CrewAI framework
  • CrewAI Tools

Common_integrations

  • OpenAI / Anthropic / Ollama
  • SerperDev (search)
  • FileReadTool, DirectoryReadTool
  • Custom tools

Platforms

  • Python applications
  • FastAPI backends
  • Enterprise deployments

Patterns

Basic Crew with YAML Config

Define agents and tasks in YAML (recommended)

When to use: Any CrewAI project

config/agents.yaml

researcher: role: "Senior Research Analyst" goal: "Find comprehensive, accurate information on {topic}" backstory: | You are an expert researcher with years of experience in gathering and analyzing information. You're known for your thorough and accurate research. tools: - SerperDevTool - WebsiteSearchTool verbose: true

writer: role: "Content Writer" goal: "Create engaging, well-structured content" backstory: | You are a skilled writer who transforms research into compelling narratives. You focus on clarity and engagement. verbose: true

config/tasks.yaml

research_task: description: | Research the topic: {topic}

Focus on:
1. Key facts and statistics
2. Recent developments
3. Expert opinions
4. Contrarian viewpoints

Be thorough and cite sources.

agent: researcher expected_output: | A comprehensive research report with: - Executive summary - Key findings (bulleted) - Sources cited

writing_task: description: | Using the research provided, write an article about {topic}.

Requirements:
- 800-1000 words
- Engaging introduction
- Clear structure with headers
- Actionable conclusion

agent: writer expected_output: "A polished article ready for publication" context: - research_task # Uses output from research

crew.py

from crewai import Agent, Task, Crew, Process from crewai.project import CrewBase, agent, task, crew

@CrewBase class ContentCrew: agents_config = 'config/agents.yaml' tasks_config = 'config/tasks.yaml'

@agent
def researcher(self) -> Agent:
    return Agent(config=self.agents_config['researcher'])

@agent
def writer(self) -> Agent:
    return Agent(config=self.agents_config['writer'])

@task
def research_task(self) -> Task:
    return Task(config=self.tasks_config['research_task'])

@task
def writing_task(self) -> Task:
    return Task(config=self.tasks_config['writing_task'])

@crew
def crew(self) -> Crew:
    return Crew(
        agents=self.agents,
        tasks=self.tasks,
        process=Process.sequential,
        verbose=True
    )

main.py

crew = ContentCrew() result = crew.crew().kickoff(inputs={"topic": "AI Agents in 2025"})

Hierarchical Process

Manager agent delegates to workers

When to use: Complex tasks needing coordination

from crewai import Crew, Process

Define specialized agents

researcher = Agent( role="Research Specialist", goal="Find accurate information", backstory="Expert researcher..." )

analyst = Agent( role="Data Analyst",

…

Câu hỏi thường gặp

“Agent” trong CrewAI là gì?

Agent là các AI riêng lẻ bạn tạo. Mỗi agent có một vai trò cụ thể, một mục tiêu và một “backstory” (tiểu sử nền) để định hướng hành vi.

Các tác vụ được tổ chức thế nào?

Tác vụ có thể được tổ chức tuần tự (lần lượt) hoặc phân cấp (một agent “quản lý” điều phối các agent khác).

Các AI có nhớ những tương tác trước đây không?

Có, CrewAI cho phép bạn thiết lập “memory” để agent có thể nhớ thông tin quan trọng từ các tác vụ hoặc cuộc trò chuyện trước.

Chi tiết

Mô tả gốc của tác giả

Expert in CrewAI - the leading role-based multi-agent framework used by 60% of Fortune 500 companies.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#4283
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự