armor-lineage
Explore data lineage and dependencies. Handles "what depends on this table", "where does this data come from", "impact analysis", "upstream dependencies", "downstream consumers".
What this skill does
# Data Lineage
Explore upstream dependencies and downstream consumers of your data assets.
## Prerequisites
- AnomalyArmor API key configured (`~/.armor/config.yaml` or `ARMOR_API_KEY` env var)
- Python SDK installed (`pip install anomalyarmor`)
## When to Use
- "What depends on this table?"
- "Where does this data come from?"
- "Impact analysis for changes"
- "Show upstream dependencies"
- "List downstream consumers"
- "Trace data flow"
## Concepts
### Directions
- **upstream**: Tables that this table depends on (data sources)
- **downstream**: Tables that depend on this table (data consumers)
- **both**: Full lineage graph in both directions
### Depth
- **depth=1**: Direct dependencies only
- **depth=2**: Two levels of dependencies
- **depth=3+**: Extended dependency chain (max 5)
## Steps
1. Identify the asset to analyze
2. Determine direction (upstream, downstream, or both)
3. Choose appropriate depth (start with 1-2)
4. Call `client.lineage.get()` to fetch lineage graph
5. Analyze the graph for impact or root cause
## Example Usage
### Find Upstream Dependencies
```python
from anomalyarmor import Client
client = Client()
# Get upstream lineage (where data comes from)
lineage = client.lineage.get(
asset_id="asset-uuid",
direction="upstream",
depth=2
)
print(f"Table: {lineage.root.qualified_name}")
print(f"\nUpstream Dependencies ({len(lineage.upstream)} tables):")
for node in lineage.upstream:
print(f" {node.qualified_name}")
if node.asset_type:
print(f" Type: {node.asset_type}")
```
### Find Downstream Consumers
```python
# Get downstream lineage (what depends on this)
lineage = client.lineage.get(
asset_id="asset-uuid",
direction="downstream",
depth=2
)
print(f"Table: {lineage.root.qualified_name}")
print(f"\nDownstream Consumers ({len(lineage.downstream)} tables):")
for node in lineage.downstream:
print(f" {node.qualified_name}")
```
### Impact Analysis
```python
# Full impact analysis before making changes
lineage = client.lineage.get(
asset_id="asset-uuid",
direction="both",
depth=3
)
print("=== IMPACT ANALYSIS ===")
print(f"\nTable: {lineage.root.qualified_name}")
# Upstream (what feeds this table)
print(f"\nData Sources ({len(lineage.upstream)} tables):")
for node in lineage.upstream:
print(f" <- {node.qualified_name}")
# Downstream (what will be affected by changes)
print(f"\nWill Impact ({len(lineage.downstream)} tables):")
for node in lineage.downstream:
print(f" -> {node.qualified_name}")
# Edges show the relationships
print(f"\nRelationships ({len(lineage.edges)} edges):")
for edge in lineage.edges:
print(f" {edge.source} -> {edge.target}")
```
### List All Lineage
```python
# List lineage summaries for multiple assets
lineage_list = client.lineage.list(limit=50)
for item in lineage_list:
print(f"{item.qualified_name}:")
print(f" Upstream: {item.upstream_count}")
print(f" Downstream: {item.downstream_count}")
```
## Expected Output
```
=== IMPACT ANALYSIS ===
Table: warehouse.gold.fact_orders
Data Sources (4 tables):
<- warehouse.staging.orders_raw
<- warehouse.staging.customers
<- warehouse.staging.products
<- warehouse.raw.events
Will Impact (7 tables):
-> warehouse.gold.daily_revenue
-> warehouse.gold.customer_metrics
-> warehouse.reporting.exec_dashboard
-> warehouse.reporting.sales_report
-> warehouse.ml.churn_features
-> warehouse.ml.ltv_predictions
-> external.bi_tool.orders_view
Relationships (11 edges):
staging.orders_raw -> gold.fact_orders
staging.customers -> gold.fact_orders
...
```
## Follow-up Actions
- For upstream issues: Investigate source tables with `/armor:investigate`
- For impact analysis: Notify downstream consumers of planned changes
- For data quality: Set up monitoring with `/armor:quality` on critical paths
- For schema changes: Review lineage before applying changes
- To understand data flow: Export lineage to documentation
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.