208663340/opc-delivery/python-sqlalchemy
Claude Code and agent skill by 208663340/opc-delivery
- community
Checking that the SKILL.md file is still in the repository.
SQLAlchemy 2.0 stable ORM and Core patterns. Use for typed mappings, select() queries, sessions and transaction boundaries, relationships and loading, sync or async engines, JSON, dialect-specific upserts, or Alembic migrations. For HTTP concerns, use python-fastapi.
Install
npx vskill@latest install 208663340/opc-delivery/python-sqlalchemySKILL.md
The same SKILL.md was published earlier as 208663340/opc-delivery/python-sqlalchemy.
SQLAlchemy ORM Patterns
Use SQLAlchemy 2.0 stable APIs. Session.query() is a legacy compatibility API; new code uses select().
Model Definition
Session Management
The dependency owns closure only. The application use case owns with session.begin(): or explicit commit/rollback. Repositories flush or add records; they do not commit each operation.
Query Patterns
Upsert
This is PostgreSQL-specific. The conflict target must be backed by a unique constraint or index. Keep transaction ownership outside the repository.
Relationships
JSON Columns
Plain JSON does not detect in-place dict mutations. Use replacement assignment or MutableDict; nested values need their own mutation policy.
References
- Models: mappings, defaults, relationships, and JSON types.
- Queries: results, loading, pagination, and large result sets.
- Async: sessions per task, implicit I/O, and disposal.
Changing ORM metadata does not migrate existing databases. Use Alembic migration scripts and review autogenerated revisions, especially destructive changes and data backfills.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/python-sqlalchemy/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/208663340/opc-delivery/python-sqlalchemy)