Token导航 LogoToken导航

Agent Skill · 前端设计

docyrus-app-dev-react(docyrus 应用 DEV React)

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

docyrus-app-dev-react 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在前端设计类的 10,216 个 Skill 里排第 5,915。

总安装 582周安装 24GitHub Stars 13下载 190核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/docyrus/agent-skills --skill docyrus-app-dev-react

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

docyrus-app-dev-react 提供端到端的 Docyrus React 应用开发指导,整合架构、认证与 UI 实践。它建议使用 shadcn、diceui 等组件库,并强调生产级表单、查询与路由的实现方式。使用时需结合现有设计系统与 API 规范,避免生成孤立片段,确保整体一致性。

安装前应确认项目是否已初始化 Vite + TypeScript,并评估对 Tailwind v4 的支持情况。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/docyrus-app-dev-react

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/docyrus/agent-skills --skill docyrus-app-dev-r…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

docyrus-app-dev-react 怎么安装?

在终端执行 npx skills add https://github.com/docyrus/agent-skills --skill docyrus-app-dev-react。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

docyrus-app-dev-react 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

docyrus-app-dev-react 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

docyrus-app-dev-react 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

docyrus-app-dev-react 用的人多吗?

公开数据是累计安装 582 次,近一周安装 24 次,下载 190 次,GitHub 13 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

docyrus-app-dev-react 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
docyrus-app-dev-react

docyrus 应用 DEV React · 本页

58213需要联网未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Docyrus App Dev React

Build Docyrus React TypeScript applications end-to-end. This skill combines app architecture, authentication, data access, query patterns, and production-grade UI guidance in one place.

Tech Stack

  • React 19 + TypeScript + Vite
  • TanStack Router (code-based), TanStack Query (server state), TanStack Form
  • Tailwind CSS v4, shadcn/ui components
  • @docyrus/api-client + @docyrus/signin + @docyrus/app-utils
  • Auto-generated collections from OpenAPI spec
  • Preferred UI libraries: shadcn, diceui, animate-ui, docyrus-ui, reui

When to Use This Skill

Use this skill when you are:

  • Building or modifying a Docyrus-backed React app
  • Setting up authentication with @docyrus/signin
  • Bootstrapping tenant-aware runtime utilities with @docyrus/app-utils
  • Fetching or mutating data with generated collections or @docyrus/api-client
  • Persisting app-level config or user-level config or saved grid views with AppConfig, UserAppConfig, and DataViews
  • Building record sharing, role management, or ACL-driven UI flows
  • Designing feature UIs such as dashboards, forms, tables, layouts, dialogs, analytics, or detail pages
  • Selecting between shadcn, diceui, animate-ui, docyrus-ui, and reui components
  • Implementing complete feature flows that combine data access and polished UI

End-to-End Feature Workflow

  1. Set up app auth, routing, and query providers.
  2. Bootstrap TenantPreferences, date/number utilities, and shared app runtime helpers from @docyrus/app-utils.
  3. Use generated Docyrus collection hooks or the REST client for data access.
  4. Define columns, filters, formulas, child queries, and mutations correctly.
  5. Use AppConfig for per-app persisted settings, UserAppConfig for per-user per-app settings, and DataViews for saved grid views.
  6. Check preferred UI components before building anything custom.
  7. Use Docyrus form and detail patterns for create, edit, item detail, and editable grid flows.
  8. Connect UI actions to TanStack Query mutations and invalidate relevant queries.

Quick Start: App Bootstrap

Root provider setup

import { DocyrusAuthProvider } from '@docyrus/signin'

<DocyrusAuthProvider
  apiUrl={import.meta.env.VITE_API_BASE_URL}
  clientId={import.meta.env.VITE_OAUTH2_CLIENT_ID}
  redirectUri={import.meta.env.VITE_OAUTH2_REDIRECT_URI}
  scopes={['offline_access', 'Read.All', 'DS.ReadWrite.All', 'Users.Read']}
  callbackPath="/auth/callback"
>
  <QueryClientProvider client={queryClient}>
    <RouterProvider router={router} />
  </QueryClientProvider>
</DocyrusAuthProvider>

Auth gate and current-user access

const { status, user, hasRole, hasPermission } = useDocyrusAuth()

if (status === 'loading') return <Spinner />
if (status === 'unauthenticated') return <SignInButton />

// user is auto-fetched from /v1/users/me after authentication
// hasRole('super_admin') — check role by slug or uid
// hasPermission('edit', dataSourceId) — check ACL permission on a data source

Tenant-aware app utilities

Use @docyrus/app-utils as the default runtime layer for tenant-level formatting and persisted app/grid preferences.

import {
  createAppConfigClient,
  createUserAppConfigClient,
  createDataViewClient,
  createDateUtils,
  createNumberUtils,
  getTenantPreferences,
} from '@docyrus/app-utils'

function useAppRuntime(appId: string) {
  const client = useDocyrusClient()
  const { getMyInfo } = useUsersCollection()

  return useQuery({
    queryKey: ['app-runtime', appId],
    enabled: !!client && !!appId,
    queryFn: async () => {
      const [preferences, me] = await Promise.all([
        getTenantPreferences(client!),
        getMyInfo(),
      ])

      return {
        preferences,
        me,
        dateUtils: createDateUtils({
          preferences,
          userTimezone: me.timeZone?.id,
        }),
        numberUtils: createNumberUtils({ preferences }),
        appConfig: createAppConfigClient(client!, appId),
        userConfig: createUserAppConfigClient(client!, appId),
        dataViews: createDataViewClient(client!, appId),
      }
    },
  })
}

Use this runtime to:

  • Format dates and datetimes with tenant format strings and the user's timezone.
  • Format numbers, currency-like values, and decimals using tenant separators and precision.
  • Read and upsert the app's single persisted AppConfig document.
  • Read and upsert the current user's UserAppConfig document (per-user per-app settings).
  • Read and persist saved grid views through DataViews.

Data fetching with generated collections

const { list } = useBaseProjectCollection()

const { data: projects } = useQuery({
  queryKey: ['projects'],
  queryFn: () =>
    list({
      columns: ['name', 'status', 'record_owner(firstname,lastname)'],
      filters: { rules: [{ field: 'status', operator: '!=', value: 'archived' }] },
      orderBy: 'created_on DESC',
      limit: 50,
    }),
})

ACL, roles, and record sharing

Use direct useDocyrusClient() calls for ACL features. These routes may be hidden from generated OpenAPI output, so they are typically not available through generated collection hooks.

const client = useDocyrusClient()

const { data: roles } = useQuery({
  queryKey: ['acl', 'roles'],
  queryFn: () => client!.get('/v1/users/acl/roles'),
})

const replaceUserRoles = useMutation({
  mutationFn: ({ userId, roleIds }: { userId: string; roleIds: string[] }) =>
    client!.put(`/v1/users/acl/users/${userId}/roles`, { roleIds }),
})

const createRoleQuery = useMutation({
  mutationFn: (payload: Record<string, unknown>) =>
    client!.post('/v1/users/acl/role-queries', payload),
})

Prefer role uid values returned by the API when sending roleIds for user-role updates or role-query payloads.

Saved data grid views

Use DataGridViewSelect as the default saved-view UI for Docyrus grids, and persist those views with createDataViewClient(client, appId).

  • DataGridViewSelect is the default component for showing and editing saved grid views.
  • Pass the TanStack table instance via table so the selector/editor can read column definitions.
  • Pass fields when you want the built-in filter builder enabled in the editor.
  • Back views, onViewCreate, onViewSave, onViewDelete, onViewHide, and onViewUnhide with DataViews CRUD.
  • Use DataGridViewEditor separately only when you need a standalone editor outside the selector.

Critical App/Data Rules

  1. Always send columns in .list() and .get() calls. Without it, only id is returned.
  2. Collections are React hooks — call useBaseProjectCollection(), useUsersCollection(), and similar hooks inside React components.
  3. Data source endpoints are dynamic — they only exist if the data source is defined in the tenant OpenAPI spec.
  4. Use id for count calculations. Use actual field slugs for sum, avg, min, and max.
  5. Child query keys must appear in columns.
  6. Formula keys must appear in columns.
  7. Use useUsersCollection().getMyInfo() for current user profile instead of making a direct profile call.
  8. Initialize TenantPreferences once per app runtime and create shared dateUtils / numberUtils instances from @docyrus/app-utils.
  9. Formatting functions from @docyrus/app-utils are regionalized — do not hardcode locale, date format, decimal separator, thousand separator, or decimal precision when tenant preferences should drive them.
  10. Use createAppConfigClient(client, appId) for the app's single persisted config document; upsert is the default write path.
  11. Use createUserAppConfigClient(client, appId) for the current user's persisted config document scoped to an app (e.g. theme, layout preferences, sidebar state); upsert is the default write path.
  12. Use createDataViewClient(client, appId) for saved grid-view CRUD.
  13. Use DataViews with DataGridViewSelect to show, create, edit, reorder, hide, unhide, soft-delete, and hard-delete saved data grid views.
  14. DataGridViewSelect needs a TanStack table instance and should receive fields when you want the built-in filter builder/editor experience.
  15. Data view creation requires name and tenant_data_source_id.
  16. Use dataViews.update(viewId, {archived: true}) for soft-delete and dataViews.remove(viewId) only for irreversible hard-delete.
  17. Regenerate collections after schema changes by rebuilding the tenant OpenAPI spec, downloading the latest openapi.json, and re-running the collection generator.
  18. ACL endpoints are usually raw-client integrations — use useDocyrusClient() or RestApiClient for roles, user-role assignments, role queries, record sharing, and ownership transfer.
  19. Prefer role uid values for ACL role writes, user-role roleIds, and role-query roleIds.
  20. Treat PUT /v1/users/acl/users/:userId/roles as full replacement and POST /v1/users/acl/users/:userId/roles as additive.
  21. Send role-query query as raw JSON and omit tenantAppId when dataSourceId is present; backend derives it.
  22. After deleting a role, invalidate dependent app queries for role lists, user-role lists, role-query lists, and any UI that renders primary-role labels.

Critical UI/UX Rules

  1. Always check preferred components first before creating anything custom.
  2. Use AwesomeCard for dashboards unless the user explicitly wants a different card style.
  3. Use animate-ui Sidebar for app layouts unless another layout is requested.
  4. Prefer Recharts for charts. shadcn chart primitives are the default wrapper.
  5. Use icons in this order: hugeicons, then fontawesome light, then lucide.
  6. Use AwesomeDialog for item create forms.

- Small/simple forms: container="sheet" with side="right" - Long/complex forms: container="modal" or container="drawer"

  1. Choose detail containers based on item complexity.

- Large items: dedicated page - Small items: AwesomeDialog right sheet

  1. All forms must use TanStack Form + the Docyrus form system. Do not build feature forms with plain HTML forms or React Hook Form directly.
  2. Use EditableRecordDetail for inline editing in item detail views.
  3. Always enable trackChanges for editable detail and grid experiences.
  4. Use DataGridViewSelect for saved grid views and back it with DataViews from @docyrus/app-utils.
  5. Prefer DataGridViewEditor only when you need a standalone grid-view editor outside the selector component.

Default UI Choices

Use CaseDefault ComponentLibrary
Item create formAwesomeDialogdocyrus
Quick record createCreateRecordDialogdocyrus
Item detail (small)AwesomeDialog sheet rightdocyrus
Item detail (large)Dedicated page—
Inline editingEditableRecordDetaildocyrus
Dashboard cardAwesomeCarddocyrus
Stat dashboardsAwesomeStatsdocyrus
App navigationSidebaranimate-ui
Data tableDataTablediceui
Editable gridData Griddocyrus
Grid saved viewsDataGridViewSelect + DataViewsdocyrus + @docyrus/app-utils
FormsDocyrus form fields + TanStack Formdocyrus
Chartsshadcn chart + Rechartsshadcn
File uploadFile Uploaddiceui
Gantt/project schedulingGanttdocyrus
Resource schedulingResourceSchedulerPaneldocyrus
Team chatTeamChatChanneldocyrus
AI interfaceDocyrusAgentdocyrus
Pricing / quotingPricingEnginePaneldocyrus
Analytics / pivotPivotGriddocyrus

Quick UI Patterns

Item create form

<AwesomeDialog open={open} onOpenChange={setOpen} container="sheet" side="right" size="default">
  <AwesomeDialogHeader title="Create Task" icon="far-plus" />
  <AwesomeDialogBody>
    <form.Field name="title">{(field) => <TextFormField field={field} label="Title" />}</form.Field>
    <form.Field name="status">{(field) => <SelectFormField field={field} label="Status" />}</form.Field>
  </AwesomeDialogBody>
  <AwesomeDialogFooter>
    <Button variant="outline" onClick={() => setOpen(false)}>Cancel</Button>
    <Button onClick={handleSubmit}>Create</Button>
  </AwesomeDialogFooter>
</AwesomeDialog>

Item detail with inline editing

<AwesomeDialog open={open} onOpenChange={setOpen} container="sheet" side="right" size="lg" fullscreenable>
  <AwesomeDialogHeader
    title="Task Detail"
    description="Review and edit task fields inline"
    headerButtons={<Button variant="outline" size="sm" onClick={switchToFullForm}>Edit All</Button>}
  />
  <AwesomeDialogBody>
    <EditableRecordDetail fields={fields} record={record} onSave={handleSave} trackChanges>
      <EditableRecordDetailField slug="title" />
      <EditableRecordDetailField slug="status" />
      <EditableRecordDetailField slug="assignee" />
      <EditableRecordDetailField slug="due_date" />
    </EditableRecordDetail>
  </AwesomeDialogBody>
</AwesomeDialog>

TanStack Query Pattern

function useProjects(params?: ICollectionListParams) {
  const { list } = useBaseProjectCollection()
  return useQuery({
    queryKey: ['projects', 'list', params],
    queryFn: () => list({ columns: PROJECT_COLUMNS, ...params }),
  })
}

function useCreateProject() {
  const { create } = useBaseProjectCollection()
  const qc = useQueryClient()
  return useMutation({
    mutationFn: (data: Record<string, unknown>) => create(data),
    onSuccess: () => {
      void qc.invalidateQueries({ queryKey: ['projects'] })
    },
  })
}

Collection CRUD Methods

const { list, get, create, update, delete: deleteOne, deleteMany } = useBaseProjectCollection()

list(params?: ICollectionListParams)
get(id, { columns })
create(data)
update(id, data)
deleteOne(id)
deleteMany({ recordIds })

API endpoint pattern: /v1/apps/{appSlug}/data-sources/{slug}/items

Query Capabilities Summary

The .list() method supports:

  • columns
  • filters
  • filterKeyword
  • orderBy
  • limit and offset
  • fullCount
  • calculations
  • formulas
  • childQueries
  • pivot
  • expand

Component Installation Pattern

pnpm dlx shadcn@latest add button
pnpm dlx shadcn@latest add @diceui/data-table
pnpm dlx shadcn@latest add @animate-ui/sidebar
pnpm dlx @docyrus/cli add @docyrus/ui-awesome-card
pnpm dlx shadcn@latest add @reui/file-upload-default

References

For deep dives, read:

  • references/README.md — merged reference map for app development and UI design
  • references/api-client-and-auth.md
  • references/collections-and-patterns.md
  • ../docyrus-api-dev/references/acl-endpoints-frontend.md
  • ../docyrus-api-dev/references/data-source-query-guide.md
  • ../docyrus-api-dev/references/formula-design-guide-llm.md
  • ../docyrus-api-dev/references/query-guide.md
  • references/preferred-components-catalog.md
  • references/component-selection-guide.md
  • references/icon-usage-guide.md

平台分布

Codex

34.43%
按下载量换算65

Claude

30.55%
按下载量换算58

Cursor

19.66%
按下载量换算37

Gemini CLI

10.13%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills