db-migration
Manage Alembic Database Migrations
Database schema changes can break applications or lose data when they are handled manually. This skill guides Alembic setup, migration generation, rollback planning, and review for SQLModel and FastAPI projects.
Stop for confirmation before installing.
Review the plan and obtain explicit user consent before changing files.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "db-migration" from https://skillstore.io/skills/awais68-db-migration.md and its manifest at https://skillstore.io/api/skills/awais68-db-migration/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "db-migration". I need to add a fees table to a SQLModel app.
Expected outcome:
- Recommended revision name and generation approach.
- Checklist for columns, indexes, foreign keys, and downgrade order.
- Test plan for applying and rolling back in a disposable database.
Using "db-migration". Check whether my downgrade plan is safe for release.
Expected outcome:
- Summary of operations that may remove data.
- Required backup, restore, and approval steps before production use.
- Safer alternatives for reversible or phased migrations.
Using "db-migration". Plan a data migration for updating many status values.
Expected outcome:
- Batching strategy for large tables.
- Validation checks before and after the migration.
- Rollback limits and monitoring items for the release window.
Security Audit
High RiskThe verifier script finding is a false positive; it only validates skill metadata. Most SKILL.md findings are Markdown backtick noise, but the skill does direct users to run mutable Alembic commands and includes destructive migration examples. No prompt injection or data exfiltration intent was found, but database safety controls should be strengthened.
Confirmed security concerns (2)
Capability review items (13)
These are real local capabilities that may be expected for this skill, so they require review but are not counted as confirmed malicious behavior.
Risk Factors
⚙️ External commands (49)
🔑 Env variables (2)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/awais68-db-migration/audits/8?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/awais68-db-migration?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/awais68-db-migration?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/awais68-db-migration/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/awais68-db-migration.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA · BibTeX · CFF)
APA citation
Awais68. (2026). db-migration security audit report (audit version 8) [Author version unspecified]. Skillstore. https://skillstore.io/skills/awais68-db-migration/audits/8BibTeX citation
@techreport{awais68-awais68-db-migration-2026,
author = {Awais68},
title = {db-migration security audit report (audit version 8)},
institution = {Skillstore},
year = {2026},
number = {8},
url = {https://skillstore.io/skills/awais68-db-migration/audits/8},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "db-migration security audit report (audit version 8)"
version: "unspecified"
type: report
authors:
- name: "Awais68"
date-released: "2026-07-05"
url: "https://skillstore.io/skills/awais68-db-migration/audits/8"
identifiers:
- type: other
value: "skillstore:awais68-db-migration:audit:8"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: MediumWhat You Can Build
Add a Model Table
Plan an Alembic revision for a new SQLModel table, including indexes, constraints, and a downgrade path.
Prepare Release Migrations
Create a staged migration checklist with history checks, test upgrades, and rollback boundaries.
Review Generated Revisions
Check autogenerated migrations for unintended drops, missing constraints, data movement, and release risk.
Try These Prompts
Help me initialize Alembic for a FastAPI SQLModel project. Show the files to configure and explain each setting.
I changed these SQLModel models: [describe changes]. Guide me through generating and reviewing an Alembic migration safely.
Review this migration plan for upgrade and downgrade safety. Identify data loss risks, missing indexes, and required test steps.
Design a production-safe Alembic data migration for a large table. Include batching, validation, rollback limits, and release checks.
Best Practices
- Run migrations against a disposable database before any shared environment.
- Review autogenerated revisions for unintended table, column, index, or constraint changes.
- Take backups and define rollback limits before production upgrades.
Avoid
- Running downgrade base against any database that contains important data.
- Committing placeholder database credentials without replacing them with secure configuration.
- Accepting autogenerated migrations without checking data migrations and constraints.
Frequently Asked Questions
Does this skill run migrations automatically?
Can it be used with PostgreSQL?
Does it support production migrations?
Can it create data migrations?
Is it limited to SQLModel?
What is the main safety concern?
Developer Details
Author
Awais68License
MIT
Skillstore revision
r1
Version notice
The author did not declare a version.
Ref
5ab1d37e83436c6eef84de88573e142b94f2a4ad
Maintenance freshness
7/18/2026
Usage
7 downloads · 151 views