Nuxt Data
Nuxt 4 data fetching, composables, and state management with useFetch, useAsyncData, useState, and Pinia.
- CCM score
- 56 of 100
- skills.sh installs
- 410
- GitHub stars
- 257
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers composables, data fetching with
useFetchanduseAsyncData, and shared state withuseStateand Pinia - Includes reference files
composables.md,data-fetching.md, andpinia-integration.md, loaded on demand by topic - Explains singleton
useStateversus per-callrefand SSR-safe patterns for browser APIs such as localStorage - Designed for Nuxt 4 developers debugging reactive data, shallow reactivity, refresh behavior, or caching
Install
$ npx -y skills add secondsky/claude-skills --skill nuxt-data -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Nuxt 4 Data Management
Composables, data fetching, and state management patterns for Nuxt 4 applications.
Quick Reference
Data Fetching Methods
| Method | Use Case | SSR | Caching | Reactive |
|---|---|---|---|---|
useFetch | Simple API calls | Yes | Yes | Yes |
useAsyncData | Custom async logic | Yes | Yes | Yes |
$fetch | Client-side only, events | No | No | No |
Composable Naming
| Prefix | Purpose | Example |
|---|---|---|
use | State/logic composable | useAuth, useCart |
fetch | Data fetching only | fetchUsers (rare) |
When to Load References
Load references/composables.md when:
- Writing custom composables with complex state
- Debugging state management issues or memory leaks
- Implementing SSR-safe patterns with browser APIs
- Building authentication or complex state composables
- Understanding singleton vs per-call composable patterns
Details
- Repository
- github.com/secondsky/claude-skills
- Category
- Frontend & UI Code
- First seen
- Jun 3, 2026
Questions
What does the nuxt-data skill cover for Nuxt 4 apps?
The nuxt-data skill covers data management in Nuxt 4, including custom composables, data fetching with useFetch and useAsyncData, and shared state with useState and Pinia. It also helps debug reactive data issues and implement SSR-safe state patterns.
How do I install the nuxt-data skill?
Run npx -y skills add secondsky/claude-skills --skill nuxt-data -y in your project to install it. Once installed, the agent can write useFetch and useAsyncData calls, build composables with useState, and set up Pinia stores.
Where does nuxt-data stand in the Frontend and UI Code category?
nuxt-data is listed in the Frontend and UI Code category on Claude Marketplaces, alongside vercel-react-best-practices, web-design-guidelines, design-taste-frontend, vercel-composition-patterns and lark-apps. Its focus is narrower than those, centered on Nuxt data flow rather than general UI guidance. It goes into reactivity details such as shallow versus deep reactivity in Nuxt 4.
When should I use useFetch instead of useAsyncData in Nuxt 4 with this skill?
The skill's quick reference suggests useFetch for simple API calls and useAsyncData for custom async logic, both of which run on the server and cache results. It also notes that $fetch fits client-side only work such as events. Shallow reactivity is the Nuxt 4 default, so mutating fetched data needs deep: true or a refresh.
How does useState differ from ref in this skill's guidance?
The skill explains that useState creates shared, SSR-safe state that persists across component instances, while ref only holds local component state. Calling ref inside a composable creates a new instance on every call, so it will not be shared. The skill's rule is to use useState for global state and ref for local state only.
More from secondsky/claude-skills
All 116- Bun Ffi408
- Bun Nuxt408
- Bun Jest Migration407
- Bun Macros406
- Multi Ai Consultant406
- Graphql Implementation402
- Model Deployment402
- Jest Generator401
- Thesys Generative Ui392
- Nuxt Studio390
- Maz Ui389
- Woocommerce Code Review388
- Woocommerce Backend Dev387
- Woocommerce Copy Guidelines383
- Woocommerce Dev Cycle383
- Nuxt Seo344
- Tailwind V4 Shadcn8.3K
- Aceternity Ui1.6K
- Vitest Testing1.3K
- Motion1.2K
- Playwright1.1K
- Api Testing924
- Responsive Web Design728
- Zod674
Similar to Nuxt Data
More Frontend & UI Codepinia-coladaPluginsecondsky/claude-skills254 starsPinia Colada data fetching for Vue/Nuxt with useQuery, useMutation. Use for async state, query cache, SSR, or encountering invalidation, hydration, TanStack Vue
vue-pinia-best-practicesSkillvuejs-ai/skills18.9K installsPinia store setup, reactivity pitfalls, and state patterns with links to targeted fixes for each issue.
nuxt4-patternsSkillaffaan-m/ecc11.5K installsNuxt 4 rendering, hydration, and data-fetching patterns covering SSR-safe fetching, route rules, and lazy loading.
piniaSkillantfu/skills20.8K installsType-safe Vue state management library covering store definitions, plugins, composables, testing, SSR, and Nuxt.
nuxt-best-practicesSkillvinayakkulkarni/vue-nuxt-best-practices347 installsComprehensive Nuxt 4 performance and architecture guide with 23 prioritized rules for fetching, rendering, and layouts.
nuxt-productionSkillsecondsky/claude-skills434 installsNuxt 4 production guide covering hydration fixes, performance tuning, Vitest testing, and Nuxt 3 to 4 migration.