← 返回 Skills 市场
30
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install resource-leak
功能描述
Files, sockets, subscriptions, or other finite resources are acquired without a guaranteed release path.
使用说明 (SKILL.md)
resource-leak
A resource is opened but not closed. Under low load the process recycles or the OS cleans up on exit, so the bug stays hidden. Under real load, file-descriptor exhaustion, memory bloat, or orphaned connections appear and cascade.
Symptoms
open(...)without a matchingclose()orwithblock.- Database connections or HTTP clients instantiated per-request without pooling or teardown.
- Event listeners / observers / subscriptions registered but never removed.
- Background tasks or timers spawned without cancellation paths.
- Gradual memory growth that correlates with request count.
What to do
- Pair every acquire with a release. Use language constructs that guarantee teardown:
with(Python),using/try-with-resources(C#/Java),defer(Go),try/finally(JS/TS). - For resources that outlive a single function, document ownership: who closes it, when, on which code path — including error paths.
- Prefer pooled clients (HTTP, database) over creating a new one per call.
- When registering event listeners, return the unregister function in the same scope so the caller can clean up.
- Test the teardown path. Kill a process or trigger an error mid-operation and confirm resources are released.
安全使用建议
This skill is safe and coherent: it is a text-only guide on identifying and fixing resource leaks and asks for nothing sensitive. If you plan to use an agent to automatically scan your codebase for leaks, make sure the agent runtime is granted file access only to code you want analyzed (and that no credentials or external uploads are unintentionally enabled), because the skill itself does not perform scanning or request access.
功能分析
Type: OpenClaw Skill
Name: resource-leak
Version: 1.0.0
The skill bundle consists of educational documentation (SKILL.md) describing resource leaks and best practices for fixing them. It contains no executable code, network activity, or instructions that could be used for malicious purposes or prompt injection.
能力评估
Purpose & Capability
The name and description match the SKILL.md content. The skill is purely educational/diagnostic guidance about resource leaks and does not request unrelated binaries, environment variables, or config paths.
Instruction Scope
SKILL.md contains static guidance (symptoms and remediation) and does not instruct the agent to read files, run commands, call external endpoints, or access credentials. It stays within the scope of explaining how to find and fix leaks.
Install Mechanism
No install spec or code files are present; this is instruction-only, so nothing is written to disk or fetched at install time.
Credentials
The skill requires no environment variables, credentials, or config paths — appropriate for a documentation-style guidance skill.
Persistence & Privilege
The skill is not marked always:true and does not request system or cross-skill configuration changes. It poses no elevated persistence or privilege demands.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install resource-leak - 安装完成后,直接呼叫该 Skill 的名称或使用
/resource-leak触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of resource-leak skill.
- Detects missing release paths for files, sockets, subscriptions, and other finite resources.
- Highlights patterns like open-without-close, unmanaged database or HTTP connections, and unremoved event listeners.
- Offers guidance for reliably acquiring and releasing resources in various programming languages.
- Lists typical symptoms, such as memory growth and resource exhaustion.
- Provides practical advice for resource management and testing teardown paths.
元数据
常见问题
Resource Leak 是什么?
Files, sockets, subscriptions, or other finite resources are acquired without a guaranteed release path. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 30 次。
如何安装 Resource Leak?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install resource-leak」即可一键安装,无需额外配置。
Resource Leak 是免费的吗?
是的,Resource Leak 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Resource Leak 支持哪些平台?
Resource Leak 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(macos, linux, windows)。
谁开发了 Resource Leak?
由 mvogt99(@mvogt99)开发并维护,当前版本 v1.0.0。
推荐 Skills