macroflow-network
Orchestrate MacroFlow as a flow network for dynamic AI orchestration.
When & Why to Use This Skill
The MacroFlow Network skill provides a sophisticated framework for dynamic AI orchestration by modeling complex tasks as a flow network. It utilizes graph-based logic and the Ford-Fulkerson algorithm to optimize task distribution, enabling efficient parallel execution and seamless coordination between multiple AI sub-skills for high-level problem solving.
Use Cases
- Complex Software Engineering: Managing the end-to-end development lifecycle by orchestrating phases like requirement clarification, architectural planning, and code implementation in a structured flow.
- Parallel Task Optimization: Accelerating research and analysis by running context-gathering (Clarify) and rule-setting (Constitution) nodes simultaneously before merging data for final synthesis.
- Dynamic Workflow Management: Using flow network theory to identify the most efficient path for data through various AI modules, ensuring optimal resource allocation and reducing processing latency.
| name | macroflow-network |
|---|---|
| description | Orchestrate MacroFlow as a flow network for dynamic AI orchestration. |
MacroFlow Network Skill
Instructions
- Load graph from graph.json (nodes: Constitution, Clarify, Specify, Plan, Tasks, Implement; edges with capacities).
- Simulate max-flow using Ford-Fulkerson for optimization.
- Traverse: Parallel start Constitution/Clarify, merge at Plan, etc.
- Invoke sub-skills for each node with flow data.
- Output: Final result at sink.
Examples
- Input: User query for code gen.
- Output: Orchestrated flow through phases.
Learned Patterns
- Constitution and Clarify run in parallel for speed.
- Grok X-insights enhance Clarify with real-time data.