AI Agent Hub
Back to skills
VHTML Front-End Component Code Generation icon

VHTML Front-End Component Code Generation

Development Updated 2026.08.29

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md to install @user_35f505f3/qd.

About this skill

Problem

Front-end code generation often misses hard rules in a component library: v-form may not be organized with kind="desc", and v-dialog may still use the old dialog attributes, causing inconsistent validation, interaction patterns, and code style.

How It Works

The skill uses the vhtml component docs as the basis for code generation. It first reads the context and page intent, then selects components from the index, such as v-input, v-table, v-select, and v-date-picker. Key constraints include:
- v-form uses kind="desc"
- direct children use v-form-item
- v-dialog uses kind="modal" and status="modal"

If the context includes component information from figma-skill, it prefers that information for component matching before filling in events, validation, and layout.

Boundaries

It fits vhtml-based forms, tables, dialogs, feedback, navigation, and base elements. If the target stack is not vhtml, or if component docs and field definitions are missing, the generated code should be reviewed manually.

Use Cases

  • Generate admin page code from field and validation specs using v-form, v-table, and v-dialog.
  • Map Figma component notes to vhtml components and produce form structure with interactions.
  • Add component attributes and event bindings for search, table, pagination, and dialog flows.
  • Assemble multiline forms, selectors, date ranges, and upload controls into working vhtml code.

Best For

  • Front-end engineers maintaining vhtml back-office systems who need doc-driven forms and dialogs
  • Product engineers converting design files into pages who need vhtml component mapping
  • Developers building business pages who need consistent v-form validation and v-dialog attributes
  • Maintenance engineers taking over legacy component projects who need indexed component usage