Agent skill
avue-form
Builds configuration-driven dynamic forms with Avue Form, including field types (input, select, date, upload), validation rules, form groups, tabbed layouts, and event handling. Use when the user needs to create forms with Avue in Vue applications, implement form validation, or build dynamic multi-step forms.
Install this agent skill to your Project
npx add-skill https://github.com/partme-ai/full-stack-skills/tree/main/skills/avue-skills/avue-form
SKILL.md
When to use this skill
Use this skill whenever the user wants to:
- Create configuration-driven forms with Avue Form
- Define form fields with types (input, select, date, checkbox, upload, etc.)
- Implement form validation rules
- Build dynamic forms, form groups, or tabbed form layouts
- Handle form submit, reset, and field change events
How to use this skill
Workflow
- Install -
npm install @avue/formand register withVue.use(Avue) - Define option - Configure columns with labels, props, types, and rules
- Bind v-model - Two-way bind the form data object
- Handle events - Listen for @submit, @reset-change, and field-level events
Quick-Start Example: Form with Validation
<template>
<avue-form :option="option" v-model="form" @submit="handleSubmit" @reset-change="handleReset">
</avue-form>
</template>
<script>
export default {
data() {
return {
form: {},
option: {
submitText: 'Save',
column: [
{
label: 'Name',
prop: 'name',
type: 'input',
span: 12,
rules: [{ required: true, message: 'Name is required', trigger: 'blur' }]
},
{
label: 'Role',
prop: 'role',
type: 'select',
span: 12,
dicData: [
{ label: 'Admin', value: 'admin' },
{ label: 'User', value: 'user' }
]
},
{
label: 'Start Date',
prop: 'startDate',
type: 'date',
format: 'yyyy-MM-dd'
}
]
}
}
},
methods: {
handleSubmit(form, done) {
console.log('Form data:', form)
// Call API, then done() to re-enable button
done()
},
handleReset() {
console.log('Form reset')
}
}
}
</script>
Feature Reference
| Feature | File |
|---|---|
| Dynamic form | examples/features/dynamic-form.md |
| Form layout | examples/features/form-layout.md |
| Validation rules | examples/features/form-rules.md |
| Form groups | examples/features/form-group.md |
| Tabbed forms | examples/features/form-tabs.md |
| Custom components | examples/features/custom-components.md |
API Reference
api/form-api.md- Component props, events, and slotsapi/columns-api.md- Column types and propertiesapi/options-api.md- Form option configuration
Best Practices
- Use column types - Set
type: 'select',type: 'date',type: 'upload'for automatic controls - Call done() after submit - Always call
done()in the submit handler to re-enable the button - Use span for layout - Set
span: 12for half-width fields (24 = full width grid) - Group related fields - Use
groupoption to organize complex forms into sections - Validate on blur - Set
trigger: 'blur'for a less intrusive validation experience
Resources
- Official Docs: https://avuejs.com/form/form-doc.html
Keywords
Avue Form, avue-form, Vue form, dynamic form, 表单组件, 表单验证, form validation, form configuration, form columns, form rules
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
ocrmypdf-batch
OCRmyPDF batch processing skill — process multiple PDFs, Docker automation, shell scripting, and CI/CD integration. Use when the user needs to OCR many PDFs, set up automated OCR pipelines, or integrate OCR into workflows.
ocrmypdf-optimize
OCRmyPDF optimization skill — compress PDFs, configure PDF/A output, JBIG2 encoding, and lossless optimization. Use when the user needs to reduce PDF file size, create archival PDF/A files, or optimize OCR output.
ocrmypdf-image
OCRmyPDF image processing skill — deskew, rotate, clean, despeckle, remove border from scanned documents. Use when the user needs to improve scanned PDF quality, fix skewed pages, remove noise, or clean up scanned documents before OCR.
ocrmypdf-api
OCRmyPDF Python API and plugin skill — use OCRmyPDF programmatically from Python, integrate with applications, and extend with plugins (EasyOCR, PaddleOCR, AppleOCR). Use when the user needs to call OCRmyPDF from Python code, build OCR pipelines, or use alternative OCR engines.
ocrmypdf
OCRmyPDF core skill — add searchable OCR text layer to scanned PDFs, convert images to searchable PDFs, support 100+ languages via Tesseract. Use when the user needs to OCR a PDF, make a scanned PDF searchable, or extract text from scanned documents.
svelte
Guides Svelte and SvelteKit development including reactive components, stores, transitions, lifecycle hooks, SSR, file-based routing, and deployment. Use when the user needs to build Svelte components, create SvelteKit applications, implement reactivity patterns, or configure Svelte with Vite.
Didn't find tool you were looking for?