Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính101k · #938

live-artifact

Skill này làm gì

Công cụ này tạo trực quan hóa dữ liệu có thể làm mới. Hãy nghĩ đến một bảng điều khiển hoặc báo cáo hiển thị thông tin quan trọng và có thể cập nhật với dữ liệu mới mà không cần làm lại từ đầu.

Khi nào nên dùng

  • ✓Khi bạn cần bảng điều khiển trực tiếp với dữ liệu thay đổi.
  • ✓Để tạo báo cáo có thể cập nhật thông tin mới.
  • ✓Khi muốn một trực quan hóa dữ liệu có thể tái sử dụng và đáng tin cậy.

Liên kết skill

https://github.com/nexu-io/open-design/blob/main/design-templates/live-artifact/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/nexu-io/open-design/blob/main/design-templates/live-artifact/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tạo bảng điều khiển có thể làm mới với dữ liệu doanh số của tháng trước.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ dùng một mẫu HTML và dữ liệu tách riêng. Khi dữ liệu thay đổi, nó tự động cập nhật trực quan hóa trong khi giữ nguyên thiết kế.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Live Artifact Skill

Create an OpenDesign live artifact: a project-scoped, previewable HTML artifact whose data can later be refreshed without redesigning the presentation.

Resource map

live-artifact/
├── SKILL.md
└── references/
    ├── artifact-schema.md      ← `references/artifact-schema.md`: artifact files, DTO shape, template binding rules
    ├── connector-policy.md     ← `references/connector-policy.md`: connector safety, redaction, credential boundaries
    └── refresh-contract.md     ← `references/refresh-contract.md`: source metadata, refresh execution, snapshots

Current status

Use the references in this directory as the source of truth for the live artifact file contract. Prefer daemon wrapper commands over raw HTTP when registering or updating live artifacts.

When to use this skill

Use this skill when the user asks for a data-backed view that should remain useful after the first render, for example a live dashboard, refreshable report, synced status page, auditable data view, or artifact that can later be refreshed from local/project data or connectors.

Before creating files, decide whether the user actually wants a live artifact or a normal static artifact:

  • Use a live artifact when the user mentions refresh, sync, recurring updates, connector-backed data, source/provenance tracking, dashboards, reports, or reusable data-backed views.
  • Use a normal static artifact when the user only wants a one-off HTML/mockup/image/file and does not need refresh, source metadata, or data/provenance panels.
  • If the intent is ambiguous, ask one short question: “Should this be refreshable/live, or just a static artifact?”

Workflow

  1. Resolve scope and data source without blocking on connected connectors

    • Identify the preview goal, audience, data freshness expectations, and whether refresh should be possible later.
    • If the user explicitly names a connector/source such as Notion, GitHub, Slack, or Google Drive, do not ask “where should the data come from?” before checking daemon connector tools.
    • Prefer local/project sources or daemon connector tools when available.
    • Do not call provider APIs directly when a daemon connector/wrapper exists.
    • If connector data is needed, first list connectors with "$OD_NODE_BIN" "$OD_BIN" tools connectors list --format compact. If the named connector is present with status: "connected", choose an appropriate read-only auto tool from its catalog and execute it through the connector wrapper.
    • For Notion specifically, a connected notion connector plus a user brief that names Notion is enough to start with notion.notion_search using a query derived from the requested artifact/topic. Use notion.notion_fetch_database only when the user supplied a database id or the search result clearly identifies one.
    • Ask the user a data-source question only when no matching connected connector exists, multiple connected candidates fit equally well, or the requested artifact has no usable topic/query to search for. If you must ask, be specific: ask for the page/database/topic or permission to search broadly, not “where is the Notion data source?”
  2. Author the source files

    • Write template.html as the human-designed HTML template. The daemon hydrates it with data.json using the html_template_v1 binding contract — stay inside it or hydration fails and the raw template ships with visible {{…}} tokens:
      • Scalars: {{data.path.to.value}}. Paths start with data, dot-separated; numeric array indexes are allowed ({{data.kpis.0.value}}). Every binding must resolve to a single string/number, not an object or array.
      • Lists: repeat one element with data-od-repeat="item in data.items", then bind loop-scoped fields inside it as {{item.label}} (or {{item}} for a scalar array). One level only; data.* still works inside the repeat for globals.
      • Do NOT hand-loop in a <script> (scripts are stripped from previews), and do NOT reference a bare loop variable like {{metric.value}} without a matching data-od-repeat scope — that binding is unresolvable. Nested repeats, conditionals, filters, helpers, and raw/triple-brace interpolation are unsupported.
    • Write data.json as the canonical preview data used by those bindings — real values, not placeholders.
    • Write artifact.json with the live artifact metadata, preview declaration, document declaration, and safe source descriptors.

…

Câu hỏi thường gặp

“Live artifact” là gì?

Đó là trực quan hóa dữ liệu (như báo cáo hoặc bảng điều khiển) có thể cập nhật bằng thông tin mới mà bạn không cần tạo lại hoàn toàn. Nó dựa trên một mẫu và dữ liệu có thể thay thế.

Dữ liệu được làm mới bằng cách nào?

Công cụ có thể lấy dữ liệu từ các nguồn đã kết nối (như Notion hoặc GitHub) hoặc tệp cục bộ. Khi dữ liệu ở nguồn được cập nhật, trực quan hóa có thể được làm mới để phản ánh thay đổi đó.

Tôi có thể dùng công cụ này cho mọi loại dữ liệu không?

Có, miễn là dữ liệu có thể trình bày dưới dạng trực quan hóa. Công cụ phù hợp với bảng điều khiển, báo cáo và mọi thứ cần dữ liệu cập nhật, đáng tin cậy.

Chi tiết

Mô tả gốc của tác giả

Create refreshable, auditable OpenDesign artifacts backed by connector or local data. Trigger when the user asks for live dashboards, refreshable reports, synced views, or reusable data-backed artifacts.

repo: nexu-io/open-design

Độ phổ biến

Sao GitHub
101k
Vị trí xếp hạng
#938
Giấy phép
Apache-2.0
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự