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.mdSalin 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
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
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
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.
Search the SQL layer first:
- Search all
.sqlfiles, 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
- Search all
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.
- Search all application code (C#, Java, JS/TS, Angular, whatever the repo contains) for:
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
Produce the report (see Output Format below).
Output Format
Always structure the report as:
- Target Object โ exact name, type (table/column/proc/view/trigger), and schema
- Direct SQL Dependents โ list of procs/views/triggers/functions that reference it directly, grouped by object type
- Application Code Dependents โ list of files/classes/methods that reference it, grouped by layer (data access, API/service, frontend), with file paths
- Indirect / Dynamic References โ anything found via dynamic SQL, synonyms, or call chains that couldn't be fully resolved โ labeled clearly as needing manual verification
- 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
- 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
Komentar
- โฆ
Skill lain dari repositori ini
acquire-codebase-knowledge
40kMembantu agent Anda memahami dan mendokumentasikan proyek kode yang sudah ada. Berguna untuk proses onboarding anggota baru atau mendapatkan gambaran arsitektur.
acreadiness-assess
40kMemungkinkan agent Anda menilai kesiapan proyek untuk AI dan membuat laporannya. Berguna untuk mengetahui seberapa siap proyek menggunakan alat AI.
acreadiness-generate-instructions
40kMembantu agent Anda membuat instruksi untuk alat AI berdasarkan hasil penilaian. Berguna untuk meningkatkan cara AI berinteraksi dengan kode dan menutup celah yang ditemukan.
acreadiness-policy
40kMemungkinkan agent Anda membantu menyusun atau menerapkan kebijakan untuk penilaian proyek AI. Berguna untuk menstandarisasi evaluasi proyek dan memastikan kepatuhan.
Skill serupa
test-driven-development
311kMengajari agent Anda menulis tes yang gagal dulu, melihatnya gagal, lalu menulis kode terkecil yang lulus, sebelum membangun fitur atau perbaikan apa pun.
verification-before-completion
311kMengajari agent Anda menjalankan pemeriksaan nyata dan membaca keluarannya sebelum menyatakan tugas, perbaikan, atau build sudah selesai atau lulus.
migrate-to-shoehorn
310kMengganti type cast berisiko di file tes Anda dengan pustaka shoehorn, sehingga tes bisa memakai data parsial dan tetap lulus pemeriksaan tipe.