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
- 参考文档references/api-reference.md10.7 KB
- 参考文档references/troubleshooting.md11.8 KB
- 参考文档references/workflows.md10.6 KB
- 脚本scripts/smoke_pipeline.py4.5 KB
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
- Import current Kedro pipeline APIs from
kedro.pipeline:node,Node,Pipeline,pipeline,GroupedNodes, and optional experimental preview/LLM helpers. - Prefer
pipeline(...)orPipeline(...)for reusable and namespaced pipelines. Do not importkedro.pipeline.modular_pipeline; it is absent in Kedro 1.4.0. - Keep node functions pure and make every dataset edge explicit through
inputs,outputs, andparams:names. - Use
pipeline(base_pipeline, inputs=..., outputs=..., parameters=..., namespace=...)to reuse graph templates without duplicate node or dataset collisions. - Use
Pipeline.describe(),pipeline.inputs(),pipeline.outputs(),pipeline.datasets(),pipeline.nodes,pipeline.grouped_nodes,pipeline.group_nodes_by(), andpipeline.to_json()before changing or executing a graph.
References
- Read
references/api-reference.mdfor current signatures, allowed node input/output shapes, graph methods, preview contracts, LLM context nodes, and registry-facing APIs. - Read
references/workflows.mdfor reusable namespaced pipeline templates, modular pipeline structure, graph slicing, registry interactions, and inspection patterns. - Read
references/troubleshooting.mdwhen Kedro raises invalid node, duplicate output, circular dependency, namespacing, parameter remapping, preview, or stale-import errors. - Run
scripts/smoke_pipeline.py --helpto inspect the bundled smoke check, thenscripts/smoke_pipeline.pyto 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; useNode(...)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:namefor single parameters andparametersonly when the node function should receive the whole parameters dictionary. - Use pipeline-level
parameters=...for reusable parameter remapping; never putparams:*orparametersunder reusableinputs=.... - Use pipeline-level
namespace=...to make reused pipelines unique. Explicitinputs,outputs, andparametersmappings expose connection points that should not receive the namespace prefix. - Use
prefix_datasets_with_namespace=Falseonly 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; useonly_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.mdfor catalog entries or to../runners-and-execution/SKILL.mdfor 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 howfind_pipelines()discovers it, read this sub-skill for API requirements and../project-cli-and-sessions/SKILL.mdfor 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
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.
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.
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.
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.
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.
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).