بنقرة واحدة
memory-guardian
Cross-platform memory monitoring and cleanup skill for AI development environments
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Cross-platform memory monitoring and cleanup skill for AI development environments
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
AI Agent code quality check - Use Ruff to check code standards for LangChain, AutoGen, and other AI Agent projects
Dockerfile best practices check - Use hadolint to validate Dockerfile security, performance, and compliance
Structure, validate, and locally manage evolution assets (Gene, Capsule, EvolutionEvent). Use when the user wants to record a solution, document a bug fix, create a Gene or Capsule, capture an evolution process, or compute an asset_id locally. No network connection required. Trigger keywords: Gene, Capsule, EvolutionEvent, evolution asset, asset_id, record solution, save fix, document repair.
Format JavaScript/TypeScript code with Prettier
Format Python code with Black
Kubernetes YAML validation - Use kube-linter and kubeconform to check K8s config security and best practices
| name | memory-guardian |
| description | Cross-platform memory monitoring and cleanup skill for AI development environments |
| version | 1.0.0 |
| author | Agents-MD Pro |
🛡️ 内存守护者 - 跨平台内存监控与清理技能
Memory Guardian - Cross-platform memory monitoring and cleanup skill
此技能用于监控系统物理内存使用情况,当内存使用率过高时向用户发出双语警告, 并提供安全的 Python/Node.js 进程清理功能。
This skill monitors system physical memory usage, alerts users with bilingual warnings when memory usage is high, and provides safe Python/Node.js process cleanup.
python .agents/skills/memory-guardian/scripts/monitor.py --check
python .agents/skills/memory-guardian/scripts/monitor.py --daemon
python .agents/skills/memory-guardian/scripts/cleanup.py
| 级别 / Level | 内存使用率 / Usage | 行为 / Action |
|---|---|---|
| 🟢 正常 / Normal | < 70% | 静默 / Silent |
| 🟡 注意 / Notice | 70-80% | 提示 / Notice |
| 🟠 警告 / Warning | 80-90% | 警告 / Warning |
| 🔴 严重 / Critical | ≥ 90% | 严重警告 / Critical |
编辑 config.yaml 自定义阈值和行为:
Edit config.yaml to customize thresholds and behavior:
thresholds:
notice: 70
warning: 80
critical: 90
check_interval: 30 # seconds
psutil>=5.9.0
plyer>=2.1.0
安装依赖 / Install dependencies:
pip install -r .agents/skills/memory-guardian/scripts/requirements.txt