AGENT SKILL

pipelines-and-nodes

Design, validate, refactor, namespace, tag, slice, inspect, and troubleshoot Kedro Node and Pipeline objects.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
pipelines-and-nodes
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Design, validate, refactor, namespace, tag, slice, inspect, and troubleshoot Kedro Node and Pipeline objects.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

Kedro Pipelines and Nodes

Use this sub-skill when a task is about Kedro graph authoring: node(), Node, Pipeline, pipeline(), namespaces, tags, slicing, graph inspection, modular pipeline functions, GroupedNodes, preview payloads, or LLM context nodes.

Stay inside pure graph semantics here. For execution with kedro run or runners, read ../runners-and-execution/SKILL.md; for DataCatalog, dataset YAML, credentials, or parameters files, read ../data-catalog-and-config/SKILL.md; for project scaffolding and kedro pipeline create/delete, read ../project-cli-and-sessions/SKILL.md.

Start Here

  1. Import current Kedro pipeline APIs from kedro.pipeline: node, Node, Pipeline, pipeline, GroupedNodes, and optional experimental preview/LLM helpers.
  2. Prefer pipeline(...) or Pipeline(...) for reusable and namespaced pipelines. Do not import kedro.pipeline.modular_pipeline; it is absent in Kedro 1.4.0.
  3. Keep node functions pure and make every dataset edge explicit through inputs, outputs, and params: names.
  4. Use pipeline(base_pipeline, inputs=..., outputs=..., parameters=..., namespace=...) to reuse graph templates without duplicate node or dataset collisions.
  5. Use Pipeline.describe(), pipeline.inputs(), pipeline.outputs(), pipeline.datasets(), pipeline.nodes, pipeline.grouped_nodes, pipeline.group_nodes_by(), and pipeline.to_json() before changing or executing a graph.

References

  • Read references/api-reference.md for current signatures, allowed node input/output shapes, graph methods, preview contracts, LLM context nodes, and registry-facing APIs.
  • Read references/workflows.md for reusable namespaced pipeline templates, modular pipeline structure, graph slicing, registry interactions, and inspection patterns.
  • Read references/troubleshooting.md when Kedro raises invalid node, duplicate output, circular dependency, namespacing, parameter remapping, preview, or stale-import errors.
  • Run scripts/smoke_pipeline.py --help to inspect the bundled smoke check, then scripts/smoke_pipeline.py to build and run a tiny in-memory pipeline when core Kedro execution dependencies are installed.

Decision Rules

  • Use node(func, inputs, outputs, name=..., tags=...) for one callable step; use Node(...) only when matching class-based code style.
  • Use string inputs/outputs for one dataset, lists for positional arguments or multiple outputs, and dicts when function argument names or returned dictionary keys differ from Kedro dataset names.
  • Use params:name for single parameters and parameters only when the node function should receive the whole parameters dictionary.
  • Use pipeline-level parameters=... for reusable parameter remapping; never put params:* or parameters under reusable inputs=....
  • Use pipeline-level namespace=... to make reused pipelines unique. Explicit inputs, outputs, and parameters mappings expose connection points that should not receive the namespace prefix.
  • Use prefix_datasets_with_namespace=False only when the namespace is a grouping label for nodes and dataset names must remain unchanged.
  • Use node-level namespace=... mainly for visual grouping; it prefixes node names but does not behave like pipeline-level dataset remapping.
  • Use pipeline.filter(...) when several slice conditions must all apply; use only_nodes_with_tags() for OR-style tag selection.

Common Cross-Routes

  • If a graph is valid but inputs are missing from the catalog, switch to ../data-catalog-and-config/SKILL.md for catalog entries or to ../runners-and-execution/SKILL.md for run selection.
  • If a task asks for kedro run --from-nodes, --to-outputs, --tags, --namespaces, or --only-missing-outputs, use this sub-skill to validate slice semantics, then route command construction to ../runners-and-execution/SKILL.md.
  • If a task asks where to place create_pipeline() or how find_pipelines() discovers it, read this sub-skill for API requirements and ../project-cli-and-sessions/SKILL.md for project layout and CLI behavior.
  • If LLM context nodes touch real LLM clients, prompt datasets, credentials, or serving endpoints, keep graph declaration here and route dataset/config/runtime concerns to sibling sub-skills.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351