Skip to content
Back to skills

Rules Vue

ASecurity

ANVIL coding rules for vue code (**/*.vue, **/*.test.ts, **/*.spec.ts, tests/**/*.spec.ts): Vue, Vue Testing.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
developmentreactvuetestingapi

Works with

  • api

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill rules-vue --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rules Vue?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rules Vue
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-rules-vue/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-rules-vue)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rules-vue
description: "ANVIL coding rules for vue code (**/*.vue, **/*.test.ts, **/*.spec.ts, tests/**/*.spec.ts): Vue, Vue Testing."
---

<!-- Generated by `anvil plugin build` from catalog/. Edit the catalog, not this file. -->

# ANVIL rules: vue

Follow these rules for vue code (**/*.vue, **/*.test.ts, **/*.spec.ts, tests/**/*.spec.ts).

## Vue

# Vue
- `<script setup lang="ts">` with typed props and emits; never mutate props.
- `computed` for derived state; do not destructure reactive objects without `toRefs`.
- Reusable logic in composables; shared state in Pinia.
- No browser globals during SSR setup.

## Vue Testing

# Vue Testing

- Mount components with `@vue/test-utils` testing emitted events, slots, and visible DOM output via roles/labels rather than internal instance state.
- Provide fresh Pinia instances (`createTestingPinia` or isolated `setActivePinia(createPinia())`) per test so store state never leaks.
- Flush async DOM updates explicitly (`await nextTick()` / `flushPromises()`) and mock API boundaries cleanly instead of sleeping or making network requests.
- Verify prop contracts, loading/error states, and keyboard interactions for interactive components.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.