Airflow 插件开发
原名:airflow-plugins
为 Airflow 3.1+ 开发 FastAPI、React、菜单、中间件和操作链接插件。
中文 Skills 技能说明
适合在 Airflow 后台扩展页面和接口;先核对版本、认证、权限和静态资源边界,再编写插件并验证升级兼容性。Airflow、OpenLineage、dbt Core 和本地数据工具可在用户自己的环境使用;Astronomer 托管能力须使用自有合法账户,并确认中国大陆网络、区域、费用和数据位置。执行前读取真实项目、版本和官方资料,输出目标、依据、影响、验证结果与回退方式;没有证据时明确说明未知,不编造数据、配置或成功状态。 创建、修改、部署、发布、迁移、发送、删除或产生费用的操作,必须先展示目标和差异并获得有权限人员确认。 代码、数据库、日志、凭据、邮件、客户和企业资料按敏感内容处理,只读取任务所需范围,上传或外发前完成授权、脱敏和最小化。
上游能力依据
上游原始适用说明:Builds Airflow 3.1+ plugins that embed FastAPI apps, custom UI pages, React components, middleware, macros, and operator links directly into the Airflow UI. Use when building anything custom inside Airflow 3.1+ that involves Python and a browser-facing interface - creating an Airflow plugin, adding a custom UI page or nav entry, building FastAPI-backed endpoints inside Airflow, serving static assets from a plugin, embedding a React app, adding middleware to the API server, creating custom operator extra links, or calling the Airflow REST API from inside a plugin; also when AirflowPlugin, fastapiapps, externalviews, reactapps, or plugin registration come up.
上游 SKILL.md 主要章节(保留原文标题):
- Before writing any code, verify
- Step 1: Choose plugin components
- Step 2: Plugin registration skeleton
- Project file structure
- External view locations
- Nav bar categories (destination: "nav")
- External URLs and minimal plugins
- Step 3: Serve the UI entry point
- Step 4: Call the Airflow API from your plugin
- Add the dependency
使用边界
先读取项目约定、依赖版本和现有测试,再提出最小改动。写文件、运行脚本、提交代码或发布前应检查差异并保留回退路径。
作者、翻译与许可证
- 原作者
- Astronomer 与 astronomer/agents contributors
- 中文翻译
- CEOFans翻译
- 许可证
- Apache-2.0
- 上游来源
- https://github.com/astronomer/agents/tree/dbd9bb79c4f7b7ac9c1cdd2b4b75213c81f423e5/skills/airflow-plugins
适用范围
平台:linux、macos、windows;标签:软件开发、Airflow 插件开发
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。