SQLAlchemy and database patterns for Python. Triggers on: sqlalchemy, database, orm, migration, alembic, async database, connection pool, repository pattern, unit of work.
74
63%
Does it follow best practices?
Impact
94%
2.08xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./data/skills-md/0xdarkmatter/claude-mods/python-database-patterns/SKILL.mdAsync SQLAlchemy + FastAPI integration
asyncpg driver
100%
100%
echo=False on engine
0%
100%
pool_size setting
0%
100%
max_overflow setting
0%
100%
expire_on_commit=False
100%
100%
AsyncGenerator return type
0%
100%
Async session context manager
100%
100%
Annotated DB alias
0%
100%
select() query style
100%
100%
scalar_one_or_none usage
100%
100%
scalars().all() usage
100%
100%
ORM model design and query patterns
DeclarativeBase usage
100%
100%
Mapped type annotations
0%
100%
mapped_column() usage
0%
100%
ForeignKey with Mapped[int]
0%
100%
back_populates relationships
100%
100%
selectinload eager loading
0%
100%
and_() for AND conditions
0%
100%
or_() for OR conditions
0%
100%
func.count() aggregate
100%
100%
order_by and limit
100%
100%
select() 2.0 style
0%
100%
scalars().all() for lists
0%
100%
Sync SQLAlchemy session and aggregate queries
Session context manager
100%
100%
select() query style
0%
100%
and_() for combined filters
0%
0%
or_() for alternate conditions
0%
100%
scalars().all() for lists
0%
50%
func.count() aggregate
100%
100%
order_by with limit
100%
100%
Mapped types in models
0%
100%
DeclarativeBase
100%
100%
f772de4
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.