Change Database Schema
martin-ueding/geo-activity-playground
How to change the SQLAlchemy data model and generate the matching Alembic migration.
Add or repair Alembic migrations for specx SQLAlchemy services.
$ npx skills add maksimzayats/specx --skill specx-sqlalchemy-migrations -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install maksimzayats/specx specx-sqlalchemy-migrations --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/maksimzayats/specx.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/specx-sqlalchemy-migrations .claude/skills/specx-sqlalchemy-migrations && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "specx-sqlalchemy-migrations" agent skill from https://github.com/maksimzayats/specx/tree/main/skills/specx-sqlalchemy-migrations into .claude/skills/specx-sqlalchemy-migrations/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "specx-sqlalchemy-migrations", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/maksimzayats/specx/tree/main/skills/specx-sqlalchemy-migrationsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add maksimzayats/specx --skill specx-sqlalchemy-migrations -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install maksimzayats/specx specx-sqlalchemy-migrations --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maksimzayats/specx.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/specx-sqlalchemy-migrations .agents/skills/specx-sqlalchemy-migrations && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "specx-sqlalchemy-migrations" agent skill from https://github.com/maksimzayats/specx/tree/main/skills/specx-sqlalchemy-migrations into .agents/skills/specx-sqlalchemy-migrations/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "specx-sqlalchemy-migrations", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add maksimzayats/specx --skill specx-sqlalchemy-migrations -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install maksimzayats/specx specx-sqlalchemy-migrations --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maksimzayats/specx.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/specx-sqlalchemy-migrations .cursor/skills/specx-sqlalchemy-migrations && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "specx-sqlalchemy-migrations" agent skill from https://github.com/maksimzayats/specx/tree/main/skills/specx-sqlalchemy-migrations into .cursor/skills/specx-sqlalchemy-migrations/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "specx-sqlalchemy-migrations", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/maksimzayats/specx.git --path skills/specx-sqlalchemy-migrations--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add maksimzayats/specx --skill specx-sqlalchemy-migrations -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install maksimzayats/specx specx-sqlalchemy-migrations --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maksimzayats/specx.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/specx-sqlalchemy-migrations .gemini/skills/specx-sqlalchemy-migrations && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "specx-sqlalchemy-migrations" agent skill from https://github.com/maksimzayats/specx/tree/main/skills/specx-sqlalchemy-migrations into .gemini/skills/specx-sqlalchemy-migrations/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "specx-sqlalchemy-migrations", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install maksimzayats/specx specx-sqlalchemy-migrationsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add maksimzayats/specx --skill specx-sqlalchemy-migrations -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/maksimzayats/specx.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/specx-sqlalchemy-migrations .github/skills/specx-sqlalchemy-migrations && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "specx-sqlalchemy-migrations" agent skill from https://github.com/maksimzayats/specx/tree/main/skills/specx-sqlalchemy-migrations into .github/skills/specx-sqlalchemy-migrations/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "specx-sqlalchemy-migrations", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add maksimzayats/specx --skill specx-sqlalchemy-migrations -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install maksimzayats/specx specx-sqlalchemy-migrations --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maksimzayats/specx.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/specx-sqlalchemy-migrations .opencode/skills/specx-sqlalchemy-migrations && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "specx-sqlalchemy-migrations" agent skill from https://github.com/maksimzayats/specx/tree/main/skills/specx-sqlalchemy-migrations into .opencode/skills/specx-sqlalchemy-migrations/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "specx-sqlalchemy-migrations", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
specx-sqlalchemy-migrationsAdd or repair Alembic migrations for specx SQLAlchemy services.
Specx Sqlalchemy Migrations is an agent skill from maksimzayats/specx. Add or repair Alembic migrations for specx SQLAlchemy services. Use when adding SQLAlchemy models or repositories, replacing metadata.createall schema bootstraps, creating async Alembic env.py, adding migration Makefile targets, generating initial revisions, or testing migration drift.
Its SKILL.md is about 820 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `agents/openai.yaml` and `references/alembic.md`).
It sits in Databases, covering ORMs and data access and Database migrations. It works with SQLAlchemy. The repository describes itself as: ⚙️ Executable architecture guardrails and agent skills for building structured Python services! The licence is MIT.
11 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 9362406. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
makeFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Specx Sqlalchemy Migrations loads about 822 tokens when it runs, and up to ~4.7k if it reads all its reference files. Until then it costs about 79 tokens; SKILL.md has 357 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from maksimzayats/specx at commit 9362406, republished under its MIT licence (© maksimzayats). 357 words, ~822 tokens.
.claude/skills/specx-sqlalchemy-migrations/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Use this skill whenever a specx project has SQLAlchemy models or persistence
adapters. Read references/alembic.md before editing migration files.
alembic>=1.18.5 as a runtime dependency when SQLAlchemy adapters
exist, together with SQLAlchemy's asyncio extra and the selected driver.alembic.ini, migrations/env.py, migrations/script.py.mako, and
migrations/versions/.infrastructure/sqlalchemy/.core/<scope>/infrastructure/sqlalchemy/.src/<package>/foundation/sqlalchemy_model.py; do not use shared packaged
metadata for generated services.infrastructure/sqlalchemy/model_discovery.py. Use that same function from
migrations/env.py and its guardrail test before assigning
target_metadata; do not duplicate discovery or maintain hard-coded model
module names.target_metadata to the project-local BaseSQLAlchemyModel.metadata.make migrate and make makemigrations.alembic upgrade head against an isolated database,
check for pending autogenerate changes, and prove every core SQLAlchemy
model file is included by the exact discovery function Alembic uses. Use
the production database family when dialect behavior matters.Base.metadata.create_all, metadata.create_all, or
drop_all from src/.core/*/infrastructure/sqlalchemy/models/*.py file.autocommit connect argument on Python 3.11. For a
savepoint-based SQLite test harness spanning Python versions, use
SQLAlchemy's connect and begin event-hook recipe.Use blank lines as logical separators in all code. Keep related statements together, but separate independent setup, action, assertion, response, branch, and transformation groups so long blocks stay readable.
references/alembic.md - async Alembic layout, env.py, Makefile targets,
initial migration, and migration tests.© maksimzayats, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files (references) in skills/specx-sqlalchemy-migrations of maksimzayats/specx.
Open the folder on GitHubat commit 9362406
Specx Sqlalchemy Migrations next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Specx Sqlalchemy Migrations this skillmaksimzayats/specx | 202 | — | ~822 | Automated safety check: Pass | MIT | |
| Change Database Schemamartin-ueding/geo-activity-playground | 100 | — | ~225 | Automated safety check: Pass | Custom licence | |
| Sqlalchemykid-sid/claude-spellbook | 190 | — | ~3.5k | Automated safety check: Pass | MIT | |
| Python Database Patternsaiskillstore/marketplace | 430 | 1 repos | ~1.2k | Automated safety check: Notes | None | |
| DB Connectionaiskillstore/marketplace | 430 | — | ~3.5k | Automated safety check: Notes | None | |
| DB Migrationskurealnum/dotfiles | 290 | — | ~820 | Automated safety check: Pass | None |
martin-ueding/geo-activity-playground
How to change the SQLAlchemy data model and generate the matching Alembic migration.
kid-sid/claude-spellbook
A skill your agent uses when using async SQLAlchemy 2.0 — defining models, writing queries, managing async sessions, loading relationships without N+1, or setting up and debugging Alembic migrations.
aiskillstore/marketplace
SQLAlchemy and database patterns for Python. An agent skill from aiskillstore/marketplace.
aiskillstore/marketplace
A skill your agent uses when setting up database connections, especially for Neon PostgreSQL.
kurealnum/dotfiles
A skill your agent uses when generating or regenerating Drizzle migration files, changing database schema tables or columns, resolving migration sequence conflicts after rebase, reviewing migration…
kurealnum/dotfiles
Drizzle ORM schema and database guide. An agent skill from kurealnum/dotfiles.
maksimzayats/specx
Add or refactor a specx core scope service. An agent skill from maksimzayats/specx.
maksimzayats/specx
Add or refactor a specx core scope use case. An agent skill from maksimzayats/specx.
maksimzayats/specx
Add delivery controllers for specx services, especially FastAPI HTTP routes.
maksimzayats/specx
Add technical infrastructure adapters for specx core scopes.
maksimzayats/specx
Design or review specx core scope boundaries in Python services.
maksimzayats/specx
Wire dependency injection for a specx Python service with diwire.
Works with
Categories
Add or repair Alembic migrations for specx SQLAlchemy services. Specx Sqlalchemy Migrations is an agent skill from maksimzayats/specx. Add or repair Alembic migrations for specx SQLAlchemy services.
Specx Sqlalchemy Migrations fits situations like: adding SQLAlchemy models; replacing metadata.createall schema bootstraps; creating async Alembic env.py; adding migration Makefile targets.
Run `npx skills add maksimzayats/specx --skill specx-sqlalchemy-migrations -a claude-code`. Or copy the skill folder (skills/specx-sqlalchemy-migrations in maksimzayats/specx) into .claude/skills/specx-sqlalchemy-migrations in your project. Claude Code loads it when a task matches its description.
Run `npx skills add maksimzayats/specx --skill specx-sqlalchemy-migrations -a codex`. Or copy the skill folder (skills/specx-sqlalchemy-migrations in maksimzayats/specx) into .agents/skills/specx-sqlalchemy-migrations in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add maksimzayats/specx --skill specx-sqlalchemy-migrations -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/specx-sqlalchemy-migrations, .gemini/skills/specx-sqlalchemy-migrations, .github/skills/specx-sqlalchemy-migrations and .opencode/skills/specx-sqlalchemy-migrations in your project.
Going by SKILL.md and its folder, Specx Sqlalchemy Migrations needs the command-line tools its instructions call (make). Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Specx Sqlalchemy Migrations is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 822 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.9k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Specx Sqlalchemy Migrations: Change Database Schema (martin-ueding/geo-activity-playground, 100 stars), Sqlalchemy (kid-sid/claude-spellbook, 190 stars), Python Database Patterns (aiskillstore/marketplace, 430 stars) and DB Connection (aiskillstore/marketplace, 430 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
maksimzayats (a GitHub user) maintains it in maksimzayats/specx, which has 202 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on August 8, 2026.
Source: maksimzayats/specx on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.