Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

vtex-io-admin-reactvtex IO admin React 搜索

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

744

周安装

31

GitHub Stars

25

下载量

248
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:vtex-io-admin-react(vtex IO admin React 搜索)
来源仓库:https://github.com/vtexdocs/ai-skills
仓库路径:skills/vtex-io-admin-react
安装命令:
npx skills add https://github.com/vtexdocs/ai-skills --skill vtex-io-admin-react
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/vtexdocs/ai-skills --skill vtex-io-admin-react

简介

用于辅助前端页面、组件和样式开发维护。

  • 适合生成或审查 React、Next.js 相关代码。
  • 可整理组件结构或定位布局问题。vtex-io-admin-react 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 需结合项目设计系统与构建方式使用。
  • 涉及页面改动时应配合本地预览确认效果。

SKILL.md

Admin React Interfaces

When this skill applies

Use this skill when building administrative React interfaces for VTEX Admin experiences.

  • Settings pages
  • Moderation tools
  • Internal dashboards
  • Operational forms and tables

Do not use this skill for:

  • storefront components
  • render-runtime blocks
  • route authorization design
  • backend service structure

Decision rules

  • Use VTEX official design systems for admin interfaces.
  • Prefer vtex.styleguide as the default choice for VTEX IO admin apps published to customers.
  • Accept @vtex/shoreline as an official VTEX design system, especially in internal back-office contexts.
  • Prefer core Styleguide layout patterns such as Layout, PageHeader, and PageBlock for page composition.
  • Prefer Styleguide building blocks for common admin needs: Table, Input, Dropdown, Toggle, Tabs, Modal, Spinner, and Alert.
  • Keep admin screens focused on operational clarity rather than storefront styling concerns.
  • Prefer explicit loading, empty, and error states for data-heavy admin pages.
  • Use button loading states and toast-based feedback for async actions so users can tell when a mutation starts, succeeds, or fails.
  • Prefer internationalized messages over hardcoded admin copy so labels and feedback can stay consistent across stores and locales.
  • Use tables, forms, filters, and feedback patterns that align with VTEX Admin conventions.
  • Prefer official design system components over custom clickable div or span patterns so focus behavior, keyboard navigation, and accessibility attributes remain correct by default.
  • For large lists and tables, prefer pagination and server-side filtering over loading everything into the browser and filtering in memory.
  • For search and filtering, prefer the search and filter patterns offered by the official design systems instead of inventing custom control behavior.
  • Keep labels, messages, and action copy in a single language per app and avoid mixing tones or languages on the same screen.
  • In forms, keep actions consistent: use a primary save action, an optional secondary cancel action when appropriate, and explicit feedback after submit.

Hard constraints

Constraint: Admin UIs must use VTEX design systems

Admin panel components MUST use VTEX official design systems.

Why this matters

VTEX Admin has a consistent design language. VTEX official design systems preserve that consistency, while generic third-party UI libraries create inconsistent visuals, styling conflicts, and review problems.

Detection

If you see Material UI, Chakra, Ant Design, or another generic third-party UI system in an admin app, STOP and replace it with VTEX design system patterns. Do not flag @vtex/shoreline as third-party.

Correct

import { Layout, PageHeader, PageBlock, Table } from 'vtex.styleguide'
import { Button, Table, EmptyState } from '@vtex/shoreline'

Wrong

import { DataGrid } from '@material-ui/data-grid'

Constraint: Admin screens must expose loading, empty, and error states

Operational interfaces MUST make data state visible to the user.

Why this matters

Admin users need reliable operational feedback. Silent blank screens are harder to support and diagnose than explicit states.

Detection

If a page loads remote data but renders nothing meaningful on loading, empty, or error cases, STOP and add explicit UI states.

Correct

if (loading) {
  return (
    <PageBlock>
      <Spinner />
    </PageBlock>
  )
}

if (error) {
  return (
    <PageBlock>
      <Alert type="error">Failed to load data. Please try again.</Alert>
    </PageBlock>
  )
}

Wrong

return <Table items={data?.items ?? []} />

Constraint: Admin actions must provide explicit user feedback

Mutations in admin screens MUST report success, failure, or pending state clearly.

Why this matters

Operational actions affect real store configuration and data. Users need immediate feedback to avoid repeated or ambiguous actions.

Detection

If a button triggers a write action with no feedback on result, STOP and add explicit feedback.

Correct

<Button isLoading={saving}>Save</Button>
showToast({ message: 'Settings saved successfully' })

Wrong

<Button onClick={save}>Save</Button>

Constraint: Data-heavy admin screens must stay bounded and navigable

Lists, tables, and search-heavy admin screens MUST use bounded rendering patterns such as pagination and should prefer server-side filtering when the API supports it.

Why this matters

Admin pages often deal with operational datasets that grow over time. Rendering too many rows at once or filtering only in memory creates poor performance and brittle UX.

Detection

If a page renders very large collections without pagination, or loads the full dataset into the browser just to filter locally, STOP and add bounded navigation or server-side filtering.

Correct

<Table items={items} />
<Pagination currentItemFrom={1} currentItemTo={10} totalItems={120} />

Wrong

const filtered = allItems.filter(matchesSearch)
return <Table items={filtered} />

Constraint: Interactive controls must use accessible semantics

Admin interactions MUST use accessible controls and should prefer official design system components instead of custom clickable non-semantic elements.

Why this matters

Keyboard navigation, focus handling, and screen-reader behavior are part of baseline admin usability. Non-semantic clickable elements make accessibility regressions much more likely.

Detection

If you see clickable div or span elements being used as primary controls where a button, link, or design system component should be used, STOP and replace them.

Correct

<Button variation="primary">Save</Button>

Wrong

<div onClick={save}>Save</div>

Admin builder structure

Admin pages in VTEX IO are exposed through the Admin builder:

  • Use the admin/ folder to declare navigation and routes.
  • Use admin/navigation.json to define sections, subsections, and Admin navigation paths.
  • Use admin/routes.json to map each Admin path to a React component implemented under react/.
  • Use the react/ folder to implement the page components used by Admin routes.

Practical rules:

  • Each entry in admin/routes.json should point to a real component in react/.
  • The route path should stay aligned with the navigation structure declared in admin/navigation.json.
  • Page components should use VTEX Admin layout patterns such as Layout, PageHeader, and PageBlock, or official Shoreline equivalents in internal contexts.

Example: navigation.json structure

admin/navigation.json:

[
  {
    "section": "storeSettings",
    "subSection": "storeFront",
    "subSectionItems": [
      {
        "labelId": "admin/my-settings.navigation.title",
        "path": "/admin/app/my-settings"
      }
    ]
  }
]

Main fields:

  • section / subSection: define where the link appears in the Admin navigation tree.
  • subSectionItems[].path: should match the path declared in admin/routes.json.
  • titleId / labelId: message IDs used to internationalize navigation labels.
  • adminVersion: optional and only needed for compatibility between legacy and newer Admin experiences. Do not use it in the default example for new apps.

Example: tying Admin builder to a React page

admin/routes.json:

{
  "admin.app.my-settings": {
    "component": "MySettingsPage",
    "path": "/admin/app/my-settings"
  }
}

react/MySettingsPage.tsx:

import React from 'react'
import { Layout, PageHeader, PageBlock } from 'vtex.styleguide'

const MySettingsPage: React.FC = () => (
  <Layout pageHeader={<PageHeader title="My settings" />}>
    <PageBlock>
      {/* Page content goes here */}
    </PageBlock>
  </Layout>
)

export default MySettingsPage

Preferred pattern

Use VTEX design systems to keep operational state explicit and optimize for clarity over ornamental UI. Use PageHeader and PageBlock with Styleguide where appropriate, or equivalent official Shoreline patterns in internal contexts. Use Spinner/Alert/EmptyState for data states and showToast plus button loading states for async feedback. Use paginated tables for large datasets, prefer server-side filtering when possible, and keep form actions consistent with primary save and optional cancel behavior.

Common failure modes

  • Using third-party UI libraries in admin apps.
  • Omitting loading, empty, or error states.
  • Triggering mutations without visible feedback.
  • Rendering large tables without pagination or filtering everything only in memory.
  • Building clickable controls with non-semantic elements instead of accessible buttons or links.
  • Mixing languages or inconsistent copy style on the same admin screen.

Review checklist

  • Does the screen use VTEX official design systems (Styleguide or Shoreline), not generic UI libs?
  • Does the page use PageHeader and PageBlock layout patterns where appropriate (or Shoreline equivalents)?
  • Are loading, empty, and error states explicit?
  • Are large tables or lists paginated and filtered in a scalable way?
  • Are write actions safe and visible?
  • Are interactive controls using accessible semantics instead of clickable non-semantic elements?
  • Are labels and feedback messages internationalized instead of hardcoded?
  • Is the app using one consistent language and tone for labels and actions?
  • Does the UI look and behave like a VTEX Admin tool?

Reference

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.12%
按下载量换算85

Claude

28.52%
按下载量换算71

Cursor

18.57%
按下载量换算46

Gemini CLI

9.85%
按下载量换算24

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills