Html Report 标志

Html Report

社区
Firstp1ck
html-report

Creates polished self-contained HTML explanation reports for complex, multi-step topics using overview tables, evidence cards, adaptive graphs or diagrams, meaningful SVG/media, and accessible tabs for long pages. Use when the user requests a browser-readable diagnostic report, technical guide, decision analysis, implementation plan, investigation, or research synthesis as HTML.

概览

发布者Firstp1ck
代码仓库pi-coding-agent-forge
技能名称html-report
星标数
93
复刻数
22
附带文件
8
许可协议MIT
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 8 个附带文件

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

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Firstp1ck/pi-coding-agent-forge.git /tmp/pi-coding-agent-forge
mkdir -p .claude/skills
cp -r /tmp/pi-coding-agent-forge/pi-skill-html-report/skills/html-report .claude/skills/html-report
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

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

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

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

HTML Report

Create source-grounded, browser-readable explanation reports with the approved dark navy visual system. The output is a document, not an application: it should open locally without a build step, remain understandable when printed, and use visuals only when they clarify real information.

When to Use

Use this skill when both are true:

  • The user requests an HTML page/report or clearly wants a browser-readable artifact.
  • The subject is complex or multi-step: diagnostics, investigations, implementation guidance, architecture, technical decisions, comparisons, research synthesis, or operational plans.

Do not use it for:

  • Short answers that do not warrant a file.
  • Slide presentations; use a presentation-specific skill instead.
  • Product dashboards, landing pages, or application UI implementation.
  • A generic technology comparison unless the user requests an HTML report.
  • Content whose evidence is too incomplete to explain responsibly; collect evidence or mark uncertainty first.

Should trigger

  • “Create a self-contained HTML report explaining this multi-stage incident with evidence, diagrams, and recommendations.”
  • “Turn this architecture analysis into a polished browser-readable explanation.”
  • “Make an HTML implementation guide with a process diagram, overview, risks, and phased steps.”
  • “Research these options and deliver a detailed HTML decision document.”

Should not trigger

  • “Explain this error in three bullets.”
  • “Build an interactive product analytics dashboard.”
  • “Create a 16:9 HTML slide deck.”
  • “Compare React and Vue and recommend one.”

Invocation Design

  • Invocation mode: model-invoked after the package is explicitly enabled.
  • Leading concept: HTML explanation report.
  • Trigger branches:
    1. Complex or multi-step explanation explicitly requested as HTML.
    2. Technical diagnostic, guide, analysis, investigation, or synthesis needing a standalone browser report.
  • The package is a disabled draft until the user explicitly installs/enables it; creation alone must not modify Pi settings.

Inputs and Assumptions

Collect, as available:

  • Source notes, logs, files, command output, research, and citations.
  • The real question, audience, success criteria, and requested output path.
  • Quantitative data suitable for charts and relationship/process data suitable for diagrams.
  • User-provided local images or approved media. Do not assume remote assets are allowed.
  • Existing HTML or project conventions if the report belongs to a repository.

If the user does not specify a filename, use a concise descriptive name ending in .html. Preserve uncertainty and distinguish observed facts, documentation, interpretation, and recommendations.

Portable Workflow

  1. Establish the evidence model

    • Identify the question, audience, claims, sources, uncertainty, and recommended actions.
    • Do not invent measurements, graph values, timelines, citations, or visual relationships.
    • Completion criterion: every major claim is traceable to supplied/verified evidence or explicitly labeled as interpretation.
  2. Plan the information architecture

    • Build a section map before writing. Include a hero summary, mandatory overview table, main explanation, actionable steps, evidence/source notes, and limitations.
    • Read references/CONTENT-ARCHITECTURE.md when the page has multiple audiences, branches, or more than five major sections.
    • Completion criterion: the outline has one clear reading path and no duplicated sections.
  3. Select visuals deliberately

    • Use the matrix in references/VISUAL-DECISIONS.md.
    • Add a graph for real quantitative comparisons/trends; a diagram for flows, dependencies, decisions, or architecture; and meaningful inline SVG/local media where spatial context helps.
    • If no visual materially improves comprehension, omit it and keep the layout strong rather than adding decoration.
    • Completion criterion: each visual has a stated explanatory purpose, accessible text, and source/provenance where applicable.
  4. Choose interaction and long-page navigation

    • Read references/INTERACTION-DESIGN.md and name the reader task served by each proposed interaction.
    • Use accessible tabs when there are at least six major sections, roughly 2,500+ words, multiple independent reading paths, or excessive scrolling. For shorter reports, prefer normal sections and optional anchor navigation.
    • Add task-focused controls where they reduce friction: in-report search with highlighted matches, reading progress, optional focus mode, sequential previous/next navigation, session-only section completion, copy buttons for reusable commands or exact excerpts, expand/collapse controls for several disclosure blocks, print or deep-link actions, and filtering only for genuinely large tables.
    • Keep the executive conclusion and overview visible by default. Use native controls, keyboard support, visible focus, status announcements, URL hashes where relevant, and print rules that reveal content while suppressing meaningless controls.
    • Preserve progressive enhancement: the complete report must remain readable, selectable, and navigable when JavaScript, clipboard access, or optional interaction fails.
    • Completion criterion: every interaction has a clear purpose, works without pointer input, communicates its result, and leaves all essential content available without script enhancement and in print.
  5. Apply the approved design system

    • Read references/DESIGN-SYSTEM.md and start from assets/starter-template.html when practical.
    • Preserve the navy radial background, rounded dark panels, blue-gray borders, restrained shadows, high-contrast typography, and semantic status colors.
    • Use metric cards, evidence tables, prioritized findings, numbered steps, callouts, and collapsible detail only where they fit the content.
    • Completion criterion: the report is visually coherent at desktop and mobile widths and does not depend on an external CDN.
  6. Generate the self-contained report

    • Prefer one HTML file with embedded CSS and minimal JavaScript. Inline SVG is preferred for custom charts and diagrams.
    • Local image files are acceptable when supplied or generated; use relative paths and meaningful alt text. Ask before overwriting user-authored output.
    • Treat the starter template placeholders as scaffolding and replace/remove all of them.
    • Completion criterion: the file opens directly in a browser, contains no unresolved placeholders, and has no missing local dependencies.
  7. Verify and report

    • Run the bundled validator from the skill directory:
bash
python3 ./scripts/validate_report.py <path-to-report.html> --strict
  • Also inspect the report at narrow/mobile width and print preview when browser tooling is available.
  • Completion criterion: validation passes, intentional warnings are disclosed, and the final response includes a clickable Markdown link to the report plus any unverified rendering caveat.

Output Contract

The final assistant response must always end with a standalone clickable Markdown link to the generated report, using the report filename as the label and its absolute path as the target:

markdown
[report-name.html](/absolute/path/to/report-name.html)

Do not provide only a plain-text path or wrap the link in a code block. Keep this link as the final non-empty line so it is easy to find and click.

Every generated report must include:

  • A descriptive document title, language, viewport metadata, and semantic landmarks.
  • A concise hero conclusion and scope/context.
  • An overview table summarizing sections, findings, stages, options, or recommendations.
  • Source-grounded narrative with uncertainty/confidence where relevant.
  • Prioritized, actionable recommendations or next steps.
  • Responsive and print CSS.
  • References/evidence and limitations when claims depend on external or incomplete information.

Conditional components:

  • Graphs only for quantitative data.
  • Diagrams only for meaningful relationships or sequences.
  • Images/SVG only when they improve comprehension.
  • Tabs only when page length or independent reading paths justify them.
  • Interactive controls only when they serve a concrete reader task; prefer native elements and progressive enhancement.
  • Search, progress, focus, sequential navigation, completion, copy, disclosure, filtering, view, print, or deep-link controls only when their targets and fallback behavior remain useful without JavaScript.

Scripts, References, and Dependencies

Bundled resources, relative to this skill directory:

  • assets/starter-template.html — self-contained report shell with overview table, accessible tabs, graph, diagram, responsive layout, and print behavior.
  • references/DESIGN-SYSTEM.md — visual tokens and component contract.
  • references/CONTENT-ARCHITECTURE.md — section planning and tab thresholds.
  • references/VISUAL-DECISIONS.md — graph/diagram/media selection, accessibility, and data integrity.
  • references/INTERACTION-DESIGN.md — purposeful controls, progressive enhancement, accessibility, privacy, and interaction verification.
  • scripts/validate_report.py — standard-library Python validator for generated reports.
  • tests/ — package contract tests and representative fixtures.

No runtime package or browser build dependency is required.

Verification

For this package:

bash
cd <package-root>
npm test

For a generated report:

bash
cd <skill-directory>
python3 ./scripts/validate_report.py <path-to-report.html> --strict

Success means: valid core structure, overview table present, local assets resolved, no placeholders, image/SVG accessibility checks passed, tab wiring valid when tabs exist, long pages tabbed, and responsive/print rules detected.

Quality Review

Before delivery, confirm:

  • The routing scope is not confused with slide decks, dashboards, or short prose answers.
  • The overview table gives a useful map rather than repeating headings mechanically.
  • Every visual communicates evidence; no decorative chart junk or fabricated values exist.
  • Tabs reduce cognitive load without hiding critical conclusions.
  • Every other interaction serves a named reader task, uses semantic controls, reports outcomes, and degrades without hiding content.
  • Long reference material stays in references/, not duplicated in this file.
  • No private paths, secrets, stale source-report content, or user-specific facts were copied into the reusable package.

Safety and Failure Modes

  • Ask before overwriting an existing user-authored report or changing files outside the requested output scope.
  • Do not embed secrets, private logs, personal data, or unredacted sensitive evidence in a shareable report.
  • Do not hotlink external images, scripts, fonts, or styles unless the user approves the privacy and availability trade-off.
  • Never turn qualitative statements into quantitative graphs without real values.
  • If SVG complexity harms accessibility, replace it with a simpler diagram plus a text/table equivalent.
  • If tabs fail validation, fall back to ordinary semantic sections rather than shipping inaccessible navigation.
  • If copy, filtering, disclosure, or other enhancements fail, keep the underlying text and controls' targets directly usable; remove dead controls rather than making content script-dependent.
  • Do not add telemetry, persistence, network-backed widgets, auto-advancing content, or copied sensitive data as interaction polish.
  • If evidence is contradictory or incomplete, show the conflict and lower confidence; do not manufacture a single definitive story.

Pi Adapter

  • Use Pi file-reading and repository exploration tools to gather evidence before drafting.
  • Use write for a new self-contained report and edit for targeted changes to an existing report.
  • For multi-step creation, use Pi's todo progress UI and verify the final path.
  • End the final response with the standalone Markdown report link required by the Output Contract; use the verified absolute file path as the link target.
  • Do not install this local package or modify Pi settings without explicit user confirmation.

附带文件

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

常见问题

Html Report AI 技能有什么作用?

Creates polished self-contained HTML explanation reports for complex, multi-step topics using overview tables, evidence cards, adaptive graphs or diagrams, meaningful SVG/media, and accessible tabs for long pages. Use when the user requests a browser-readable diagnostic report, technical guide, decision analysis, implementation plan, investigation, or research synthesis as HTML.

为什么在 TypingMind 中使用 Html Report?

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

如何在 TypingMind 中安装 Html Report?

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

哪些 AI 模型可以使用 Html Report?

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

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

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

Html Report AI 技能免费吗?

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

什么是 AI 技能?

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

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

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

查看全部

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

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