跳到正文
Skillpedia
网站与界面(前端)11k · #11680

build-dashboard

它能做什么

这项技能为 AI 在 holaOS 中构建仪表板页面提供了现成的起点。适合希望拥有整洁、有条理的应用页面,又不想从零设计每个部分的人。

适用场景

  • ✓当你要求在 holaOS 应用中制作仪表板、列表视图、看板或日历时。
  • ✓当某个应用已经设置好数据,现在需要一个可视化页面时。
  • ✓当你希望工作区窗格既整洁又有条理的时候。

技能链接

https://github.com/holaboss-ai/holaOS/blob/main/runtime/harnesses/src/embedded-skills/build-dashboard/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/holaboss-ai/holaOS/blob/main/runtime/harnesses/src/embedded-skills/build-dashboard/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请为我的播客嘉宾名单制作一个仪表板,用看板视图显示各阶段,用日历显示录制时间。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会复制一个经过验证的起始版面,并填入你的数据和标签。它使用共享的样式设置,使页面与工作区的其他部分保持一致。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

build-dashboard

The agent before you reliably produces ugly dashboards because it starts from a blank page and reaches for default shapes (single-column full-width cards, KPI strips that don't fit, sidebars that don't earn their space). This skill exists to bypass that default. The visual decisions are already made — your job is to fill in the data and copy.

When to use

  • The user asked for a dashboard, workspace pane, list view, kanban, calendar, or "let me see my X"
  • The app's app.ts already declares resource(...) rows via the SDK (set up via the app-builder-sdk skill first)
  • The app dir needs a src/client/ directory

Skip this skill when:

  • Integration-only module (Slack/Discord/Stripe-style MCP-only) — those use only app-builder-sdk
  • Marketing landing page → use frontend-design
  • One-off static HTML report → not this product class

The two non-negotiables

  1. Copy the bundled reference. Don't invent. reference/messaging-dashboard/src/client/ is the canonical starting point. Three files below are verbatim across every dashboard; the rest gets customized per shape.
  2. Two style imports, not one. @holaboss/ui/styles.css only bakes in utilities used inside the library. Every Tailwind class your src/client/ writes needs your own app-side compile pass. The register-time lint workspace_app_missing_tailwind_compile rejects apps missing this.

The shape catalog — pick one

Look at the user's data, NOT at "what dashboards usually have". Most apps are shape 1.

# Shape Pick when the data is… Template
1 Queue / feed scheduled items, drafts, an action queue, an activity log, anything time-ordered reference/messaging-dashboard/ (full, ready to copy)
2 Dense table flat records (CRM contacts, log rows, ticket list) that the user scans like a spreadsheet Replace shape-1's messages-table.tsx with the <Table> primitive (see snippet below)
3 Kanban rows that move between named statuses; user drags between columns Replace shape-1's main column with horizontal status columns (see snippet below)
4 Detail / form a single resource the user edits or watches in depth Replace shape-1's main column with <Field> form (see snippet below)
5 Calendar week rows with start_time + duration that pin to a day-grid Replace shape-1's main column with @holaboss/ui's Calendar primitive

Shapes 2–5 still keep shape 1's header, app.css, connection pill, status badge, and tokens. Only the main content area changes.

ASCII for shape 1 (the most common, read this even if you're using another shape):

                ┌────────────────────────────────────────────┐
                │  Outgoing ●            ● Connected · @jot  │  ← header
                │  5 queued · agent will send on schedule    │
                │                                            │
                │  NEEDS ATTENTION                           │
                │  ┌──────────────────────────────────┐     │  ← attention strip
                │  │ #ops · Failed · 3h ago           │     │    (warning-bordered,
                │  │  Composio retry exhausted…       │     │     always-visible Retry)
                │  │                  [Retry] [Edit]  │     │
                │  └──────────────────────────────────┘     │
                │                                            │
                │  TODAY ───────────────────────────── 02   │  ← day divider
                │  NOW · 08:42 ─────────────────────────    │  ← "now" cursor on rail
                │  09:00 ● #general · ● Scheduled            │  ← next-up marker
                │        Heads-up: pricing page goes live…  │
                │  17:00 · #growth · ● Draft                 │
                │        Weekly recap — KPI strip…           │
                │                                            │
                │  TOMORROW ────────────────────────── 02   │
                │  …                                         │
                └────────────────────────────────────────────┘
                       (max-w-3xl centered on bg-background)

Foundation — paste verbatim into every dashboard

These five files do NOT vary per shape. Copy them exactly.

src/client/app.css (13 lines)

/* App-local Tailwind compile entry.
 *
 * `@holaboss/ui/styles.css` only bakes in utilities used INSIDE the library.
 * Every Tailwind class your `src/c
常见问题

它适用于营销页面吗?

不适用。它用于应用仪表板。营销落地页更适合由另一项设计技能处理。

应用需要先存在吗?

需要。在这项技能构建页面之前,应用的数据应当已经设置好,通常借助应用构建技能完成。

每个仪表板看起来都一样吗?

版面以相同的基础为起点,但内容、标签和分区会根据每个应用进行定制。

详情

作者的原始描述

Build the visual layer of a holaOS dashboard app — TanStack Start + @holaboss/ui + workspace tokens. Use when an app has SDK primitives wired (via app-builder-sdk) AND needs a `src/client/` UI surface. NOT for marketing pages, NOT for snapshot HTML reports.

repo: holaboss-ai/holaOS

热度

GitHub 星标
11k
排名
#11680
许可证
—
更新时间
2026/10/28

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能