auto-generated-model-repository-pattern
OfficialReactive model access with DB-backed presets
System Documentation
What problem does it solve?
This skill addresses the challenge of migrating from static model configurations to a dynamic, database-backed repository. It enables cohesive client/server access to models via client-side hooks and server-side static helpers, while preserving an AUTO_MODEL injection path.
Core Features & Use Cases
- Client-side reactive hooks (useModels, useModel) that load models from a centralized database-enabled store.
- Server-side static helpers that provide immediate access to model configurations without querying at runtime.
- AUTO_MODEL injection that routes requests to the optimal model at runtime, maintaining flexibility and performance.
- Supports migrations from MODEL_CONFIG to Convex DB storage with a clean separation of concerns between client and server.
Quick Start
Start by reviewing the repository pattern in your codebase. Then use the client hooks to fetch available models and the AUTO_MODEL as a default rider for routing decisions, followed by server-side helpers to fetch single models when needed.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: auto-generated-model-repository-pattern Download link: https://github.com/planetaryescape/blah.chat/archive/main.zip#auto-generated-model-repository-pattern Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.