alti3/litestar-skills/advanced-alchemy-repositories
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.
Build Advanced Alchemy repository layers with sync or async repositories, slug-aware repositories, query repositories, bulk operations, filtering, and pagination. Use when implementing database access patterns, replacing handwritten CRUD, or standardizing query logic around SQLAlchemy models. Do not use for business-rule orchestration that belongs in services or for framework routing concerns.
Install
npx vskill@latest install alti3/litestar-skills/advanced-alchemy-repositoriesSKILL.md
The same SKILL.md was published earlier as alti3/litestar-skills/advanced-alchemy-repositories.
Repositories
Execution Workflow
- Choose the base repository class that matches the runtime:
SQLAlchemyAsyncRepository,SQLAlchemySyncRepository, or a slug or query variant. - Set
model_typeimmediately and keep repositories model-specific. - Use built-in filters and
list_and_count()for list endpoints instead of reimplementing pagination logic. - Use bulk helpers for inserts, updates, upserts, and deletes when the workload is batch-shaped.
- Keep transaction ownership outside the repository unless the framework integration explicitly handles commit behavior.
Implementation Rules
- Keep repositories focused on persistence and query composition, not HTTP contracts.
- Prefer repository subclasses over duplicated ad hoc helper functions spread across handlers.
- Reach for query repositories only when custom SQL or aggregation work is materially different from standard CRUD.
- Keep loader options explicit so relationship behavior is predictable.
Example Pattern
Validation Checklist
- Confirm the repository type matches the session type.
- Confirm
model_typepoints at the intended mapped class. - Confirm list filters, counts, and pagination stay consistent under real data.
- Confirm bulk operations are tested against the target database dialect.
Cross-Skill Handoffs
- Use
advanced-alchemy-modelingbefore defining repositories. - Use
advanced-alchemy-serviceswhen handlers need schema conversion or domain rules. - Use
advanced-alchemy-routingor a framework skill when repository methods are exposed over HTTP.
Advanced Alchemy References
- https://advanced-alchemy.litestar.dev/latest/usage/repositories.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-repositories/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-repositories)