Agent skill

Crewai

by magnus919 in magnus919/agent-skills

Build role-based multi-agent systems with CrewAI. An agent skill from magnus919/agent-skills.

MITAuto-check passedAI & LLM Engineering

Install Crewai

skills CLI
$ npx skills add magnus919/agent-skills --skill crewai -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install magnus919/agent-skills crewai --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/magnus919/agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/crewai .claude/skills/crewai && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
crewai
GitHub stars
115
Token cost
~1.7k tokens
SKILL.md length
514 words
Files
16 (incl. scripts, references)
Skills in repo
131
Repo updated
First seen
Licence
MIT

At a glance

Build role-based multi-agent systems with CrewAI. An agent skill from magnus919/agent-skills.

  • Works in 6 steps: Agents are Roles, not functions. Role +… → Tasks declare what, not how. Description… → Sequential is for pipelines,… → …
  • Orchestrating multi-agent teams
  • SKILL.md covers Core Paradigm, Core Principles, Where to Start and Quick Reference, plus 5 more sections
  • Runs Python scripts from its folder

What it does

Crewai is an agent skill from magnus919/agent-skills. Build role-based multi-agent systems with CrewAI. Agents with Role/Goal/Backstory, task design, crew composition (sequential or hierarchical), tool integration, callbacks, and production deployment. Use when orchestrating multi-agent teams or comparing agent frameworks. Do not use this skill for unrelated requests; route to the nearest named specialist.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 19 other files, including scripts and reference files (for example `README.md`, `evals/evals.json` and `references/agent-design.md`).

It sits in AI & LLM Engineering, covering Building AI agents. It works with CrewAI. The repository describes itself as: Curated collection of AI agent skills for Hermes and other agent frameworks. The licence is MIT.

When your agent uses it

  • Orchestrating multi-agent teams
  • Comparing agent frameworks
  • Unrelated requests
  • Route to the nearest named specialist

Example prompts

  • “/crewai”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Agents are Roles, not functions. Role + Goal + Backstory defines the agent's identity. Strong role definitions reduce hallucination.
  2. Tasks declare what, not how. Description + expected_output defines the task. The agent figures out execution.
  3. Sequential is for pipelines, Hierarchical is for complexity. Sequential runs tasks in order. Hierarchical uses a manager agent to delegate…
  4. Manager LLM is required for Hierarchical. Without manager_llm, hierarchical process fails silently.
  5. Delegation loops are real. allow_delegation=True without max_iter bounds can cause infinite handoffs.
  6. Tool errors don't raise. A failed tool call marks the task as failed but doesn't raise an exception. Check task output.

What it can do on your machine

Read from SKILL.md and the folder at commit 22b4723. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Crewai loads about 1.7k tokens when it runs, and up to ~5.1k if it reads all its reference files. Until then it costs about 91 tokens; SKILL.md has 514 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~91
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from magnus919/agent-skills at commit 22b4723, republished under its MIT licence (© magnus919). 514 words, ~1,657 tokens.

Download SKILL.mdSave it as .claude/skills/crewai/SKILL.md (or your agent's skills folder). This skill also uses 15 other files; get the full folder from GitHub.
name
crewai
description
Build role-based multi-agent systems with CrewAI. Agents with Role/Goal/Backstory, task design, crew composition (sequential or hierarchical), tool integration, callbacks, and production deployment. Use when orchestrating multi-agent teams or comparing agent frameworks. Do not use this skill for unrelated requests; route to the nearest named specialist.
license
MIT
metadata.author
Magnus Hedemark
metadata.version
1.1.0
metadata.source
https://docs.crewai.com

CrewAI Expert Skill

CrewAI is a framework for role-based multi-agent orchestration. Unlike LangGraph's low-level state-machine graphs, CrewAI provides a higher abstraction: agents are defined as Roles with Goals and Backstories, crews are composed with built-in sequential or hierarchical workflows, and inter-agent delegation is built into the framework.

Core Paradigm

python
from crewai import Agent, Task, Crew, Process
from crewai.tools import tool

@tool("search")
def search_web(query: str) -> str:
    """Search the web for information."""
    return f"Results for: {query}"

researcher = Agent(
    role="Senior Researcher",
    goal="Find accurate information on any topic",
    backstory="Expert researcher with 10 years of experience",
    tools=[search_web],
    verbose=True,
)

writer = Agent(
    role="Technical Writer",
    goal="Write clear reports from research findings",
    backstory="Experienced technical writer",
    verbose=True,
)

research_task = Task(
    description="Research the topic thoroughly",
    expected_output="A detailed research brief",
    agent=researcher,
)

write_task = Task(
    description="Write a report based on research",
    expected_output="A well-structured report",
    agent=writer,
)

crew = Crew(
    agents=[researcher, writer],
    tasks=[research_task, write_task],
    process=Process.sequential,
    verbose=True,
)

result = crew.kickoff()

Core Principles

  1. Agents are Roles, not functions. Role + Goal + Backstory defines the agent's identity. Strong role definitions reduce hallucination.
  2. Tasks declare what, not how. Description + expected_output defines the task. The agent figures out execution.
  3. Sequential is for pipelines, Hierarchical is for complexity. Sequential runs tasks in order. Hierarchical uses a manager agent to delegate and validate.
  4. Manager LLM is required for Hierarchical. Without manager_llm, hierarchical process fails silently.
  5. Delegation loops are real. allow_delegation=True without max_iter bounds can cause infinite handoffs.
  6. Tool errors don't raise. A failed tool call marks the task as failed but doesn't raise an exception. Check task output.

Where to Start

You already have...Start here
Nothing — exploring CrewAISequential crew with 2 agents (research → write)
Agents you want to coordinateBuild a Hierarchical crew with manager_llm
Tools you want to integrateUse @tool decorator, add tools to relevant agents
A production deploymentAdd callbacks, memory, error handling

Quick Reference

TaskApproachReference
Define agentAgent(role, goal, backstory)references/agent-design.md
Define taskTask(description, expected_output, agent)references/task-design.md
Sequential crewCrew(process=Process.sequential)references/crew-patterns.md
Hierarchical crewCrew(process=Process.hierarchical, manager_llm=...)references/crew-patterns.md
Create tool@tool("name") decoratorreferences/tool-integration.md
Add callbacksstep_callback=fn on Agentreferences/callbacks.md
Enable memorymemory=True on Crew or Agentreferences/crew-patterns.md

Framework Routing Guide

ScenarioReach forWhy
Role-based multi-agent teamsCrewAIRole/Goal/Backstory is the native abstraction
State-machine multi-agentLangGraphGraph topology, subgraphs, human-in-the-loop
Conversational multi-agentAutoGenAgent chat as orchestration primitive
Chain/agent compositionLangChainLCEL pipe operator for general chains
Documents to query / RAGLlamaIndexData ingestion is the primary primitive
Show full SKILL.md (212 more words)Show less

Reference Files

ReferenceLoad whenFile
Agent DesignDefining agents with roles, goals, backstoriesreferences/agent-design.md
Task DesignCreating tasks with descriptions and outputsreferences/task-design.md
Crew PatternsSequential, hierarchical, consensual crewsreferences/crew-patterns.md
Tool IntegrationCreating tools with @tool decoratorreferences/tool-integration.md
CallbacksMonitoring agent and task executionreferences/callbacks.md
Memory SystemUnified Memory class, cross-agent contextreferences/memory-system.md
FlowsEvent-driven orchestration connecting crewsreferences/flows.md
FAQ & TroubleshootingCommon errors and fixesreferences/faq-and-troubleshooting.md

Templates

TemplateWhen to useFile
Research CrewSequential: researcher → writer → reviewertemplates/research-crew.py
Hierarchical CrewManager with specialist agentstemplates/hierarchical-crew.py
Customer SupportTriage → specialist → responsetemplates/support-crew.py

Troubleshooting

SymptomLikely causeFixReference
Crew runs but no outputAgent stuck in delegation loopSet max_iter=15 on agentreferences/agent-design.md
Hierarchical crew failsNo manager_llm setAdd manager_llm=ChatOpenAI(model="gpt-4")references/crew-patterns.md
Task never completesAgent exceeds max_iterIncrease max_iter or simplify taskreferences/agent-design.md
Tool not being calledTool not added to agentAdd tools=[my_tool] to Agent definitionreferences/tool-integration.md
High token usageHierarchical modeManager processes all outputs — use cheaper LLMreferences/crew-patterns.md
Memory between tasks not workingCrew-level memory not setAdd memory=True to Crewreferences/crew-patterns.md

When NOT to Use CrewAI

  • Single-agent task — too much abstraction for one agent
  • Need fine-grained graph control (cycles, conditional branching) — use LangGraph
  • Need conversational agent interactions — use AutoGen
  • Need simple chain composition — use LangChain LCEL

© magnus919, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 15 other files (scripts, references) in crewai of magnus919/agent-skills.

  • SKILL.md
  • README.md
  • evals/evals.json
  • references/agent-design.md
  • references/callbacks.md
  • references/crew-patterns.md
  • references/faq-and-troubleshooting.md
  • references/flows.md
  • references/memory-system.md
  • references/task-design.md
  • references/tool-integration.md
  • references/validation-audit.md
  • scripts/check-setup.py
  • templates/hierarchical-crew.py
  • templates/research-crew.py
  • templates/support-crew.py

Open the folder on GitHubat commit 22b4723

Compare with similar skills

Crewai next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Crewai compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Crewai this skillmagnus919/agent-skills115—~1.7kAutomated safety check: PassMIT
Agentsop Crewaiagentsope/SkillAlchemy436—~4.8kAutomated safety check: PassMIT
Crewaidavila7/claude-code-templates33k4 repos~1.5kAutomated safety check: PassMIT
Mem0 Platform SDKmem0ai/mem067k1 repos~2.2kAutomated safety check: PassApache-2.0
Edgeone Makers MigrationTencentEdgeOne/edgeone-makers-tools1.9k1 repos~4.1kAutomated safety check: PassMIT
Omnigent Framework Detectionomnigent-ai/omnigent11k—~610Automated safety check: PassApache-2.0

Similar skills

  • Agentsop Crewai

    agentsope/SkillAlchemy

    SOP for building multi-agent systems with CrewAI — role-based collaboration, sequential/hierarchical processes, Flows, memory, delegation.

    436 GitHub stars~4.8k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed
  • Crewai

    davila7/claude-code-templates

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

    33k GitHub starsUsed in 4 repos~1.5k tokens
    AI & LLM EngineeringAuto-check passed
  • Adds persistent memory to AI apps with the Mem0 Python and TypeScript SDKs: store, search, update and delete user memories, with framework integrations.

    67k GitHub starsUsed in 1 repo~2.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Edgeone Makers Migration

    TencentEdgeOne/edgeone-makers-tools

    Migrate existing AI agent projects (LangChain, LangGraph, OpenAI Agents SDK, Claude Agent SDK, CrewAI) to EdgeOne Makers platform conventions.

    1.9k GitHub starsUsed in 1 repo~4.1k tokens
    AI & LLM EngineeringAuto-check passed
  • Omnigent Framework Detection

    omnigent-ai/omnigent

    Scans Python agent code for framework imports and recommends the matching Omnigent executor type, or says when the framework is not natively supported yet.

    11k GitHub stars~610 tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Edgeone Makers Agents

    TencentEdgeOne/edgeone-makers-tools

    This skill guides building AI agent endpoints on EdgeOne Makers — five framework routes (DeepAgents, LangGraph, CrewAI, OpenAI Agents SDK, Claude Agent SDK), platform-injected context.store /…

    1.9k GitHub starsUsed in 1 repo~5.8k tokens
    AI & LLM EngineeringAuto-check: notes

More from magnus919/agent-skills

All 131 skills in this repo
  • Artifact Pyramids

    magnus919/agent-skills

    Organize durable agent research outputs as summaries, analysis, and evidence dossiers.

    115 GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • Ascii City Engine

    magnus919/agent-skills

    Build portable, first-person colored ASCII city engines and small GIS-derived city packs.

    115 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Color Management

    magnus919/agent-skills

    Manage color workflows with ICC profiles, working spaces, gamut mapping, and color science.

    115 GitHub stars~2.6k tokensUpdated today
    Auto-check: notes
  • Data Scientist

    magnus919/agent-skills

    A skill your agent uses for PhD-level expertise in data science, statistics, and machine learning: rigorous statistical analysis, experimental design, causal inference, advanced modeling, research…

    115 GitHub stars~4.1k tokensUpdated today
    Auto-check passed
  • Docker Compose

    magnus919/agent-skills

    Use Docker Compose to define, run, debug, and harden multi-container applications.

    115 GitHub stars~2k tokensUpdated today
    Auto-check: notes
  • Fpga Development

    magnus919/agent-skills

    Design, review, simulate, and verify FPGA logic using explicit RTL contracts, clock and reset models, CDC analysis, timing constraints, and reproducible implementation evidence.

    115 GitHub stars~2.7k tokensUpdated today
    Auto-check passed

Works with

Questions about Crewai

What does Crewai do?

Build role-based multi-agent systems with CrewAI. An agent skill from magnus919/agent-skills. Crewai is an agent skill from magnus919/agent-skills. Build role-based multi-agent systems with CrewAI.

When should I use Crewai?

Crewai fits situations like: orchestrating multi-agent teams; comparing agent frameworks; unrelated requests; route to the nearest named specialist.

How do I install Crewai in Claude Code?

Run `npx skills add magnus919/agent-skills --skill crewai -a claude-code`. Or copy the skill folder (crewai in magnus919/agent-skills) into .claude/skills/crewai in your project. Claude Code loads it when a task matches its description.

How do I install Crewai in Codex?

Run `npx skills add magnus919/agent-skills --skill crewai -a codex`. Or copy the skill folder (crewai in magnus919/agent-skills) into .agents/skills/crewai in your project. Codex loads it when a task matches its description.

Can I use Crewai in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add magnus919/agent-skills --skill crewai -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/crewai, .gemini/skills/crewai, .github/skills/crewai and .opencode/skills/crewai in your project.

What does Crewai need to run?

Going by SKILL.md and its folder, Crewai needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Crewai access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Crewai safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Crewai use?

Crewai is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Crewai use?

About 1.7k tokens (SKILL.md is roughly 6.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.4k tokens, read only when the agent opens those files.

What are the alternatives to Crewai?

Skills that share tags, products or a category with Crewai: Agentsop Crewai (agentsope/SkillAlchemy, 436 stars), Crewai (davila7/claude-code-templates, 33k stars), Mem0 Platform SDK (mem0ai/mem0, 67k stars) and Edgeone Makers Migration (TencentEdgeOne/edgeone-makers-tools, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Crewai?

magnus919 (a GitHub user) maintains it in magnus919/agent-skills, which has 115 GitHub stars. The repository holds 131 skills in this directory. The repository was last updated on October 10, 2026.

Source: magnus919/agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.