factory-basics

Orchestrate multiple AI agents with the Run-time API for parallel and sequential workflows.

19|3|Updated Feb 4, 2021
One-click install
npx skills add https://github.com/laulauland/dotfiles --skill factory-basics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: factory-basics
Source: https://github.com/laulauland/dotfiles/tree/main/shared/.pi/agent/extensions/pi-factory/skills/factory-basics
Command: npx skills add https://github.com/laulauland/dotfiles --skill factory-basics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pi-factory provides a structured way to write programs that orchestrate multiple AI agents. It helps you spawn subagents, coordinate parallel and sequential tasks, and compose results across complex workflows using patterns like fan-out, pipelines, and synthesis.

Core Features & Use Cases

  • Spawning subagents to perform distributed tasks and returning aggregated results
  • Coordinating parallel and sequential execution with rt.parallel and rt.sequence
  • Pattern-based orchestration (fan-out, pipelines, synthesis) for scalable automation
  • Real-world use: build end-to-end agent-driven automation such as data gathering, analysis, and reporting

Quick Start

Create a simple pi-factory program that spawns a researcher agent and aggregates the result

Frequently Asked Questions about factory-basics

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

FAQPage Schema
How do I coordinate parallel and sequential tasks across multiple AI agents?

Coordinating parallel and sequential tasks across multiple AI agents requires a programmable orchestration runtime to manage execution. You can spawn subagents and compose results across complex workflows using fan-out, pipelines, and synthesis patterns.

What is multi-agent orchestration for scalable automation?

Multi-agent orchestration is a structured programming method for AI agents to execute distributed tasks and return aggregated results. It uses pattern-based execution for scalable automation, enabling end-to-end agent-driven workflows for data gathering, analysis, and reporting.

How do I spawn subagents and compose results in a fan-out workflow?

To spawn subagents and compose results, utilize a runtime API featuring spawn and join commands. This executes fan-out workflows where multiple subagents perform distributed tasks and return an aggregated synthesis of the combined results.

Can I build end-to-end agent-driven workflows for data gathering and reporting?

Yes, you can build end-to-end agent-driven workflows for data gathering and reporting through pattern-based orchestration. This involves spawning researcher subagents to collect data and synthesizing the aggregated results into a final comprehensive report.

What runtime APIs are needed for context propagation and session management?

Required runtime APIs for context propagation and session management include spawn, join, parallel, sequence, workspace, observe, and shutdown. These commands provide the programmable runtime needed to handle robust error handling and state coordination across agents.

When should I not use pattern-based orchestration for multi-agent workflows?

Avoid pattern-based orchestration when tasks require simple linear execution without spawning subagents or coordinating parallel tasks. It is specifically designed for complex fan-out and pipeline workflows requiring robust error handling and context propagation.