Skills admin-ui-prototype
Query project-specific Arco Design usage patterns and generate Vue 3 admin page prototypes with mock data, scaffold files, and route snippets. Use when Codex needs to answer how a component is used in this admin UI, draft a list/form/detail/dashboard/empty-state page, or bootstrap/update a minimal `webui/admin-ui` preview project.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/arisefx/admin-ui-prototype" ~/.claude/skills/openclaw-skills-admin-ui-prototype && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/arisefx/admin-ui-prototype" ~/.openclaw/skills/openclaw-skills-admin-ui-prototype && rm -rf "$T"
manifest:
skills/arisefx/admin-ui-prototype/SKILL.mdsource content
Admin UI Prototype
Use this skill for two tasks:
- Look up how Arco Design components are used in this admin UI.
- Generate a runnable Vue 3 admin page prototype with realistic mock data.
Load only what is needed
- Read
first to locate component docs.knowledge/components/README.md - Read only the component docs needed for the request.
- Read
for page structure, naming, and styling rules.knowledge/ui-conventions.md - Read
for ready-made page and route templates.knowledge/page-templates.md - Read
only whenknowledge/scaffold.md
needs to be initialized.webui/admin-ui
Answer component-usage questions
- Read
.knowledge/components/README.md - Open the matching component docs under
.knowledge/components/ - Open
if layout or page-level context matters.knowledge/ui-conventions.md - Answer with project conventions and concrete patterns from the bundled docs, not generic framework advice.
- If a new pattern is discovered from real project code, append it to the relevant component doc and update the component index when a new component is added. Never store secrets.
Generate a page prototype
- Parse the request into:
- page type
- business entity
- fields to show or edit
- filters and table actions
- special interactions such as batch actions, tabs, charts, or nested forms
- If missing details would materially change the layout or data model, ask a short clarifying question. Otherwise make reasonable assumptions.
- Read
.knowledge/ui-conventions.md - Read
.knowledge/page-templates.md - Read only the component docs required for the page type:
| Page type | Required docs |
|---|---|
| List | , , , , , , |
| Form | , , , , , , |
| Detail | , , , |
| Dashboard | , , |
| Modal form | , , , , , |
Initialize or update the preview project
- If
does not exist:webui/admin-ui/package.json- follow
knowledge/scaffold.md - create the scaffold files under
webui/admin-ui - replace
,{{pageTitle}}
, and{{viewImportPath}}{{ViewComponent}} - run
inpnpm installwebui/admin-ui
- follow
- If the preview project already exists:
- update
webui/admin-ui/src/App.vue - update
webui/admin-ui/index.html
- update
Output requirements
- Create the main page at
.webui/admin-ui/src/views/{kebab-case-module}/index.vue - Create child components under
when the page benefits from splitting dialogs or sections.webui/admin-ui/src/views/{kebab-case-module}/components/ - Provide the route snippet from
.knowledge/page-templates.md - Keep the output runnable with mock data unless the user explicitly asks for API wiring only.
Generation rules
- Use
.<script setup lang="ts"> - Include runnable mock data with at least 5 records when the page type needs a dataset.
- Wrap mock loading in
with a 300 ms timeout for list-like data flows.mockFetch - Add
at each mock or placeholder API call.// TODO: 替换为真实 API 调用 - Use Arco Design Vue components for interaction controls.
- Use CSS variables such as
instead of hard-coded colors.var(--color-*) - Use scoped LESS styles.
- Use snake_case in DTO fields to stay aligned with backend APIs, and camelCase for frontend variables.
- Keep UI copy in Chinese unless the user asks for another language.
- Default the page file to
.src/views/{kebab-case-module}/index.vue
Final response
- List the generated files.
- Mention whether the scaffold was created or reused.
- Include the route registration snippet.
- Call out the remaining
placeholders.// TODO - Start
and share the local URL only when the user asks for a preview or when local validation is required.pnpm dev