Agent skill
nuxt-config
Nuxt and app configuration files. Use when configuring nuxt.config.ts, app.config.ts, environment variables, runtime config, or understanding how configuration flows through the application.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/design/nuxt-config
SKILL.md
Nuxt Configuration
Application configuration via nuxt.config.ts and app.config.ts.
Core Concepts
config.md - Complete configuration patterns
nuxt.config.ts
export default defineNuxtConfig({
ssr: false, // SPA mode
extends: [
'../../../nuxt-layers/base',
'../../../nuxt-layers/nuxt-ui',
'../../../nuxt-layers/x-ui',
],
modules: ['nuxt-auth-sanctum', '@nuxt/ui'],
components: [{ path: 'components', pathPrefix: false }],
sanctum: {
baseUrl: process.env.NUXT_PUBLIC_API_URL,
endpoints: { login: '/auth/login', user: '/auth/user' },
},
runtimeConfig: {
public: {
apiUrl: undefined, // Set via NUXT_PUBLIC_API_URL
},
},
})
app.config.ts
export default defineAppConfig({
repositories: {
leads: LeadRepository,
contacts: ContactRepository,
},
interceptors: {
request: [appendSource],
response: [errorHandler],
},
errorHandlers: {
401: async ({ flash }) => navigateTo('/auth/login'),
422: async ({ response }) => new ValidationError(response),
},
})
Environment Variables
NUXT_PUBLIC_API_URL=https://api.example.com
NUXT_PUBLIC_REPOSITORIES_LEADS_FETCH_OPTIONS_BASE_URL=https://leads-api.example.com
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?