Langsung ke konten
Skillpedia
Analisis & spreadsheet101k Β· #938

live-artifact

Fungsinya

Alat ini membuat visualisasi data yang bisa disegarkan (refresh). Anggap saja seperti dashboard atau laporan yang menampilkan informasi penting dan bisa diperbarui dengan data baru tanpa perlu dibuat ulang dari awal.

Kapan dipakai

  • βœ“Saat Anda membutuhkan dashboard langsung dengan data yang terus berubah.
  • βœ“Untuk membuat laporan yang bisa diperbarui dengan informasi baru.
  • βœ“Saat Anda menginginkan visualisasi data yang dapat digunakan ulang dan andal.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/nexu-io/open-design/blob/main/design-templates/live-artifact/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuatkan dashboard yang bisa di-refresh dengan data penjualan bulan lalu.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Alat ini menggunakan template HTML dan data yang terpisah. Ketika data berubah, visualisasinya otomatis diperbarui sambil tetap mempertahankan desain.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

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.

…

Pertanyaan umum

Apa itu 'Live Artifact'?

Live Artifact adalah visualisasi data (seperti laporan atau dashboard) yang bisa diperbarui dengan informasi baru tanpa Anda membuatnya ulang sepenuhnya. Visualisasi ini didasarkan pada template dan data yang bisa diganti.

Bagaimana cara data diperbarui?

Alat ini dapat mengambil data dari sumber yang terhubung (seperti Notion atau GitHub) atau dari file lokal. Ketika data di sumbernya diperbarui, visualisasinya bisa di-refresh agar sesuai dengan data terbaru.

Apakah ini bisa dipakai untuk jenis data apa pun?

Bisa, selama datanya dapat disajikan dalam bentuk visualisasi. Alat ini cocok untuk dashboard, laporan, dan apa pun yang membutuhkan data terbaru yang andal.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
101k
Peringkat
#938
Lisensi
Apache-2.0
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa