agentsop-crewai

agentsop-crewai is a skill for Claude Code from agentsope/SkillAlchemy. It costs 45 tokens per session (7,100 once invoked), scanned A, original, MIT.

A guide for building teams of language-model agents with CrewAI, where agents have defined roles and tasks can run in sequence or under a hierarchy.

In plain words
What is it for?
Use it for pipelines such as research, analysis, and report writing when each role has a clear responsibility.
Why use it?
It provides a structure for work that can be divided among several specialist roles instead of handled by one agent.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Good fit Use it for pipelines such as research, analysis, and report writing when…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agentsope/skillalchemy/agentsop-crewai
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add agentsope/SkillAlchemy --skill agentsop-crewai
Clone the repo
git clone --depth 1 https://github.com/agentsope/SkillAlchemy

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agentsop-crewai

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentsope/skillalchemy/agentsop-crewai.svg)](https://agentmods.dev/skills/agentsope/skillalchemy/agentsop-crewai)
Your own site
<a href="https://agentmods.dev/skills/agentsope/skillalchemy/agentsop-crewai"><img src="https://agentmods.dev/badge/skills/agentsope/skillalchemy/agentsop-crewai.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,100 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.07100
Opus 5 $0.00023 $0.03550
Sonnet 5 $0.00009 $0.01420
Haiku 4.5 $0.00005 $0.00710

Measured 7d ago against content hash fa9426934f9d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

agentsop-crewai scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/agentsop-crewai/SKILL.md · 495 lines

How it starts

The opening of the file, as written. The whole thing — 495 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CrewAI SOP — Role-Based Multi-Agent Orchestration

框架口号: "Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly." [github.com/crewAIInc/crewAI]


1. 何时激活 (When to Activate)

1.1 直接信号 (Direct triggers)

  • 用户说 "我需要 researcher + writer + reviewer 这种团队配合"
  • 用户说 "用 CrewAI 实现 / 我已经在用 crew.kickoff()"
  • 任务可以拆为 2–5 个专业角色,且每个角色有明确职责边界
  • 流程是线性 pipeline(数据→分析→报告)或轻度分支

1.2 反向信号 (Skip CrewAI when)

  • 单 agent + tool-use 就够 → 直接用 SDK / Instructor(CrewAI 是 over-engineering)
  • 需要状态图 + 循环 + 中断恢复 → LangGraph 更合适
  • 需要 agents 之间自由对话辩论 → AutoGen 更合适
  • 需要严格条件路由("if X then only A else B")→ 用 CrewAI Flows 而非 hierarchical Crew,或直接 LangGraph
  • 延迟敏感(<500ms) → 多 agent 编排不适合

1.3 心智门槛 (Mental check)

"An agent needs agency, otherwise it's just another script." — João Moura, CrewAI 创始人 [softwareengineeringdaily.com/2025/06/03/crew-ai-with-joao-moura/]

如果你能用 if/else 提前写死流程,不要用 Crew。Crew 的本质是把"决策权"让渡给 LLM 角色。


2. 核心心智模型 (Mental Model)

2.1 四元抽象 (The 4 primitives)

Agent (role + goal + backstory)  ← 谁
   ↓ 持有
Task (description + expected_output + agent + context)  ← 做什么
   ↓ 组装
Crew (agents + tasks + process)  ← 怎么协作
   ↓ 选择
Process (sequential | hierarchical) + Flow (event-driven 编排)  ← 控制流

2.2 为什么 "role + goal + backstory" 三件套?

CrewAI 的核心假设:LLM 在 role-playing 状态下表现更好

  • role: 函数性身份 ("Senior Data Researcher") — 决定 prompt 主语
  • goal: 个体目标 ("Uncover cutting-edge developments in {topic}") — 决定决策方向
  • backstory: 经验/性格 ("You're a seasoned researcher with a knack for…") — 校准语气与判断风格

"Backstory provides depth to the agent's persona, enriching its motivations and engagements within the crew." [docs.crewai.com/en/concepts/agents]

关键洞察: backstory 不是装饰。它是 system prompt 的最大杠杆——同一个 role+goal,换 backstory 会显著改变产出质量与风格。

2.3 Sequential vs Hierarchical vs Flow

维度 Sequential Hierarchical Flow
任务路由 静态列表顺序 manager LLM 动态分派 @listen 事件驱动
控制力 高 (写死顺序) 低 (manager 自由发挥) 最高 (代码 + 状态)
Token 开销 1× 基线 1.3–1.5× (manager overhead) 接近 1×
调试难度 高 (manager 黑盒)
何时用 80% 场景默认 真正需要动态分派 复杂分支 + 多 Crew 编排
已知坑 task context 自动透传可能膨胀 manager 会"执行所有 task"而非"按需调用" 学习曲线 + 状态设计

Read the full file on GitHub · 495 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 495 lines · 45 tokens per session scan A fa9426934f9d

Subscribe to this mod's changes

agentsop-crewai is a skill published in the GitHub repository agentsope/SkillAlchemy (366 stars, last pushed 4d ago), licensed MIT. It adds 45 tokens to every session and 7,100 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

karpathy-llm-wiki

Use when building or maintaining a personal LLM-powered knowledge base. Triggers: ingesting sources into a wiki, querying wiki knowledge, linting wiki quality, 'add to wiki', 'what do I know about', or any mention of 'LLM wiki' or 'Karpathy wiki'.

Astro-Han/karpathy-llm-wiki · 67 tokens

shellgames

Play board games on ShellGames.ai — Chess, Poker, Ludo, Tycoon, Memory, and Spymaster. Use when the agent wants to play games against humans or other AI agents, join tournaments, chat with players, check leaderboards, or manage a ShellGames account. Triggers on "play chess/poker/ludo/memory", "shellgames", "join…

MemTensor/skills-vote · 103 tokens

curl-search

Web search using curl + multiple search engines (Baidu, Google, Bing, DuckDuckGo). Activates when user asks to search, look up, or query something online. Includes security enhancements: input sanitization, command injection protection, and URL encoding.

MemTensor/skills-vote · 55 tokens

skills-vote-local

Use when retrieving the most relevant skills from a local or private skill library instead of relying on network-based skill discovery.

MemTensor/skills-vote · 28 tokens

Disease Progression Trajectory Analysis

Use this skill when you have longitudinal patient omics data and want to.

TianGzlab/OmicsClaw · 6 tokens

Upstream Regulator Analysis

Identify transcription factors (TFs) driving observed differential expression by integrating ChIP-Atlas TF binding data (epigenomics) with RNA-seq DE results (transcriptomics). Ranks TFs by a combined regulatory score incorporating binding enrichment, target-DE overlap (Fisher's exact test), and directional…

TianGzlab/OmicsClaw · 5 tokens