# Vue

> Vue Skill

- Skill: `ashish7802/vue` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add ashish7802/vue`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ashish7802/vue/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: ashish7802 (https://skillmd.com/u/ashish7802)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/ashish7802/vue

---

# Vue Skill

> The Progressive JavaScript Framework.

## Ecosystem Graph

```mermaid
graph LR
  vue["Vue"]
  vue -- "extended by" --> nuxt
  vue -- "alternative to" --> react
  vue -- "works well with" --> supabase
```

## Quick Start
Vue 3 utilizes the Composition API, offering a highly logical and reactive way to structure components compared to the legacy Options API.

```bash
npm create vue@latest
```

## Production Patterns
### Composables
Vue's equivalent to React hooks. Use `ref` and `computed` inside standalone JavaScript functions to encapsulate and reuse stateful logic across multiple `.vue` components.

## Architecture & Scaling
### Reactivity System
Vue 3 uses JavaScript Proxies for reactivity. This means modifying nested properties of a `reactive` object works seamlessly without needing immutable state replacement (unlike React's `setState`).

## Error Recovery
Utilize `onErrorCaptured` at the layout level to catch and log errors thrown by descendant components gracefully.

## Security Notes
Be extremely cautious with the `v-html` directive. It renders raw HTML directly to the DOM and is a primary vector for XSS attacks if the input is not strictly sanitized.

## Relationships
**Alternatives**: [react](/skills/react)

**Works Well With**: [supabase](/skills/supabase)

## References
- [Vue Docs](https://vuejs.org/guide/introduction.html)

## Why use this skill
Use this when your agent works with **vue** — structured patterns beat pasted docs and prevent common hallucinations.

## AI pitfalls
- Using outdated SDK or API versions from training data
- Inventing environment variable names
- Omitting error handling and retry logic

## Production checklist
- [ ] Secrets in environment variables, not source code
- [ ] Error handling and logging in place
- [ ] Rate limits and timeouts configured

## Related skills
- [`nuxt`](../nuxt/SKILL.md) — extended by
- [`react`](../react/SKILL.md) — alternative to
- [`supabase`](../supabase/SKILL.md) — works well with

---
> **Last Verified:** 2026-07-02

