factory-basics

Orchestrate multi-agent workflows with pi-factory to spawn subagents and coordinate results.

Updated Jun 22, 2024
One-click install
npx skills add https://github.com/Dyrean/dotfiles --skill factory-basics-dyrean
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: factory-basics
Source: https://github.com/Dyrean/dotfiles/tree/main/pi/.pi/agent/extensions/pi-factory/skills/factory-basics
Command: npx skills add https://github.com/Dyrean/dotfiles --skill factory-basics-dyrean

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pi-factory enables writing scripts that orchestrate multiple AI agents, simplifying coordination of subagents, tasks, and results across complex workflows.

Core Features & Use Cases

  • Orchestrates multi-agent workflows using the factory global to spawn subagents, coordinate work, and compose results.
  • Supports clearly separated roles with systemPrompt vs prompt to control agent behavior and concrete tasks.
  • Provides patterns for parallel/fan-out, sequential pipelines, and synthesized results to build end-to-end automation.

Quick Start

Create a simple pi-factory script that spawns a subagent and returns its result.

Frequently Asked Questions about factory-basics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I orchestrate multi-agent workflows with parallel and sequential task coordination?

Multi-agent workflow orchestration coordinates subagents by spawning them to handle parallel fan-out tasks and sequential pipelines, then synthesizing their results into a single output using the factory global and per-agent prompt routing.

What is prompt routing and how does it control agent behavior in automation pipelines?

Prompt routing controls agent behavior by separating the systemPrompt, which defines the agent's role, from the concrete prompt, which assigns the specific task, ensuring clearly separated responsibilities within the orchestration pipeline.

Can I use TypeScript to build end-to-end automation pipelines that spawn and coordinate subagents?

TypeScript supports building end-to-end automation pipelines by using the factory global to spawn subagents, route prompts, coordinate parallel and sequential tasks, and synthesize the final results.

What's the best way to structure fan-out and pipeline patterns for multi-agent task coordination?

The best way to structure fan-out and pipeline patterns is applying orchestration patterns where subagents execute parallel tasks, followed by sequential pipelines that pass synthesized results through defined per-agent prompts.

Do I need any external dependencies to run pi-factory scripts for multi-agent orchestration?

No external dependencies are required to run pi-factory scripts for multi-agent orchestration, as the Skill relies solely on the factory global to spawn subagents and coordinate results without additional packages.

When should I not use a fan-out orchestration pattern for subagent coordination?

You should not use a fan-out orchestration pattern when tasks require strict sequential execution, as fan-out patterns spawn parallel subagents that may return results out of order before pipeline synthesis.