VHTML Front-End Component Code Generation
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
Related Skills
A one-shot coding agent built on Claude Code CLI that runs non-interactively, supports a specified workdir, and can be monitored in the foreground or background.
Preview and confirm file sorting by extension, with recursive cleanup, ignore rules, and transactional rollback.
An engineering assistant for static HTML/CSS/JS pages, design-token extraction, IE8-compatible review, and structured delivery.
An engineering workflow for requirement analysis, scenario modeling, risk planning, quality gates, testing, and knowledge capture, with lightweight, standard, and full modes.