project-starter-template-es-ai: Skill for Claude Code

.claude/skills/migration-guard/SKILL.md

migration-guard is a skill for Claude Code from brayandiazc/project-starter-template-es-ai. It costs 90 tokens per session (535 once invoked), scanned A, original, MIT.

A safety review workflow for database migrations, which are changes to a database's tables, columns, or data. It checks whether a migration can be rolled back, avoids data loss, supports old and new code during deployment, and limits long table locks.

In plain words
What is it for?
Use it to review or approve schema and data migrations, inspect rollback plans, assess large-table operations, and check backward compatibility.
Why use it?
It catches changes that could destroy data, break running applications, or cause downtime during deployment. It also encourages a staged expand, migrate, and contract rollout.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is brayandiazc/project-starter-template-es-ai's own configuration. It tells Claude Code how to work on project-starter-template-es-ai itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything project-starter-template-es-ai configures →

Reuse

Borrowing it

Nothing to install: this file belongs to brayandiazc/project-starter-template-es-ai. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/brayandiazc/project-starter-template-es-ai/main/.claude/skills/migration-guard/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/brayandiazc/project-starter-template-es-ai

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for migration-guard

README.md
[![agentmods](https://agentmods.dev/badge/skills/brayandiazc/project-starter-template-es-ai/migration-guard/github.svg)](https://agentmods.dev/skills/brayandiazc/project-starter-template-es-ai/migration-guard)
Your own site
<a href="https://agentmods.dev/skills/brayandiazc/project-starter-template-es-ai/migration-guard"><img src="https://agentmods.dev/badge/skills/brayandiazc/project-starter-template-es-ai/migration-guard/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for migration-guard

Your own site · 80×15
<a href="https://agentmods.dev/skills/brayandiazc/project-starter-template-es-ai/migration-guard"><img src="https://agentmods.dev/badge/skills/brayandiazc/project-starter-template-es-ai/migration-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 535 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00090 $0.00535
Opus 5 $0.00045 $0.00267
Sonnet 5 $0.00018 $0.00107
Haiku 4.5 $0.00009 $0.00053

Measured 3d ago against content hash a6de81dbb39b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

migration-guard scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/migration-guard/SKILL.md · 34 lines

What it actually says

Revisa la migración que indique la persona (o la del diff actual) en busca de riesgos.

  1. Lee docs/conventions/database.md para las reglas de migración del proyecto (nomenclatura, reversibilidad, estrategia de índices, tipos de columna permitidos) y docs/architecture/database.md para el modelo de datos actual que toca.
  2. Verifica la reversibilidad: existe un down/rollback que funcione, o el cambio está documentado explícitamente como irreversible con su justificación.
  3. Revisa la pérdida de datos: eliminar columnas/tablas, reducir tipos o añadir una columna NOT NULL sin valor por defecto/backfill. Marca cualquier paso destructivo.
  4. Revisa la compatibilidad hacia atrás para despliegues sin downtime: ¿pueden convivir el código viejo y el nuevo con el nuevo esquema durante el rollout? Prefiere expandir → migrar → contraer en vez de un cambio rompedor de un solo paso.
  5. Revisa bloqueos / tablas grandes: operaciones que reescriben o bloquean por mucho tiempo tablas grandes (p. ej. añadir una columna not-null, ciertos índices). Sugiere la variante segura para la base de datos del proyecto.
  6. Confirma un plan de rollback y que la migración sea idempotente / segura de reintentar cuando la herramienta lo permita.

Salida: un veredicto breve (segura / no segura), los riesgos concretos encontrados y los cambios mínimos para hacerla segura. Si la decisión es relevante (p. ej. una migración irreversible), recomienda registrar un ADR en docs/decisions/.

NO ejecutes la migración. NO relajes las reglas de base de datos del proyecto para que una migración pase — corrige la migración en su lugar.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · -2 lines a6de81dbb39b
  2. 10d ago First seen · 36 lines · 90 tokens per session scan A 7185e83b5b0a

Subscribe to this mod's changes

migration-guard is a skill published in the GitHub repository brayandiazc/project-starter-template-es-ai (15 stars, last pushed 3d ago), licensed MIT. It adds 90 tokens to every session and 535 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.