providers-extensions
Work with Airflow providers, standard operators/sensors/hooks, custom extensions, provider metadata, and provider package maintenance conventions.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- providers-extensions
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Work with Airflow providers, standard operators/sensors/hooks, custom extensions, provider metadata, and provider package maintenance conventions.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/extension-workflows.md8.6 KB
- 参考文档references/provider-api-patterns.md7.8 KB
- 参考文档references/provider-metadata.md6.9 KB
- 参考文档references/troubleshooting.md7.8 KB
- 脚本scripts/check_provider_metadata.py16.7 KB
03 SKILL.md 正文
<!-- SPDX-License-Identifier: Apache-2.0 -->
Providers and Extensions
Use this sub-skill when a task involves Airflow providers or extension points: selecting provider packages/extras, importing standard operators/sensors/hooks in Dags, writing custom operators/hooks/sensors, registering plugins/listeners/timetables/notifiers/extra links, or maintaining provider package metadata.
Route First
- For general Dag authoring, TaskFlow, task mapping, assets, schedules, or
airflow.sdkbasics, use../authoring-task-sdk/first and return here only for provider-specific imports or extension classes. - For CLI, Breeze, CI, release preparation, or broad provider-release classification workflows, use
../contribution-tooling/; this sub-skill only covers the provider files and safe metadata checks needed during ordinary development. - For REST API, web UI internals, scheduler, executor, Helm, Docker, or deployment behavior, use the corresponding sibling sub-skill rather than treating providers as a catch-all.
- For cloud-service-specific APIs, prefer the relevant provider’s own documentation or source; this sub-skill covers Airflow provider conventions and the standard provider patterns, not deep SDK behavior for every integration.
What To Read
references/provider-api-patterns.mdfor public extension boundaries, standard provider imports, operator/sensor/hook patterns, package naming, extras, and provider entry points.references/extension-workflows.mdfor recipes for custom operators, hooks, sensors, plugins, listeners, timetables, notifiers, extra links, and provider-package tests.references/provider-metadata.mdforprovider.yaml,get_provider_info,pyproject.toml, generated-file cautions, docs/changelog rules, and the bundled checker.references/troubleshooting.mdfor missing provider packages, import errors, connection IDs, deferrable trigger dependencies, generated-file mistakes, and docs/changelog pitfalls.
Fast Guidance
- Install/import provider-specific code explicitly. Airflow core does not guarantee that every provider is installed; standard operators such as
BashOperatorandFileSensorlive inapache-airflow-providers-standard. - Use public bases for new runtime code:
airflow.sdk.BaseOperator,airflow.sdk.BaseSensorOperator,airflow.sdk.BaseHook,airflow.sdk.BaseNotifier,airflow.sdk.BaseOperatorLink, and documented plugin/listener/timetable APIs. - Keep expensive work out of operator constructors. Resolve hooks, connections, network clients, and service jobs inside
execute,poke, trigger code, or helper methods called from execution. - Treat
provider.yamlas the human-edited source for provider metadata.get_provider_info.py, provider docs indexes, and most providerpyproject.tomlcontent are generated; edit only the preserved dependency sections unless the generation workflow says otherwise. - Before touching provider metadata, run
scripts/check_provider_metadata.py --provider-dir <provider-dir>against the provider directory you are editing and fix reported errors before relying on generated files.
Done Criteria
A provider/extension change is ready when imports come from installed provider packages, custom classes use public extension points, metadata and entry points agree, generated files are not hand-edited incorrectly, and tests cover the changed operator/hook/sensor/plugin behavior without depending on external services unless explicitly mocked or isolated.
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).