
Alembic knowledge patch
Guides an agent through Alembic migrations, upgrades, autogenerate and revision graph
Alembic knowledge patch is an open-source agent skill for databases. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 25
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Alembic knowledge patch
This skill gives an agent working knowledge of Alembic, the database migration tool for SQLAlchemy. It covers the situations where a project's migration setup changes: upgrading Alembic versions, adjusting configuration and path handling, reviewing autogenerated migrations, and diagnosing revision graph or backend-specific DDL behavior. It points out version-specific pitfalls such as runtime floors, a yanked 1.15.0 wheel, and changed path separator settings.
The skill asks the agent to first check the project's pinned Alembic, Python, SQLAlchemy and backend versions, and to trust the project's own code, tests and observed database behavior over general guidance. It includes quick references for deployment head checks, backend-guarded DDL flags, inline keys and references, offline version-table behavior, CHECK constraint comparison, and merge revisions. Deeper edge cases live in four reference files covering compatibility, autogenerate and rendering, operations and DDL, and revisions, CLI and extensions.
The skill ships no scripts. It is written for work inside an existing Alembic project and expects access to that project's files and a database to test against.
When your agent uses it
Alembic
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 6 files (23 KB) on GitHub on 17 November 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the knowledge-patch plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add Nevaberry/nevaberry-plugins
/plugin install knowledge-patch@nevaberryOr copy only this skill to ~/.claude/skills/alembic-knowledge-patch:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nevaberry/nevaberry-plugins.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/alembic-knowledge-patch &&
cp -R "$tmp/plugins/knowledge-patch/patches-claude/alembic-knowledge-patch" ~/.claude/skills/alembic-knowledge-patch &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/alembic-knowledge-patch inside it instead.
Copy the skill folder to ~/.agents/skills/alembic-knowledge-patch to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nevaberry/nevaberry-plugins.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/alembic-knowledge-patch &&
cp -R "$tmp/plugins/knowledge-patch/patches-claude/alembic-knowledge-patch" ~/.agents/skills/alembic-knowledge-patch &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/alembic-knowledge-patch inside it instead.
Copy the skill folder to ~/.cursor/skills/alembic-knowledge-patch to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nevaberry/nevaberry-plugins.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/alembic-knowledge-patch &&
cp -R "$tmp/plugins/knowledge-patch/patches-claude/alembic-knowledge-patch" ~/.cursor/skills/alembic-knowledge-patch &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/alembic-knowledge-patch inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/Nevaberry/nevaberry-plugins.git --path plugins/knowledge-patch/patches-claude/alembic-knowledge-patchOr copy the folder to ~/.gemini/skills/alembic-knowledge-patch yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/alembic-knowledge-patch:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nevaberry/nevaberry-plugins.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/alembic-knowledge-patch &&
cp -R "$tmp/plugins/knowledge-patch/patches-claude/alembic-knowledge-patch" ~/.copilot/skills/alembic-knowledge-patch &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/alembic-knowledge-patch inside it instead.
Get the folder:
git clone --depth 1 https://github.com/Nevaberry/nevaberry-plugins.gitThen copy nevaberry-plugins/plugins/knowledge-patch/patches-claude/alembic-knowledge-patch into your agent's skills folder as alembic-knowledge-patch. Agents that support SKILL.md read one folder per skill.
What it does
- Version upgrade triage
- Flags yanked releases and the Python and SQLAlchemy floors for each Alembic series.
- Path and configuration guidance
- Explains TOML configuration, path_separator settings and recursive revision directories.
- Head checks for deployments
- Shows how to fail a deployment check when the database is missing any revision head.
- Backend-guarded DDL
- Covers IF EXISTS and IF NOT EXISTS flags and inline primary key and reference options.
- Autogenerate review
- Covers named CHECK comparison, comparison plugins and preserved constraint names.
- Revision graph repair
- Covers merge splicing, dependency-aware heads and revision identifier rules.
Good for
- Upgrade an Alembic project to a newer release without breaking its configuration
- Review an autogenerated migration before it runs against production
- Add a column with an inline foreign key reference using Alembic operations
- Diagnose why a database fails the check for missing revision heads
- Create a merge revision that is based on non-head revisions
Alembic knowledge patch FAQ
Does Alembic knowledge patch need any scripts or extra tools to run?
It ships no scripts. It works through the Alembic project's own code, configuration and database.
Which Alembic versions does Alembic knowledge patch cover?
It includes version-specific notes for the 1.15, 1.16, 1.17 and 1.18 series, including the yanked 1.15.0 wheel.
Does Alembic knowledge patch tell the agent which Alembic version to use?
No. It tells the agent to inspect the project's pinned versions first and use 1.15.1 or later in the 1.15 series.
How do I install Alembic knowledge patch in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/alembic-knowledge-patch to use it in all your projects, or to .claude/skills/alembic-knowledge-patch in one project. Or install the knowledge-patch plugin, which includes it: /plugin marketplace add Nevaberry/nevaberry-plugins, then /plugin install knowledge-patch@nevaberry.
Does Alembic knowledge patch run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Alembic knowledge patch?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Alembic knowledge patch?
The closest alternatives to Alembic knowledge patch are Airflow knowledge patch, Bevy migration 0 17 to 0 18, Database migrations, Android SDK knowledge patch and Angular knowledge patch.
Where this comes from
- Description: from the skill's own SKILL.md.
More from Nevaberry/nevaberry-plugins

Gives agents version-specific rules for Adyen Web, Drop-in, Components and Checkout API
- Open source
- 25 GitHub stars
- Finance and payments

Guides an agent through AgOpenGPS, AgIO and GNSS autosteer setup and diagnosis
- Open source
- 25 GitHub stars
- Developer tools

Guides an agent through Apache Airflow 3.x authoring, upgrades and operations
- Open source
- 25 GitHub stars
- Developer tools

Guides agents through Android SDK, AGP and Play target API changes before upgrades
- Open source
- 25 GitHub stars
- Developer tools

Gives agents current Angular 22 guidance on breaking changes, signals and forms
- Open source
- 25 GitHub stars
- Developer tools

Gives agents current ansible-core 2.21 migration checks for playbooks and plugins
- Open source
- 25 GitHub stars
- Cloud and infrastructure



