Skip to content
existential-birds avatar

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
View on GitHub

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:line anchor before a finding is reported
  • Enforces context-managed sessions, explicit joinedload or selectinload to prevent N+1 queries, and select() over legacy query()
  • Designed for reviewing SQLAlchemy 2.0 code, session handling, relationship() usage, and Alembic migrations with reversible downgrade() steps

Install

$ npx -y skills add existential-birds/beagle --skill sqlalchemy-code-review -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

SQLAlchemy Code Review

Quick Reference

Issue TypeReference
Session lifecycle, async_sessionmaker, async sessionsreferences/sessions.md
Mapped / relationship(), lazy loading, N+1, selectinloadreferences/relationships.md
select() vs query(), ORM overhead, insert()/update() bulk opsreferences/queries.md
Alembic patterns, autocommit_block(), reversible data migrationsreferences/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

Similar to Sqlalchemy Code Review

More Code Review & Quality