← 返回 Skills 市场
Skill Perf
作者
kincaidwoo
· GitHub ↗
· v1.0.2
· MIT-0
140
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install skill-perf
功能描述
测量 OpenClaw 环境中 Skill 的 token 消耗和性能开销(仅适用于 OpenClaw Agent 环境)。当用户提到「测量」「测试」「性能」「token 消耗」「多少 token」「开销」「成本」「效率」或想要评估、对比、优化某个 skill 的资源使用时,立即使用此 skill。也适用于 sk...
安全使用建议
This skill appears to do what it says: spawn subagents, read OpenClaw session files, and produce token/HTML reports. Before installing or running it, consider the following:
- Audit the scripts (already included) to confirm you are comfortable with their filesystem reads (they access ~/.openclaw/agents/*/sessions.json and .jsonl files) and local API calls (http://localhost:3459). Those reads are needed to compute token usage but can surface user messages or other session content.
- Run benchmarks in a controlled/test environment, not against production systems or skills that perform destructive/external actions (device control, API calls, financial ops), because benchmarking will execute the measured skill once per run.
- The tool will start a local HTTP service to serve reports; ensure you are comfortable with a local port being opened and with placing reports under ~/.openclaw/skills/skill-perf/reports/. Review wait_and_report.sh / snapshot.py to confirm behavior.
- Because there is no remote download step, installing requires cloning the repo into ~/.openclaw/skills/skill-perf as documented; ensure you trust the source before cloning. If you need stronger guarantees, run the scripts in an isolated environment or inspect/execute them line-by-line.
If you want me to, I can: (a) list exact files and code paths that read session content, (b) highlight lines that spawn sessions or call local APIs, or (c) produce a short checklist for safely benchmarking a particular skill.
功能分析
Type: OpenClaw Skill
Name: skill-perf
Version: 1.0.2
The skill bundle performs performance monitoring by accessing sensitive OpenClaw session logs (.jsonl) and workspace configuration files (e.g., AGENTS.md, SOUL.md) across multiple agent directories (main, xuexiguaishou, codeflicker) in scripts/snapshot.py. It also interacts with the local OpenClaw API (http://localhost:3459) to manage sessions in scripts/bench.py and spawns a local HTTP server to serve HTML reports. While these high-risk capabilities are aligned with the stated purpose of benchmarking token usage, the broad access to private conversation histories and the execution of a network service warrant a suspicious classification.
能力评估
Purpose & Capability
The skill's name/description (measure token cost and performance of other skills) matches what it requests and does: spawning subagents, reading sessions.json/.jsonl, generating HTML reports, and running local helper scripts. Reading other skills' SKILL.md and agent session data is necessary to construct test tasks and compute net token usage.
Instruction Scope
SKILL.md explicitly instructs the agent to spawn two subagents in the same turn, poll session artifacts, and read totalTokens from .jsonl/sessions.json. This stays within the stated purpose but grants the skill the ability to: (1) execute other skills (the measured skill will run), and (2) read local session data (sessions.json/.jsonl) which may contain user messages or metadata. Those behaviors are expected for benchmarking but are privacy-sensitive and can trigger side effects if the measured skill performs external actions.
Install Mechanism
There is no formal install spec (instruction-only), yet the package includes multiple scripts under scripts/ that the runtime expects at ~/.openclaw/skills/skill-perf. That is consistent (README shows a git clone install). No remote downloads or third-party registry installs are used in the provided files.
Credentials
The skill requests no environment variables or external credentials. It requires local filesystem access to ~/.openclaw (sessions, skills directories) and a localhost agent API (http://localhost:3459), which are proportionate to measuring local OpenClaw sessions and spawning subagents.
Persistence & Privilege
always:false and the skill does not request to be force-included. It reads local files and may launch a local HTTP server to serve reports (per snapshot.py behavior), but it does not modify other skills' configuration or request elevated system privileges. It may delete sessions it creates (bench.py delete_session) — expected for cleanup.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install skill-perf - 安装完成后,直接呼叫该 Skill 的名称或使用
/skill-perf触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- Major update: Comprehensive architecture and usage documentation added.
- Expanded documentation with step-by-step usage, advanced architecture details, and implementation rules in a new README.md.
- Added detailed internal references and guides: TOKEN_GUIDE.md, bugfix notes, and subagent architecture spec.
- Introduced benchmarking and reporting scripts (bench.py, calibrate.py, report_html.py, snapshot.py, wait_and_report.sh) for automated performance testing and HTML report generation.
- Updated SKILL.md and reorganized docs for easier understanding and execution of token cost and performance measurement.
v1.0.1
- Removed 9 files related to documentation, scripts, and references.
- Skill core functionality and trigger keywords remain unchanged.
- All auxiliary docs, benchmark/calibration scripts, and reporting tools have been deleted.
v1.0.0
Initial release of skill-perf: a tool for measuring token usage and performance overhead of OpenClaw skills.
- Measures net token cost and performance by spawning two subagents (calibration + test) concurrently in the same turn.
- Automatically subtracts baseline system noise to provide accurate resource usage.
- Generates an HTML report with confidence rating and a shareable link.
- Triggered whenever user requests involve skill performance, token usage, benchmarking, or efficiency analysis.
- Includes step-by-step guidance for composing tasks, running tests, and reporting.
元数据
常见问题
Skill Perf 是什么?
测量 OpenClaw 环境中 Skill 的 token 消耗和性能开销(仅适用于 OpenClaw Agent 环境)。当用户提到「测量」「测试」「性能」「token 消耗」「多少 token」「开销」「成本」「效率」或想要评估、对比、优化某个 skill 的资源使用时,立即使用此 skill。也适用于 sk... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 140 次。
如何安装 Skill Perf?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install skill-perf」即可一键安装,无需额外配置。
Skill Perf 是免费的吗?
是的,Skill Perf 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Skill Perf 支持哪些平台?
Skill Perf 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Skill Perf?
由 kincaidwoo(@kincaidwoo)开发并维护,当前版本 v1.0.2。
推荐 Skills