본문으로 건너뛰기
Skillpedia
테스트40k · #7433

sql-object-impact-analysis

하는 일

이 도구는 변경하기 전에 특정 데이터베이스 항목(예: 테이블이나 열)을 사용하는 모든 것을 찾는 데 도움을 줍니다. 모든 프로그램 코드와 데이터베이스를 검색해 무엇이 깨질 수 있는지 보여 줍니다.

사용하는 경우

  • ✓테이블이나 열을 바꾸고 싶은데 무엇이 영향을 받을지 모를 때.
  • ✓의존 관계를 추적하기 어려운 오래된 시스템을 다룰 때.
  • ✓데이터베이스 변경의 영향에 관한 보고서가 필요할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/sql-object-impact-analysis/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“'customers' 테이블의 'customer_email' 열을 사용하는 것은 무엇인가요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 먼저 SQL 코드에서 직접 참조하는 부분을 찾고, 그다음 모든 프로그램 코드(C#이나 JavaScript 같은)를 찾습니다. 결과를 정리해 여러분이 바꾸려는 항목에 무엇이 의존하는지 보여 줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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.

…

자주 묻는 질문

'blast radius'란 무엇인가요?

변경이 미칠 수 있는 영향의 범위를 뜻합니다. 이것을 바꾸면 얼마나 멀리, 그리고 무엇이 더 영향을 받는지 알려 줍니다.

이 도구가 모든 사용처를 찾아내나요?

가능한 한 많이 찾으려고 노력하지만, 매우 복잡한 코드나 동적인 구조에서는 수동으로만 찾을 수 있는 참조가 있을 수 있습니다. 도구는 이 점을 경고합니다.

사용하려면 프로그래밍을 알아야 하나요?

아니요. 이 도구는 비개발자도 쓸 수 있도록 설계되었습니다. 결정을 내릴 수 있도록 정보를 명확하게 보여 줍니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
40k
순위
#7433
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬