$npx -y skills add vibeeval/vibecosystem --skill agentica-spawn--- name: agentica-spawn description: Spawn Agentica multi-agent patterns user-invocable: false ---
| 1 | # Agentica Spawn Skill |
| 2 | |
| 3 | Use this skill after user selects an Agentica pattern. |
| 4 | |
| 5 | ## When to Use |
| 6 | |
| 7 | - After agentica-orchestrator prompts user for pattern selection |
| 8 | - When user explicitly requests a multi-agent pattern (swarm, hierarchical, etc.) |
| 9 | - When implementing complex tasks that benefit from parallel agent execution |
| 10 | - For research tasks requiring multiple perspectives (use Swarm) |
| 11 | - For implementation tasks requiring coordination (use Hierarchical) |
| 12 | - For iterative refinement (use Generator/Critic) |
| 13 | - For high-stakes validation (use Jury) |
| 14 | |
| 15 | ## Pattern Selection to Spawn Method |
| 16 | |
| 17 | ### Swarm (Research/Explore) |
| 18 | ```python |
| 19 | swarm = Swarm( |
| 20 | perspectives=[ |
| 21 | "Security expert analyzing for vulnerabilities", |
| 22 | "Performance expert optimizing for speed", |
| 23 | "Architecture expert reviewing design" |
| 24 | ], |
| 25 | aggregate_mode=AggregateMode.MERGE, |
| 26 | ) |
| 27 | result = await swarm.execute(task_description) |
| 28 | ``` |
| 29 | |
| 30 | ### Hierarchical (Build/Implement) |
| 31 | ```python |
| 32 | hierarchical = Hierarchical( |
| 33 | coordinator_premise="You break tasks into subtasks", |
| 34 | specialist_premises={ |
| 35 | "planner": "You create implementation plans", |
| 36 | "implementer": "You write code", |
| 37 | "reviewer": "You review code for issues" |
| 38 | }, |
| 39 | ) |
| 40 | result = await hierarchical.execute(task_description) |
| 41 | ``` |
| 42 | |
| 43 | ### Generator/Critic (Iterate/Refine) |
| 44 | ```python |
| 45 | gc = GeneratorCritic( |
| 46 | generator_premise="You generate solutions", |
| 47 | critic_premise="You critique and suggest improvements", |
| 48 | max_rounds=3, |
| 49 | ) |
| 50 | result = await gc.run(task_description) |
| 51 | ``` |
| 52 | |
| 53 | ### Jury (Validate/Verify) |
| 54 | ```python |
| 55 | jury = Jury( |
| 56 | num_jurors=5, |
| 57 | consensus_mode=ConsensusMode.MAJORITY, |
| 58 | premise="You evaluate the solution" |
| 59 | ) |
| 60 | verdict = await jury.decide(bool, question) |
| 61 | ``` |
| 62 | |
| 63 | ## Environment Variables |
| 64 | |
| 65 | All spawned agents receive: |
| 66 | - `SWARM_ID`: Unique identifier for this swarm run |
| 67 | - `AGENT_ROLE`: Role within the pattern (coordinator, specialist, etc.) |
| 68 | - `PATTERN_TYPE`: Which pattern is running |