Agent Skills
› TangleML/tangle-ui
› Tangle Pipeline Best Practices
Tangle Pipeline Best Practices
GitHub提供Tangle框架下构建可维护ML管道的最佳实践,涵盖结构组织、组件选择、数据流设计及常见模式,旨在提升流水线清晰度和复用性。
Trigger Scenarios
询问Tangle管道设计规范
优化机器学习流水线结构
检查组件复用与连接规范
Install
npx skills add TangleML/tangle-ui --skill Tangle Pipeline Best Practices -g -y
SKILL.md
Frontmatter
{
"name": "Tangle Pipeline Best Practices",
"description": "Guidelines for building well-structured, maintainable ML pipelines in Tangle"
}
Tangle Pipeline Best Practices
Pipeline Structure
- Logical Stages: Organize pipelines into clear stages — data ingestion, preprocessing, training, evaluation, deployment.
- Subgraph Grouping: Group related tasks into subgraphs. Each subgraph should represent one logical stage.
- Size Limits: Keep subgraphs under 7 nodes. If a subgraph grows larger, split it.
- Naming: Use descriptive, human-readable names for tasks. "Preprocess Training Data" not "preprocess_1".
Component Selection
- Search First: Always check the component registry before creating new components.
- Single Responsibility: Prefer components that do one thing well over monolithic ones.
- Type Compatibility: Verify input/output types match when connecting components.
- Reuse: If a component exists that's close to what you need, prefer it over creating a new one.
Data Flow
- No Cycles: Pipeline graphs must be directed acyclic graphs (DAGs).
- Explicit Connections: Always use bindings to connect data flow — avoid implicit dependencies.
- Pipeline Inputs: Use pipeline-level inputs for configurable parameters that should be settable at run time.
- Pipeline Outputs: Define pipeline-level outputs for results that need to be accessible after the run.
Common Patterns
- Fan-out: One source feeding multiple processors (e.g., train/test split).
- Fan-in: Multiple sources feeding into one aggregator.
- Chain: Linear sequence of transforms (most common).
- Conditional: Use task-level
isEnabledfor optional processing steps.
Version History
- d7768e8 Current 2026-09-02 20:59


