← 返回列表
全部 Skill›内容与媒体 Content & Media›live-dashboard

live-dashboard

作者 @nexu-io · 语言 en
Notion-style team dashboard rendered as a Live Artifact. A single-page, self-contained HTML dashboard with KPIs, a 7-day sparkline, a real-time activity feed and a linked-database task table — wired to Notion via the Composio connector catalog. Refreshes on demand and when the artifact is opened. Falls back to seeded mock data when no connector is bound, so it works offline / in screenshots / in the picker preview.
内容与媒体 Content & Media设计需海外环境待翻译
最近源活动
—
检测 SKILL.md 语言
en
星标 ★
109,317
分支 Fork
0
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

Live Dashboard

You are a senior product-designer-engineer building a Live Artifact —

an HTML page that behaves like a working dashboard, not a mockup. Your

output ships, not only renders.

Pre-flight (must complete before emitting any HTML)

  1. Read assets/template.html — start from this skeleton verbatim. Do

not rebuild the shell from scratch. Override only what the user's

brief or the active DESIGN.md require.

  1. Read references/layouts.md — pick exactly one of the three

documented layouts (A · classic dashboard, B · kanban-flavored,

C · KPI-only hero). State your choice in your reply.

  1. Read references/components.md — copy KPI-card, sparkline, activity

row, and database row markup verbatim, then re-skin per the active

DESIGN.md. Do not invent new component shapes.

  1. Read references/connectors.md — only when inputs.connector !== mock.

Emit a sibling connectors.json listing every event the artifact

subscribes to and every read endpoint it polls.

  1. Read references/checklist.md — every P0 row must be true before

you emit index.html. Quote each P0 row inline in your reply with

[x] or [ ]. Do not emit while any P0 is unchecked.

Build order

  1. Lock visual direction from the active DESIGN.md. Display face

should be the system / sans face Notion-leaning systems use (SF Pro,

Inter as body, never Inter Display as a hero face). Body 14/22.

  1. Topbar: breadcrumb (workspace_name / Workspace / page_title) on

the left, a <live-pill> on the right showing one of three states:

Live · synced (green pulse), Syncing… (blue), Stale · <ago>

(amber, after stale_after_seconds).

  1. Page header: a Notion page-emoji (a single, semantically

relevant emoji — never a generic 🚀 ✨ 🔥), a page-title at 40px

weight 700 letter-spacing -0.01em, a meta row with last-edited-by +

"Last refreshed <timeAgo>" + the auto-toggle button + the Refresh

button.

  1. Callout explaining the Live Artifact contract — pulled-from-where,

refresh-when. One line. No marketing language.

  1. KPI grid: respect inputs.kpi_count. 1px hairline grid, no

shadows, no rounded internal cards. Numbers `font-variant-numeric:

tabular-nums`, weight 600, letter-spacing -0.01em. Each KPI gets a

small grey delta line (↑ 6 vs last week).

  1. Two-column block: a sparkline card (SVG, hand-rolled, no chart

library) + the activity feed card. Sparkline shows a 7-day series

with subtle accent fill at 10% alpha and a 2px stroke.

  1. Linked database: a Notion-style table — db-head (uppercase

12px label-grey) + db-row rows. Status pills use the Notion

five-color set (Done / In progress / Blocked / In review / To do).

Person chips use a colored 18px round avatar with two-letter

initials.

  1. Footer: source attribution (`Source: Notion API · workspace

<workspace_name>`) and connector slug.

Live behavior (the part that earns the "Live" in Live Artifact)

Wire these in a single <script> block at the bottom of index.html:

  • init() runs refresh({silent: true}) 600ms after mount — the

"refresh on open" semantic.

  • The Refresh button calls refresh({silent: false}). Show a tween on

every numeric KPI between old and new values, flash the changed row

in the table for 1.4s, prepend a fresh activity row with a left-pad

highlight for 2s, and surface a bottom toast describing the diff. The

tween/flash hooks are already wired in `assets/templat

评论
Nnexu-io
nexu-io
nexu-io/open-design
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@nexu-io
所属大类内容与媒体 Content & Media / 设计
国内可用性需海外环境
最近源活动—
风险提示无
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。