sql-object-impact-analysis
Qué hace
Esta herramienta te ayuda a encontrar todo lo que usa una parte concreta de tu base de datos (como una tabla o una columna) antes de hacer cualquier cambio. Busca en el código de tus programas y en la base de datos para mostrarte qué podría romperse.
Cuándo usarla
- ✓Cuando quieres cambiar una tabla o una columna y no sabes qué se verá afectado.
- ✓Cuando trabajas con un sistema antiguo en el que es difícil seguir las dependencias.
- ✓Cuando necesitas un informe del impacto de un cambio en la base de datos.
Link de la skill
https://github.com/github/awesome-copilot/blob/main/skills/sql-object-impact-analysis/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Qué usa la columna 'customer_email' de la tabla 'customers'?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La herramienta busca primero las referencias directas en el código SQL y después en todo el código de los programas (como C# o JavaScript). Organiza los resultados para mostrar qué depende del elemento que quieres cambiar.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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.
…
Preguntas frecuentes
¿Qué es el 'radio de impacto' (blast radius)?
Se refiere al alcance que puede tener un cambio. Responde a la pregunta: si cambio esto, ¿hasta dónde llega y qué más se verá afectado?
¿Esta herramienta encuentra TODO lo que usa el objeto?
Hace un gran esfuerzo por encontrar el máximo posible, pero en código muy complejo o con construcciones dinámicas puede haber referencias que solo se localicen a mano. Te avisará de ello.
¿Necesito saber programar para usarla?
No. La herramienta también está pensada para personas que no programan. Presenta la información de forma clara para ayudarte a tomar decisiones.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 40 mil
- Posición en el ranking
- #7433
- Licencia
- MIT
- Actualizada
- 15/10/2026
Comentarios
- …
Más skills de este repositorio
acquire-codebase-knowledge
40 milAyuda a tu agente a entender y documentar un proyecto de código existente. Es útil para incorporar a nuevas personas o tener una visión general de la arquitectura.
acreadiness-assess
40 milPermite a tu agente evaluar qué tan preparado está un proyecto para la IA y generar un informe. Es útil para saber qué tan bien está listo un proyecto para usar herramientas de IA.
acreadiness-generate-instructions
40 milAyuda a tu agente a crear instrucciones para herramientas de IA basadas en una evaluación. Es útil para mejorar cómo la IA interactúa con el código y cerrar las brechas detectadas.
acreadiness-policy
40 milPermite a tu agente ayudar a definir o aplicar políticas para la evaluación de proyectos de IA. Es útil para estandarizar cómo se evalúan los proyectos y garantizar el cumplimiento.
Skills parecidas
test-driven-development
311 milEnseña a tu agente a escribir primero una prueba que falle, verla fallar y después escribir el código más pequeño que la hace pasar, antes de construir cualquier función o corrección.
verification-before-completion
311 milEnseña a tu agente a ejecutar comprobaciones reales y leer su resultado antes de afirmar que una tarea, una corrección o una compilación está completa o en buen estado.
migrate-to-shoehorn
310 milSustituye los casts de tipo arriesgados de tus archivos de prueba por la librería shoehorn, para que las pruebas usen datos parciales y sigan pasando las comprobaciones de tipos.