SuperAPI AI Directory

vue-skills

An AI Agent skills library launched by the Vue core team

Open website

About this tool

What is vue-skills

vue-skills is an AI Agent skills library launched by the Vue core team. Based on the Agent Skills open standard, it encapsulates Vue 3 best practices, Pinia conventions, Vue Router and VueUse guidelines into structured knowledge modules. The tool is installed via npx into Cursor、Claude Code and other tools, after which AI automatically follows official rules when generating Vue code, solving the problem of code that runs but is wrong, and outputting high-quality code that conforms to community standards.

vue-skills

Main features of vue-skills

  • Vue 3 best practices: Covers correct usage of the Composition API, avoidance of common pitfalls, SSR performance optimization, and project maintainability conventions.
  • Options API conventions: Provides this context management, lifecycle hooks, and TypeScript adaptation strategies.
  • Vue Router 4 guide: Encapsulates navigation guard configuration, route parameter handling, and route component lifecycle conventions.
  • Pinia state management: Defines Store type design, TS inference, modular organization, and reactive patterns.
  • Testing conventions: Includes component unit testing and E2E testing conventions for Vitest, Vue Test Utils, and Playwright.
  • Vue JSX syntax: Explains the differences from React JSX in scoping and directives, avoiding misuse.
  • Debugging handbook: Built-in troubleshooting guide for runtime errors, async exception handling, and hydration issues.
  • Composable encapsulation: Supports standardized reusable logic encapsulation based on MaybeRef and MaybeRefOrGetter .

How to use vue-skills

  • Install the skills package: Run the npx skills add vuejs-ai/skills command in the terminal to add Vue Skills to the local environment.
  • Select an AI tool: Follow the interactive prompts to select a supported AI tool, such as Cursor、Claude Code or GitHub Copilot。
  • Configure the installation scope: Choose a global or project-level installation scope, and complete configuration after confirming the security assessment.
  • Explicitly trigger skills: Prefix the prompt in the AI conversation with use vue skillto ensure the AI invokes the corresponding rules.
  • Describe development requirements: Directly describe the Vue development task, and the AI automatically refers to the skill conventions to generate code that meets official standards.

Core advantages of vue-skills

  • Authoritative source: Maintained by members of the Vue core team and VoidZero, verified based on real issues and official documentation, not secondhand community compilation.
  • On-demand loading: Uses a progressive disclosure mechanism to dynamically load complete instructions only when a task matches, avoiding long-term occupation of tokens and context windows.
  • Cross-tool compatibility: Follows the Agent Skills open standard and supports more than 30 AI tools, including Cursor, Claude Code, GitHub Copilot, and Gemini CLI.
  • Dynamic Adaptation: Automatically identifies project characteristics through interactive configuration, such as Vue 2/3 version, Composition/Options API, Pinia enablement status, etc.
  • Automated Validation: Each rule is tested through automated eval, retaining only effective rules that "fail without the skill and pass with the skill," ensuring controllable quality.

Comparison of vue-skills with Similar Competitors

Dimension vue-skills nuxt-skills
Positioning General Vue 3 development standards and pitfall avoidance guide Nuxt framework-specific server-side/full-stack development standards
Maintainer Vue core team member / VoidZero (Yunfei He) Nuxt community (onmax)
Coverage Vue 3 Composition API、Options API、Vue Router、Pinia、VueUse、Testing、JSX Nuxt 3 routing system, rendering modes (SSR/SSG/CSR), module development, server-side logic, API routes
Technical Depth Focuses on client-side component development, reactivity principles, state management Focuses on server-side architecture, auto-imports, plugin system, Nitro engine
Applicable Projects Pure Vue 3 single-page applications or component libraries Nuxt-based full-stack applications, content sites, server-side rendering projects
Installation Method npx skills add vuejs-ai/skills npx skills add onmax/nuxt-skills
Relationship with Framework Independent project in the official Vue ecosystem, can be used separately from Nuxt Exclusive extension of the Nuxt ecosystem, depends on the Nuxt framework context

Application Scenarios of vue-skills

  • AI-Assisted Vue 3 Development: Developers use tools such as Cursor and Claude Code to invoke the skill, enabling AI to generate component code that conforms to Composition API standards and is type-safe, avoiding common anti-patterns.
  • Unified Team Code Standards: Install vue-skills in multi-person collaborative projects to ensure that code generated by AI for all members follows the same set of official Vue best practices, reducing style disputes during code review.
  • Migration from Vue 2 to Vue 3: Use the comparison rules between Options API and Composition API built into the skill to assist AI in refactoring old project code into standard Vue 3 syntax, reducing migration costs.
  • Debugging and Troubleshooting: When encountering hydration errors, reactivity anomalies, or TypeScript inference issues, trigger vue-debug-guides Skill, let AI locate the root cause according to the official troubleshooting manual.