alti3/litestar-skills/advanced-alchemy-flask
Claude Code and agent skill by alti3/litestar-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Integrate Advanced Alchemy with Flask using sync or async configs, Flask session access helpers, multiple binds, FlaskServiceMixin, JSON serialization helpers, and Flask CLI database commands. Use when adding Advanced Alchemy persistence to Flask applications or refactoring Flask SQLAlchemy code toward repository and service patterns. Do not use for framework-agnostic repository or model work.
Install
npx vskill@latest install alti3/litestar-skills/advanced-alchemy-flaskSKILL.md
The same SKILL.md was published earlier as alti3/litestar-skills/advanced-alchemy-flask.
Flask
Execution Workflow
- Choose
SQLAlchemySyncConfigby default, orSQLAlchemyAsyncConfigonly when Flask async routes are intentional and supported. - Initialize
AdvancedAlchemywith the app and use its session helpers rather than global engine state. - Use
bind_keyonly when the application truly needs multiple databases. - Wrap CRUD-heavy services with
FlaskServiceMixinwhen itsjsonify()helper meaningfully simplifies responses. - Use
flask databasecommands once migrations are wired through the extension.
Implementation Rules
- Keep
commit_modeexplicit:manual,autocommit, orautocommit_include_redirect. - Prefer request or app-context-managed sessions over module-level state.
- Translate Flask query params into Advanced Alchemy filters near the route boundary.
- Use async sessions in sync routes only with care; that path is documented as experimental.
Example Pattern
Validation Checklist
- Confirm sessions are opened inside request or app context and closed cleanly.
- Confirm the chosen commit mode matches endpoint behavior, including redirects if relevant.
- Confirm
flask database --helpexposes migration commands when expected. - Confirm
FlaskServiceMixin.jsonify()returns the intended serialization format.
Cross-Skill Handoffs
- Use
advanced-alchemy-repositoriesandadvanced-alchemy-servicesfor the persistence layer itself. - Use
advanced-alchemy-clifor migration command semantics behind Flask CLI wrappers. - Use
advanced-alchemy-database-seedingfor fixture loading during app initialization or admin workflows.
Advanced Alchemy References
- https://advanced-alchemy.litestar.dev/latest/usage/frameworks/flask.html
- https://github.com/litestar-org/advanced-alchemy/blob/main/README.md
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 repositoryCheckingplugins/advanced-alchemy/skills/advanced-alchemy-flask/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- 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/alti3/litestar-skills/advanced-alchemy-flask)