0112-nuxt-repositories

Create typed Nuxt API repositories with hydrated models and CRUD operations.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/MrJmpl3/codex_____data_____configuration --skill 0112-nuxt-repositories
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 0112-nuxt-repositories
Source: https://github.com/MrJmpl3/codex_____data_____configuration/tree/main/skills/0112-nuxt-repositories
Command: npx skills add https://github.com/MrJmpl3/codex_____data_____configuration --skill 0112-nuxt-repositories

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you build a clean, consistent data access layer for Nuxt apps so API calls return ready-to-use, typed models instead of raw JSON scattered across your codebase.

Core Features & Use Cases

  • Typed CRUD repositories: Define repositories around API resource paths for standard list/get/create/update/delete operations.
  • Automatic model hydration: Convert API responses into model instances via a ModelHydrator, returning hydrated models for both single entities and collections.
  • Custom repository methods: Add domain-specific actions (e.g., “list posts by author”) using the underlying JSON request helpers.
  • Repository registration & usage: Register repositories in app config and retrieve them at runtime via useRepository.

Quick Start

Use repositories by registering your repository classes in app config, then call useRepository("posts") to list and get hydrated models.

Frequently Asked Questions about 0112-nuxt-repositories

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure Nuxt API calls with a repository pattern for TypeScript?

Use a Nuxt repository pattern to structure API calls by defining classes around resource paths. This provides typed CRUD operations and transforms API responses into hydrated, typed models for your application code.

What is model hydration in a Nuxt API client and when do I need it?

Model hydration in a Nuxt API client converts raw JSON responses into typed model instances using a ModelHydrator. You need it when you want application code to interact with ready-to-use models instead of untyped data objects.

How do I add custom domain actions to a Nuxt repository?

Add custom domain actions to a Nuxt repository by defining new methods that utilize the underlying json* request helpers. This allows you to implement specific queries like listing posts by an author alongside standard CRUD operations.

How do I register and retrieve repositories in Nuxt app configuration?

Register repositories in Nuxt app configuration by declaring your repository classes in the app config. Retrieve them at runtime using the useRepository function to access typed list, get, create, update, and delete operations.

Can I use typed repositories for non-standard CRUD endpoints in Nuxt?

Yes, you can use typed repositories for non-standard endpoints in Nuxt. The repository exposes json* helpers that allow you to make custom JSON requests while maintaining the repository pattern structure for your API client.