auto-generated-model-repository-pattern

Official

Reactive model access with DB-backed presets

Authorplanetaryescape
Version1.0.0
Installs0

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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.