← 返回 Skills 市场
qingyu24

Token Monitor

作者 qingyu24 · GitHub ↗ · v1.0.0 · MIT-0
darwinlinux ✓ 安全检测通过
126
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install qy-token-monitor
功能描述
分析 OpenClaw 会话 JSONL 文件,监控各 skill/功能的 token 消耗(输入/输出/缓存命中)和成功率。当需要分析会话 token 使用、跟踪性能或生成使用报告时使用。关键词触发:token、会话分析、skill 性能、使用报告。
安全使用建议
This skill appears to do what it says: analyze local OpenClaw/Claude session JSONL files for token usage and produce reports. Before installing or running it, review these points: 1) The tool reads files under ~/.claude/projects and ~/.claude/skills — those session files can contain sensitive conversation content, so run it only if you trust the environment and code. 2) Inspect scripts/analyze_session.py locally (it is included) to verify there are no unexpected network calls or writes; the provided script shows only local file I/O and no networking. 3) When running, prefer an explicit output path (use --output) and run in a controlled directory/sandbox if you have privacy concerns. 4) SKILL.md references a metrics document that is not present (references/metrics-calculation.md) and uses a {baseDir} placeholder — ensure you run the correct script path. If you need higher assurance, run the script in an isolated environment or review/execute it line-by-line before giving it access to your real session files.
功能分析
Type: OpenClaw Skill Name: qy-token-monitor Version: 1.0.0 The qy-token-monitor skill is a diagnostic utility designed to analyze OpenClaw session logs (~/.claude/projects/*.jsonl) to track token consumption, success rates, and latency. The Python script (scripts/analyze_session.py) parses local session data to generate usage reports in JSON, Markdown, or HTML formats. While it accesses sensitive conversation history, this is necessary for its stated purpose, and there is no evidence of data exfiltration, unauthorized network activity, or malicious instructions in the SKILL.md file.
能力评估
Purpose & Capability
Name/description (token/session analysis) align with the included script and instructions. The skill only requires python3 and operates on session files under ~/.claude/projects and the local ~/.claude/skills directory to map skill names — which is expected for this purpose.
Instruction Scope
SKILL.md instructs the agent to run the local script against files in the user's home (~/.claude/projects) and to read ~/.claude/skills; this is coherent with session analysis but means the tool will read potentially sensitive local session data. The SKILL.md references a metrics-calculation doc that is not present in the manifest (minor inconsistency). The instructions use a {baseDir} placeholder (ambiguous) — user should ensure the correct path when running.
Install Mechanism
No install spec — instruction-only with an included Python script. No external downloads, no archive extraction, and no package installs are requested in the manifest.
Credentials
The skill declares no required environment variables, no credentials, and no config paths beyond reading files under the user's home. The script reads local files (session JSONL and ~/.claude/skills) which is proportional to its stated goal; it does not access unrelated secrets or cloud credentials.
Persistence & Privilege
always is false and the skill does not request persistent platform privileges. The script appears to only read files and write reports (to stdout or chosen output path) and does not modify other skills or system-wide configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install qy-token-monitor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /qy-token-monitor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
qy-token-monitor 1.0.0 - 首发版本,支持分析 OpenClaw 会话 JSONL 文件,统计并可视化各 skill 的 token 消耗和成功率 - 支持多种报告格式:JSON、Markdown、HTML(含交互仪表板和详情表格) - 提供 skill 级别的 token 分析、成功率与性能指标 - 支持按 skill 名称筛选、项目或单独会话分析
元数据
Slug qy-token-monitor
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Token Monitor 是什么?

分析 OpenClaw 会话 JSONL 文件,监控各 skill/功能的 token 消耗(输入/输出/缓存命中)和成功率。当需要分析会话 token 使用、跟踪性能或生成使用报告时使用。关键词触发:token、会话分析、skill 性能、使用报告。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 126 次。

如何安装 Token Monitor?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install qy-token-monitor」即可一键安装,无需额外配置。

Token Monitor 是免费的吗?

是的,Token Monitor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Token Monitor 支持哪些平台?

Token Monitor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux)。

谁开发了 Token Monitor?

由 qingyu24(@qingyu24)开发并维护,当前版本 v1.0.0。

💬 留言讨论