add-component

将一个可直接复制的后台管理界面构建模块添加到基于 scaffold-dashboard 的仪表盘中,覆盖表单(表单、向导、组合框、文件上传、行内编辑)、列表与表格(增删改查列表、卡片网格、无限/虚拟滚动、列控制、筛选面板、保存视图、CSV 导入/导出)、富视图(看板、日历、树形结构、时间轴、主从视图)、详情与页面(详情/展示页、记录标签页、关联记录、多列布局、设置、图表/仪表盘)、展示与反馈(标签/元数据/进度条、空/加载/错误状态、通知中心、审计日志)及平台功能(基于角色的访问控制、社交登录/魔法链接认证、⌘K 全局搜索、国际化、计费、实时更新)。每个条目附带参考文档,提供精确的复制步骤和重连配置说明。

仓库最近推送
GitHub Stars
159
Forks
13
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "add-component":https://skillpi.com/zh/skills/deepskill-b26b3d7a615c6176e95f8f3c3a6c9f80896d8b159b23abe20af1250686e6f75d。安装前核对上游来源和版本:https://github.com/ahpxex/open-dashboard。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

将一个可直接复制的后台管理界面构建模块添加到基于 scaffold-dashboard 的仪表盘中,覆盖表单(表单、向导、组合框、文件上传、行内编辑)、列表与表格(增删改查列表、卡片网格、无限/虚拟滚动、列控制、筛选面板、保存视图、CSV 导入/导出)、富视图(看板、日历、树形结构、时间轴、主从视图)、详情与页面(详情/展示页、记录标签页、关联记录、多列布局、设置、图表/仪表盘)、展示与反馈(标签/元数据/进度条、空/加载/错误状态、通知中心、审计日志)及平台功能(基于角色的访问控制、社交登录/魔法链接认证、⌘K 全局搜索、国际化、计费、实时更新)。每个条目附带参考文档,提供精确的复制步骤和重连配置说明。

0 下载

介绍来源: third_party · ahpxex · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: add-component
description: Add a copy-ready admin UI building block to a dashboard built on the scaffold-dashboard base — forms (form, wizard, combobox, file upload, inline edit), lists & tables (CRUD list, card grid, infinite/virtual, column controls, filter panel, saved views, CSV export/import), rich views (kanban, calendar, tree, timeline, master-detail), detail & pages (detail/show, record tabs, related records, multi-column layout, settings, chart/dashboard), display & feedback (tags/metadata/progress, empty/loading/error states, notification center, audit trail), and platform features (RBAC, social/magic-link auth, ⌘K global search, i18n, billing, realtime). Each entry has a reference doc with the exact copy + rewire steps.

Add a UI component

A catalogue + retriever for the admin UI building blocks. The real code is the bundled templates/* (generated from the substrate's working source — the source of truth is the code, not this doc). To add a component:

  1. Find it in the catalogue below.
  2. Read its reference — references/<name>.md — for the exact cp command, the foundation it assumes, its invariants, and how to verify.
  3. Follow that reference: copy the template into a route/component and rewire it.

Every component assumes the scaffold-dashboard foundation (the platform layer: UI primitives, the form system, charts, DataTable/CardList, theme tokens). Run scaffold-dashboard — or work inside a fork of the substrate — first. For a new data resource (table + server fns + page) use the standalone add-backend skill; to point at a different backend use add-backend.

Catalogue

Forms

  • add-form — Build a validated form (create/edit dialog or full-page) with TanStack Form + zod and the bound field components. Use whenever you need user input with validation and server-error handling. Ships copy-ready templates. → references/add-form.md
  • add-wizard-form — Add a multi-step wizard / stepper form — fields split across steps with per-step validation, a progress indicator, Back/Next, and a final review + submit. Use for long or onboarding-style flows. → references/add-wizard-form.md
  • add-field-combobox — Add a searchable single-select (combobox) form field — a popover with a filter input over options, bound to the form system. Use when a plain select has too many options or needs search/async loading. → references/add-field-combobox.md
  • add-file-upload — Add a file-upload field — drag-and-drop / click-to-pick with image thumbnails, single or multiple, backed by a swappable storage seam (zero-config browser data-URL by default; swap in S3 / disk). Use for avatars, attachments, document uploads. → references/add-file-upload.md
  • add-inline-edit — Add inline / editable table cells — click a cell to edit it in place (input or select), commit on blur/Enter, revert on Escape. Use for quick spreadsheet-style edits without a separate form. → references/add-inline-edit.md

Lists & tables

  • add-card-list — Render a resource as a responsive card gallery instead of (or beside) a table, reusing the same search/filter/paginate plumbing. Use for galleries, people, products-as-cards, blog posts. → references/add-card-list.md
  • add-list-view — Add a dense / compact LIST view (not a table) — rows with a leading avatar/icon, a primary + secondary line, and trailing meta. Use for people, activity, notifications, or any collection that reads better as a list than a grid. Supports a lazy-loaded variant. → references/add-list-view.md
  • add-infinite-list — Add an infinite / load-more list — items load in pages via a "Load more" button and/or scroll-near-bottom, instead of numbered pagination. Use for feeds and long collections where a pager is awkward. → references/add-infinite-list.md
  • add-virtual-table — Add a virtualized / windowed table that stays smooth with thousands of rows by rendering only the visible slice. Use when a list/table can hold 1000s of rows client-side. → references/add-virtual-table.md
  • add-table-columns — Add column visibility + row density controls to a table — a "Columns" popover that toggles which columns show (TanStack columnVisibility) and switches comfortable/compact density. Use when a table has many columns or users want to declutter it. → references/add-table-columns.md
  • add-bulk-actions — Add multi-row selection + a contextual action bar that applies one operation to the whole selection (bulk status change, bulk delete, export selected). Built on DataTable's opt-in enableRowSelection / selectionActions. Use when users act on many rows at once. → references/add-bulk-actions.md
  • add-filter-panel — Add an advanced filter / search panel — multiple controls (text, select, checkbox groups) that compose into a ListParams { search, filters } object driving a list. Use when simple toolbar filters aren't enough. → references/add-filter-panel.md
  • add-saved-views — Add named filter/sort presets ("saved views") to a list — save the current {search, filters, sort} under a name and re-apply or delete it later, persisted to localStorage. Use when users repeat the same filter/sort combinations. → references/add-saved-views.md
  • add-export-import — Add CSV export + import to a list — download rows as an RFC 4180 CSV, and import a CSV file into a parsed preview (ready to hand to a bulk-create). Use when users need to get data out of, or bulk-load data into, a resource. → references/add-export-import.md

Rich views

  • add-kanban — Add a kanban board — records grouped into status columns with drag-and-drop between them. Use for triage/pipeline views (tasks, deals, tickets) where status is the primary axis. → references/add-kanban.md
  • add-calendar — Add a calendar / month-grid view that places records on their dates. Use for scheduling, bookings, events, or any date-anchored collection. → references/add-calendar.md
  • add-tree-view — Add an expandable tree / nested list — hierarchical rows with expand/collapse and indentation. Use for folders, org charts, categories, or any parent/child hierarchy. → references/add-tree-view.md
  • add-timeline — Add a timeline / activity feed — chronological events on a vertical line, grouped by day. Use for audit logs, history, notifications, or any "what happened when" view. → references/add-timeline.md
  • add-master-detail — Turn a resource's list into a master-detail view — the list stays mounted on the left and a record detail opens in a side panel on the right via a nested route, with selection in the URL. Use for triage/inbox-style screens. → references/add-master-detail.md

Detail & pages

  • add-detail-page — Add a Detail/Show page for a resource at /<resource>/$id — loads one record, shows a DescriptionList of fields, with breadcrumb + edit/delete. Use when the user wants to view/drill into a single record. → references/add-detail-page.md
  • add-record-tabs — Add a record detail with tabs (Overview / Activity / Settings …) where the active tab is synced to the URL. Use when one record has several distinct sub-views. → references/add-record-tabs.md
  • add-related-records — Show a parent record with its one-to-many child resources inline — a titled, compact related-records table (column config, "View all" link, per-row action, empty state). Use on a detail page that lists a record's children (a customer's orders + invoices). → references/add-related-records.md
  • add-page-layout — Add a multi-column page layout — e.g. a main content column plus a right aside (summary/metadata), responsive down to one column. Use when a page needs primary content beside contextual side content. → references/add-page-layout.md
  • add-settings-page — Add a settings / control page — grouped switches, selects, and inputs with a sticky "Save changes" bar that appears when the form is dirty. Also covers a profile/account page. Use for app/user settings. → references/add-settings-page.md
  • add-chart-page — Build a dashboard/analytics view from datasets using the reusable chart components (StatCard, ChartCard, AreaChart, BarChart, PieChart). Use for overview/metrics screens. → references/add-chart-page.md

Display & feedback

  • add-data-display — Add data-display building blocks — tag list, key/value metadata panel, user (avatar+name) cell, and metric/progress tiles. Use to present record fields and small metrics consistently. → references/add-data-display.md
  • add-empty-state — Add a polished empty state — centred icon, headline, description, and primary/secondary CTAs — for first-run, no-data, and filtered-no-results cases. Use so blank screens guide the user instead of looking broken. → references/add-empty-state.md
  • add-feedback-states — Add feedback & overlay shapes — a side drawer (sheet), the loading/empty/error state kit, and inline banners. Use to give pages consistent loading/empty/error handling and slide-over panels. → references/add-feedback-states.md
  • add-notifications — Add an in-app notification center — a header bell with an unread-count badge that opens a popover feed (icon + title + body + relative time + read/unread), with mark-one and mark-all-read. Use for activity alerts, mentions, system events. → references/add-notifications.md
  • add-audit-log — Add an activity / audit trail — a vertical timeline of who did what to which record, when, with an optional field-level before→after diff. Use for history tabs, compliance trails, "recent activity" panels. → references/add-audit-log.md

Platform features

  • add-rbac — Add roles & permissions (authorization) on top of the template's authentication — a Role/Permission matrix, a server-side requireRole guard, and a RoleGate component for gating UI. Use when different users must see/do different things. Ships copy-ready code. → references/add-rbac.md
  • add-auth-method — Add extra sign-in methods on top of email/password — social OAuth (GitHub/Google) and a passwordless magic link — via better-auth. Ships a drop-in SocialButtons component and a demo catalogue. Use when login needs more than a password. → references/add-auth-method.md
  • add-global-search — Add a ⌘K-style global search across resources — a cmdk dialog/command that takes SearchSources (label + items + toResult, or a custom search(query)), groups hits by resource, is keyboard-navigable, and navigates to a result's href on select. Use for cross-resource jump-to. → references/add-global-search.md
  • add-i18n — Add a lightweight, dependency-free internationalization seam — a Locale type, per-locale dictionaries, an I18nProvider, and useTranslation() returning t(key, vars) with {var} interpolation and locale/setLocale. Use to translate UI strings across locales. → references/add-i18n.md
  • add-billing — Add a subscription / billing page — current-plan card with a usage meter, a Free/Pro/Enterprise plan picker with feature lists and a current/upgrade CTA, a payment-method row, and an invoices table (date / amount / status / download). Provider-agnostic layout; back it with Stripe. → references/add-billing.md
  • add-realtime — Make lists and metrics live — auto-refresh on an interval via refetchInterval (or the useLiveQuery wrapper), with a pause control, an "updated Ns ago" indicator, and an SSE/websocket upgrade path. Use for dashboards, activity feeds, monitoring. → references/add-realtime.md

Invariants

  • The source of truth is the repo code; templates/* are generated copies kept in sync by sync-skills. Never hand-edit templates/*.
  • Each reference's own invariants still apply — read it before copying.

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值95/100

亮点

  • 提供可直接复制的后台管理界面构建模块,涵盖表单、列表、富视图、详情页、反馈、平台功能等高频刚需场景
  • 显著提升开发效率,适用于广泛的后台管理系统开发需求
触发精准95/100

亮点

  • description 明确描述功能范围,覆盖多种组件类型,边界清晰
结构规范75/100

待提升项

  • 缺少 When to Use 章节 原报告严重程度:轻微

    文档未明确说明何时使用此 Skill

    改进建议:建议在文档开头添加 When to Use 章节,说明适用场景

  • 缺少端到端示例 原报告严重程度:轻微

    文档列出了组件目录,但缺少完整的端到端使用示例

    改进建议:建议添加一个完整的端到端示例,展示如何添加并使用一个组件

亮点

  • 结构清晰,分目录列出组件,每个组件有明确用途和参考文档链接
执行可靠80/100

待提升项

  • 未覆盖 scaffold-dashboard 未初始化的异常处理 原报告严重程度:轻微

    Skill 假设 scaffold-dashboard 已存在,但未说明如何处理未初始化的情况

    改进建议:建议在文档中添加对 scaffold-dashboard 未初始化的处理说明或错误提示

亮点

  • 依赖 scaffold-dashboard 基础,工具来源明确,组件模板生成机制清晰
证据可验 (前四项均值)86/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 账号、密钥或授权

    使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。

    主文档提及 · 第 73 行

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。