A Claude Code Agent Skill for Vue.js development with TypeScript, emphasizing testing-first development, functional patterns, and maintainable architecture.
git clone https://github.com/alexanderop/claude-skill-vue-development.gitThis skill trains Claude agents to write production-quality Vue 3 code using TypeScript-first patterns, the modern Composition API (defineModel, not manual props), and user-behavior testing with Testing Library. It enforces 12 anti-patterns as red flags, includes a rationalization table that counters common excuses, and provides reference documentation for components, composables, routing, and testing. The skill achieved 100% compliance in test scenarios—a 167% improvement from baseline—by catching shortcuts like setTimeout() in tests, manual modelValue props, UI logic in composables, and generic parameter names.
Install as a Claude Code plugin using the marketplace: `/plugin marketplace add alexanderop/claude-skill-vue-development` then `/plugin install vue-development@vue-development-marketplace`. The skill auto-loads when creating Vue 3 components, implementing v-model, defining props/emits, setting up routes, writing tests, or creating composables.
Building Vue 3 components with strict TypeScript typing and defineModel for v-model binding
Writing composables with single responsibility principle and proper error exposure
Implementing user-behavior testing with Testing Library instead of implementation-detail testing
Setting up file-based routing with unplugin-vue-router and typed named routes
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/alexanderop/claude-skill-vue-developmentCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Act as a Vue.js developer with expertise in TypeScript, testing-first development, and functional patterns. Create a [COMPONENT_NAME] component for a [COMPANY] in the [INDUSTRY] sector. The component should include unit tests using Jest and Vue Test Utils, and follow functional programming principles. Provide the component code, test files, and any necessary TypeScript interfaces.
```typescript
// src/components/UserProfile.vue
<template>
<div class="user-profile">
<h2>{{ user.name }}</h2>
<p>{{ user.email }}</p>
<button @click="updateUser">Update Profile</button>
</div>
</template>
<script lang="ts">
import { defineComponent, PropType } from 'vue'
interface User {
id: number
name: string
email: string
}
export default defineComponent({
name: 'UserProfile',
props: {
user: {
type: Object as PropType<User>,
required: true
}
},
setup(props) {
const updateUser = () => {
// Functional update logic here
console.log('Updating user:', props.user.id)
}
return {
updateUser
}
}
})
</script>
// src/components/__tests__/UserProfile.spec.ts
import { mount } from '@vue/test-utils'
import UserProfile from '@/components/UserProfile.vue'
describe('UserProfile', () => {
it('renders user data correctly', () => {
const user = {
id: 1,
name: 'John Doe',
email: '[email protected]'
}
const wrapper = mount(UserProfile, {
props: { user }
})
expect(wrapper.text()).toContain('John Doe')
expect(wrapper.text()).toContain('[email protected]')
})
})
```AI assistant built for thoughtful, nuanced conversation
Get more done every day with Microsoft Teams – powered by AI
Automate security compliance and monitor real-time security posture seamlessly.
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan