Aller au contenu
Skillpedia
Tests40k · #7433

sql-object-impact-analysis

Ce qu’il fait

Cet outil vous aide à trouver tout ce qui utilise une partie précise de votre base de données (comme une table ou une colonne) avant d'y apporter une modification. Il parcourt l'ensemble de votre code de programmation et la base de données pour vous montrer ce qui risque de casser.

Quand l’utiliser

  • ✓Lorsque vous voulez modifier une table ou une colonne sans savoir ce qui sera affecté.
  • ✓Lorsque vous travaillez sur un ancien système où il est difficile de suivre les dépendances.
  • ✓Lorsque vous avez besoin d'un rapport sur l'impact d'une modification de la base de données.

Lien du skill

https://github.com/github/awesome-copilot/blob/main/skills/sql-object-impact-analysis/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/github/awesome-copilot/blob/main/skills/sql-object-impact-analysis/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Qu'est-ce qui utilise la colonne « customer_email » de la table « customers » ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'outil cherche d'abord les références directes dans le code SQL, puis dans l'ensemble du code de programmation (comme C# ou JavaScript). Il organise les résultats pour montrer ce qui dépend de l'élément que vous voulez modifier.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

SQL Object Impact Analysis

You are performing a pre-change dependency trace for a database object (table, column, stored procedure, view, function, or trigger) inside a legacy or unfamiliar codebase. The goal is a single, trustworthy answer to: "If I change this, what else is affected?"

When to use this

Trigger when the user:

  • Names a specific table, column, stored procedure, view, or trigger and asks what uses it, what depends on it, or whether it's safe to change/rename/drop
  • Is about to modify a schema element in a codebase with no ORM, or a mixed legacy stack (raw SQL + stored procs + hand-written data access code)
  • Asks for a "blast radius," "impact analysis," or "dependency trace" of a specific DB object

Do not use this for:

  • General SQL performance tuning (use sql-optimization)
  • SQL code quality/security review (use sql-code-review)
  • Privacy/PII exposure analysis (use data-breach-blast-radius)
  • Architecture-level documentation of an entire codebase (use doc-and-modernize)

Process

  1. Confirm the target object and its exact name(s). Ask if ambiguous (e.g., multiple tables with similar names, or the user says "the customer table" without specifying schema). Get the precise identifier before searching.

  2. Search the SQL layer first:

    • Search all .sql files, stored procedure definitions, views, functions, and triggers in the repo/database scripts folder for direct references to the object name
    • For a column: check every proc/view/trigger that selects, inserts, updates, or filters on it
    • For a table: check every proc/view/trigger that references it, plus foreign key relationships to/from other tables
    • For a stored procedure: check every other proc that calls it, and every scheduled job/agent step that invokes it
    • Note indirect references too — dynamic SQL (EXEC(@sql)), synonyms, and views built on views
  3. Search the application layer:

    • Search all application code (C#, Java, JS/TS, Angular, whatever the repo contains) for:
      • Direct SQL strings referencing the object name
      • ORM/data-access-layer method or class names that map to it (e.g., a repository method calling the stored procedure)
      • API endpoint handlers that ultimately call into the affected data path
    • Trace one layer further where reasonable: does a frontend component consume an endpoint that touches this object? Note it, but don't chase every UI consumer exhaustively — flag "further downstream consumers likely exist" if the trail runs cold rather than guessing.
  4. Classify each finding by confidence:

    • Direct — object name found verbatim in code/SQL
    • Indirect — reached via a proc call chain, ORM mapping, or dynamic SQL that couldn't be fully resolved statically
    • Uncertain — plausible but unverified (e.g., dynamic SQL construction that couldn't be traced to a literal object name)
    • Never present an Uncertain finding as if it were Direct — flag it clearly so the reader knows to verify manually
  5. Produce the report (see Output Format below).

Output Format

Always structure the report as:

  1. Target Object — exact name, type (table/column/proc/view/trigger), and schema
  2. Direct SQL Dependents — list of procs/views/triggers/functions that reference it directly, grouped by object type
  3. Application Code Dependents — list of files/classes/methods that reference it, grouped by layer (data access, API/service, frontend), with file paths
  4. Indirect / Dynamic References — anything found via dynamic SQL, synonyms, or call chains that couldn't be fully resolved — labeled clearly as needing manual verification
  5. Risk Summary — one paragraph: is this object narrowly used (low risk) or widely fanned-out (high risk)? Call out anything that touches a scheduled job, external integration, or reporting layer specifically, since those often get missed
  6. Suggested Verification Steps — concrete next actions before making the change (e.g., "run these two procs against staging data first," "check if the ReportingService endpoint at X depends on this column")

Guidelines

  • Never claim a dependency is complete or exhaustive — static text search cannot catch every dynamic SQL construction or reflection-based ORM mapping. State the search method used and its limits explicitly in the report.

…

Questions fréquentes

Qu'est-ce que le « blast radius » ?

Le « blast radius » désigne l'étendue de l'impact qu'une modification peut avoir. Il répond à la question : si je change ceci, jusqu'où cela va-t-il aller et qu'est-ce qui sera touché ?

Cet outil trouve-t-il TOUT ce qui utilise l'objet ?

Il fait de gros efforts pour trouver un maximum d'éléments, mais dans un code très complexe ou avec des constructions dynamiques, certaines références ne peuvent être trouvées qu'à la main. L'outil vous en avertira.

Faut-il savoir programmer pour l'utiliser ?

Non. L'outil est conçu aussi pour les non-programmeurs. Il présente les informations clairement pour vous aider à prendre vos décisions.

Détails

Description originale de l’auteur

Before modifying a table, column, stored procedure, view, or trigger in a legacy codebase, trace every place that references it — across other SQL objects (procs, views, triggers) AND application code (C#, Angular/TypeScript, JS, or any language in the repo) — and produce a structured blast-radius report so you know what breaks before you change it. Use when the user asks 'what uses this column/ta

repo: github/awesome-copilot

Popularité

Étoiles GitHub
40k
Position au classement
#7433
Licence
MIT
Mis à jour
15/10/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires