/agentic-awesome-skills:sqlalchemy-alembicfrom agentic-awesome-skills
Build typed SQLAlchemy 2.x models, async sessions, and safe Alembic migrations. Prevents MissingGreenlet lazy loads, enforces constraint naming conventions, and audits autogenerate diffs.
Ships in agentic-awesome-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
DeclarativeBase, Mapped[], and mapped_column.MissingGreenlet, detached-instance errors, or N+1 queries under AsyncSession.Identify the SQLAlchemy major/minor version, Alembic version, target database dialect and driver (for example asyncpg, psycopg, or aiosqlite), and whether migrations run online or offline (--sql). For async engines, ensure sqlalchemy[asyncio] (including greenlet) is installed. Inspect alembic.ini, env.py, Base.metadata, and existing revision history before generating new revisions.
MetaData(naming_convention=...) on DeclarativeBase before creating migrations so indexes, unique constraints, check constraints, and foreign keys get deterministic names across dialects. Unnamed constraints make future drop_constraint migrations fail or drift between environments.Mapped[T] with mapped_column(...) and select(...) statements instead of legacy 1.x session.query(...) and declarative_base().AsyncSession, configure async_sessionmaker(engine, expire_on_commit=False) when callers inspect ORM attributes after commit(). Never rely on implicit lazy loading in async code: accessing an unloaded relationship triggers MissingGreenlet (wrapped in StatementError on SQLAlchemy 2.1+). Load required relations explicitly with selectinload(...) or joinedload(...) (using .unique() on joined collection loads), or declare lazy="raise" on relationships so accidental lazy loads fail early in tests.alembic revision --autogenerate as a draft, never a finished migration. Autogenerate does not reliably detect table or column renames (it emits drop + add), custom CHECK expressions, partial indexes, triggers, or required data backfills.render_as_batch=True in env.py and use with op.batch_alter_table(...): when altering nullability, types, or constraints so Alembic executes SQLite's copy-and-move table rebuild cleanly.downgrade() tested when rollback is expected, or explicitly raise NotImplementedError for irreversible destructive steps rather than leaving a broken auto-generated downgrade.upgrade head, checking actual reflected schema/constraints, and testing downgrade + re-upgrade on representative fixture rows.Reproduce an async
MissingGreenletlazy-load failure, fix it withselectinload, and verify an Alembicbatch_alter_tableupgrade and downgrade with explicit constraint names.
Run the worked async session and Alembic batch migration test to confirm both the async eager-loading contract and reversible named-constraint schema migrations.
ALTER TABLE locks, CREATE INDEX CONCURRENTLY, or enum DDL).AsyncSession examples require greenlet (sqlalchemy[asyncio]); sync engines do not raise MissingGreenlet, though N+1 lazy loading still applies.alembic merge coordination against the repository's actual migration history.Always test migrations against an isolated scratch or staging database copy before touching production. Separate destructive column/table drops from application cutovers using expand-contract steps, back up before running irreversible data backfills, and keep database credentials out of alembic.ini and source control (inject via environment variables in env.py).
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (sickn33/agentic-awesome-skills) — no native marketplace selected
npx claudepluginhub p/sickn33-antigravity-awesome-skills3,195 skills in this plugin
/007Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project./00-andruia-consultantUsar al iniciar o mejorar un proyecto de IA: diagnostica código y restricciones, propone skills existentes y redacta tareas y un plan de implementación en español./10-andruia-skill-smithUsar para crear o mejorar una skill de Andru.ia: define entradas y resultados, redacta SKILL.md con ejemplos y límites, valida la estructura y prepara una PR.2 plugins in one repository ship this exact skill · first indexed Dec 1, 2026
Other plugins' skills for the same job