← Back to Skills Marketplace
kincaidwoo

Skill Perf

by kincaidwoo · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
140
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install skill-perf
Description
测量 OpenClaw 环境中 Skill 的 token 消耗和性能开销(仅适用于 OpenClaw Agent 环境)。当用户提到「测量」「测试」「性能」「token 消耗」「多少 token」「开销」「成本」「效率」或想要评估、对比、优化某个 skill 的资源使用时,立即使用此 skill。也适用于 sk...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install skill-perf
  3. After installation, invoke the skill by name or use /skill-perf
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug skill-perf
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is Skill Perf?

测量 OpenClaw 环境中 Skill 的 token 消耗和性能开销(仅适用于 OpenClaw Agent 环境)。当用户提到「测量」「测试」「性能」「token 消耗」「多少 token」「开销」「成本」「效率」或想要评估、对比、优化某个 skill 的资源使用时,立即使用此 skill。也适用于 sk... It is an AI Agent Skill for Claude Code / OpenClaw, with 140 downloads so far.

How do I install Skill Perf?

Run "/install skill-perf" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Skill Perf free?

Yes, Skill Perf is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Skill Perf support?

Skill Perf is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Skill Perf?

It is built and maintained by kincaidwoo (@kincaidwoo); the current version is v1.0.2.

💬 Comments