Token Report

v1.0.0

生成 Token 消耗仪表盘截图并发送到飞书

0· 425·5 current·6 all-time
byzu@yorha59
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
medium confidence
Purpose & Capability
技能名和描述与实际指令一致:生成 HTML 仪表盘、截图并发送到飞书。问题是说明没有声明从何处获取“主会话、Selina、Tars 的 tokens 和 context 用量”的数据(未说明调用哪个 API 或读取哪个内部指标),也没有声明发送到飞书所需的凭证或连接配置。若平台本身提供 Canvas/Feishu 原生连接并已配置,这可以解释;但在当前元数据中没有这些依赖的明确声明。
!
Instruction Scope
SKILL.md 明确指示使用 canvas action=present、browser action=screenshot(profile=openclaw)和 message action=send 到指定 chat id。两点值得警惕:1) browser 截图会使用指定的浏览器 profile,这可能包含 cookies/会话/其它敏感页面;2) 文档没有说明 token 数据如何收集或核算,可能导致 agent 去查找系统中未声明的数据源或日志。指令本身没有说明边界或限定数据源,权限范围模糊。
Install Mechanism
无安装规范、无代码文件——这是最低级别的持久化/文件写入风险。作为 instruction-only 技能,软件供应链风险最低。
!
Credentials
元数据声明没有任何必需的环境变量或凭证,但指令需要将消息发送到飞书(target=chat:oc_...),这通常需要 Feishu API 凭证或已配置的连接。未声明凭证或授权范围是不一致的:安装者无法在元数据中预见所需的秘密或授予范围。
Persistence & Privilege
always:false,默认允许用户调用且可由 agent 自主调用(平台默认)。技能未请求修改其它技能或系统范围配置,也不要求常驻权限。
What to consider before installing
在安装前请确认以下几点: - 平台是否已配置并授权飞书(Feishu)连接,安装此技能是否需要额外的 FEISHU_TOKEN 或类似凭证;如果需要,应在技能元数据中明确列出。不要安装/启用技能前期望凭证自动存在。 - 明确 token 用量的数据来源:该技能应该声明它从哪个 API、数据库或监控接口读取 token 消耗统计,确保 agent 不会被授权去扫描无关日志或文件。 - 注意 browser action=screenshot profile=openclaw:确认截图范围只包含 Canvas 内容,避免截图时泄露其他标签页或浏览器数据(cookies/session)。如果不能保证,考虑使用无痕或专用截图 profile。 - 目标聊天 ID 已硬编码(chat:oc_...),确认这是正确且安全的目标;若需要发送到不同聊天室,应由管理员在安全控制下配置目标而不是让技能自行选择。 如果平台本身提供受控的 Canvas/Browser/Feishu 动作且管理员已经为技能分配了合适的最小权限,则这些问题可被合理解释;否则把这些问题修正后再安装会更安全。

Like a lobster shell, security has layers — review code before you run it.

latestvk977b98mced5ks0ngdped953mh81z557

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Runtime requirements

📊 Clawdis
OSmacOS

SKILL.md

Token 消耗汇报

当 Simon 要求汇报 Token 用量时执行:

步骤

  1. 推送到 Canvas

    • canvas action=present 推送 HTML 仪表盘
    • 内容包含:主会话、Selina、Tars 的 tokens 和 context 用量
  2. 截图

    • browser action=screenshot 截取 Canvas 画面
    • profile=openclaw
  3. 发送到飞书

    • message action=send 发送到目标群
    • channel=feishu, target=chat:oc_ee1a93ad1eb6d46a8922d9ab898a0d10

HTML 模板

<html>
<body style="background:#0d1117;color:#e6edf3;font-family:-apple-system;padding:24px;">
<h2>📊 Token 消耗汇总</h2>
<div style="display:grid;grid-template-columns:repeat(3,1fr);gap:12px">
<div style="background:rgba(255,255,255,.06);padding:16px;border-radius:8px">
<div style="font-size:11px;color:#8b949e">主会话 (main)</div>
<div style="font-size:28px;font-weight:600">336k</div>
<div style="font-size:12px;color:#8b949e">Context 52%</div>
</div>
<!-- Selina, Tars similarly -->
</div>
<div style="margin-top:16px;font-size:12px;color:#8b949e">更新时间: 2026-02-27 17:00</div>
</body>
</html>

Files

1 total
Select a file
Select a file to preview.

Comments

Loading comments…