vue-expert-js
यह क्या करती है
यह AI को बिना TypeScript के Vue 3 कॉम्पोनेंट, composables और Vite प्रोजेक्ट बनाने का मार्गदर्शन देती है। यह उन JavaScript डेवलपर्स के लिए है जो Vue इस्तेमाल करना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप Vue 3 ऐप बना रहे हैं और TypeScript इस्तेमाल नहीं करना चाहते।
- ✓जब आपको सादे JavaScript में दोबारा इस्तेमाल होने वाले composables और कॉम्पोनेंट चाहिए।
- ✓जब आपको Vue प्रोजेक्ट के लिए JSDoc type संकेत और टेस्ट चाहिए।
Skill का लिंक
https://github.com/Jeffallan/claude-skills/blob/main/skills/vue-expert-js/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप सादे JavaScript में Vue 3 कॉम्पोनेंट बनाने में मदद कर सकते हैं, साफ़ type टिप्पणियों के साथ?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI कॉम्पोनेंट डिज़ाइन करता है, JSDoc एनोटेशन के साथ लिखता है, linter से एनोटेशन जाँचता है, और Vitest टेस्ट चलाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Vue Expert (JavaScript)
Senior Vue specialist building Vue 3 applications with JavaScript and JSDoc typing instead of TypeScript.
Core Workflow
- Design architecture — Plan component structure and composables with JSDoc type annotations
- Implement — Build with
<script setup>(nolang="ts"),.mjsmodules where needed - Annotate — Add comprehensive JSDoc comments (
@typedef,@param,@returns,@type) for full type coverage; then run ESLint with the JSDoc plugin (eslint-plugin-jsdoc) to verify coverage — fix any missing or malformed annotations before proceeding - Test — Verify with Vitest using JavaScript files; confirm JSDoc coverage on all public APIs; if tests fail, revisit the relevant composable or component, correct the logic or annotation, and re-run until the suite is green
Reference Guide
Load detailed guidance based on context:
| Topic | Reference | Load When |
|---|---|---|
| JSDoc Typing | references/jsdoc-typing.md |
JSDoc types, @typedef, @param, type hints |
| Composables | references/composables-patterns.md |
custom composables, ref, reactive, lifecycle hooks |
| Components | references/component-architecture.md |
props, emits, slots, provide/inject |
| State | references/state-management.md |
Pinia, stores, reactive state |
| Testing | references/testing-patterns.md |
Vitest, component testing, mocking |
For shared Vue concepts, defer to vue-expert:
../vue-expert/references/composition-api.md- Core reactivity patterns../vue-expert/references/components.md- Props, emits, slots../vue-expert/references/state-management.md- Pinia stores
Code Patterns
Component with JSDoc-typed props and emits
<script setup>
/**
* @typedef {Object} UserCardProps
* @property {string} name - Display name of the user
* @property {number} age - User's age
* @property {boolean} [isAdmin=false] - Whether the user has admin rights
*/
/** @type {UserCardProps} */
const props = defineProps({
name: { type: String, required: true },
age: { type: Number, required: true },
isAdmin: { type: Boolean, default: false },
})
/**
* @typedef {Object} UserCardEmits
* @property {(id: string) => void} select - Emitted when the card is selected
*/
const emit = defineEmits(['select'])
/** @param {string} id */
function handleSelect(id) {
emit('select', id)
}
</script>
<template>
<div @click="handleSelect(props.name)">
{{ props.name }} ({{ props.age }})
</div>
</template>
Composable with @typedef, @param, and @returns
// composables/useCounter.mjs
import { ref, computed } from 'vue'
/**
* @typedef {Object} CounterState
* @property {import('vue').Ref<number>} count - Reactive count value
* @property {import('vue').ComputedRef<boolean>} isPositive - True when count > 0
* @property {() => void} increment - Increases count by step
* @property {() => void} reset - Resets count to initial value
*/
/**
* Composable for a simple counter with configurable step.
* @param {number} [initial=0] - Starting value
* @param {number} [step=1] - Amount to increment per call
* @returns {CounterState}
*/
export function useCounter(initial = 0, step = 1) {
/** @type {import('vue').Ref<number>} */
const count = ref(initial)
const isPositive = computed(() => count.value > 0)
function increment() {
count.value += step
}
function reset() {
count.value = initial
}
return { count, isPositive, increment, reset }
}
@typedef for a complex object used across files
// types/user.mjs
/**
* @typedef {Object} User
* @property {string} id - UUID
* @property {string} name - Full display name
* @property {string} email - Contact email
* @property {'admin'|'viewer'} role - Access level
*/
// Import in other files with:
// /** @type {import('./types/user.mjs').User} */
Constraints
MUST DO
- Use Composition API with
<script setup> - Use JSDoc comments for type documentation
- Use
.mjsextension for ES modules when needed - Annotate every public function with
@paramand@returns - Use
@typedeffor complex object shapes shared across files - Use
@typeannotations for reactive variables - Follow vue-expert patterns adapted for JavaScript
MUST NOT DO
- Use TypeScript syntax (no
<script setup lang="ts">) - Use
.tsfile extensions - Skip JSDoc types for public APIs
- Use CommonJS
require()in Vue files - Igno
अक्सर पूछे जाने वाले सवाल
क्या यह बिल्कुल TypeScript इस्तेमाल करती है?
नहीं। यह उसकी जगह सादा JavaScript और JSDoc टिप्पणियाँ इस्तेमाल करती है।
यह कौन-सा टेस्टिंग टूल इस्तेमाल करती है?
यह टेस्ट के लिए Vitest इस्तेमाल करती है, जिसमें Vue Test Utils के साथ कॉम्पोनेंट टेस्ट शामिल हैं।
इसका linter क्या जाँचता है?
यह JSDoc प्लगइन के साथ ESLint चलाता है, ताकि गायब या गलत type टिप्पणियाँ मिलें।
जानकारी
लेखक का मूल विवरण
Creates Vue 3 components, builds vanilla JS composables, configures Vite projects, and sets up routing and state management using JavaScript only — no TypeScript. Generates JSDoc-typed code with @typedef, @param, and @returns annotations for full type coverage without a TS compiler. Use when building Vue 3 applications with JavaScript only (no TypeScript), when projects require JSDoc-based type hints, when migrating from Vue 2 Options API to Composition API in JS, or when teams prefer vanilla JavaScript, .mjs modules, or need quick prototypes without TypeScript setup.
repo: Jeffallan/claude-skills
लोकप्रियता
- GitHub स्टार
- 12k
- रैंकिंग में स्थान
- #11467
- लाइसेंस
- MIT
- अपडेट की गई
- 30/10/2026
कमेंट
- …
इस repository की और skills
angular-architect
12kआपके एजेंट को standalone कॉम्पोनेंट, lazy-loaded रूटिंग, NgRx स्टेट, RxJS पैटर्न और परफ़ॉर्मेंस सुधार के साथ Angular 17 और नए ऐप बनाने में मदद करती है।
api-designer
12kआपके एजेंट को REST या GraphQL API डिज़ाइन करने और OpenAPI 3.1 स्पेक लिखने में मदद करती है, जिसमें संसाधन, पेजिनेशन, एरर फ़ॉर्मेट और वर्ज़निंग के नियम हों।
architecture-designer
12kआपके एजेंट को सिस्टम आर्किटेक्चर डिज़ाइन करने, पैटर्न और तकनीकों की तुलना करने, और हर चुनाव समझाने वाले Architecture Decision Records लिखने में मदद करती है।
atlassian-mcp
12kMCP के ज़रिए Jira इश्यू खोजने और अपडेट करने, और Confluence पेज संभालने में मदद करती है, JQL और CQL क्वेरी, स्प्रिंट और दस्तावेज़ सिंक के साथ।
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।