Sqlalchemy Code Review
Structured code review checklist for SQLAlchemy 2.0 covering sessions, relationships, queries, and Alembic migrations.
- CCM score
- 45 of 100
- skills.sh installs
- 229
- GitHub stars
- 91
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers session lifecycle, relationship loading, query style, and migration patterns, each with a dedicated reference file
- Includes a 12-item review checklist plus three verification gates that require a
file:lineanchor before a finding is reported - Enforces context-managed sessions, explicit
joinedloadorselectinloadto prevent N+1 queries, andselect()over legacyquery() - Designed for reviewing SQLAlchemy 2.0 code, session handling,
relationship()usage, and Alembic migrations with reversibledowngrade()steps
Install
$ npx -y skills add existential-birds/beagle --skill sqlalchemy-code-review -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
SQLAlchemy Code Review
Quick Reference
| Issue Type | Reference |
|---|---|
Session lifecycle, async_sessionmaker, async sessions | references/sessions.md |
Mapped / relationship(), lazy loading, N+1, selectinload | references/relationships.md |
select() vs query(), ORM overhead, insert()/update() bulk ops | references/queries.md |
Alembic patterns, autocommit_block(), reversible data migrations | references/migrations.md |
Review Checklist
Details
- Repository
- github.com/existential-birds/beagle
- Categories
- Code Review & Quality, Databases, Python
- First seen
- Jun 3, 2026
Questions
What does the sqlalchemy-code-review skill check in my code?
The sqlalchemy-code-review skill reviews SQLAlchemy 2.0 and Alembic code for session lifecycle, Mapped relationships, N+1 queries, bulk DML, and safe migrations. It gives the agent a review checklist and gates that tie each finding to a file and line before it is reported.
How do I install the sqlalchemy-code-review skill?
Run npx -y skills add existential-birds/beagle --skill sqlalchemy-code-review -y in your project. Once installed, sqlalchemy-code-review lets the agent review SQLAlchemy models, queries, async sessions, and Alembic revisions when you ask for it.
Which category does sqlalchemy-code-review belong to?
sqlalchemy-code-review sits in the Code Review & Quality category on Claude Marketplaces. Other skills in that category include improve-codebase-architecture, code-review, and caveman-review, but this one focuses on SQLAlchemy-specific issues.
Does sqlalchemy-code-review catch N+1 queries and risky Alembic migrations?
Yes, sqlalchemy-code-review checks for lazy loading inside loops, relationship loading strategies such as selectinload, and reversible Alembic revisions with a working downgrade. It also flags concurrent index builds that lack an autocommit_block.
More from existential-birds/beagle
All 37- Pydantic Ai Common Pitfalls221
- Agent Architecture Analysis220
- Pydantic Ai Agent Creation219
- Ai Elements211
- Go Code Review206
- Shadcn Code Review206
- Swift Testing Code Review196
- Deepagents Architecture162
- Langgraph Implementation161
- Pydantic Ai Tool System161
- Pydantic Ai Testing146
- Deepagents Implementation142
- Pydantic Ai Dependency Injection141
- Deepagents Code Review134
- Pydantic Ai Model Integration120
- React Flow1.4K
- Python Code Review968
- Langgraph Code Review890
- Tailwind V4838
- React Flow Advanced653
- React Router V7581
- React Flow Architecture544
- Vitest Testing473
- Fastapi Code Review396
Similar to Sqlalchemy Code Review
More Code Review & Qualitysql-code-reviewgithub/awesome-copilot15.9K installsUniversal SQL code review guide covering injection prevention, access control, performance, and anti-pattern detection across databases.
sqlalchemy-alembic-expert-best-practices-code-reviewwispbit-ai/skills2.3K installsRules for safe, performant SQLAlchemy and Alembic schema changes, from index creation to constraint validation.
sqlalchemy-ormbobmatnyc/claude-mpm-skills873 installsPython SQL toolkit and ORM skill covering query building, relationship mapping, and Alembic migrations.
code-reviewgetsentry/skills6K installsSentry-style code review guide that checks PRs for runtime, performance, security, and test gaps.
sqlalchemy-postgrescfircoo/claude-code-toolkit517 installsExpert SQLAlchemy 2.0, Pydantic v2, and PostgreSQL guidance for async database layers, models, and migrations.
backend-code-reviewlanggenius/dify2.1K installsStructured backend review workflow that flags concrete, reproducible defects in api/ code only when explicitly requested.