Full-stack-skills avue
Builds data-driven admin interfaces with the Avue framework (based on Vue 2 + Element UI). Covers CRUD tables, forms, global APIs ($DialogForm, $Clipboard, $ImagePreview, $Export), Tree, Upload, and Select components. Use when the user needs to build management systems, data-driven views, or configuration-based admin UIs with Avue.
git clone https://github.com/partme-ai/full-stack-skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/partme-ai/full-stack-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/avue-skills/avue" ~/.claude/skills/partme-ai-full-stack-skills-avue && rm -rf "$T"
skills/avue-skills/avue/SKILL.mdWhen to use this skill
Use this skill whenever the user wants to:
- Build admin management systems with Avue
- Use Avue data-driven tables, forms, and CRUD components
- Use global APIs ($DialogForm, $Clipboard, $ImagePreview, $Export, $Print)
- Configure Avue components (Tree, Upload, Select, Input)
- Set up internationalization or custom plugins
How to use this skill
Quick-Start Example: Avue Form with Global API
<template> <div> <avue-form :option="option" v-model="form" @submit="handleSubmit" /> <el-button @click="openDialog">Open Dialog Form</el-button> </div> </template> <script> export default { data() { return { form: {}, option: { column: [ { label: 'Name', prop: 'name', type: 'input', rules: [{ required: true }] }, { label: 'Category', prop: 'category', type: 'tree', dicUrl: '/api/categories' } ] } } }, methods: { handleSubmit(form, done) { console.log(form); done() }, openDialog() { this.$DialogForm.show({ option: this.option, callback: (form) => console.log(form) }) } } } </script>
This skill is organized to match the Avue official documentation structure (https://avuejs.com/). When working with Avue:
-
Identify the topic from the user's request:
- Getting started/快速开始 →
orexamples/getting-started/installation.mdexamples/getting-started/quick-start.md - Form/表单 →
orexamples/forms/basic-form.mdexamples/forms/form-config.md - Table/表格 →
examples/components/table.md - Tree/树形 →
examples/components/tree.md - Upload/上传 →
examples/components/upload.md - Global API/全局 API →
api/global-api.md
- Getting started/快速开始 →
-
Load the appropriate example file from the
directory:examples/Getting Started (快速开始) -
:examples/getting-started/
- Installing Avue and basic setupexamples/getting-started/installation.md
- Quick start tutorialexamples/getting-started/quick-start.md
- Global configurationexamples/getting-started/global-config.md
Forms (表单) -
:examples/forms/
- Basic form usageexamples/forms/basic-form.md
- Form configurationexamples/forms/form-config.md
- Form validationexamples/forms/form-validation.md
- Form with table selectorexamples/forms/form-table.md
Components (组件) -
:examples/components/
- Table componentexamples/components/table.md
- Tree componentexamples/components/tree.md
- Upload componentexamples/components/upload.md
- Select componentexamples/components/select.md
- Input componentexamples/components/input.md
Advanced (高级) -
:examples/advanced/
- CRUD operationsexamples/advanced/crud.md
- Internationalizationexamples/advanced/internationalization.md
- Plugins and extensionsexamples/advanced/plugins.md
-
Follow the specific instructions in that example file for syntax, structure, and best practices
Important Notes:
- All examples follow Avue API
- Examples use Vue 2.x syntax
- Each example file includes key concepts, code examples, and key points
- Always check the example file for best practices and common patterns
- Avue is based on Vue and Element UI
-
Reference API documentation in the
directory when needed:api/
- Global API referenceapi/global-api.md
- Component API referenceapi/components.md
-
Use templates from the
directory:templates/
- Form templatetemplates/form-template.md
- Table templatetemplates/table-template.md
- CRUD templatetemplates/crud-template.md
Doc mapping (one-to-one with official documentation)
- See examples and API files → https://avuejs.com
Examples and Templates
This skill includes detailed examples organized to match the official documentation structure. All examples are in the
examples/ directory (see mapping above).
To use examples:
- Identify the topic from the user's request
- Load the appropriate example file from the mapping above
- Follow the instructions, syntax, and best practices in that file
- Adapt the code examples to your specific use case
To use templates:
- Reference templates in
directory for common scaffoldingtemplates/ - Adapt templates to your specific needs and coding style
API Reference
Detailed API documentation is available in the
api/ directory, organized to match the official Avue API documentation structure:
Global API (api/global-api.md
)
api/global-api.md- $DialogForm - Dialog form
- $Clipboard - Clipboard operations
- $ImagePreview - Image preview
- $Print - Print functionality
- $Export - Export functionality
- $Log - Logging
- findObject, findArray, findNode - Utility functions
- watermark - Watermark
- downFile - File download
- randomId - Random ID generation
- loadScript - Script loading
- deepClone - Deep clone
- setPx - Pixel conversion
- validatenull - Validation
- vaildData - Data validation
Components API (api/components.md
)
api/components.md- Component props and APIs
- Component events and methods
- Component configuration
To use API reference:
- Identify the API you need help with
- Load the corresponding API file from the
directoryapi/ - Find the API signature, parameters, return type, and examples
- Reference the linked example files for detailed usage patterns
- All API files include links to relevant example files in the
directoryexamples/
Best Practices
- Install Avue: Install @smallwei/avue package
- Import styles: Import Avue CSS styles
- Use Vue.use(): Register Avue with Vue.use(Avue)
- Data-driven: Use data-driven approach for forms and tables
- Configuration: Configure forms and tables via option objects
- Global API: Use Avue global APIs for common operations
- Internationalization: Configure i18n for multi-language support
- Plugins: Use Avue plugins for extended functionality
- Component composition: Compose components for complex UIs
- Performance: Optimize for performance with large datasets
Resources
- Official Website: https://avuejs.com/
- GitHub Repository: https://github.com/avue/avue
Keywords
Avue, Vue, Element UI, data-driven, form, table, CRUD, $DialogForm, $Clipboard, $ImagePreview, $Print, $Export, tree, upload, select, 数据驱动, 表单, 表格, CRUD, 树形, 上传, 选择器