Nuxt Data
Helps with Nuxt, data as part of building frontend UIs and user experiences workflows.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add nuxt-data npx -- -y @trustedskills/nuxt-data
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"nuxt-data": {
"command": "npx",
"args": [
"-y",
"@trustedskills/nuxt-data"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill provides guidance and reference materials for developing Nuxt 4 applications, specifically focusing on data management techniques. It offers information on composables, data fetching methods (like useFetch, useAsyncData, and $fetch), and state management patterns, including integration with Pinia. The goal is to help developers build robust and efficient frontend user interfaces within the Nuxt framework.
When to use it
- When building custom composables that manage complex application state.
- When debugging issues related to state management or reactivity in your Nuxt application.
- When implementing data fetching logic, especially when dealing with reactive parameters or pagination.
- When setting up and integrating Pinia for more advanced state management needs within a Nuxt project.
Key capabilities
- Data Fetching Methods: Provides details on
useFetch,useAsyncData, and$fetchincluding their use cases, SSR support, caching behavior, and reactivity. - Composable Naming Conventions: Offers guidance on naming conventions for composables (using prefixes like "use" and "fetch").
useStatePattern: Explains how to create shared, reactive state usinguseStatethat persists across component instances (singleton pattern).- Pinia Integration: Provides resources for setting up Pinia stores with getters, actions, and SSR support.
- Reference Materials: Includes references to specific documents covering composables, data fetching, and Pinia integration.
Example prompts
- "How do I use
useFetchin Nuxt 4?" - "What's the difference between
useStateandrefin Nuxt?" - "Can you give me an example of integrating Pinia with SSR in a Nuxt application?"
Tips & gotchas
- Singleton vs. Per-Call Composables: Be mindful of whether your composable should be a singleton (shared across all components) or per-call.
useStatecreates singletons. - Reactivity Issues: Pay attention to shallow versus deep reactivity when implementing data fetching with reactive parameters. The skill's references can help troubleshoot these issues.
- SSR Considerations: When using browser APIs, ensure your patterns are SSR-safe as described in the
references/composables.mddocument.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.