← 返回 Skills 市场
qqq664590975-del

usage-stats

作者 qq pq · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
103
总下载
1
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install usage-stats
功能描述
OpenClaw 使用统计技能。自动分析会话记录,生成 token 消耗、费用、工具使用等完整报告。 触发场景:用户提到"使用统计"、"token 消耗"、"费用分析"、"使用报告"、"使用情况"、 "usage stats"、"token usage"、"消费记录"、"我用了多少"、"统计"等关键词时使用。 关...
安全使用建议
This skill appears to do what it says: it parses your OpenClaw session logs and writes a usage report under ~/.qclaw/workspace/memory. Before running it, review the bundled script if you are concerned (it's pure Python, standard library only), and be aware the generated report may include excerpts or structured data derived from your conversations (potentially sensitive). If you don't want message contents included in reports, manually inspect/clean the session files or run the script in a sandboxed account. Because the skill has no network or credential access, it does not appear to exfiltrate data, but exercising caution with any tool that reads full conversation logs is recommended.
功能分析
Type: OpenClaw Skill Name: usage-stats Version: 1.0.0 The usage-stats skill is a utility designed to analyze local OpenClaw session logs to provide reports on token usage, costs, and tool performance. The core logic in scripts/analyze_usage.py reads session data from ~/.qclaw/agents/main/sessions/ and generates a Markdown report in the local workspace without any network activity, data exfiltration, or unauthorized execution. The skill follows its stated purpose and lacks any indicators of malicious intent or high-risk vulnerabilities.
能力评估
Purpose & Capability
Name/description claim to analyze OpenClaw session usage; the skill's SKILL.md and the included Python script both read ~/.qclaw/agents/main/sessions/*.jsonl and produce reports under ~/.qclaw/workspace/memory — this is coherent and proportional to the stated purpose.
Instruction Scope
Instructions explicitly tell the agent to run scripts/analyze_usage.py and read session JSONL files and existing history JSON; that stays inside the described purpose. Note: session files may contain sensitive user messages and the report can include message/error excerpts — users should expect local sensitive data will be parsed and summarized.
Install Mechanism
No install spec; script is bundled in the skill and uses only the Python standard library. No external downloads or package installs are requested.
Credentials
The skill requests no environment variables, no credentials, and accesses only paths under the user's ~/.qclaw directory as described. There are no unexpected or unrelated secrets requested.
Persistence & Privilege
always is false, user-invocable, and the skill writes its own output/history under ~/.qclaw/workspace/memory; it does not modify other skills or system-wide agent settings. Autonomous invocation is allowed by platform default but not unusually privileged here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install usage-stats
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /usage-stats 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the usage-stats skill for OpenClaw. - Automatically analyzes session records to generate comprehensive usage reports, including token consumption, cost estimation, model distribution, tool usage rankings, error analysis, daily and hourly trends, and historical comparisons. - Triggered by keywords such as "使用统计", "token 消耗", "费用分析", "usage stats", and similar. - Reports are saved to `~/.qclaw/workspace/memory/usage_stats_latest.md`, with historical snapshots maintained for comparison. - Includes built-in troubleshooting advice and clear output format guidelines.
元数据
Slug usage-stats
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

usage-stats 是什么?

OpenClaw 使用统计技能。自动分析会话记录,生成 token 消耗、费用、工具使用等完整报告。 触发场景:用户提到"使用统计"、"token 消耗"、"费用分析"、"使用报告"、"使用情况"、 "usage stats"、"token usage"、"消费记录"、"我用了多少"、"统计"等关键词时使用。 关... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 103 次。

如何安装 usage-stats?

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

usage-stats 是免费的吗?

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

usage-stats 支持哪些平台?

usage-stats 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 usage-stats?

由 qq pq(@qqq664590975-del)开发并维护,当前版本 v1.0.0。

💬 留言讨论