Skip to main content
在 Manus 中运行任何 Skill
一键导入

sqlalchemy-patterns

星标8
分支0
更新时间2026年6月16日 15:19

SQLAlchemy ORM patterns for Flask: Flask-SQLAlchemy extension setup, declarative models with db.Model, synchronous db.session queries, relationships with explicit lazy loading, Flask-Migrate integration for schema migrations. Used by flask-architect (model definitions) and flask-migrate-specialist (column finalization and migration). Activated automatically by flask-plugin/stack.md. Use this skill to: - Write Flask-SQLAlchemy models with db.Model base and properly typed columns. - Query the database with db.session and SQLAlchemy 2.0-style select() statements. - Define relationships with explicit lazy loading strategy. - Integrate Flask-Migrate for Alembic-based migrations managed via flask db commands. Do NOT use this skill for: - Flask routing and template/API patterns — see flask-plugin:flask-conventions. - Migration execution (flask db migrate, flask db upgrade) — that's flask-migrate-specialist's job. - Python idioms — see python-foundation:python-conventions.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly