.claude/skills/ts-crewai/SKILL.md
You are an expert in CrewAI, the framework for orchestrating autonomous AI agents working together as a crew. You help developers define agents with specific roles, goals, and tools, then organize them into crews that collaborate on complex tasks — with sequential, parallel, and hierarchical process types, memory, delegation between agents, and integration with LangChain tools.
npx skillsauth add eliferjunior/Claude crewaiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are an expert in CrewAI, the framework for orchestrating autonomous AI agents working together as a crew. You help developers define agents with specific roles, goals, and tools, then organize them into crews that collaborate on complex tasks — with sequential, parallel, and hierarchical process types, memory, delegation between agents, and integration with LangChain tools.
from crewai import Agent, Task, Crew, Process
from crewai_tools import SerperDevTool, WebsiteSearchTool, FileReadTool
# Define specialized agents
researcher = Agent(
role="Senior Research Analyst",
goal="Find comprehensive, accurate data about the given topic",
backstory="""You are an expert researcher with 15 years of experience
in technology analysis. You are meticulous about data accuracy and
always cross-reference multiple sources.""",
tools=[SerperDevTool(), WebsiteSearchTool()],
llm="gpt-4o",
verbose=True,
allow_delegation=True, # Can ask other agents for help
memory=True,
)
writer = Agent(
role="Content Writer",
goal="Write engaging, well-structured content based on research",
backstory="""You are a skilled technical writer who transforms complex
research into clear, engaging articles. You write for a developer audience.""",
tools=[FileReadTool()],
llm="gpt-4o",
verbose=True,
)
editor = Agent(
role="Editor",
goal="Ensure content is polished, accurate, and publication-ready",
backstory="""You are a demanding editor who ensures every piece
meets the highest standards of clarity, accuracy, and engagement.""",
llm="gpt-4o",
)
# Define tasks
research_task = Task(
description="""Research the topic: {topic}
Find at least 5 credible sources, key statistics, expert opinions,
and recent developments. Focus on practical implications.""",
expected_output="Comprehensive research report with citations",
agent=researcher,
)
writing_task = Task(
description="""Write a 1500-word article based on the research.
Include: introduction, 3-4 key sections with examples, conclusion.
Target audience: senior developers and tech leads.""",
expected_output="Well-structured article in markdown format",
agent=writer,
context=[research_task], # Uses research output as input
)
editing_task = Task(
description="""Review and polish the article. Fix grammar, improve flow,
verify claims against the research, add missing context.
Return the final publication-ready article.""",
expected_output="Final polished article ready for publication",
agent=editor,
context=[research_task, writing_task],
)
# Create and run crew
crew = Crew(
agents=[researcher, writer, editor],
tasks=[research_task, writing_task, editing_task],
process=Process.sequential, # Or Process.hierarchical
memory=True, # Shared crew memory
verbose=True,
)
result = crew.kickoff(inputs={"topic": "AI agents in production: best practices for 2026"})
print(result.raw) # Final article
print(result.token_usage) # Total tokens used
from crewai.tools import BaseTool
from pydantic import BaseModel, Field
class DatabaseQueryInput(BaseModel):
query: str = Field(description="SQL query to execute")
class DatabaseQueryTool(BaseTool):
name: str = "database_query"
description: str = "Execute SQL queries against the analytics database"
args_schema: type[BaseModel] = DatabaseQueryInput
def _run(self, query: str) -> str:
results = db.execute(query)
return json.dumps(results, default=str)
# Use in agent
analyst = Agent(
role="Data Analyst",
goal="Extract insights from the database",
tools=[DatabaseQueryTool()],
llm="gpt-4o",
)
# Manager agent delegates to specialists
crew = Crew(
agents=[researcher, writer, editor, analyst],
tasks=[complex_report_task],
process=Process.hierarchical, # Manager auto-created, delegates subtasks
manager_llm="gpt-4o",
memory=True,
)
pip install crewai crewai-tools
context=[task1, task2] to pass output between tasks; explicit data flowProcess.sequential for predictable, ordered executionProcess.hierarchical when tasks need dynamic delegationmemory=True for long-running crews; agents remember previous interactionsallow_delegation=True for agents that should ask others for helpresult.token_usage to monitor costs; optimize agent instructions to reduce tokensdevelopment
Expert guidance for Fireworks AI, the platform for running open-source LLMs (Llama, Mixtral, Qwen, etc.) with enterprise-grade speed and reliability. Helps developers integrate Fireworks' inference API, fine-tune models, and deploy custom model endpoints with function calling and structured output support.
development
Convert any website into clean, structured data with Firecrawl — API-first web scraping service. Use when someone asks to "turn a website into markdown", "scrape website for LLM", "Firecrawl", "extract website content as clean text", "crawl and convert to structured data", or "scrape website for RAG". Covers single-page scraping, full-site crawling, structured extraction, and LLM-ready output.
tools
Expert guidance for Firebase, Google's platform for building and scaling web and mobile applications. Helps developers set up authentication, Firestore/Realtime Database, Cloud Functions, hosting, storage, and analytics using Firebase's SDK and CLI.
development
When the user needs to build file upload functionality for a web application. Use when the user mentions "file upload," "image upload," "upload endpoint," "multipart upload," "presigned URL," "S3 upload," "file validation," "upload to cloud storage," or "accept user files." Handles upload endpoints, file validation (type, size, magic bytes), cloud storage integration, and upload status tracking. For image/video processing after upload, see media-transcoder.