Agent skill

Vue Best Practices

by oyjt in oyjt/uniapp-vue3-template

Vue 3 and Vue.js best practices for TypeScript, vue-tsc, and Volar.

MITAuto-check passedDevelopment

Install Vue Best Practices

skills CLI
$ npx skills add oyjt/uniapp-vue3-template --skill vue-best-practices -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install oyjt/uniapp-vue3-template vue-best-practices --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/oyjt/uniapp-vue3-template.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.trae/skills/vue-best-practices .claude/skills/vue-best-practices && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
vue-best-practices
GitHub stars
627
Used in
3 other repos
Token cost
~667 tokens
SKILL.md length
152 words
Files
20
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

Vue 3 and Vue.js best practices for TypeScript, vue-tsc, and Volar.

  • Tasks involving Vue components
  • SKILL.md covers Capability Rules, Efficiency Rules and Reference
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Props extraction

What it does

Vue Best Practices is an agent skill from oyjt/uniapp-vue3-template. Vue 3 and Vue.js best practices for TypeScript, vue-tsc, and Volar. This skill should be used when writing, reviewing, or refactoring Vue components to ensure correct typing patterns. Triggers on tasks involving Vue components, props extraction, wrapper components, template type checking, or Volar configuration.

Its SKILL.md is about 670 tokens, which your agent loads only when the skill is triggered. The skill folder holds 20 other files (for example `LICENSE.md`, `SYNC.md` and `rules/codeactions-save-performance.md`).

It sits in Development, covering Type safety and Refactoring. It works with Vue.js and TypeScript. The repository describes itself as: 使用uniapp+vite+vue3+typescript+uview-plus+unocss 搭建的适合团队协作的快速开发模版. The licence is MIT.

When your agent uses it

  • Tasks involving Vue components
  • Props extraction
  • Wrapper components
  • Template type checking

Example prompts

  • “/vue-best-practices”

What it can do on your machine

Read from SKILL.md and the folder at commit 4d7f307. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com
    • vuejs.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Vue Best Practices loads about 667 tokens when it runs. Until then it costs about 83 tokens; SKILL.md has 152 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~83
When it runs · the whole SKILL.md, loaded when a task matches
~667

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from oyjt/uniapp-vue3-template at commit 4d7f307, republished under its MIT licence (© oyjt). 152 words, ~667 tokens.

Download SKILL.mdSave it as .claude/skills/vue-best-practices/SKILL.md (or your agent's skills folder). This skill also uses 19 other files; get the full folder from GitHub.
name
vue-best-practices
description
Vue 3 and Vue.js best practices for TypeScript, vue-tsc, and Volar. This skill should be used when writing, reviewing, or refactoring Vue components to ensure correct typing patterns. Triggers on tasks involving Vue components, props extraction, wrapper components, template type checking, or Volar configuration.
license
MIT
metadata.author
hyf0
metadata.version
8.0.0

Capability Rules

RuleKeywordsDescription
extract-component-propsget props type, wrapper component, extend props, inherit props, ComponentPropsExtract types from .vue components
vue-tsc-strict-templatesundefined component, template error, strictTemplatesCatch undefined components in templates
fallthrough-attributesfallthrough, $attrs, wrapper componentType-check fallthrough attributes
strict-css-modulescss modules, $style, typoCatch CSS module class typos
data-attributes-configdata-*, strictTemplates, attributeAllow data-* attributes
volar-3-breaking-changesvolar, vue-language-server, editorFix Volar 3.0 upgrade issues
module-resolution-bundlercannot find module, @vue/tsconfig, moduleResolutionFix module resolution errors
define-model-update-eventdefineModel, update event, undefinedFix model update errors
with-defaults-union-typeswithDefaults, union type, defaultFix union type defaults
deep-watch-numericwatch, deep, array, Vue 3.5Efficient array watching
vue-directive-comments@vue-ignore, @vue-skip, templateControl template type checking
vue-router-typed-paramsroute params, typed router, unpluginFix route params typing

Efficiency Rules

RuleKeywordsDescription
hmr-vue-ssrhmr, ssr, hot reloadFix HMR in SSR apps
pinia-store-mockingpinia, mock, vitest, storeMock Pinia stores

Reference

© oyjt, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 19 other files in .trae/skills/vue-best-practices of oyjt/uniapp-vue3-template.

  • SKILL.md
  • LICENSE.md
  • SYNC.md
  • rules/codeactions-save-performance.md
  • rules/data-attributes-config.md
  • rules/deep-watch-numeric.md
  • rules/define-model-update-event.md
  • rules/duplicate-plugin-detection.md
  • rules/extract-component-props.md
  • rules/fallthrough-attributes.md
  • rules/hmr-vue-ssr.md
  • rules/module-resolution-bundler.md
  • rules/pinia-store-mocking.md
  • rules/script-setup-jsdoc.md
  • rules/strict-css-modules.md
  • rules/volar-3-breaking-changes.md
  • rules/vue-directive-comments.md
  • rules/vue-router-typed-params.md
  • rules/vue-tsc-strict-templates.md
  • rules/with-defaults-union-types.md

Open the folder on GitHubat commit 4d7f307

Used in 3 other repositories

We found 6 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 3 other GitHub owners. This page covers the copy in oyjt/uniapp-vue3-template, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Vue Best Practices next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Vue Best Practices compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Vue Best Practices this skilloyjt/uniapp-vue3-template6273 repos~667Automated safety check: PassMIT
Wagmi Feature Developmentwevm/wagmi6.8k—~3.8kAutomated safety check: PassMIT
AST Visitor Pattern for Unionsprisma/orm48k—~830Automated safety check: PassApache-2.0
Enforce Rules For Typescriptmoeru-ai/airi50k—~3.4kAutomated safety check: PassMIT
Typescript React ReviewerSuFxGIT/scoutarr115—~1.7kAutomated safety check: PassNone
Regle Typescriptvictorgarciaesgi/regle506—~534Automated safety check: PassMIT

Similar skills

  • Walks through adding a Wagmi feature across its layers: a Viem-based core action, TanStack Query options, and React and Vue bindings.

    6.8k GitHub stars~3.8k tokensUpdated 9 days ago
    DevelopmentAuto-check passed
  • Official

    Replaces a plain TypeScript union plus switch statements with frozen subclasses and a visitor interface when several places dispatch on the same variants.

    48k GitHub stars~830 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Enforce AIRI's TypeScript and Vue source rules for imports, naming, comments, JSDoc, fallbacks, stateful and protocol code, and module design.

    50k GitHub stars~3.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Expert code reviewer for TypeScript + React 19 applications.

    115 GitHub stars~1.7k tokensUpdated 6 mo ago
    DevelopmentAuto-check passed
  • Regle Typescript

    victorgarciaesgi/regle

    TypeScript integration for Regle — type-safe validated output (InferSafeOutput, $validate), inferring state from rules (InferInput), typing computed rules (inferRules, RegleComputedRules), and…

    506 GitHub stars~534 tokensUpdated 12 days ago
    DevelopmentAuto-check passed
  • Typescript Best Practices

    jwynia/agent-skills

    Guide AI agents through TypeScript coding best practices including type safety, error handling, code organization, and architecture patterns.

    170 GitHub stars~2.5k tokensUpdated 7 mo ago
    DevelopmentAuto-check passed

More from oyjt/uniapp-vue3-template

  • Vite

    oyjt/uniapp-vue3-template

    Vite next-generation frontend build tool with fast HMR and optimized builds.

    627 GitHub starsUsed in 1 repo~780 tokens
    Auto-check: notes
  • Vue

    oyjt/uniapp-vue3-template

    Vue.js progressive JavaScript framework. An agent skill from oyjt/uniapp-vue3-template.

    627 GitHub starsUsed in 1 repo~783 tokens
    Auto-check passed
  • Antfu

    oyjt/uniapp-vue3-template

    Anthony Fu's {Opinionated} preferences and best practices for web development

    627 GitHub stars~1.3k tokensUpdated 4 mo ago
    Auto-check passed

Categories

Questions about Vue Best Practices

What does Vue Best Practices do?

Vue 3 and Vue.js best practices for TypeScript, vue-tsc, and Volar. Vue Best Practices is an agent skill from oyjt/uniapp-vue3-template.js best practices for TypeScript, vue-tsc, and Volar.

When should I use Vue Best Practices?

Vue Best Practices fits situations like: tasks involving Vue components; props extraction; wrapper components; template type checking.

How do I install Vue Best Practices in Claude Code?

Run `npx skills add oyjt/uniapp-vue3-template --skill vue-best-practices -a claude-code`. Or copy the skill folder (.trae/skills/vue-best-practices in oyjt/uniapp-vue3-template) into .claude/skills/vue-best-practices in your project. Claude Code loads it when a task matches its description.

How do I install Vue Best Practices in Codex?

Run `npx skills add oyjt/uniapp-vue3-template --skill vue-best-practices -a codex`. Or copy the skill folder (.trae/skills/vue-best-practices in oyjt/uniapp-vue3-template) into .agents/skills/vue-best-practices in your project. Codex loads it when a task matches its description.

Can I use Vue Best Practices in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add oyjt/uniapp-vue3-template --skill vue-best-practices -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/vue-best-practices, .gemini/skills/vue-best-practices, .github/skills/vue-best-practices and .opencode/skills/vue-best-practices in your project.

What does Vue Best Practices need to run?

SKILL.md names no scripts, command-line tools or credentials: Vue Best Practices is instructions for the agent only.

Does Vue Best Practices access the network?

SKILL.md names 2 domains. As links in the text: github.com and vuejs.org. This is read from the text; nothing was executed.

Is Vue Best Practices safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Vue Best Practices use?

Vue Best Practices is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Vue Best Practices use?

About 667 tokens (SKILL.md is roughly 2.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Vue Best Practices?

Skills that share tags, products or a category with Vue Best Practices: Wagmi Feature Development (wevm/wagmi, 6.8k stars), AST Visitor Pattern for Unions (prisma/orm, 48k stars), Enforce Rules For Typescript (moeru-ai/airi, 50k stars) and Typescript React Reviewer (SuFxGIT/scoutarr, 115 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Vue Best Practices?

oyjt (a GitHub user) maintains it in oyjt/uniapp-vue3-template, which has 627 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on June 4, 2026.

Source: oyjt/uniapp-vue3-template on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.