Langsung ke konten
Skillpedia
Testing40k ยท #7433

sql-object-impact-analysis

Fungsinya

Alat ini membantu Anda menemukan semua hal yang menggunakan bagian tertentu dari database (seperti tabel atau kolom) sebelum Anda melakukan perubahan. Alat ini mencari di seluruh kode program dan database Anda, lalu menunjukkan apa saja yang mungkin rusak.

Kapan dipakai

  • โœ“Saat Anda ingin mengubah tabel atau kolom tetapi belum tahu apa saja yang akan terdampak.
  • โœ“Saat bekerja dengan sistem lama yang sulit dilacak dependency-nya.
  • โœ“Saat Anda membutuhkan laporan tentang dampak perubahan database.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/github/awesome-copilot/blob/main/skills/sql-object-impact-analysis/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œApa saja yang menggunakan kolom 'customer_email' di tabel 'customers'?โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Alat ini pertama-tama mencari referensi langsung dalam kode SQL, lalu dalam seluruh kode program (seperti C# atau JavaScript). Hasilnya disusun agar terlihat apa saja yang bergantung pada item yang ingin Anda ubah.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.

โ€ฆ

Pertanyaan umum

Apa itu 'blast radius'?

'Blast radius' mengacu pada seberapa luas dampak yang mungkin ditimbulkan oleh sebuah perubahan. Istilah ini menjawab pertanyaan: jika saya mengubah ini, sejauh mana dan apa saja yang akan terpengaruh?

Apakah alat ini menemukan SEMUA yang menggunakan objek tersebut?

Alat ini berusaha semaksimal mungkin untuk menemukan sebanyak mungkin, tetapi pada kode yang sangat kompleks atau konstruksi dinamis, ada referensi yang hanya bisa ditemukan secara manual. Alat ini akan memberi peringatan jika hal tersebut terjadi.

Apakah saya harus bisa memrogram untuk menggunakan alat ini?

Tidak. Alat ini juga dirancang untuk non-programmer. Informasinya disajikan dengan jelas untuk membantu Anda mengambil keputusan.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
40k
Peringkat
#7433
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa