alti3/litestar-skills/advanced-alchemy-litestar
Claude Code and agent skill by alti3/litestar-skills
- community
Checking that the SKILL.md file is still in the repository.
Integrate Advanced Alchemy with Litestar using the SQLAlchemy plugin, session injection, service and repository providers, DTO-friendly models, CLI database commands, and optional session backends. Use when building or refactoring Litestar applications that persist data through Advanced Alchemy. Do not use for generic Litestar work that does not depend on Advanced Alchemy.
Install
npx vskill@latest install alti3/litestar-skills/advanced-alchemy-litestarSKILL.md
The same SKILL.md was published earlier as alti3/litestar-skills/advanced-alchemy-litestar.
Litestar
Execution Workflow
- Configure
SQLAlchemyAsyncConfigorSQLAlchemySyncConfigand registerSQLAlchemyPlugin. - Use the plugin to provide session and engine dependencies instead of hand-rolling request-scoped session management.
- Build controllers around services first, and fall back to repository-only patterns only when they stay simpler.
- Keep application composition in
Litestar(...)and let providers or DI supply services. - Enable CLI database commands and optional session-backend support only after the core CRUD path is stable.
Implementation Rules
- Prefer a single canonical plugin configuration per application.
- Keep
before_send_handlerand session dependency keys explicit when changing defaults. - Use controller or handler injection for
db_sessiononly when service injection is unnecessary. - Keep DTO or schema shaping close to the controller boundary, not inside repositories.
Example Pattern
Validation Checklist
- Confirm Litestar injects the expected
db_sessionor renamed dependency. - Confirm request lifecycle commit and rollback behavior matches
before_send_handler. - Confirm
litestar databasecommands are available when the plugin is installed. - Confirm route handlers, providers, and DTOs agree on model and schema types.
Cross-Skill Handoffs
- Use
advanced-alchemy-routingfor CRUD route structure. - Use
advanced-alchemy-servicesfor service-backed controllers. - Use
advanced-alchemy-clifor migration commands exposed through Litestar CLI. - Use
litestar-app-setup,litestar-dependency-injection, orlitestar-dtofor deeper Litestar-only concerns.
Advanced Alchemy References
- https://github.com/litestar-org/advanced-alchemy/blob/main/examples/litestar/litestar_service.py
- https://advanced-alchemy.litestar.dev/latest/usage/frameworks/litestar.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-litestar/SKILL.md
Popularity
- Repository stars
- 7
- Repository forks
- 1
- 7-day trend score
- 15
Stars and forks are for the whole GitHub repository, not this skill alone. 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-litestar)