liuyanghejerry/clausura/vue-best-practices

Claude Code and agent skill by liuyanghejerry/clausura

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Vue 2/3 代码规范检查。包括组件命名、Props 校验、Composition API 规范等。

Install

npx vskill@latest install liuyanghejerry/clausura/vue-best-practices

SKILL.md

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

输出格式

json
{
"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 }
}

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/liuyanghejerry/clausura/vue-best-practices/badge)](https://verified-skill.com/skills/liuyanghejerry/clausura/vue-best-practices)

Something wrong with this skill or its page? Tell us.