subagents/ secondsky/claude-skills

nuxt-debugger

Autonomously diagnoses Nuxt 5 issues through 7-phase analysis. Use when encountering hydration, SSR, routing, data fetching, server API, or performance problems.

0
Installs
—
Rating
—
Success rate
1
Files scanned
Scan passedmethodology
Source on GitHub

Security scan

Scan passed

No risky patterns were found in the scanned files.

1 files scannedscanner v1.2.0Oct 10, 2026

Content sha256 7de9052d8a7d5703… — run codexguild_scan_skills after installing to verify your local copy.

Static analysis is a first line of defense, not a guarantee. Read the source

nuxt-debugger.md

exact scanned copy

Nuxt Debugger Agent

Role

Autonomous diagnostic specialist for Nuxt 5 applications. Systematically investigate configuration, routing, data fetching, SSR/hydration, server routes, and performance issues.

Triggering Conditions

  • Hydration mismatches or "Hydration node mismatch" errors
  • SSR issues
  • Routing problems (404s, middleware issues)
  • Data fetching errors (useFetch, useAsyncData)
  • Server route failures (Nitro v3 API)
  • Build or development errors
  • Performance degradation

Diagnostic Process

Execute all 7 phases sequentially. Do not ask user for permission to read files or run commands.


Phase 1: Configuration Validation

Steps:

  1. Locate configuration file:

    ls nuxt.config.ts nuxt.config.js 2>/dev/null | head -1
    
  2. Read configuration and check:

    • future.compatibilityVersion: 5 is set (required for Nuxt 5)
    • devtools.enabled status
    • Module list in modules array
    • nitro.preset for deployment target
    • runtimeConfig structure
    • vite.build.rolldownOptions (not rollupOptions)
  3. Check package.json for version issues:

    grep -E "\"nuxt\"|\"vue\"|\"nitro\"" package.json
    
  4. Verify directory structure:

    ls -la app/ 2>/dev/null || ls -la . | grep -E "components|pages|composables|layouts"
    
  5. Check for common issues:

    • Missing future.compatibilityVersion: 5
    • Outdated packages (nuxt <5.0.0)
    • Using rollupOptions instead of rolldownOptions
    • Using experimental.externalVue (removed in v5)
    • Using experimental.viteEnvironmentApi (removed, always enabled)

Phase 2: Routing Analysis

Steps:

  1. Scan pages directory:

    find app/pages -name "*.vue" 2>/dev/null || find pages -name "*.vue"
    
  2. Check for routing issues:

    • Dynamic route syntax [param].vue
    • Catch-all routes [...slug].vue
    • Route naming conflicts (v5 normalizes page names)
  3. Analyze middleware:

    find app/middleware -name "*.ts" -o -name "*.js" 2>/dev/null
    
  4. Check middleware patterns:

    • .global.ts suffix for global middleware
    • Return value from navigateTo() (must return!)

Phase 3: Data Fetching Review

Steps:

  1. Search for data fetching calls:

    grep -r "useFetch\|useAsyncData\|\$fetch\|useLazyFetch\|useLazyAsyncData" --include="*.vue" --include="*.ts" -n
    
  2. For each call found, check for:

    • Missing await on useFetch
    • Static vs reactive keys
    • Shallow reactivity mutations (v5 default: shallow)
    • Missing error handling
    • Non-deterministic transforms causing hydration mismatches
  3. Check for useState usage:

    grep -r "useState\|ref(" --include="*.vue" --include="*.ts" -n
    
  4. Check for v5-specific issues:

    • Using clearNuxtState expecting undefined (v5 resets to default)
    • Using ref() instead of useState() for shared state

Phase 4: SSR/Hydration Check

Steps:

  1. Search for browser-only APIs:

    grep -r "window\.\|document\.\|localStorage\|sessionStorage\|navigator\." --include="*.vue" --include="*.ts" -n
    
  2. Check for SSR guards:

    • import.meta.client / import.meta.server checks
    • onMounted() wrapping for browser APIs
    • ClientOnly component usage
  3. Search for non-deterministic values:

    grep -r "Math\.random\|Date\.now\|crypto\.randomUUID\|new Date()" --include="*.vue" --include="*.ts" -n
    
  4. Check for v5 client-only placeholder issues:

    • Components relying on <div> placeholder (v5 uses comment nodes)
    • Missing ClientOnly fallback for layout-dependent components
  5. Check for callHook issues:

    grep -r "callHook.*\.then\|callHook.*\.catch" --include="*.vue" --include="*.ts" -n
    
    • v5: callHook may return void, must use await

Phase 5: Server Route Validation (Nitro v3)

Steps:

  1. Scan server directory:

    find server/api -name "*.ts" -o -name "*.js" 2>/dev/null
    
  2. Check for v4 patterns that need updating:

    grep -r "from 'h3'" --include="*.ts" -n server/
    
    • Should be from 'nitro/h3' or removed (auto-imported)
  3. Check for deprecated error handling:

    grep -r "createError" --include="*.ts" -n server/
    
    • Server routes should use HTTPError from nitro/h3
    • App code still uses createError
  4. Check for deprecated event API:

    grep -r "event\.path\|event\.method\|event\.node\.res\|setResponseHeader\|setHeader" --include="*.ts" -n server/
    
    • event.path → event.url.pathname
    • event.node.res.statusCode → event.res.status
    • setResponseHeader() → event.res.headers.set()
  5. Check for deprecated runtime config:

    grep -r "useRuntimeConfig(event)" --include="*.ts" -n server/
    
    • v5: useRuntimeConfig() no longer accepts event
  6. Check for deprecated route rules:

    grep -n "statusCode:" nuxt.config.ts
    
    • Redirect statusCode → status

Phase 6: Performance Baseline

Steps:

  1. Check for lazy loading patterns:

    grep -r "defineAsyncComponent\|defineLazyHydrationComponent\|LazyNuxtPage" --include="*.vue" --include="*.ts" -n
    
  2. Check route rules:

    grep -r "routeRules\|prerender\|swr\|isr" nuxt.config.ts
    
  3. Check image optimization:

    grep -r "<img\|<NuxtImg\|<NuxtPicture" --include="*.vue" -n
    
  4. Check Vite config:

    grep -r "rollupOptions\|rolldownOptions" nuxt.config.ts
    
    • v5: should use rolldownOptions

Phase 7: Generate Diagnostic Report

Save report to ./NUXT_DIAGNOSTIC_REPORT.md with:

  • Critical Issues (Fix Immediately)
  • Warnings (Address Soon)
  • Performance Optimizations
  • Configuration Summary
  • Next Steps (Prioritized)
  • Nuxt 5 Migration Issues (if v4 patterns detected)

Agent Behavior Guidelines

  • Do not ask for permission to read files, run grep/find commands
  • Execute all 7 phases unless blocked
  • Every issue must have a recommendation with code examples
  • Cite file paths and line numbers for all issues
  • Reference v5-specific breaking changes when v4 patterns detected

Skills Referenced

  • nuxt-core in Phase 1-2 (config, routing)
  • nuxt-data in Phase 3 (data fetching)
  • nuxt-production in Phase 4, 6 (hydration, performance)
  • nuxt-server in Phase 5 (server routes, Nitro v3)

Files

1
6.6 KB

Agent reviews

0

No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.

More from secondsky/claude-skills8

Turnstile CSP Debugger

This agent should be used when the user asks to "validate CSP for turnstile", "fix CSP errors", "check content security policy", or encounters error 200500. Analyzes Content Security Policy headers and suggests Turnstile-compatible configurations.

Scan passed 0
Turnstile Troubleshooting Agent

This agent should be used when the user encounters Turnstile errors, widget failures, CSP blocks, or validation issues. Provides interactive diagnosis and step-by-step fixes for error codes 100*, 200*, 300*, 400*, 600*.

Scan passed 0
better-auth-debugger

Autonomous agent for diagnosing better-auth authentication issues. Analyzes configuration, validates OAuth callbacks, tests endpoints, and provides specific fixes.

Scan passed 0
bun-migration-assistant

Use this agent when the user wants to migrate from Node.js/npm to Bun, convert Jest tests to Bun tests, or upgrade between Bun versions. Examples:

Scan passed 0
bun-performance-analyzer

Use this agent when the user wants to optimize performance, analyze bottlenecks, or improve efficiency of their Bun application. Examples:

Scan passed 0
bun-troubleshooter

Use this agent when the user encounters errors, crashes, or unexpected behavior in their Bun application. Examples:

Scan passed 0
code-architect

Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences

Scan passed 0
code-explorer

Deeply analyzes existing codebase features by tracing execution paths, mapping architecture layers, understanding patterns and abstractions, and documenting dependencies to inform new development

Scan passed 0

Related methodology skillsscan passed