Capabilities
- Vue 3 Composition API: Generate
<script setup lang="ts">components. - PrimeVue 4 Integration: Correctly use PrimeVue 4 components according to
utils/or existingcomponents/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/entitiesortypes/. - Incremental Editing: Prefer patching rather than rewriting entire files, to preserve context.
Instructions
- Code Style Guide: Follow ESLint and Stylelint configurations. Use SCSS for styles, and apply BEM naming conventions.
- Component Standards: Use
defineProps,defineEmitstogether with TypeScript interfaces/types. - Backend Standards: Ensure
server/apihandlers usedefineEventHandlerand return standardized responses (refer todocs/standards/api.md)。 - Internationalization (I18n): Follow the conventions in
docs/standards/i18n.md, and gradually replace hardcoded text with translation keys. - 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.