kedro
Use Kedro to create, configure, run, extend, inspect, and troubleshoot production-ready data and analytics pipeline projects.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- kedro
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use Kedro to create, configure, run, extend, inspect, and troubleshoot production-ready data and analytics pipeline projects.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/package-overview.md5.7 KB
- 参考文档references/repo-provenance.md2.4 KB
- 参考文档references/repo-routing-metadata.json458 B
- 参考文档references/troubleshooting.md5.2 KB
- 脚本scripts/check_kedro_environment.py5.3 KB
03 SKILL.md 正文
Kedro
Use this repo skill when the task involves Kedro data or analytics pipelines: node(), Pipeline, DataCatalog, OmegaConfigLoader, kedro run, project scaffolding, KedroSession, hooks/plugins, runners, inspection snapshots, or the optional server API.
Kedro is a Python framework for production-ready data engineering and data science pipelines. The source evidence for this skill targets Kedro 1.4.0, whose distribution and import name are both kedro and whose console script is kedro.
Quick Checks
- Install/import check:
python -c "import kedro; print(kedro.__version__)". - CLI check without telemetry:
KEDRO_DISABLE_TELEMETRY=1 kedro --versionandKEDRO_DISABLE_TELEMETRY=1 kedro --help. - Environment diagnostic: run
scripts/check_kedro_environment.py --help, thenscripts/check_kedro_environment.py --check-cli. - Core package only includes Kedro framework primitives; concrete datasets such as
pandas.CSVDatasetusually requirekedro-datasetsand relevant extras. - Optional server workflows need the
serverextra or equivalentfastapi/uvicorndependencies.
Route by Task
- Use
sub-skills/pipelines-and-nodes/SKILL.mdfor graph authoring withnode(),Node,Pipeline,pipeline(), namespaces, tags, modular pipelines, slicing semantics, preview payloads, and graph validation. - Use
sub-skills/data-catalog-and-config/SKILL.mdforDataCatalog, dataset YAML, credentials, versioning, catalog factories,OmegaConfigLoader, parameters, globals, and config merge behavior. - Use
sub-skills/project-cli-and-sessions/SKILL.mdforkedro new, starters, project layout, global/project CLI command availability, project metadata, settings,bootstrap_project(),configure_project(),KedroSession, packaging, IPython, and Jupyter. - Use
sub-skills/runners-and-execution/SKILL.mdforkedro run,KedroSession.run(),SequentialRunner,ThreadRunner,ParallelRunner, async I/O, run slicing, load versions, runtime params, and missing-output resume. - Use
sub-skills/hooks-and-extensions/SKILL.mdfor project hooks, plugin entry points, custom CLI commands, custom datasets, custom runners, notebook extension points, serving patterns, and deployment integrations. - Use
sub-skills/inspection-and-server/SKILL.mdfor read-only project snapshots,kedro.inspection.get_project_snapshot, snapshot model interpretation, optional HTTP server endpoints, and server dependency/startup troubleshooting.
Current API Facts
- Import pipeline APIs from
kedro.pipeline:node,Node,Pipeline,pipeline,GroupedNodes, and optional preview/LLM helpers. - Use
kedro.pipeline.pipeline(...)for reusable namespaced pipelines; do not use stalekedro.pipeline.modular_pipelineimports. - Construct catalogs with
DataCatalog(...)orDataCatalog.from_config(catalog, credentials=None, load_versions=None, save_version=None). - Load project config with
OmegaConfigLoader(conf_source, env=None, runtime_params=None, config_patterns=None, base_env=None, default_run_env=None, custom_resolvers=None, merge_strategy=None, ignore_hidden=True). - Create sessions with
KedroSession.create(project_path=None, save_on_close=True, env=None, runtime_params=None, conf_source=None). - Built-in runners are
SequentialRunner(is_async=False),ThreadRunner(max_workers=None, is_async=False), andParallelRunner(max_workers=None, is_async=False).
Common Workflows
- For a new project, use
project-cli-and-sessionsto choosekedro newflags, validate naming, opt out of telemetry if required, and explain generated layout. - For pipeline code, use
pipelines-and-nodesto design nodes and reusable pipeline factories before choosing catalog entries or runners. - For data/config files, use
data-catalog-and-configto validate catalog structure, credentials indirection, runtime params, config environments, and optional dataset dependencies. - For execution, use
runners-and-executionto build thekedro runcommand or programmaticKedroSession.run()call and select the runner. - For customization, use
hooks-and-extensionsto add hooks/plugins/custom commands or datasets, then return to sibling skills for config and run validation. - For diagnostics, use
inspection-and-serverfor read-only snapshots and optional server APIs; use execution routes only when the task explicitly runs nodes.
References
- Read
references/package-overview.mdfor package facts, command families, optional extras, public API map, and cross-skill workflow examples. - Read
references/troubleshooting.mdfor cross-cutting install/import, CLI, telemetry, optional dependency, project detection, stale API, and secret-handling issues. - Read
references/repo-provenance.mdto see the source commit, dirty-state note, package version, and evidence paths used to create this skill. references/repo-routing-metadata.jsonis structured metadata for managedrepo-skills-routerimport.
Safety and Boundaries
- Do not rely on the original repository checkout, docs, tests, templates, or scripts at runtime; this skill bundles distilled references and safe helper scripts.
- Avoid printing credentials from
credentials.yml, environment variables, or cloud auth helpers; validate the presence and shape of secrets without echoing values. - Set
KEDRO_DISABLE_TELEMETRY=1orDO_NOT_TRACK=1for automatedkedroCLI probes when telemetry/network side effects are undesirable. - Warn before
kedro newwith remote starters,--example=yes, deployment commands, server startup, or any command that writes projects, builds artifacts, opens browsers, or uses network access.
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).