Token导航 LogoToken导航

Agent Skill · 研究检索

memguard(memguard 搜索)

memguard 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

memguard 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为可写文件;许可证为 MIT-0,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 34,271。

总安装 2,252周安装 92GitHub Stars 公开资料未说明下载 729核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:memguard(memguard 搜索)
来源仓库:https://github.com/suhteevah/memguard
安装命令:
openclaw skills install memguard
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install memguard

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

memguard 检测内存泄漏与资源管理问题,如未关闭句柄、循环引用等。适用于 Node.js 或 JavaScript 项目的运行时健康检查。输出报告包含潜在风险点与修复建议,供开发者参考。不覆盖所有边缘 case,需结合日志与调试工具综合排查。建议在开发阶段定期运行以预防生产环境问题。

memguard 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install memguard;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要可写文件,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

memguard 怎么安装?

在终端执行 openclaw skills install memguard。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

memguard 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

memguard 需要什么权限?

权限级别是可写文件。该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

memguard 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

memguard 用的人多吗?

公开数据是累计安装 2,252 次,近一周安装 92 次,下载 729 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

memguard 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
memguard

memguard 搜索 · 本页

2,252—可写文件MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
memguard
description
Memory leak & resource management scanner -- detects unclosed handles, event listener leaks, circular references, unbounded caches, missing cleanup, dangling timers, and resource lifecycle issues across all languages
homepage
https://memguard.pages.dev
metadata
user-invocable
true
disable-model-invocation
false

MemGuard -- Memory Leak & Resource Management Scanner

MemGuard scans codebases for memory leaks and resource management issues: unclosed file handles, event listener leaks, circular references, unbounded caches/maps, missing cleanup in React useEffect, dangling timers/intervals, unreleased database connections, missing stream close, forgotten subscriptions, and retained DOM references -- across JS/TS, Python, Java, Go, Rust, and C#. It uses regex-based pattern matching against 90+ resource lifecycle patterns, lefthook for git hook integration, and produces markdown reports with actionable remediation recommendations. 100% local. Zero telemetry.

Commands

Free Tier (No license required)

memguard scan [file|directory]

One-shot memory leak and resource management scan of files or directories.

How to execute:

bash "<SKILL_DIR>/scripts/memguard.sh" scan [target]

What it does:

  1. Accepts a file path or directory (defaults to current directory)
  2. Discovers all source files (skips .git, node_modules, binaries, images, .min.js)
  3. Runs 90+ resource lifecycle detection patterns against each file
  4. Respects .gitignore and allowlist files
  5. Calculates a resource health score (0-100) per file and overall
  6. Grades: A (90-100), B (80-89), C (70-79), D (60-69), F (<60)
  7. Outputs findings with: file, line number, check ID, severity, description, recommendation
  8. Exit code 0 if score >= 70, exit code 1 if too many issues found
  9. Free tier limited to 5 files per scan

Example usage scenarios:

  • "Scan my code for memory leaks" -> runs memguard scan .
  • "Check this file for resource leaks" -> runs memguard scan src/app.ts
  • "Find unclosed file handles in my project" -> runs memguard scan src/
  • "Are there event listener leaks in my codebase?" -> runs memguard scan .
  • "Check for missing useEffect cleanup" -> runs memguard scan .
memguard hook install

Install git pre-commit hooks that scan staged files for memory leaks before every commit.

How to execute:

bash "<SKILL_DIR>/scripts/memguard.sh" hook install

What it does:

  1. Copies lefthook config to project root
  2. Installs lefthook pre-commit hook
  3. On every commit: scans all staged files for resource leaks, blocks commit if critical/high findings, shows remediation advice
memguard hook uninstall

Remove MemGuard git hooks.

bash "<SKILL_DIR>/scripts/memguard.sh" hook uninstall
memguard report [directory]

Generate a markdown resource health report with findings, severity breakdown, and remediation steps.

bash "<SKILL_DIR>/scripts/memguard.sh" report [directory]

What it does:

  1. Runs full scan of the directory
  2. Generates a formatted markdown report from template
  3. Includes per-file breakdowns, resource health scores, remediation priority
  4. Output suitable for code reviews and tech debt tracking

Pro Tier ($19/user/month -- requires MEMGUARD_LICENSE_KEY)

memguard watch [directory]

Continuous monitoring mode that watches for file changes and re-scans automatically.

How to execute:

bash "<SKILL_DIR>/scripts/memguard.sh" watch [directory]

What it does:

  1. Validates Pro+ license
  2. Monitors directory for file changes using filesystem polling
  3. Re-scans changed files automatically
  4. Outputs real-time findings as files are modified
  5. Useful during development for immediate feedback on resource leaks
memguard ci [directory]

CI/CD integration mode with structured exit codes and machine-readable output.

bash "<SKILL_DIR>/scripts/memguard.sh" ci [directory]

What it does:

  1. Validates Pro+ license
  2. Runs full scan of the directory
  3. Outputs findings in a CI-friendly format
  4. Exit code 0 if clean, 1 if critical/high issues found
  5. Compatible with GitHub Actions, GitLab CI, Jenkins, CircleCI
  6. Supports severity threshold configuration

Team Tier ($39/user/month -- requires MEMGUARD_LICENSE_KEY with team tier)

memguard team-report [directory]

Aggregate team metrics across the codebase with trend analysis.

bash "<SKILL_DIR>/scripts/memguard.sh" team-report [directory]

What it does:

  1. Validates Team+ license
  2. Runs comprehensive scan of the entire codebase
  3. Generates aggregate team metrics and category breakdowns
  4. Identifies hotspot files with the most resource issues
  5. Produces trend data when baselines exist for comparison
  6. Output suitable for engineering leadership and sprint planning
memguard baseline [directory]

Establish a baseline of known resource issues for tracking progress over time.

bash "<SKILL_DIR>/scripts/memguard.sh" baseline [directory]

What it does:

  1. Validates Team+ license
  2. Scans directory and records all current findings as baseline
  3. Saves baseline to .memguard-baseline.json
  4. Future scans report improvement/regression against the baseline
  5. Useful for tech debt tracking in established codebases
memguard status

Show license and configuration information.

bash "<SKILL_DIR>/scripts/memguard.sh" status

Detected Resource Leak Patterns

MemGuard detects 90+ resource lifecycle patterns across 6 categories:

CategoryExamplesSeverity
File Handles (FH)Python open() without close/with, Java FileInputStream without close, Node fs.open without fs.close, missing using/with statements, unclosed database connectionsCritical/High
Event Listeners (EL)addEventListener without removeEventListener, on() without off(), missing event cleanup in React lifecycle, event emitter leaks, global event handlers never removedHigh/Medium
Circular References (CR)Parent-child circular refs, self-referencing objects, closure-captured references to parent scope, mutual references between classes, WeakRef/WeakMap needed but not usedHigh/Medium
Unbounded Caches (UC)Map/Set growing without limit, in-memory cache without TTL/eviction, global arrays accumulating, memoization without size limit, localStorage unbounded writesHigh/Medium
React Cleanup (RC)useEffect without cleanup return, setInterval in useEffect without clearInterval, subscription in useEffect without unsubscribe, state update after unmount, ref held after unmountHigh/Medium
Timers & Streams (TM)setInterval without clearInterval, setTimeout in loops, stream pipe without error handling, readable stream not destroyed, missing stream.end(), unclosed WebSocketCritical/High

Configuration

Users can configure MemGuard in ~/.openclaw/openclaw.json:

{
  "skills": {
    "entries": {
      "memguard": {
        "enabled": true,
        "apiKey": "YOUR_LICENSE_KEY_HERE",
        "config": {
          "severityThreshold": "high",
          "ignorePatterns": ["**/test/**", "**/fixtures/**", "**/*.test.*"],
          "ignoreChecks": [],
          "allowlistFile": ".memguard-allowlist",
          "reportFormat": "markdown"
        }
      }
    }
  }
}

Important Notes

  • Free tier works immediately with no configuration
  • All scanning happens locally -- no code is sent to external servers
  • License validation is offline -- no phone-home or network calls
  • Pattern matching only -- no AST parsing, no external dependencies beyond bash
  • Supports scanning JS/TS, Python, Java, Go, Rust, and C# in a single pass
  • Git hooks use lefthook which must be installed (see install metadata above)
  • Exit codes: 0 = clean (score >= 70), 1 = resource issues detected (for CI/CD integration)
  • Scoring: critical=25pts, high=15pts, medium=8pts, low=3pts deducted from 100 base

Error Handling

  • If lefthook is not installed and user tries hook install, prompt to install it
  • If license key is invalid or expired, show clear message with link to https://memguard.pages.dev/renew
  • If a file is binary, skip it automatically with no warning
  • If no scannable files found in target, report clean scan with info message
  • If .memguard-allowlist is missing, skip allowlist filtering gracefully

When to Use MemGuard

The user might say things like:

  • "Scan my code for memory leaks"
  • "Find unclosed file handles in my project"
  • "Check for event listener leaks"
  • "Are there missing useEffect cleanups?"
  • "Find resource leaks in my codebase"
  • "Scan for dangling timers and intervals"
  • "Check for unbounded caches"
  • "Find circular references in my code"
  • "Detect missing stream close calls"
  • "Check for database connection leaks"
  • "Run a memory scan before I push"
  • "Set up pre-commit hooks for resource leak detection"
  • "Generate a resource health report"
  • "Find forgotten event subscriptions"
  • "Check for missing cleanup functions"
  • "Scan for retained DOM references"
  • "Establish a baseline for resource issues"
  • "Monitor my code for memory leaks in real-time"

平台分布

OpenClaw

82.65%
按下载量换算603

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

可写文件

该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills