agentleFS
brayandiazcbrayandiazc/project-starter-template-es-ai/.claude/skills/migration-guard/SKILL.md

migration-guard

Skill15 starsChanged 2 months agoMITView on GitHub

Revisa una migración de base de datos antes de desplegarla para asegurar que sea segura — reversible, no destructiva y compatible hacia atrás — siguiendo las convenciones de base de datos del proyecto. Úsala siempre que crees, revises o apruebes una migración de esquema o de datos (p. ej. "revisa esta migración", "¿es seguro desplegar esta migración?").

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    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 …

    line 32

≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.