agentsclimarketplace

Crewai

Skill magnus919/agent-skills/crewai

Curated collection of AI agent skills for Hermes and other agent frameworks

Install
npx -y skills add magnus919/agent-skills --skill crewai

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 25 days oldThe repository was created 25 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • 21 stars21 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Expert skill for role-based multi-agent orchestration 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.

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

6.4 KB, as published. Nobody here has run it

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

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

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

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.