Admin UI Prototype
v1.0.0Query project-specific Arco Design usage patterns and generate Vue 3 admin page prototypes with mock data, scaffold files, and route snippets. Use when Codex...
Security Scan
Capability signals
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
OpenClaw
Benign
high confidencePurpose & Capability
Name/description (generate Vue 3 admin prototypes using Arco Design) match the provided artifacts: many component docs, page templates, and a scaffold manifest. There are no unrelated env vars, binaries, or unexpected permissions requested.
Instruction Scope
SKILL.md confines actions to reading the bundled knowledge files and creating/updating files under webui/admin-ui. It explicitly instructs how to scaffold, where to place generated files, and to add TODO placeholders for real APIs. This is expected for a code-generation/prototyping skill, but it does direct the agent to modify the workspace (append/update docs and create project files) and to run pnpm commands if initialization/validation is needed.
Install Mechanism
There is no formal install spec in the registry (instruction-only), which is lower risk. However, the runtime instructions tell the agent to run `pnpm install` (and optionally `pnpm dev`) in the generated project. That will fetch packages from the public registry (network access and supply-chain risk). This behavior is coherent with the purpose but worth noting to users.
Credentials
The skill requires no environment variables, credentials, or config paths. It also instructs 'Never store secrets.' There is no disproportionate request for sensitive data.
Persistence & Privilege
Registry flags: always:false and normal model invocation. The skill will create/update files under its own intended path (webui/admin-ui) and the bundled knowledge docs; it does not request system-wide persistence or attempt to modify other skills' configuration.
Assessment
This skill appears coherent for generating Arco/Vue admin prototypes, but before installing or allowing the agent to run it consider: 1) The skill will create and modify files under webui/admin-ui and may append to the bundled docs—review generated files before running them. 2) It asks the agent to run `pnpm install`/`pnpm dev` which will download packages from npm (network activity and supply-chain risk). Prefer to run package installs manually in a sandboxed environment. 3) The skill does not request credentials or read unrelated system files, which is good. 4) If you want to avoid network installs or automatic execution, deny/confirm any runtime commands and ask the agent to only output scaffolding files for you to review and run locally.Like a lobster shell, security has layers — review code before you run it.
latest
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
knowledge/components/README.mdfirst to locate component docs. - Read only the component docs needed for the request.
- Read
knowledge/ui-conventions.mdfor page structure, naming, and styling rules. - Read
knowledge/page-templates.mdfor ready-made page and route templates. - Read
knowledge/scaffold.mdonly whenwebui/admin-uineeds to be initialized.
Answer component-usage questions
- Read
knowledge/components/README.md. - Open the matching component docs under
knowledge/components/. - Open
knowledge/ui-conventions.mdif layout or page-level context matters. - 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 | table.md, form.md, button.md, modal.md, tag.md, space.md, grid.md |
| Form | form.md, input.md, select.md, date-picker.md, checkbox.md, radio.md, divider.md |
| Detail | descriptions.md, card.md, tag.md, button.md |
| Dashboard | statistic.md, card.md, grid.md |
| Modal form | modal.md, form.md, input.md, select.md, spin.md, feedback-api.md |
Initialize or update the preview project
- If
webui/admin-ui/package.jsondoes not exist:- follow
knowledge/scaffold.md - create the scaffold files under
webui/admin-ui - replace
{{pageTitle}},{{viewImportPath}}, and{{ViewComponent}} - run
pnpm installinwebui/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
webui/admin-ui/src/views/{kebab-case-module}/components/when the page benefits from splitting dialogs or sections. - 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
mockFetchwith a 300 ms timeout for list-like data flows. - Add
// TODO: 替换为真实 API 调用at each mock or placeholder API call. - Use Arco Design Vue components for interaction controls.
- Use CSS variables such as
var(--color-*)instead of hard-coded colors. - 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
// TODOplaceholders. - Start
pnpm devand share the local URL only when the user asks for a preview or when local validation is required.
Comments
Loading comments...
