vue-best-practices

vue-best-practices is a skill for Claude Code, Codex from liuyanghejerry/Clausura. It costs 31 tokens per session (383 once invoked), scanned A, original, MIT.

A review checklist for Vue 2 and Vue 3 components, covering component names, prop declarations, TypeScript casts, API styles and complex template expressions.

In plain words
What is it for?
Reviewing .vue files and reporting naming, prop-validation, type-safety, mixed-API and template-complexity issues with their locations.
Why use it?
It catches patterns that make Vue components harder to validate, understand or maintain.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Reviewing .vue files and reporting naming, prop-validation, type-safety, mixed-API and template-complexity issues with their locations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/liuyanghejerry/clausura/vue-best-practices
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add liuyanghejerry/Clausura --skill vue-best-practices
Clone the repo
git clone --depth 1 https://github.com/liuyanghejerry/Clausura

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vue-best-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/liuyanghejerry/clausura/vue-best-practices/github.svg)](https://agentmods.dev/skills/liuyanghejerry/clausura/vue-best-practices)
Your own site
<a href="https://agentmods.dev/skills/liuyanghejerry/clausura/vue-best-practices"><img src="https://agentmods.dev/badge/skills/liuyanghejerry/clausura/vue-best-practices/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vue-best-practices

Your own site · 80×15
<a href="https://agentmods.dev/skills/liuyanghejerry/clausura/vue-best-practices"><img src="https://agentmods.dev/badge/skills/liuyanghejerry/clausura/vue-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 383 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.00383
Opus 5 $0.00015 $0.00192
Sonnet 5 $0.00006 $0.00077
Haiku 4.5 $0.00003 $0.00038

Measured 13d ago against content hash 6cc15c441e87, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

vue-best-practices scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

examples/skills/vue-best-practices/SKILL.md · 48 lines

What it actually says

Vue 代码规范审查

审查 Vue 组件(.vue 文件)中违反最佳实践的模式。

检查清单

组件命名

  • 组件名未使用 PascalCase 或多词命名(Vue 官方风格指南要求)
  • rule_id: vue-component-name
  • severity: warning

Props 校验

  • Props 未声明 type 或 validator
  • rule_id: vue-missing-prop-validation
  • severity: warning

避免 as any

  • TypeScript 中使用 as any 绕过类型检查
  • rule_id: no-as-any
  • severity: warning

Options API vs Composition API

  • 同一组件中混用 Options API 和 Composition API(<script setup> 中不应出现 data()methods:
  • rule_id: vue-mixed-api-style
  • severity: info

模板中的复杂表达式

  • <template> 中包含超过一行的 JavaScript 表达式(应提取为 computed)
  • rule_id: vue-complex-template
  • severity: info

输出格式

{
  "rule_id": "no-as-any",
  "severity": "warning",
  "message": "在 PaymentForm.vue 中发现 as any 类型断言",
  "evidence": "const data = response as any",
  "location": { "file": "src/components/PaymentForm.vue", "line_start": 42, "line_end": 42, "column_start": 13, "column_end": 35 }
}
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 48 lines · 31 tokens per session scan A 6cc15c441e87

Subscribe to this mod's changes

vue-best-practices is a skill published in the GitHub repository liuyanghejerry/Clausura (203 stars, last pushed 2d ago), licensed MIT. It adds 31 tokens to every session and 383 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

claude-d3js-skill

This skill provides guidance for creating sophisticated, interactive data visualisations using d3.js.

Agent-Threat-Rule/agent-threat-rules · 25 tokens

frontend-code-doctor

A front-end code review procedure for uni-app, Vue 3, React, and TypeScript projects. It checks code for correctness, security, speed, translation support, and accessibility, meaning whether people with disabilities can use it.

jiushiwon/wg-skills · 86 tokens

generic-react-code-reviewer

Review React/TypeScript code for bugs, security vulnerabilities, performance issues, accessibility gaps, and CLAUDE.md workflow compliance. Enforces TypeScript strict mode, GPU-accelerated animations, WCAG AA accessibility, bundle size limits, and surgical simplicity. Use when completing features, before commits, or…

travisjneuman/.claude · 71 tokens

generic-static-code-reviewer

Review static site code for bugs, security issues, performance problems, accessibility gaps, and CLAUDE.md compliance. Enforces pure HTML/CSS/JS standards, minimal page weight, mobile-first design. Use when completing features, before commits, or reviewing changes.

travisjneuman/.claude · 59 tokens

react-frontend

React, TypeScript, and Next.js patterns for frontend development. Use when building React components, managing state, fetching data, optimizing performance, or working with Next.js App Router. Covers React 18-19, hooks, Server Components, and type-safe patterns.

iliaal/whetstone · 57 tokens

tailwind-css

Tailwind CSS v4 patterns: CSS-first config, utility classes, component variants, v3 migration. Use when styling with Tailwind, configuring @theme tokens, using tailwind-variants/CVA, migrating v3 to v4, or fixing Tailwind styles and dark mode.

iliaal/whetstone · 61 tokens