---
name: "crewai-rolebased-agent-crew"
description: "Assemble collaborative teams of specialized AI agents with CrewAI roles and tasks."
metadata:
  author: "CrewAI"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "create crewai team"
  - "define crewai agent and task"
  - "run hierarchical crewai process"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# CrewAI Role-Playing Autonomous Crews

Configures CrewAI teams: Agent (role, goal, backstory), Task (description, expected_output), Crew (process=Process.sequential or Process.hierarchical), and manager LLM coordination.

## When to Invoke
Invoke this skill whenever you need to:
- create crewai team
- define crewai agent and task
- run hierarchical crewai process

## Execution SOP & Rules
1. Assign distinct, non-overlapping roles, goals, and backstories to every agent.
2. Specify detailed expected_output descriptions for each task to prevent ambiguous results.
3. Use Process.hierarchical when dynamic delegation and planning are required.
4. Set verbose=True during development to trace inter-agent message passing.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
