vue-guidelines
Installation
SKILL.md
Vue Guidelines
This document outlines best practices for building robust, maintainable, and modern Vue.js applications using the Composition API and TypeScript.
1. General Principles
- Composition API: Always use the Composition API with
<script setup lang="ts">. - Single File Components (SFC): Keep template, script, and style in one file.
- Structure: Order blocks as
<script setup>,<template>,<style>. - Naming: Use PascalCase for component filenames (e.g.,
MyComponent.vue).
2. TypeScript Integration
- Strict Typing: Enable strict mode in
tsconfig.json. Avoidany. - Props: Use
definePropswith type-only declarations for better inference.
Related skills
More from stefanmermans/agent-config
react-guidelines
Crucial info when dealing with a React project, these guidelines must always be followed in react contexts.
23python-guidelines
When dealing with python code, these guidelines must always be followed.
22markdown-validation
How to validate markdown files
21laravel-guidelines
When writing or reviewing code in a Laravel project, these guidelines must always be followed.
19general-coding-guidelines
This skill must always be used when writing or reviewing code or tests in any language or framework.
19markdown-guidelines
When creating or editing markdown files, these guidelines must always be followed.
3