alti3/litestar-skills/advanced-alchemy-routing
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.
Implement Advanced Alchemy-backed CRUD routing patterns with separate read and write contracts, pagination filters, repository-only versus service-backed handlers, and predictable endpoint composition. Use when exposing Advanced Alchemy models over HTTP in Litestar, FastAPI, or Flask, especially for list/detail/create/update/delete flows. Do not use for low-level database setup or model design.
Install
npx vskill@latest install alti3/litestar-skills/advanced-alchemy-routingSKILL.md
The same SKILL.md was published earlier as alti3/litestar-skills/advanced-alchemy-routing.
Routing
Execution Workflow
- Decide whether the endpoint layer should be service-backed or repository-only.
- Separate read schemas from write schemas when API contracts differ from the ORM model.
- Standardize collection routes around filtering and
LimitOffsetpagination. - Keep item routes explicit for get, patch, and delete, including typed identifiers.
- Commit writes through the framework integration or explicit service options, not ad hoc controller code.
Implementation Rules
- Prefer thin handlers that delegate to services or repositories immediately.
- Avoid returning ORM instances directly when the framework expects serialized schema objects.
- Keep pagination, filters, and loader options consistent across list and detail handlers.
- Fall back to repository-only handlers only when a service layer adds no value.
Example Pattern
Validation Checklist
- Confirm list routes preserve filtering and pagination semantics.
- Confirm write routes use the intended create and update schemas.
- Confirm delete handlers express empty responses cleanly.
- Confirm route handlers do not hide transaction boundaries or loader behavior.
Cross-Skill Handoffs
- Use
advanced-alchemy-servicesfor business-rule-heavy endpoints. - Use
advanced-alchemy-repositoriesfor repository-only patterns. - Use
advanced-alchemy-litestar,advanced-alchemy-fastapi, oradvanced-alchemy-flaskfor framework syntax and DI details.
Advanced Alchemy References
- https://advanced-alchemy.litestar.dev/latest/usage/routing.html
- https://advanced-alchemy.litestar.dev/latest/usage/frameworks/litestar.html
- https://advanced-alchemy.litestar.dev/latest/usage/frameworks/fastapi.html
Security
- Security scanPassed, 95 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-routing/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-routing)