alti3/litestar-skills/advanced-alchemy-services
Claude Code and agent skill by alti3/litestar-skills
- community
Checking that the SKILL.md file is still in the repository.
Implement Advanced Alchemy service layers for business logic, schema validation, data transformation, and coordinated repository operations using Pydantic, Msgspec, attrs, or plain dictionaries. Use when handlers need more than raw CRUD, when repository results must be converted to schemas, or when complex create and update flows span multiple models. Do not use for low-level model or repository definition alone.
Install
npx vskill@latest install alti3/litestar-skills/advanced-alchemy-servicesSKILL.md
The same SKILL.md was published earlier as alti3/litestar-skills/advanced-alchemy-services.
Services
Execution Workflow
- Start from the repository and wrap it with
SQLAlchemyAsyncRepositoryServiceorSQLAlchemySyncRepositoryService. - Define schema types for create, update, and read flows only where service boundaries need validation or conversion.
- Set
repository_type, loader options, andmatch_fieldsexplicitly. - Override
create(),update(), orto_model()only for real domain rules such as slug generation or multi-model coordination. - Convert outbound models with
to_schema()instead of leaking ORM instances to transport layers.
Implementation Rules
- Keep services responsible for business rules, not controller or router concerns.
- Accept dictionaries or schema objects, but normalize them consistently through the service.
- Use schema conversion intentionally: Pydantic, Msgspec, and attrs are all supported.
- Keep multi-repository workflows atomic and explicit about commit behavior.
Example Pattern
Validation Checklist
- Confirm service input can be converted into models for both create and update paths.
- Confirm
to_schema()returns the expected response shape for the chosen schema library. - Confirm custom service overrides preserve repository invariants.
- Confirm complex operations load the relationships they depend on.
Cross-Skill Handoffs
- Use
advanced-alchemy-repositoriesfor persistence operations beneath the service. - Use
advanced-alchemy-routingwhen mapping service methods onto CRUD endpoints. - Use
advanced-alchemy-litestar,advanced-alchemy-fastapi, oradvanced-alchemy-flaskfor framework DI and request handling.
Advanced Alchemy References
- https://advanced-alchemy.litestar.dev/latest/usage/services.html
- https://github.com/litestar-org/advanced-alchemy/blob/main/README.md
Security
- Security scanPassed, 100 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-services/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-services)