You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am proposing that the Vue team publishes an official "AI Skills" / System Prompt definition file (e.g., ai-best-practices.md or similar).
Context & Motivation
Recently, Vercel released an official repository agent-skills, which defines best practices for AI Agents (like ChatGPT, Claude, Cursor) when writing React/Next.js code.
Currently, when developers ask AI to write Vue code, the results are often inconsistent:
Legacy Mix: AI often mixes Vue 2 Options API with Vue 3 Composition API.
Outdated Syntax: It may not strictly use <script setup> or standard TypeScript patterns unless heavily prompted.
Lack of Standardization: Every developer has to write their own "System Prompt" to correct the AI.
The Proposal
I suggest adding a dedicated section or a raw Markdown file in the official documentation repo that serves as a "Single Source of Truth" for AI Context.
This file should explicitly state guidelines for LLMs, such as:
"Always use Composition API with <script setup lang='ts'>."
"Use ref over reactive by default (if that is the recommended stance)."
"Prefer Pinia for state management."
"Use standard naming conventions..."
Benefits
Vendor Integration: Tools like Cursor, Copilot, or V0 can pull this official definition to ensure they generate idiomatic Vue code.
Community: Developers can simply point their AI agents to this official URL to get the best results.
Modernization: It forces the AI ecosystem to align with the latest Vue 3.x standards.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I am proposing that the Vue team publishes an official "AI Skills" / System Prompt definition file (e.g.,
ai-best-practices.mdor similar).Context & Motivation
Recently, Vercel released an official repository
agent-skills, which defines best practices for AI Agents (like ChatGPT, Claude, Cursor) when writing React/Next.js code.Currently, when developers ask AI to write Vue code, the results are often inconsistent:
<script setup>or standard TypeScript patterns unless heavily prompted.The Proposal
I suggest adding a dedicated section or a raw Markdown file in the official documentation repo that serves as a "Single Source of Truth" for AI Context.
This file should explicitly state guidelines for LLMs, such as:
<script setup lang='ts'>."refoverreactiveby default (if that is the recommended stance)."Benefits
Reference (React example): Vercel React Best Practices Skill
Beta Was this translation helpful? Give feedback.
All reactions