nuxt-features

Modularize domain logic into feature-based Nuxt modules with queries, mutations, and actions.

2|1|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/omakei/adonisjs-architecture-skill --skill nuxt-features
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nuxt-features
Source: https://github.com/omakei/adonisjs-architecture-skill/tree/main/nuxt/skills/nuxt-features
Command: npx skills add https://github.com/omakei/adonisjs-architecture-skill --skill nuxt-features

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Nuxt projects often accumulate tangled business logic as features grow, making it hard to maintain data flow and UI behavior across pages.

Core Features & Use Cases

  • Feature-based domains group queries, mutations, and actions to keep data access and state changes cohesive.
  • Clear directory structure and naming conventions improve onboarding, code readability, and maintainability.
  • Use cases include centralizing data fetching with filters, performing writes with loading states, and encapsulating domain logic with UI feedback.

Quick Start

Create a new feature module under features/{domain} with queries, mutations, and actions, and start using the factories in your pages.

Frequently Asked Questions about nuxt-features

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

FAQPage Schema
How do I organize domain logic in Nuxt 4 to prevent tangled business code?

Organize Nuxt domain logic by adopting feature-based modules that group queries, mutations, and actions. This approach enforces a consistent directory structure and naming conventions to keep data access and state changes cohesive across pages.

What is the three-layer pattern for Nuxt feature modules?

The three-layer pattern for Nuxt feature modules separates logic into queries for data fetching, mutations for writes, and actions for UI feedback. This structure streamlines data flow and encapsulates domain behavior within reusable factories.

How do I structure data fetching and state mutations in a Nuxt project?

Structure Nuxt data fetching and state mutations by creating feature modules under a features directory. Centralize data retrieval with queries and handle state changes with mutations to maintain clear separation of concerns and loading states.

Can I use feature-based modules to manage loading states during Nuxt data writes?

Yes, feature-based modules manage loading states during Nuxt data writes by encapsulating them within mutations and actions. This keeps UI feedback logic organized within the domain module rather than scattered across page components.

When should I modularize my Nuxt project into feature-based domains?

Modularize a Nuxt project into feature-based domains when features grow and business logic becomes tangled. This approach improves onboarding, code readability, and maintainability by grouping cohesive data access and state changes together.

Does this Nuxt modularization approach require external dependencies?

No, this Nuxt modularization approach does not require external dependencies. It applies a directory structure and reusable factories for repository access and state management directly within Nuxt 4 projects to streamline data flow.