skills/data-lineage-tracer/SKILL.md
Traces the data source (Data Lineage) of any column or table. Identifies views, triggers, stored procedures, and ETL pipelines involved.
npx skillsauth add fatih-developer/fth-skills data-lineage-tracerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill answers the critical question: "If I change this column, who dies?" It traces the flow of data backward (Upstream) to its source, and forward (Downstream) to its consumers.
Core assumption: Data does not exist in a vacuum. It flows through Views, Materialized Views, Stored Procedures, Triggers, and ORM boundaries.
.sql, schema files, and application ORM code (e.g. Prisma models).pg_views or information_schema.triggers) if requested explicitly.
If assessing reporting.daily_sales.total_amount:VIEW project it directly from public.orders?INSERT INTO ... SELECT cron job?If dropping public.users.phone_number:
VIEW that will become invalid (breaking the DB)?Categorize the objects affected by a hypothetical change:
Provide a clear trace map using Markdown or Mermaid.js so the developer can visualize the blast radius.
Required Outputs (Must write BOTH to docs/database-report/):
docs/database-report/data-lineage-report.md)### 🗺️ Data Lineage for `orders.customer_id`
**Upstream (Writers):**
- ⬅️ Written by `process_payment()` Stored Procedure.
- ⬅️ Populated via API Endpoint `POST /api/v1/checkout`.
**Downstream (Readers/Dependents):**
- ➡️ `VIEW analytics.monthly_cohorts` (Hard dependency - will BREAK if column is dropped).
- ➡️ `TRIGGER sync_to_crm_on_update` (Hard dependency).
- ➡️ Metabase BI Dashboard (Soft dependency).
### ⚠️ Blast Radius Warning
If you rename or modify the type of `customer_id`:
1. The `monthly_cohorts` view must be re-created via `CREATE OR REPLACE VIEW`.
2. The trigger `sync_to_crm_on_update` must be updated to reference the new name.
docs/database-report/data-lineage-output.json){
"skill": "data-lineage-tracer",
"target": "orders.customer_id",
"upstream": ["process_payment()", "POST /api/v1/checkout"],
"downstream": [
{"type": "hard", "entity": "VIEW analytics.monthly_cohorts"},
{"type": "hard", "entity": "TRIGGER sync_to_crm_on_update"}
],
"blast_radius_risk": "High"
}
(Optional: Output a Mermaid graph if requested for complex ETL chains)
graph TD;
API-->public.orders;
public.orders-->VIEW_monthly_sales;
VIEW_monthly_sales-->BI_Dashboard;
tools
Create, optimize, critique, and programmatically structure prompts for AI systems. Use this skill whenever the user is designing or improving a static prompt, system prompt, coding prompt, agent prompt, workflow prompt, MCP-oriented prompt package, or an algorithmic prompt optimization pipeline. Also use it when the user asks to turn vague AI behavior into a precise instruction set, tool policy, agent spec, evaluation metric, or prompt architecture.
testing
Assumption-first architecture review skill to stress-test project plans and expose hidden risks.
testing
Enforce and manage DESIGN.md specifications, extract design systems from URLs, and combine design reasoning with token roles to prevent drift.
testing
Forces the agent to act with a Claude-like product mindset, prioritizing user journey, UX states, and visual quality before coding.