Hai Visual Report 标志

Hai Visual Report

社区
hylarucoder
hai-visual-report

将想法、PRD、计划、评审、架构主题或其他有实质内容的资料,整理成一份独立完整、包含多个部分的 HTML 报告,配以适合内容结构的图表、矩阵、证据、风险和后续行动,同时保留原资料的含义。适用于用户要求制作可视化、HTML、网页或类似幻灯片的报告(可视化报告、做成网页、汇报页)。如果要制作单张、可分享的图片,请使用 create-visual-card;此技能负责呈现形式,不负责底层架构或产品判断。

Add to TypingMind

概览

发布者hylarucoder
代码仓库hai-stack
技能名称hai-visual-report
星标数
284
复刻数
15
附带文件
6
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 6 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 hylarucoder 发布于 GitHub。请在安装前查看技能的源文件。

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hylarucoder/hai-stack.git /tmp/hai-stack
mkdir -p .claude/skills
cp -r /tmp/hai-stack/skills/hai-visual-report .claude/skills/hai-visual-report
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

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

一旦请求与技能匹配,模型就会自动加载 Hai Visual Report。

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

Hai Visual Report

For Chinese readers, see SKILL.zh_CN.md. The English SKILL.md is the execution source of truth.

Overview

Turn an idea, requirement, proposal, review result, or goal document into a readable, presentable, multi-section HTML report — a real .html artifact with a title, diagrams, matrices, sections, and next steps. The goal is a better reading experience of the source, with the important parts brought forward — not a shorter summary of it. When given a document, carry its substance through and use visuals to highlight and make it scan well (see Core Principle).

Two common misclassifications to rule out first:

  • This is not create-visual-card. A visual card is a single-screen summary for sharing; hai-visual-report is a multi-section report for understanding structure, judgment, tradeoffs, route, risk, and evidence.
  • This is not a Markdown-only answer. The user wants a generated HTML file, not prose.

Core Principle

Enhance readability with emphasis — don't summarize the content away.

Preserve the source's meaning while improving navigation, emphasis, and reading flow. Reword, reorder, or trim genuine repetition when useful, but do not replace a substantive document with a bullet summary. Visuals support the content; they do not excuse dropping it. For a raw idea rather than a finished source, distinguish supplied facts from assumptions and newly authored judgment.

Report Content Model

These blocks are optional scaffolding. Choose only what helps the source; do not emit empty or ceremonial blocks:

  1. Header: title, scope, generation date.
  2. Verdict (optional): if the source itself states a conclusion, surface it here as an entry point. Don't manufacture a condensed judgment that substitutes for the body; omit the block rather than inventing one.
  3. Structure Map: Mermaid or layout diagram of actors, relationships, flow, or decision path — placed near the top as the reader's coordinate system. This is navigation, not a summary.
  4. Core Sections: the source body carried through theme by theme, with visuals only where they clarify a relationship, comparison, sequence, hierarchy, or evidence set.
  5. Decision Matrix: options, risks, cost, value, or priority.
  6. Timeline / Phases: stages, exit proof, and next step when execution is involved.
  7. Risks and Proof: key risks, validation method, pass/fail signal.
  8. Next Move: explicit next action.

Pick the visual structure for each block from the content itself — complex relationships become a Mermaid graph, a clear flow becomes a timeline or stepper, option comparison becomes a matrix, risk becomes a grid, scope becomes inclusion/exclusion panels.

Workflow

  1. Identify report type, which sets the emphasis of the eight blocks:

    • Idea report: idea value, opportunity cost, validation path.
    • Requirement report: requirement structure, scope, acceptance, risk.
    • Goal report: target, phases, todos, verification.
    • Review report: issues, evidence, recommendation, priority.
    • Architecture-style report: current chain, boundary, options, why-not, red/blue review.
  2. Map the source, then decide where to add emphasis (apply the Core Principle). Read the whole input and note its sections and key points, so the report carries the same substance. Then decide where a visual (map, matrix, stepper, card grid) or typographic emphasis would help the reader — that's where you add value, rather than by cutting the content into a summary. If information is genuinely missing, state assumptions rather than inventing facts, and keep facts, assumptions, and judgments visibly separate.

  3. Read the output shape before writing. Open references/output-template.md for the delivery format and references/html-skeleton.md for a minimal Tailwind + Mermaid scaffold of the eight blocks, so you produce against the target instead of inventing a page layout.

  4. Write the HTML.

    • Output one complete .html file.
    • Follow a user-specified path. Otherwise create a unique temporary directory with mktemp -d and write the report there; do not rely on an unresolved environment variable.
    • Keep CSS and JS inline or CDN-based (Tailwind CDN and Mermaid CDN are fine); avoid project-local assets unless requested, so the .html stays a single portable artifact the user can open or send without a build step.
    • Use Chinese UI copy for Chinese requests and English UI copy for English requests. Keep code identifiers unchanged.
  5. QA, then return the path. If the report contains Mermaid, run node scripts/lint_mermaid.js <file.html> and fix every ERR; treat density warnings as a prompt to simplify. Then render the page with node scripts/render_report.mjs <file.html> and inspect the generated full-page PNG for failed diagrams, overflow, clipping, unreadable type, and broken hierarchy. If browser rendering is unavailable, state that visual QA is incomplete rather than claiming a pass.

Mermaid label safety

Mermaid breaks on special characters in unquoted node/edge labels — / is the most common culprit (A[Timeline / Phases] is a syntax error), along with (), [], {}, <>, &, :, and #. Always wrap any label containing punctuation in double quotes:

  • ❌ A[Timeline / Phases] → ✅ A["Timeline / Phases"]
  • ❌ B[Risks/Proof] → ✅ B["Risks/Proof"]

If a quoted label still errors (or you need the character inside quotes), use the HTML entity code: / → #47;, ( → #40;, ) → #41; — e.g. A["Timeline #47; Phases"]. When in doubt, quote every label. The bundled linter (step 5) flags unquoted slashes as ERR.

Style constraints

  • Quiet, professional report style — not a marketing landing page.
  • Use cards only for repeated findings, options, risks, metrics, or callouts.
  • If the report comes from an architecture review, preserve architecture-map-first, options matrix, why-not alternatives, and red/blue adversarial review (the judgment itself stays owned by hai-architecture — see below).

Output

Read references/output-template.md and report the real HTML and preview PNG paths, source-fidelity status, and completed QA. Do not duplicate the delivery schema here or claim checks that were not run.

Two traps to avoid

  • Summarizing instead of enhancing. The reader should retain the source's substantive meaning.
  • Mixing facts, assumptions, and judgments together so the reader cannot tell which is which.

Use a different skill when

  • The user wants a single visual card, info card, social card, or one-screen summary — use create-visual-card.
  • The user needs architecture-level judgment (APoSD/Ousterhout review, module-boundary critique) — use hai-architecture. Even when they also want HTML, the architecture judgment is owned by hai-architecture; this skill renders a report, it does not produce the architecture verdict.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Hai Visual Report AI 技能有什么作用?

将想法、PRD、计划、评审、架构主题或其他有实质内容的资料,整理成一份独立完整、包含多个部分的 HTML 报告,配以适合内容结构的图表、矩阵、证据、风险和后续行动,同时保留原资料的含义。适用于用户要求制作可视化、HTML、网页或类似幻灯片的报告(可视化报告、做成网页、汇报页)。如果要制作单张、可分享的图片,请使用 create-visual-card;此技能负责呈现形式,不负责底层架构或产品判断。

为什么在 TypingMind 中使用 Hai Visual Report?

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

如何在 TypingMind 中安装 Hai Visual Report?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/hylarucoder/hai-stack/tree/main/skills/hai-visual-report。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Hai Visual Report?

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

Hai Visual Report 可以搭配多少个 AI 模型使用?

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

Hai Visual Report AI 技能免费吗?

hylarucoder 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

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

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

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

查看全部

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

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