flow-orchestration
Guides LazyLLM pipeline, parallel, branching, looping, binding, graph, and traceable flow orchestration workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- flow-orchestration
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Guides LazyLLM pipeline, parallel, branching, looping, binding, graph, and traceable flow orchestration workflows.
- disable-model-invocation
- true
02 资源文件 2
- 参考文档references/flow-recipes.md2.7 KB
- 参考文档references/troubleshooting.md1.9 KB
03 SKILL.md 正文
LazyLLM Flow Orchestration
Use this sub-skill when a task asks how to compose LazyLLM flows with pipeline, parallel, diverter, switch, ifs, loop, warp, barrier, bind, nested contexts, or traceable graph execution.
Start here when
- The user wants to turn Python functions, model modules, RAG retrievers, or agents into a LazyLLM workflow.
- A flow returns an unexpected tuple/list/dict shape.
- The task mentions
_skip_items,_kept_items,_scatter,_concurrent,bind,pipeline()context managers, nested subflows, or conditional/loop execution. - You need to replace model/RAG/agent nodes with deterministic callables before debugging orchestration.
Files to read
- flow-recipes.md for concise recipes and common shape semantics.
- troubleshooting.md for output-shape, binding, and backend debugging failures.
- scripts/flow_smoke.py for a safe Python-callable flow smoke test.
Safe flow-building sequence
- Sketch the data shape at each node before adding LazyLLM primitives.
- Prototype with deterministic Python callables rather than models/providers.
- Choose the primitive.
pipeline: sequential composition.parallel: same input through multiple stages; can return tuples and skip/keep items.diverter: distribute positional/list/tuple/dict inputs to separate functions.switch/ifs: conditional routing.loop: repeated execution with count or stop condition.bind: bind flow inputs or prior stage outputs into callable parameters.
- Run
scripts/flow_smoke.pyto confirm the environment and expected semantics. - Swap in heavy nodes last and route their setup to model-deployment, RAG, agents-tools, or writer-review.
Verified examples from tests
pipeline(add_one, add_one)(1) == 3.- Context manager pipelines can name stages and bind the original input or previous outputs into later stages.
parallel(add_one, add_one)(1) == (2, 2)._skip_itemsand_kept_itemsselect by index or by named stage, but cannot be provided together.switchsupports predicate-to-action maps, default cases, conversion functions, and full-input judging.ifssupports booleans and callable conditions and propagates real condition exceptions.loopsupports fixed counts, stop conditions, and runtime limit expansion.
Cross-sub-skill links
- Use model-deployment when a flow node calls
OnlineModule,TrainableModule, orServerModule. - Use rag-document-processing when a flow node ingests documents, retrieves nodes, or reranks contexts.
- Use agents-tools when a flow node is a tool manager or agent.
- Use writer-review when flow output is a writer artifact or review command plan.
Handoff checklist
When you finish a flow task, provide:
- primitive choice and why,
- input/output shape for each stage,
- minimal deterministic smoke result,
- where model/RAG/agent/writer nodes are configured,
- any concurrency/multiprocessing or side-effect warnings.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.