tracing-downstream-lineage by astronomer/agents
npx skills add https://github.com/astronomer/agents --skill tracing-downstream-lineage回答这个关键问题:“如果我修改这个,会破坏什么?”
在进行变更之前使用此技能,以了解影响范围。
找出所有读取此目标的内容:
对于数据表:
搜索 DAG 源代码:查找从此表进行 SELECT 操作的 DAG
* 使用 af dags list 获取所有 DAG
* 使用 af dags source <dag_id> 搜索表引用
* 查找:FROM target_table、JOIN target_table
检查依赖视图:
-- Snowflake SELECT * FROM information_schema.view_table_usage WHERE table_name = '<target_table>'
-- 或者检查 SHOW VIEWS 并搜索定义
查找 BI 工具连接: * 仪表板通常直接查询数据表 * 检查表命名中常见的 BI 模式(rpt_、dashboard_)
如果您在 Astro 上运行,Astro UI 中的血缘关系选项卡提供了跨 DAG 和数据集的可视化依赖关系图,使下游影响分析更快。它显示哪些 DAG 使用了给定的数据集及其当前状态,减少了手动搜索源代码的需求。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
对于 DAG:
af dags source <dag_id> 查找输出表映射完整的下游影响:
SOURCE: fct.orders
|
+-- TABLE: agg.daily_sales --> Dashboard: Executive KPIs
| |
| +-- TABLE: rpt.monthly_summary --> Email: Monthly Report
|
+-- TABLE: ml.order_features --> Model: Demand Forecasting
|
+-- DIRECT: Looker Dashboard "Sales Overview"
关键(破坏生产环境):
高(导致重大问题):
中(造成不便):
低(影响最小):
针对提议的变更,评估:
模式变更(添加/删除/重命名列):
数据变更(值、数量、时间):
删除/弃用:
确定谁拥有下游资产:
owners 字段“更改 fct.orders 将影响 X 个表、Y 个 DAG 和 Z 个仪表板”
+--> [agg.daily_sales] --> [Executive Dashboard]
|
[fct.orders] -------+--> [rpt.order_details] --> [Ops Team Email]
|
+--> [ml.features] --> [Demand Model]
| 下游对象 | 类型 | 关键性 | 所有者 | 备注 |
|---|---|---|---|---|
| agg.daily_sales | 表 | 关键 | data-eng | 每小时更新 |
| Executive Dashboard | 仪表板 | 关键 | analytics | CEO 每日查看 |
| ml.order_features | 表 | 高 | ml-team | 每周重新训练 |
| 变更类型 | 风险等级 | 缓解措施 |
|---|---|---|
| 添加列 | 低 | 无需操作 |
| 重命名列 | 高 | 更新 3 个 DAG,2 个仪表板 |
| 删除列 | 关键 | 需要完整的迁移计划 |
| 更改数据类型 | 中 | 测试下游聚合 |
在进行更改之前:
transform_daily_sales每周安装次数
379
代码仓库
GitHub 星标数
269
首次出现
2026年1月23日
安全审计
安装于
opencode277
codex268
cursor266
github-copilot259
claude-code246
gemini-cli246
Answer the critical question: "What breaks if I change this?"
Use this BEFORE making changes to understand the blast radius.
Find everything that reads from this target:
For Tables:
Search DAG source code : Look for DAGs that SELECT from this table
af dags list to get all DAGsaf dags source <dag_id> to search for table referencesFROM target_table, JOIN target_tableCheck for dependent views :
-- Snowflake
SELECT * FROM information_schema.view_table_usage
WHERE table_name = '<target_table>'
-- Or check SHOW VIEWS and search definitions
Look for BI tool connections :
If you're running on Astro, the Lineage tab in the Astro UI provides visual dependency graphs across DAGs and datasets, making downstream impact analysis faster. It shows which DAGs consume a given dataset and their current status, reducing the need for manual source code searches.
For DAGs:
af dags source <dag_id> to find output tablesMap the full downstream impact:
SOURCE: fct.orders
|
+-- TABLE: agg.daily_sales --> Dashboard: Executive KPIs
| |
| +-- TABLE: rpt.monthly_summary --> Email: Monthly Report
|
+-- TABLE: ml.order_features --> Model: Demand Forecasting
|
+-- DIRECT: Looker Dashboard "Sales Overview"
Critical (breaks production):
High (causes significant issues):
Medium (inconvenient):
Low (minimal impact):
For the proposed change, evaluate:
Schema Changes (adding/removing/renaming columns):
Data Changes (values, volumes, timing):
Deletion/Deprecation :
Identify who owns downstream assets:
owners field in DAG definitions"Changing fct.orders will impact X tables, Y DAGs, and Z dashboards"
+--> [agg.daily_sales] --> [Executive Dashboard]
|
[fct.orders] -------+--> [rpt.order_details] --> [Ops Team Email]
|
+--> [ml.features] --> [Demand Model]
| Downstream | Type | Criticality | Owner | Notes |
|---|---|---|---|---|
| agg.daily_sales | Table | Critical | data-eng | Updated hourly |
| Executive Dashboard | Dashboard | Critical | analytics | CEO views daily |
| ml.order_features | Table | High | ml-team | Retraining weekly |
| Change Type | Risk Level | Mitigation |
|---|---|---|
| Add column | Low | No action needed |
| Rename column | High | Update 3 DAGs, 2 dashboards |
| Delete column | Critical | Full migration plan required |
| Change data type | Medium | Test downstream aggregations |
Before making changes:
transform_daily_salesWeekly Installs
379
Repository
GitHub Stars
269
First Seen
Jan 23, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode277
codex268
cursor266
github-copilot259
claude-code246
gemini-cli246
Azure 升级评估与自动化工具 - 轻松迁移 Functions 计划、托管层级和 SKU
64,099 周安装
MUI v7 使用指南:组件样式、主题定制与响应式设计模式详解
431 周安装
HubSpot CRM 集成指南:使用 Membrane CLI 自动化销售、营销与客户服务
431 周安装
index-knowledge:自动生成层级化AGENTS.md文档工具,Turso数据库出品
431 周安装
产品问题陈述框架指南:如何用共情驱动方法定义用户问题 | 产品管理技能
432 周安装
机会解决方案树(OST)指南:产品经理结构化探索方法,避免功能工厂综合症
432 周安装
Obsidian Canvas 创建器:一键将文本转换为思维导图和视觉画布 | AI 驱动
432 周安装