sqlalchemy-dev
SQLAlchemy dev plugin for Agents Store. Typed SQLAlchemy 2.0 style (Mapped, mapped_column, select) with a SQLAlchemy 2.1 section: model definition patterns, relationship mapping, query optimization, Alembic migrations, and troubleshooting.
v2.1.7Updated
- sqlalchemy
- dev
- agents-store
- python
- orm
- alembic
- database
Install
Pick your agent for the steps.
Install on Claude Code
1.Add the marketplace
/plugin marketplace add Agents-Store/claude-plugins2.Install the plugin
/plugin install sqlalchemy-dev@agents-store-claude-pluginsType it inside Claude Code.
Install on GitHub Copilot CLI
1.Add the marketplace
copilot plugin marketplace add Agents-Store/claude-plugins2.Install the plugin
copilot plugin install sqlalchemy-dev@agents-store-claude-plugins
GitHub Copilot CLI does not receive: commands, agents.
Install on Cursor
1.Manual install
Cursor has no install command for a single plugin. Copy the plugin's folder from its place in the mirror on GitHub into the place Cursor reads plugins from.
Cursor’s plugin documentation now lives at docs.grok.com (cursor.com/docs/plugins redirects there). Plugins come from its marketplace, a team marketplace or a local folder.
Install on Codex
1.Add the marketplace
codex plugin marketplace add Agents-Store/codex-plugins2.Install the plugin
codex plugin add sqlalchemy-dev@agents-store-codex-plugins
Codex does not receive: commands, agents.
Install on Gemini CLI
1.Clone the mirror
git clone https://github.com/Agents-Store/gemini-extensions2.Install the plugin
gemini extensions link ./gemini-extensions/sqlalchemy-devRun it from the folder you cloned into.
Consumer access to Gemini CLI ended on 2026-06-18. This target serves enterprise Gemini Code Assist; Antigravity is the consumer successor.
Install on Antigravity
1.Clone the mirror
git clone https://github.com/Agents-Store/antigravity-skills2.Install the plugin
agy plugin install ./antigravity-skills/sqlalchemy-devRun it from the folder you cloned into.
Antigravity does not receive: commands.
Install on Kimi Code
1.Clone the mirror
git clone https://github.com/Agents-Store/kimi-plugins2.Install the plugin
/plugins install ./kimi-plugins/sqlalchemy-devRun it from the folder you cloned into, and type it inside Kimi Code.
Kimi Code does not receive: commands, agents, hooks, MCP servers.
Install on Devin
1.Install the plugin
devin plugins install Agents-Store/devin-plugins#sqlalchemy-dev
Devin does not receive: commands, agents, hooks, MCP servers.
Install on Hermes Agent
1.Install the plugin
hermes plugins install Agents-Store/hermes-plugins/sqlalchemy-dev
Hermes Agent does not receive: commands, agents, hooks, MCP servers.
Install on OpenCode
1.Manual install
OpenCode has no install command for a single plugin. Copy the plugin's folder from its place in the mirror on GitHub into the place OpenCode reads plugins from.
OpenCode does not receive: hooks.
Install on Pi
1.Manual install
Pi has no install command for a single plugin. Copy the plugin's folder from its place in the mirror on GitHub into the place Pi reads plugins from.
Pi does not receive: commands, agents, hooks, MCP servers.
Install on OpenClaw
1.Clone the mirror
git clone https://github.com/Agents-Store/openclaw-generated-plugins2.Install the plugin
openclaw plugins install ./openclaw-generated-plugins/sqlalchemy-devRun it from the folder you cloned into.
OpenClaw does not receive: commands, agents, hooks, MCP servers.
Install on Agent Plugins 1.0
1.Manual install
Agent Plugins 1.0 has no install command for a single plugin. Copy the plugin's folder from its place in the mirror on GitHub into the place Agent Plugins 1.0 reads plugins from.
Agent Plugins 1.0 does not receive: commands, agents, hooks.
What is inside
Skills (6)
- api-reference
Use when the user asks for "SQLAlchemy API reference", "mapped_column options", "SQLAlchemy column types", "SQLAlchemy session methods", "db.session API", "SQLAlchemy relationship options", "lazy loading strategies", or needs specific SQLAlchemy framework API details.
- cli-recipes
Use when the user asks about "Alembic commands", "database migrations", "flask db migrate", "flask db upgrade", "create migration", "rollback migration", "alembic check", "SQLAlchemy CLI", or needs ready-to-use database migration commands.
- model-patterns
Use when the user asks about "SQLAlchemy models", "define database model", "Mapped and mapped_column", "DeclarativeBase", "SQLAlchemy relationships", "one-to-many relationship", "many-to-many", "SQLAlchemy column types", "model constraints", "Flask-SQLAlchemy model", "convert db.Column to Mapped 2.0 style", "upgrade to SQLAlchemy 2.1", "Flask-Login User model", "models owned by a user", or needs patterns for defining database models with SQLAlchemy.
- query-patterns
Use when the user asks about "SQLAlchemy queries", "filter records", "SQLAlchemy select", "session.scalars", "join tables", "aggregate query", "order by", "pagination", "N+1 query problem", "eager loading", "SQLAlchemy session", "bulk insert", "convert Model.query to select() 2.0 style", "upgrade to SQLAlchemy 2.1", "filter queries by current user", "owner-scoped queries", or needs patterns for querying data with SQLAlchemy.
- setup
Use when the user asks to "verify SQLAlchemy setup", "check database connection", "is SQLAlchemy configured correctly", "test database setup", "which SQLAlchemy version", "SQLAlchemy 2.1", or needs to confirm that SQLAlchemy is properly initialized in their Python project.
- troubleshoot
Use when the user encounters "SQLAlchemy errors", "database error", "OperationalError", "IntegrityError", "DetachedInstanceError", "AmbiguousColumnError", "LegacyAPIWarning", "No module named psycopg", "SQLAlchemy not working", "migration error", "debug SQLAlchemy", or needs to diagnose and fix common SQLAlchemy problems.
Agents (1)
- sqlalchemy-developer
Use this agent when the user needs help building with SQLAlchemy — defining models, writing queries, setting up migrations, debugging database errors, or optimizing query performance. <example> Context: User is defining a new database model user: "Help me create a model for tracking appointments with relationships to clients and users" assistant: "I'll use the sqlalchemy-developer agent to design the model with proper relationships." <commentary> Developer needs help defining SQLAlchemy models with foreign keys and relationships. </commentary> </example> <example> Context: User is debugging a database error user: "I'm getting an IntegrityError when trying to delete a client who has appointments" assistant: "I'll use the sqlalchemy-developer agent to diagnose the constraint error." <commentary> Developer has a foreign key constraint issue — agent can analyze the model relationships and fix it. </commentary> </example> <example> Context: User wants to optimize slow database queries user: "My appointments page loads slowly because it makes too many database queries" assistant: "I'll use the sqlalchemy-developer agent to identify and fix the N+1 query problem." <commentary> Developer needs query optimization — agent can add eager loading to fix N+1 issues. </commentary> </example>
README
SQLAlchemy dev plugin for Agents Store. Typed SQLAlchemy 2.0 style throughout (DeclarativeBase, Mapped, mapped_column, select()), with a SQLAlchemy 2.1 section: model definition patterns, relationship mapping, query optimization, Alembic migrations, and troubleshooting for developers building with SQLAlchemy 2.0 and 2.1.
Skills
| Skill | Description |
|---|---|
setup | Verify SQLAlchemy configuration, version pin, driver and database connection |
model-patterns | Model definitions, relationships, column types, constraints, mixins; the Flask-Login User model and user-owned tables |
query-patterns | Queries, filtering, joins, aggregations, eager loading, pagination, bulk operations; owner-scoped (per-user) queries |
api-reference | Core SQLAlchemy API (column types, session methods, relationship options), plus references: advanced API, SQLAlchemy 2.1, Legacy 1.x style |
cli-recipes | Alembic / Flask-Migrate migration commands |
troubleshoot | Common SQLAlchemy errors and diagnostic steps |
Agent
sqlalchemy-developer — SQLAlchemy development specialist for defining models, writing queries, managing migrations, and debugging database issues.
Installation
Install via Agents Store or add manually to your Claude Code plugins.
Prerequisites
- Python 3.11+ for SQLAlchemy 2.1 (SQLAlchemy 2.0.x runs on Python 3.7+; Alembic 1.20 needs 3.10+)
- SQLAlchemy 2.1, or SQLAlchemy 2.0.x
- Flask-SQLAlchemy 3.1 with
"SQLAlchemy<2.1": aMappedAsDataclassbase fails on SQLAlchemy 2.1 (pallets-eco/flask-sqlalchemy#1420; plaindb.Modelworks), so pinSQLAlchemy<2.1to be safe until Flask-SQLAlchemy supports 2.1:
pip install Flask-SQLAlchemy "SQLAlchemy<2.1" Flask-Migrate
Plain SQLAlchemy projects install 2.1 directly. For PostgreSQL name the driver in the URL (postgresql+psycopg://) and install "psycopg[binary]"; for asyncio install "sqlalchemy[asyncio]".
The examples use the 2.0 typed style and Python 3.10+ syntax. Code written in the SQLAlchemy 1.x style (Column, backref, Model.query) is covered only as a translation aid in the Legacy 1.x style reference.
Source
- Source on GitHub
- Mirror: Agents-Store/claude-plugins
- Mirror: Agents-Store/cursor-plugins
- Mirror: Agents-Store/codex-plugins
- Mirror: Agents-Store/gemini-extensions
- Mirror: Agents-Store/antigravity-skills
- Mirror: Agents-Store/kimi-plugins
- Mirror: Agents-Store/devin-plugins
- Mirror: Agents-Store/hermes-plugins
- Mirror: Agents-Store/opencode-plugins
- Mirror: Agents-Store/pi-extensions
- Mirror: Agents-Store/openclaw-generated-plugins
- Mirror: Agents-Store/agentplugins