AGENT SKILL

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

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 --version and KEDRO_DISABLE_TELEMETRY=1 kedro --help.
  • Environment diagnostic: run scripts/check_kedro_environment.py --help, then scripts/check_kedro_environment.py --check-cli.
  • Core package only includes Kedro framework primitives; concrete datasets such as pandas.CSVDataset usually require kedro-datasets and relevant extras.
  • Optional server workflows need the server extra or equivalent fastapi/uvicorn dependencies.

Route by Task

  • Use sub-skills/pipelines-and-nodes/SKILL.md for graph authoring with node(), Node, Pipeline, pipeline(), namespaces, tags, modular pipelines, slicing semantics, preview payloads, and graph validation.
  • Use sub-skills/data-catalog-and-config/SKILL.md for DataCatalog, dataset YAML, credentials, versioning, catalog factories, OmegaConfigLoader, parameters, globals, and config merge behavior.
  • Use sub-skills/project-cli-and-sessions/SKILL.md for kedro 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.md for kedro 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.md for 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.md for 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 stale kedro.pipeline.modular_pipeline imports.
  • Construct catalogs with DataCatalog(...) or DataCatalog.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), and ParallelRunner(max_workers=None, is_async=False).

Common Workflows

  1. For a new project, use project-cli-and-sessions to choose kedro new flags, validate naming, opt out of telemetry if required, and explain generated layout.
  2. For pipeline code, use pipelines-and-nodes to design nodes and reusable pipeline factories before choosing catalog entries or runners.
  3. For data/config files, use data-catalog-and-config to validate catalog structure, credentials indirection, runtime params, config environments, and optional dataset dependencies.
  4. For execution, use runners-and-execution to build the kedro run command or programmatic KedroSession.run() call and select the runner.
  5. For customization, use hooks-and-extensions to add hooks/plugins/custom commands or datasets, then return to sibling skills for config and run validation.
  6. For diagnostics, use inspection-and-server for read-only snapshots and optional server APIs; use execution routes only when the task explicitly runs nodes.

References

  • Read references/package-overview.md for package facts, command families, optional extras, public API map, and cross-skill workflow examples.
  • Read references/troubleshooting.md for cross-cutting install/import, CLI, telemetry, optional dependency, project detection, stale API, and secret-handling issues.
  • Read references/repo-provenance.md to see the source commit, dirty-state note, package version, and evidence paths used to create this skill.
  • references/repo-routing-metadata.json is structured metadata for managed repo-skills-router import.

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=1 or DO_NOT_TRACK=1 for automated kedro CLI probes when telemetry/network side effects are undesirable.
  • Warn before kedro new with remote starters, --example=yes, deployment commands, server startup, or any command that writes projects, builds artifacts, opens browsers, or uses network access.

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