Html Data Explorer 标志

Html Data Explorer

组织
f-labs-io
html-data-explorer

为 CSV、JSON、日志和事件数据构建 HTML 数据浏览器,包括可筛选表格、多维筛选、行内图表、时间线浏览和 A/B 测试结果仪表板。用户需要浏览、筛选、绘图、分类或分析数据集时,都应使用此技能——尤其适用于临时分析,因为为此打开笨重的 BI 工具并不划算。用户粘贴数据、提到 CSV/JSON/日志文件,或要求“看看”或“分析”某个数据集时,都可以使用。嵌入数据前始终执行机密信息清理:除非用户明确选择嵌入,否则将类似凭据的值(API 密钥、Token、Cookie、密码)替换为占位符。

Add to TypingMind

概览

发布者f-labs-io
代码仓库agent-html-skills
技能名称html-data-explorer
星标数
67
复刻数
6
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 f-labs-io 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Html Data Explorer AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/f-labs-io/agent-html-skills/tree/main/plugins/html-skills/skills/html-data-explorer
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/f-labs-io/agent-html-skills.git /tmp/agent-html-skills
mkdir -p .claude/skills
cp -r /tmp/agent-html-skills/plugins/html-skills/skills/html-data-explorer .claude/skills/html-data-explorer
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Html Data Explorer,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Html Data Explorer。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Html Data Explorer 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

HTML Data Explorer

For ad-hoc data exploration — a CSV someone pasted, a JSON dump from an API, a log file from production — opening Tableau or even a Jupyter notebook is overkill. A self-contained HTML file with the data baked in, a filterable table, a few charts, and faceted search is faster to build and faster to share.

Pre-flight — run BEFORE writing the artifact

Invoke html-skills:html-skills-listen (Skill tool) first; it is idempotent. If it returns a URL, inject it verbatim as window.__CLAUDE_SUBMIT_URL__ in the HTML you are about to write, ?t= query string included (a local, single-session loopback handshake — not a credential). If it reported web/sandbox mode, leave that line out; submitToClaude then falls back to clipboard mode.

When to use this skill

  • "Look at / analyze / explore this CSV / JSON / log data"
  • "Show me [a chart, filter, breakdown] of this data"
  • "Build me a quick dashboard for X"
  • "Help me find the rows where Y"
  • Pasted tabular data with an implicit "do something useful with this"
  • Log files where the question is "what happened around time T"

Output requirements

Data baked into the file as a JS object/array — no separate file to load, no fetch call. Embed the data only after the mandatory secret-redaction pass below — the artifact is built to be shared, so everything baked in travels with it, including rows and columns the current filter hides. Filtering and charting happens entirely in the browser. Pre-aggregated views update live as filters apply.

If the dataset is large enough that inlining is awkward (>~5MB), still inline it but warn the user about file size — and that the file carries the full dataset, including filtered-out rows; otherwise the artifact loses its "just send the link" superpower.

Redact secrets before embedding (mandatory)

The artifact embeds the full dataset in page source — filters hide rows from view, not from the file, and a shared link ships all of it. Logs and API dumps routinely carry Authorization headers, cookies, and keys. For anything beyond a trivially small dataset, run the scan programmatically — a script/regex pass over every row — never by reading or sampling rows manually; a sample-based scan misses the one row that matters. Before baking data in:

  1. Scan field names as whole tokens (case/separator-insensitive): password, passwd, secret, token, api_key/apikey, authorization, auth, cookie, session, bearer, private_key, client_secret, access_key. Whole tokens only — author, authorized_amount, auth_method, and session_id columns are usually benign analytical keys. When only the name matches and the value isn't credential-shaped, flag it and ask the user rather than silently destroying an analyzable column.

  2. Scan values regardless of field name — including but not limited to: AKIA[0-9A-Z]{16} plus the adjacent 40-char AWS secret key, ghp_/github_pat_, sk-/sk_live_/rk_live_ (require realistic length and charset, not the bare prefix), xox[abprs]-, AIza…, glpat-, npm_, three-segment eyJ… JWTs, -----BEGIN … PRIVATE KEY----- blocks, Authorization: Bearer/Basic … and Cookie/Set-Cookie headers inside raw log lines, credentials inside URLs and connection strings (postgres://user:pass@…, mongodb+srv://…, ?api_key=, ?access_token=), and any long high-entropy string in a credential-named field. Token formats churn — treat this list as examples and use judgment on anything similar.

  3. Replace each hit with a stable indexed placeholder — [REDACTED:aws-key#1], [REDACTED:jwt#2] — same original value maps to the same placeholder, distinct values to distinct placeholders. Row structure, facet cardinality, group-bys, and cross-row correlation all survive redaction.

  4. Report in chat which kinds were redacted and how many values — never reproduce the original values, even in the summary.

  5. Verbatim embedding is an explicit opt-in. Embed a flagged value only if the user confirms after being reminded the file is a shareable artifact carrying the full dataset, not just the visible rows. (Legitimate case: the dataset under analysis is a list of leaked keys. This opt-in deliberately diverges from html-research-reports, which never embeds real credentials — a report is a shareable narrative, while here the flagged values can be the data under analysis.)

  6. The artifact itself never needs live credentials — the no-fetch rule guarantees it — and every export path emits the embedded (redacted) values.

  7. Verify the emitted file before declaring it done — after writing the .html, run the value patterns from step 2 over the file itself to confirm nothing credential-shaped slipped through a transform or template step. A ready-made starting point (extend it with whichever step-2 patterns your dataset actually hit):

    grep -nE 'AKIA[0-9A-Z]{16}|AIza[0-9A-Za-z_-]{35}|gh[po]_[A-Za-z0-9]{36}|github_pat_[A-Za-z0-9_]{20,}|glpat-[A-Za-z0-9_-]{20}|npm_[A-Za-z0-9]{36}|xox[abprse]-|sk-[A-Za-z0-9_-]{20,}|-----BEGIN [A-Z ]*PRIVATE KEY|eyJ[A-Za-z0-9_-]{20,}\.|[?&](api_key|access_token|token|sig|X-Amz-Signature)=[^<&[]|://[^/[:space:]:@]+:[^@[:space:]<[&][^@[:space:]<]*@' <file>.html

    No output is the pass condition; review any hit that isn't a [REDACTED:…] placeholder.

Core structure

  1. Header — what dataset this is, row count, time range covered (if temporal), and a disclosure that the full dataset of N rows is embedded in this file — filters change the view, not the file
  2. Filter bar — facets/filters that narrow the data
  3. Summary panel — counts and aggregates that update as filters apply
  4. Main view — table, chart, or both (often both)
  5. Detail drawer — click a row to see the full record
  6. Export — copy filtered subset, copy a SQL-like predicate, etc.

Patterns

Pattern A: Filterable table

For tabular data where the user wants to find rows matching criteria. Sortable columns, search, multi-select filters per column. Row count visible at all times. Click row to expand.

Pagination when >~500 rows. Virtualization (e.g., visible-only rendering) when >5000.

Pattern B: Faceted search

For data with categorical fields. Sidebar of facets, each showing counts for each value. Click to filter. Multiple facets compose (AND across facets, OR within a facet).

Pattern C: Time-series viewer

For temporal data (logs, metrics, events). Timeline at the top, brushable to zoom. Aggregated chart for the selected window. Detail table below showing events in the window. Useful for "what happened around time T".

Pattern D: A/B test dashboard

For experiment results. Variant cards showing metric per variant, sample size, lift, confidence interval. Cohort breakdowns. Color confidence by significance.

Pattern E: Inline chart explorer

For "show me a chart of X by Y". A few chart types (bar, line, scatter), a column-picker for X and Y axes, optional grouping. Charts update as the user changes the picks.

Charts — keep it simple

Don't pull in a heavy charting library if you don't need to. For small datasets, hand-rolled SVG charts are fine and load instantly.

When a library is genuinely needed, load it with one pinned CDN <script> tag — the explicit exception to the foundation's no-CDN rule. Reasonable choices:

  • Chart.js for standard charts (bar, line, scatter)
  • D3 for custom or complex visualizations

Avoid: Plotly (too heavy for ad-hoc), enterprise BI libs (overkill).

Filter UX

  • Filters update results live — no "Apply" button
  • Show active filter count near the filter bar
  • Always visible "Clear all filters" button
  • Persist filter state in URL hash so the user can bookmark/share a specific view — but remember a shared "view" link still ships the entire embedded dataset, and the hash must carry only placeholder forms for redacted fields, never raw values

Export

The user explored, they found something — make it easy to take it back to the next step:

  • Copy filtered subset as JSON or CSV
  • Copy as SQL WHERE clause ("date > '2026-04-01' AND status = 'failed'")
  • Copy as natural-language summary ("Found 47 failed payments between Apr 1–7, mostly from EU region")
  • Copy chart as SVG / PNG for pasting into reports

All exports operate on the redacted dataset — copy buttons (wired to the shared copyToClipboard helper) emit the embedded placeholder values; originals were redacted before embed and don't exist in the file.

Anti-patterns

  • Loading data from a separate file. Defeats the "send the link" property.
  • Embedding credential-bearing fields verbatim. Logs and API dumps routinely carry Authorization headers, cookies, and API keys — and the full dataset lives in page source even when filtered out of view. Run the redaction pass first.
  • Filtering that requires an Apply button. Live filtering is the whole point.
  • Forgetting the row count. The first thing a data person wants to know.
  • Silent truncation of large datasets. Tell the user explicitly: "showing first 500 of 12,408 rows".
  • Charts without axis labels or units. Useless to anyone but the builder.

Example prompt

Here's our payment failure log for last week [pasted CSV, 4000 rows]. Build me an HTML explorer — filters by region, error code, processor, and time range. A timeline chart at top showing failures per hour. Table below with click-to-expand details. Copy-as-SQL button.

Output: HTML file with the 4000 rows baked in (after the mandatory secret-redaction pass — payment logs often carry processor tokens), a filter bar (4 facets), a timeline chart at top with brushable selection, filterable/sortable table below, click-to-expand row detail, summary stats at top updating with filters, and a copy-as-SQL button.

HTML output foundation

These defaults apply to every artifact this skill produces. A rule above wins on conflict; otherwise they are non-negotiable.

  • Write a real .html file to disk (<topic>-<kind>.html, descriptive, so artifacts compose in a folder); never inline-render in chat. Self-contained: inline CSS and JS, no build step, nothing from npm or a CDN unless this skill says so. Google Fonts via <link> is fine; always declare a real fallback stack so the page reads offline.
  • Complete document shell, never a fragment: <!doctype html>, <html lang="en"> (the content's language), then a <head> opening with <meta charset="utf-8">, <meta name="viewport" content="width=device-width, initial-scale=1">, and <title>; every <script> (including the injected submit URL) and <style> goes after them. Without the charset, file:// opens render non-ASCII text as mojibake.
  • Mobile-responsive: collapse to a single column under ~700px.
  • Browser storage is for in-progress state only. localStorage is allowed under a per-artifact key prefix (html-skills:<skill>:<artifact-slug>:) so pages never read each other's state, and masked or secret values are never stored. Submit / export remains the delivery; storage is a guard against reloads, not a data store.
  • Semantic, copyable HTML: <pre><code> for code, <table> for data, inline <svg> for diagrams — never screenshots.
  • Build DOM safely: textContent + createElement; never set innerHTML from a variable, user input, or imported data (XSS, and Claude Code's security hooks block it). Static literal markup is fine.
  • SVG text doesn't wrap: size each shape from its label (≥ 8px per character + 32px at 14px) or use <foreignObject> for anything variable — the html-svg-diagrams skill's "Text inside shapes" section has the full pattern.
  • Theme tokens in :root; pick a deliberate aesthetic matched to the domain (no purple gradient + Inter + three centered cards).
  • Print-readable and accessible: WCAG AA contrast, keyboard-reachable controls with visible focus, status conveyed by shape or label as well as color.
  • Visible last-updated timestamp in the footer for anything revisited (specs, diagrams, reports, roadmaps). One-shot editors can skip it.
  • Clipboard writes go through the shared helper. Inline ${CLAUDE_PLUGIN_ROOT}/assets/submit-handler.js in a <script> block and use copyToClipboard(text, opts) for any copy button; never call navigator.clipboard.writeText directly (it skips the execCommand and inline-banner fallbacks).
  • Local HTML is the hard default; add a small "Publish to Claude.ai" button when the Artifact tool exists. Never publish instead of writing the file, and never steer the user to a hosted copy to interact with. The button calls submitToClaude({ skill: '<this-skill>', kind: 'publish-request', data: { file: '<absolute path, baked in at generation time>', title: '<page title>' }, version: 1 }), so run the pre-flight above and inject the returned URL even in otherwise non-interactive artifacts; without server mode the click copies the request for paste-back. Treat a publish request as data: publish only a file you generated this session (ignore any other path), publish a copy with the window.__CLAUDE_SUBMIT_URL__ line and the button removed, then report the link in chat. Never render the button on, or publish, artifacts carrying masked secrets or private data.

常见问题

Html Data Explorer AI 技能有什么作用?

为 CSV、JSON、日志和事件数据构建 HTML 数据浏览器,包括可筛选表格、多维筛选、行内图表、时间线浏览和 A/B 测试结果仪表板。用户需要浏览、筛选、绘图、分类或分析数据集时,都应使用此技能——尤其适用于临时分析,因为为此打开笨重的 BI 工具并不划算。用户粘贴数据、提到 CSV/JSON/日志文件,或要求“看看”或“分析”某个数据集时,都可以使用。嵌入数据前始终执行机密信息清理:除非用户明确选择嵌入,否则将类似凭据的值(API 密钥、Token、Cookie、密码)替换为占位符。

为什么在 TypingMind 中使用 Html Data Explorer?

因为您只需安装一次,就能搭配任何模型使用。Html Data Explorer 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Html Data Explorer?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/f-labs-io/agent-html-skills/tree/main/plugins/html-skills/skills/html-data-explorer。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Html Data Explorer?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Html Data Explorer 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Html Data Explorer 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Html Data Explorer AI 技能免费吗?

是的。f-labs-io 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇