/python:sqlalchemyfrom python
Use when defining SQLAlchemy models, writing queries, managing sessions and transactions, loading relationships, adding a migration, or tuning performance, sync or async. SQLAlchemy 2.x ORM and Core.
Ships in python. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
select(), Mapped[T], mapped_column(). Legacy Query/Column mixes styles and loses typing.with Session(engine) as session, session.begin(): (async: async with). It commits on success and rolls back on exception. Catch IntegrityError/OperationalError outside the block so rollback stays automatic, then translate to domain/API errors.Annotated (intpk, timestamp, str50).MappedAsDataclass is optional: default affects __init__, insert_default affects SQL; collections need default_factory; frozen/slots unsupported.expire_on_commit=False on async_sessionmaker. After commit attributes expire, and reloading them is a lazy load, which raises MissingGreenlet in async.DetachedInstanceError; eager-load what you need before closing.AsyncAttrs + await obj.awaitable_attrs.rel exists, but explicit eager loading is preferred.lazy="raise" on every relationship unless there is a documented reason otherwise, and choose eager loading per query. This turns hidden N+1 queries (and async MissingGreenlet) into immediate errors.selectinload for collections (joinedload on collections multiplies rows and needs .unique()); joinedload for many-to-one scalars; subqueryload only for collections with complex filters.from_attributes=True) only after relationships are eagerly loaded.pool_size, max_overflow, pool_pre_ping=True, pool_recycle (stale connections otherwise surface as random request failures).session.execute(insert(Model), [...]), not bulk_save_objects().domain-driven-design skill's layers, SQLAlchemy is a driven adapter: ORM models are separate from domain entities, repositories return domain objects and hold no business logic.type_annotation_map.system-design).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub giocaizzi/harness --plugin pythonOther plugins' skills for the same job
4 skills in this plugin
/fastapiUse when testing, adding or changing anything in a FastAPI app: TestClient tests, an endpoint or router, request validation, a Pydantic schema, settings from the environment, an auth or API-key dependency, middleware. House rules for FastAPI./python-developmentUse when you write or change Python (.py), pyproject.toml or a ruff config: a feature, fix, refactor or review, even a one-line bug fix, and even when conventions are not mentioned. House rules: typing, errors, uv, ruff, mypy --strict./python-testingUse when you write, fix, review or debug Python tests (test_*.py, conftest.py, pytest config), including flaky, slow or hanging tests, tests that sleep, mock, patch, hit the network or share fixtures. pytest, fakes, hypothesis.