
from weapp-vite324
Guidance for writing predictable, type-safe Vue Single File Components (SFCs) in weapp-vite-based miniprogram projects—covers <script setup lang="ts">, JSON mac
Provides a focused handbook for authoring Vue Single File Components (SFCs) within weapp-vite miniprogram projects. It helps developers structure SFCs so they compile predictably, keep runtime behavior correct, and maintain TypeScript types and .weapp-vite outputs in sync. The skill captures practical rules (use <script setup lang="ts">, prefer JSON macros for app/page/component metadata), template compatibility checks, and minimal verification steps to validate SFC changes.
Use this skill when diagnosing SFC compile or runtime errors, deciding between JSON macros or <json> blocks, configuring page meta via definePageMeta, or troubleshooting drifting typed outputs (typed-router.d.ts, components.d.ts). It is also useful when aligning SFC conventions with repo-level AGENTS.md or existing dist/docs.
Best fit for developer-assistant agents with code and repo access (Copilot/Codex/Claude Code/GitHub CLI-enabled agents) that can read repo files and suggest code fixes or validation commands.
Documentation-only skill providing Vue SFC best practices for weapp-vite miniprogram projects, written entirely in Chinese. Well-organized with clear sections covering purpose, applicability, core workflow, constraints, and completion markers. Template compatibility guidance is detailed and technically precise. No scripts to execute — pure reference material. No security concerns.
Niche but well-crafted skill for a specific framework audience. Template compatibility gotchas (slot forwarding, usingComponents, v-model limitations) show real-world expertise. No executable code to audit.