SuperAPI AI Directory

nuxt-code-editor

Coding & development

View repository

Updated 10-16 14:58

About this skill

Nuxt Code Editor Skill

Capabilities

  • Vue 3 Composition API: Generate <script setup lang="ts"> components.
  • PrimeVue 4 Integration: Correctly use PrimeVue 4 components according to utils/ or existing components/ usage.
  • Icon Library: Use @mdi/font (Material Design Icons) as the icon library.
  • Type Safety: Ensure all backend code uses TypeORM entities and DTOs defined in server/entities or types/ .
  • Incremental Editing: Prefer patching rather than rewriting entire files, to preserve context.

Instructions

  1. Code Style Guide: Follow ESLint and Stylelint configurations. Use SCSS for styles, and apply BEM naming conventions.
  2. Component Standards: Use defineProps, defineEmits together with TypeScript interfaces/types.
  3. Backend Standards: Ensure server/api handlers use defineEventHandler and return standardized responses (refer to docs/standards/api.md)。
  4. Internationalization (I18n): Follow the conventions in docs/standards/i18n.md , and gradually replace hardcoded text with translation keys.
  5. Files: When creating files, ensure they are located in the correct Nuxt directories (components, composables, server/api , etc.).

Usage Example

Input: "Create a button component." Action: Generate components/base/AppButton.vueusing PrimeVue 4 Button, and define props in a TS interface, using mdi-* class names for icons.