1 vue rules available
One Windsurf rule matches vue: a Vue 3 Composition API rule with TypeScript. Windsurf's rules documentation now redirects to Devin docs, which use .devin/rules/; legacy .windsurfrules files are still imported. The glob-triggered file applies to .vue files, composables and stores.
Windsurf's rules documentation (docs.windsurf.com/windsurf/cascade/memories) now redirects to Devin documentation, which describes rules for the Devin Local agent in Devin Desktop. Current rules live in .devin/rules/*.md with a trigger setting, and the legacy Windsurf files (.windsurf/rules/*.md, .windsurf/global_rules.md and .windsurfrules) are still imported by default. AGENTS.md files are read as always-on rules.
.devin/rules/vue.mdStarting point, not a tested configuration for your repository. Applied when files matching globs are involved (trigger: glob). Review the instructions, adapt the file paths and run your project's existing checks.
---
trigger: glob
globs: "**/*.vue,src/composables/**/*.ts,src/stores/**/*.ts"
---
# Vue.js instructions for Windsurf
## Focus for this project
- Use defineModel for custom input components on Vue 3.4+; otherwise use a modelValue prop and update:modelValue emit.
- Type emits with defineEmits<...>().
- Validate form input before submit and show errors next to fields.
## Vue.js conventions
- Use <script setup lang="ts"> with type-based defineProps<{ ... }>() and defineEmits for new components; keep the Options API only in files that already use it.
- Use computed for derived values and watch only for side effects.
- Put shared logic in composables named useXxx under src/composables.
- Do not mutate props; emit an event or use defineModel for two-way binding.
## Before you finish
- Run npx vue-tsc --noEmit, the lint script and the unit tests (for example Vitest) and report the actual output. If you cannot run them, say so and list the exact commands instead of saying they pass.
- Summarize which of the rules above affected the change.
- If a legacy .windsurfrules or .windsurf/rules file gives conflicting guidance, point out the conflict instead of silently choosing one.
Create your own Windsurf rules for Vue.js and share with the community.
Ask for a small change to one matching file. Check the tool's loaded context or instruction view, inspect the diff for the requested convention, and run the relevant build or test. A well-formatted file does not guarantee the model follows every instruction.
The docs recommend keeping rules short and specific. The current docs say AGENTS.md, AGENTS.local.md and AGENT.md are read as always-on rules, including files in subdirectories. Use .devin/rules/ when you need glob, model-decision or manual triggers.
Documentation checked 2026-11-05: Devin docs: Local customizations (redirect target of Windsurf memories docs)Windsurf docs: Cascade memories (redirects)
Illustrative input and expected result. This example is a verification guide, not a recorded model run.
You use the Windsurf agent to build Vue forms and want v-model handled with defineModel and typed emits.
Create a CurrencyInput component usable with v-model.
A <script setup lang="ts"> component using defineModel (or prop/emit on older Vue), formatting on blur, a Vitest test for v-model updates, and vue-tsc output.
Content reviewed 2026-11-05. Confirm instruction activation in your installed client before relying on it.