render-html-report
它能做什么
它会制作一个独立的网页,包含图表、仪表板或带样式的摘要,供 Screenpipe 查看器显示。适合想要可视化报告、而不是纯文本的人。
适用场景
- ✓当你想要图表或仪表板,而不是纯文本摘要时。
- ✓当你需要一份带样式的报告,并在 Screenpipe 查看器中以页面形式打开时。
- ✓当你只需要纯文本或原始数据,普通笔记就足够时。
技能链接
https://github.com/screenpipe/screenpipe/blob/main/crates/screenpipe-core/assets/skills/render-html-report/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我做一份一页的可视化周报,展示我在 Screenpipe 中每个应用的使用时间,并附上简单的图表。”
每周 5 个新技能,1 分钟读完。
工作原理
它会生成一个 HTML 文件,样式和脚本都内置在文件中,因为查看器会阻止外部链接。它还会为文件做标记,让查看器以渲染后的页面形式显示。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
render an html report
screenpipe's in-app viewer can render a standalone .html file as a live page (charts, dashboards, styled reports) — but only when you opt in and keep the file self-contained. Otherwise it shows as raw source.
the two rules
Opt in. The first line of the file must be the marker:
<!-- screenpipe:render=human -->(or
<meta name="screenpipe:render" content="human">inside<head>). Without it the file shows as source, not a rendered page.Self-contained — no network. It renders in a locked-down sandbox with zero network access. So:
- inline all CSS in a
<style>tag and all JS in a<script>tag; - embed any images as
data:URIs; - no external
<script src>/<link rel=stylesheet>/ CDN, nofetch, no forms that POST.
Anything that touches the network is silently blocked — a CDN-loaded chart library renders blank. Draw charts with inline SVG or plain HTML/CSS bars instead (see the template).
- inline all CSS in a
how the user sees it
Write the file (e.g. ./output/report.html), then link it with an absolute path from your note or notification — e.g. [open report](/Users/me/.../output/report.html). The user clicks it; the viewer offers "preview rendered"; it renders inside the sandbox. Only standalone .html / .htm files render — HTML pasted inside a markdown note does not.
The viewer matches the host light/dark theme; if you care about dark mode, style with @media (prefers-color-scheme: dark).
template (copy, then fill in with real data)
<!-- screenpipe:render=human -->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body { margin: 0; padding: 24px; font-family: system-ui, -apple-system, sans-serif; }
h1 { font-size: 20px; margin: 0 0 4px; }
.sub { color: #666; font-size: 13px; margin: 0 0 20px; }
.cards { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.card { flex: 1; min-width: 120px; background: #f4f4f5; border-radius: 10px; padding: 12px 14px; }
.card .label { font-size: 12px; color: #666; }
.card .value { font-size: 24px; font-weight: 600; }
.bar { fill: #3b82f6; }
.axis { fill: #999; font-size: 11px; }
</style>
</head>
<body>
<h1>daily focus report</h1>
<p class="sub">where your time went today</p>
<div class="cards">
<div class="card"><div class="label">tracked</div><div class="value">6.4h</div></div>
<div class="card"><div class="label">top app</div><div class="value">vs code</div></div>
<div class="card"><div class="label">meetings</div><div class="value">3</div></div>
</div>
<!-- inline SVG chart — no chart library (CDNs are blocked in the sandbox) -->
<svg viewBox="0 0 400 180" width="100%" role="img" aria-label="hours per app">
<rect class="bar" x="20" y="40" width="50" height="120"></rect>
<rect class="bar" x="90" y="80" width="50" height="80"></rect>
<rect class="bar" x="160" y="110" width="50" height="50"></rect>
<rect class="bar" x="230" y="130" width="50" height="30"></rect>
<text class="axis" x="45" y="174" text-anchor="middle">code</text>
<text class="axis" x="115" y="174" text-anchor="middle">chrome</text>
<text class="axis" x="185" y="174" text-anchor="middle">slack</text>
<text class="axis" x="255" y="174" text-anchor="middle">mail</text>
</svg>
</body>
</html>
checklist before you save
- first line is
<!-- screenpipe:render=human --> - all CSS/JS inline; all images are
data:URIs - no CDN /
<script src>/fetch/ forms - linked from the note or notification with an absolute path
常见问题
为什么不能使用在线的图表库?
查看器会阻止网络访问,在线库会导致图表空白。因此图表使用内置的图形绘制。
如何打开报告?
你可以在笔记中点击文件链接,然后选择渲染预览选项。
报告会随实时数据更新吗?
不会。它无法获取新数据,页面只显示写入文件中的内容。
详情
作者的原始描述
Produce a human-facing visual report — a chart, dashboard, scorecard, or styled summary — that renders as a live page in the screenpipe viewer instead of plain text. Use when the task asks for a visual/graphical output rather than a plain note; do NOT use for plain text or raw data (prefer a markdown note for those).
repo: screenpipe/screenpipe
热度
- GitHub 星标
- 22k
- 排名
- #10147
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
screenpipe-api
22k让你的智能体查阅 Screenpipe 保存在你电脑上的屏幕、音频和会议记录,回答关于过往工作的问题。
screenpipe-cli
22k让你的智能体在终端中运行 Screenpipe 的管道(pipes)和连接,例如启用、运行或调试定时的 AI 自动化任务。
screenpipe-health
22k帮你的智能体检查 Screenpipe 是否正常运行并录制,然后指出常见问题,例如服务已停止或磁盘占用过高。
screenpipe-logs
22k帮你的智能体查找并阅读 Screenpipe 命令行和桌面应用的日志,以便发现错误,并弄清某个时间点发生了什么。