getting-started
БесплатноБез исполняемых скриптовНе проверенCrewAI architecture decisions and project scaffolding. Use when starting a new crewAI project, choosing between LLM.call() vs Agent.kickoff() vs…
от crewAIInc★ 51 звезда на GitHubОб этом скилле
CrewAI Getting Started & Architecture
How to choose the right abstraction, scaffold a project, and wire everything together.
Verified against crewai 1.15.23 on 2026-10-01.
Live-tested with real LLMs on 2026-10-01.
Run crewai version first; if the major/minor differs from 1.15, re-check version-sensitive details with the ask-docs skill.
MANDATORY WORKFLOW — Read This First
NEVER manually create crewAI project files. Always scaffold with the CLI:
crewai create flow <project_name>
This is not optional. Even if you only need one crew, even if you know the file structure by heart — run the CLI first, then modify the generated files. Do NOT write main.py, crew.py, agents.yaml, tasks.yaml, or pyproject.toml by hand from scratch.
Why: The CLI sets up correct imports, directory structure, pyproject.toml config, and boilerplate that is easy to get subtly wrong when done manually. The reference material below teaches you how the pieces work so you can modify scaffolded code, not so you can replace the scaffolding step.
Workflow:
- Run
crewai create flow <name>(prefer underscores; the CLI turns hyphens and spaces into underscores for the folder and package) - Edit the generated YAML and Python files to match your use case
- Run
crewai installthencrewai run
1. Choosing the Right Abstraction
crewAI has five common abstraction choices. Pick the simplest one that fits your need:
| Level | When to Use | Overhead | Example |
|---|---|---|---|
LLM.call() |
Single prompt, no tools, structured extraction | Lowest | Parse an email into fields |
Agent.kickoff() |
One agent with tools and reasoning, no multi-agent coordination | Low | Research a topic with web search |
Crew.kickoff() |
Multiple agents collaborating on related tasks | Medium | Research + write + review pipeline |
Flow wrapping crews/agents/LLM calls |
Production app with state, routing, conditionals, error handling | Full | Multi-step workflow with branching logic |
Conversational Flow |
Multi-turn chat where each user line re-runs a Flow with the same session id | Full + experimental | Support assistant with routed chat, research, and escalation turns |
Decision Flowchart
Do you need tools or multi-step reasoning?
├── No → LLM.call()
└── Yes
└── Do you need multiple agents collaborating?
├── No → Agent.kickoff()
└── Yes
└── Do you need state management, routing, or multiple crews?
├── No → Crew (but still scaffold as a Flow for future-proofing)
└── Yes → Flow + Crew(s)
Do users send multiple chat messages in one session?
└── Yes → Conversational Flow with handle_turn(message, session_id=...)
Rule of thumb: For any production application, always start with a Flow. You can embed LLM.call(), Agent.kickoff(), or Crew.kickoff() inside Flow steps. This gives you state management, error handling, and room to grow.
For chat applications, start with a conversational Flow rather than trying to make Crew.kickoff() or Flow.kickoff() act like a chat loop: call flow.handle_turn(message, session_id=...) for every user line, or flow.chat() for a local terminal REPL. Official guide: https://docs.crewai.com/en/guides/flows/conversational-flows.
2. LLM.call() — Direct LLM Invocation
Use for simple, single-turn tasks where you don't need tools or agent reasoning.
from crewai import LLM
from pydantic import BaseModel
class EmailFields(BaseModel):
sender: str
subject: str
urgency: str
llm = LLM(model="openai/gpt-4o") # non-OpenAI providers need their extra, e.g. uv add "crewai[anthropic]"
# Plain call - returns a string
raw = llm.call(messages=[{"role": "user", "content": "Summarize this text..."}])
print(raw) # str
# With response_model - returns the Pydantic object directly
result = llm.call(
messages=[{"role": "user", "content": f"Extract fields from this email: {email_text}"}],
response_model=EmailFields,
)
print(result.sender) # str — access Pydantic fields directly
print(result.urgency) # str
llm.call(..., response_format=Model)raisesTypeError: ... unexpected keyword argument 'response_format'. Did you mean 'response_model'?. OnLLM.call()the keyword isresponse_model; onAgent.kickoff()it isresponse_format(next section).
When NOT to use: If you need tools, multi-step reasoning, or retries — use an Agent instead.
3. Agent.kickoff() — Single Agent Execution
Use when you need one agent with tools and reasoning, but don't need multi-agent coordination.
from crewai import Agent
from crewai_tools import SerperDevTool
from pydantic import BaseModel
class ResearchFindings(BaseModel):
main_points: list[str]
key_technologies: list[str]
researcher = Agent(
role="AI Researcher",
goal="Research the latest AI developments",
backstory="Expert AI researc
Установить getting-started в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл getting-started?
CrewAI architecture decisions and project scaffolding. Use when starting a new crewAI project, choosing between LLM.call() vs Agent.kickoff() vs Crew.kickoff() vs Flow, scaffolding with 'crewai create flow', setting up YAML config (agents.yaml, tasks.yaml), wiring @CrewBase crew.py, writing Flow main.py with @start/@listen, building experimental conversational Flows with handle_turn()/chat(), or using {variable} interpolation.
Как установить скилл getting-started?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл getting-started запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic