← 返回 Skills 市场
michealxie001

OpenClaw Performance

作者 michealxie001 · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ 安全检测通过
122
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install oc-performance
功能描述
Performance analysis and optimization. Profiles code execution, identifies bottlenecks, and suggests optimizations.
安全使用建议
This skill appears to be what it says: a local performance analysis tool that reads your source files and prints suggestions. Before installing or running it: - Review scripts/main.py (and any additional shipped modules) for hidden network calls, subprocess.exec, or file writes. The provided snippet shows only AST/static checks, but review the remainder of the file. - Be careful when following the 'profile' advice: profiling runs your code (cProfile/kernprof). Do not profile untrusted code on a sensitive machine; run in an isolated environment or CI runner. - Note a couple of code-quality issues in the included script (undefined/possibly-missing variables and reliance on a local "c-support" path). Test the tool on a small repository first to confirm behavior. - If you expect C parsing support, check the origin and contents of any c-support modules before allowing them to be imported. Given the lack of external requests, secrets, or remote installs, the skill is coherent with its purpose. However, because the included script has some incomplete/buggy-looking code and imports local libraries conditionally, run it in a sandbox and inspect the full source before use.
功能分析
Type: OpenClaw Skill Name: oc-performance Version: 1.1.0 The skill bundle provides a static analysis tool for identifying performance bottlenecks in Python and C code. The implementation in `scripts/main.py` uses the `ast` module for Python and basic string/regex matching for C to detect patterns like N+1 queries, nested loops, and inefficient string operations. The tool is safe as it does not execute the analyzed code; the `profile` and `benchmark` commands merely print suggested command-line instructions for the user. While `_analyze_python_file` contains a minor bug (undefined variables), there is no evidence of malicious intent or high-risk behavior.
能力评估
Purpose & Capability
Name/description (performance analysis, profiling, bottleneck detection) align with the provided SKILL.md and the included scripts/main.py analyzer. The skill requires no external credentials, binaries, or installs — which is appropriate for a local static/dynamic analysis tool.
Instruction Scope
SKILL.md instructs the agent/user to run the included script against local source files and to use cProfile/kernprof for profiling. Reading and analyzing repo files is expected for this purpose. There are no instructions to transmit data externally or to read unrelated system configuration. Note: profiling suggestions require running target code — running untrusted code is a security risk (this is a user operational risk rather than a misbehavior of the skill).
Install Mechanism
No install spec; instruction-only plus included scripts. Nothing is downloaded or extracted from remote URLs. This minimizes supply-chain risk.
Credentials
The skill declares no required environment variables, credentials, or config paths. The SKILL.md and code do not appear to access environment secrets. This is proportionate to the claimed functionality.
Persistence & Privilege
always is false and there's no request for persistent system modification or to change other skills' configs. The skill runs only when invoked.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install oc-performance
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /oc-performance 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Added C/C++ support: performance analysis, I/O detection, memory allocation analysis
元数据
Slug oc-performance
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

OpenClaw Performance 是什么?

Performance analysis and optimization. Profiles code execution, identifies bottlenecks, and suggests optimizations. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 122 次。

如何安装 OpenClaw Performance?

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

OpenClaw Performance 是免费的吗?

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

OpenClaw Performance 支持哪些平台?

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

谁开发了 OpenClaw Performance?

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

💬 留言讨论