machichdigital
PromptPrompt-BibliothekLizenz: CC0-1.0 (Public Domain)frei kopierbar

Data Lineage Agent Skill

Skill-Vorlage für einen Agenten, der Datenfluss und Abhängigkeiten in SQL-Skripten kartiert.

⬇ Als Datei laden

× kopiert× heruntergeladenBewertung:

Skill-Vorlage für einen Agenten, der Datenfluss und Abhängigkeiten in SQL-Skripten kartiert.

Der Prompt

---
name: data-lineage-agent
description: A skill for creating an agent to analyze data lineage and linkage across database scripts and stored procedures.
---

# Data Lineage Agent Skill

## Purpose
This skill assists in creating an agent that can analyze and report on the data lineage and linkage within a database system. It is ideal for understanding how changes to tables can affect the overall system and helps in uncovering the dependencies across different platforms.

## Steps to Create the Agent
1. **Access the Repository:**
   - Link to the GitHub repository: [GitHub Repo](https://github.com/optuminsight-payer/COB-PARS_DB_SCRIPTS)
   - Clone the repository to access all database scripts and stored procedures.

2. **Analyze Data Lineage:**
   - Use tools to parse SQL scripts to identify table relationships and dependencies.
   - Map out the data flow from source tables to final tables.

3. **Identify Changes Impact:**
   - Implement logic to trace changes in intermediate tables to see which final tables are affected.
   - Use graph databases or lineage analysis tools for better visualization and impact assessment.

4. **Host the Agent:**
   - Choose a hosting platform (e.g., AWS, Azure) to deploy the agent for continuous analysis and reporting.

## Use Cases
- **Impact Analysis:** Determine the impact of changes in any table across the system.
- **Data Flow Mapping:** Visualize how data moves through the system from source to final tables.
- **Dependency Reporting:** Generate reports on table dependencies and affected platforms.

## Additional Features
- **Automated Alerts:** Notify users when potential impacts are detected.
- **Version Control Integration:** Link changes to specific commits in the repository for traceability.

## Example Variables
- `${repositoryUrl}`: The URL of the GitHub repository.
- `${platforms}`: List of platforms involved in the data flow.

This skill provides a structured approach to building an agent capable of comprehensive data lineage analysis, which can be crucial for database management and optimization tasks.

Variablen & Platzhalter

Vor dem Einsatz diese Stellen durch eigene Angaben ersetzen:

  • GitHub Repo
  • repositoryUrl
  • platforms

So nutzt du es

Den Prompt-Text kopieren (Button oben) und als System-Prompt bzw. erste Nachricht in ChatGPT, Claude oder einem lokalen Modell einfügen. In ChatGPT lässt er sich unter „Anweisungen für ChatGPT“ dauerhaft hinterlegen.

Der Prompt-Text ist englisch — er funktioniert trotzdem in deutschen Unterhaltungen. Für deutsche Antworten einfach am Ende ergänzen: „Antworte auf Deutsch.“

Im Detail

Diese Skill-Definition baut einen Agenten, der Datenlinien in einer SQL-Codebasis nachzeichnet: Repository klonen, Skripte und Stored Procedures parsen, Tabellenbeziehungen und Abhängigkeiten extrahieren, Datenfluss von Quell- zu Zieltabellen abbilden. Der Nutzen liegt darin, Auswirkungen von Schemaänderungen sichtbar zu machen, bevor sie in Produktion brechen — klassisches Impact-Assessment, das sonst manuell durch dutzende Stored Procedures gesucht wird. Im Original ist ein konkretes GitHub-Repo (COB-PARS_DB_SCRIPTS) als Beispiel verlinkt; das muss durch den eigenen Repo-Pfad ersetzt werden, sonst analysiert der Agent fremden Code. Sinnvoll für Teams mit gewachsenen SQL-Codebasen ohne aktuelle Dokumentation der Datenflüsse.

Praxis-Tipp

Repo-Link im ersten Schritt durch den Pfad zur eigenen Datenbank-Skript-Sammlung ersetzen, sonst analysiert der Agent ein fremdes Projekt.

Lizenz & Quelle

Inhalt ansehen (data-lineage-agent-skill.txt)
Lade …

Erfahrungen & Kommentare.

Funktioniert der Prompt bei Ihnen? Tipps, Stolperfallen, Varianten — teilen Sie es mit der Community.

Lade Kommentare …

Ihre IP-Adresse wird zum Schutz vor Missbrauch gespeichert und nach 14 Tagen automatisch entfernt (Datenschutz).

Passt dazu.

aa/cli taste

Legt feste Tech- und Stilvorgaben für CLI-Projekte fest (pnpm, TypeScript, Commander.js, Ordnerstruktur).

CC0-1.0 (Public Domain)