Vue Component Builder skill for Claude and Codex
Scaffolds a complete Vue single-file component from a spec: typed props with defaults, reactive state, methods, declared emits, and styles in the API style…
Install it once and Claude or Codex runs it for you. When your request matches, your AI loads the skill, asks for anything it is missing, and works through the template itself. Prefer to fill it in by hand? See the full prompt template.
Download the skill (.zip) · View SKILL.md
When it is used
Use when you need a new Vue component scaffolded from a list of props, state, methods, and emits in the right API style for your Vue version. Do not use for assembling markup and logic you already wrote into a file, or splitting a large component into smaller ones. Related topics: coding, vue.
What it will ask you for
- Component name (free text, e.g. "UserCard")
- Vue version and API style (choose one: Vue 3 script setup, Vue 3 Composition API, Vue 3 Options API, Vue 2 Options API)
- Props (longer free text)
- Reactive state (longer free text)
- Methods (longer free text)
- Emits (choose any: submit, cancel, update, close, change, custom)
- Style language (choose one: CSS, SCSS, Tailwind)
- TypeScript (choose one: Yes, No)
How it works
- Declare every prop with type, default or required flag, and a validator for enumerated values, in the requested API style.
- Declare each emitted event (typed when TypeScript is on) and wire v-model conventions for the chosen Vue version where update is listed.
- Implement state and methods in the chosen style so no Options API syntax leaks into script setup or the reverse.
- Write the template so every prop and state field is rendered or bound, with a comment where the spec left rendering open.
- Add scoped styles in the chosen language (empty block for Tailwind) and note any assumption made for a spec gap.
What you get
One vue code block with the complete single-file component (template, script, style in that order), then a two-line note on assumptions.
What it watches out for
- Mixing Options API data() with script setup refs, which produces a file that neither Vue version accepts.
- Emitting events that are not declared in emits, so Vue 3 treats them as native listeners on the root element.
- Using Vue 3 v-model names (modelValue) on a Vue 2 component where the convention is value and input.
How to install
Claude.ai and the Claude desktop app
- Download the skill .zip.
- Open Settings, then Capabilities, and find Skills.
- Choose Upload skill and select the .zip.
- Ask Claude for help with the task. It loads the skill when your request matches.
Claude Code
- Download the skill .zip.
- Unzip it into ~/.claude/skills/ (or .claude/skills/ inside a project).
- Start a new session. Claude Code loads the skill when your request matches.
Codex
- Download the skill .zip.
- Unzip it into ~/.agents/skills/ (or .agents/skills/ inside a project).
- Codex picks it up on its own. Type $ and the skill name to use it, or just ask for the task.
Cursor
- Download the Cursor rule (.mdc).
- Save it in .cursor/rules/ inside your project.
- Cursor's agent applies the rule when your request matches its description.
AGENTS.md (Codex, Cursor, and other coding agents)
- Copy the AGENTS.md section.
- Paste it into AGENTS.md at the root of your repository, creating the file if needed.
- Coding agents that read AGENTS.md follow it when your request fits.