Agent Skill
2/7/2026page-generator
Generate CRUD list or form pages in naive-admin using existing templates, hooks, and project conventions. Use when user needs to generate a list/form page, asks to create CRUD/admin pages, or wants to scaffold pages following project templates.
Y
y2138
0GitHub Stars
1Views
npx skills add Y2138/vue3-mono
SKILL.md
| Name | page-generator |
| Description | Generate CRUD list or form pages in naive-admin using existing templates, hooks, and project conventions. Use when user needs to generate a list/form page, asks to create CRUD/admin pages, or wants to scaffold pages following project templates. |
name: page-generator description: Generate CRUD list or form pages in naive-admin using existing templates, hooks, and project conventions. Use when user needs to generate a list/form page, asks to create CRUD/admin pages, or wants to scaffold pages following project templates.
Page Generator
Goal
Generate list or form pages based on the user's requirements.
Page Types
List Page
- Path:
apps/naive-admin/src/views/{module}/{page}/index.vue - Structure: SearchPanel,
useTablePage,NDataTable, action buttons. - Hooks:
useTablePage,useEnums,usePageLoading.
Form Page
- Path:
apps/naive-admin/src/views/{module}/{page}/index.vue - Structure:
NCard,FormRoot, submit/cancel actions. FormConfig:comp,valueKey,label,required,props.
Workflow
- Decide list vs form based on the requirement.
- Read the corresponding template.
- Replace placeholders with fields and APIs.
- Create the file in the target path.
- Remind about route registration if needed.
Conventions
- Use
kebab-casefilenames andcamelCasevariables. - Import types from
@/shared/*. - Use Tailwind/UnoCSS utility classes for styling.
Skills Info
Original Name:page-generatorAuthor:y2138
Download