Token导航 LogoToken导航TokenDH.com
研究检索external-serviceclawhub未标认证来源可访问clear审计通过

agent-health-optimizerAgent 健康优化器

Agent Skill

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

总安装

24,025

周安装

1,032

GitHub Stars

1

下载量

8,421
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install agent-health-optimizer

简介

全面审核并优化 OpenClaw 代理配置。

  • 评估内存使用、cron 可靠性和技能兼容性。
  • 适用于代理系统性能调优和稳定性提升。
  • 通过 clawhub 安装,需授权修改代理设置。
  • 建议在非高峰时段执行优化操作。agent-health-optimizer 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
agent-health-optimizer
description
Audit and improve your OpenClaw setup with one skill. Scores agent health, audits memory hygiene, checks cron reliability, and compares installed skills against ClawHub — with conservative fixes instead of reckless auto-repair.
metadata
openclaw
requires
bins
["openclaw", "python3"]

Agent Health Optimizer

Diagnose, score, and steadily improve your OpenClaw setup.

This skill is an audit toolkit, not a magic self-healing system. It is good at surfacing likely problems, weak spots, and opportunities. Its --fix mode is intentionally conservative.

Requirements

  • python3 (3.8+)
  • openclaw CLI

Quick Start

# Full diagnostic suite — one command
python3 scripts/self_optimize.py

# Individual tools
python3 scripts/health_score.py         # Health grade (A+ to F)
python3 scripts/memory_auditor.py       # Memory hygiene check
python3 scripts/cron_optimizer.py       # Cron analysis
python3 scripts/cron_optimizer.py --fix # Conservative auto-repair (backs up first)
python3 scripts/skill_comparator.py     # Adjacent/overlapping ClawHub skills

What It Does

🏥 health_score.py — Agent Health Grade (0-100)

Scores 5 dimensions:

  • 🧠 Memory (25pts): MEMORY.md completeness, daily log activity, working buffer, anti-poisoning hygiene, source tags
  • ⏰ Cron (25pts): job health, schedule diversity, use of isolated sessions, suspicious delivery setups, selective stagger usage
  • 📦 Skills (20pts): count, overlap hints, ClawHub management ratio, metadata completeness
  • 🔒 Security (15pts): safety rules, anti-poisoning policy, WAL protocol, external action controls
  • 🔄 Continuity (15pts): SOUL.md, USER.md, HEARTBEAT.md, IDENTITY.md, git tracking

🔍 memory_auditor.py — Memory Hygiene

Detects:

  • Imperative rules that should be declarative facts
  • Missing source tags on factual entries
  • Stale entries >30 days with pending status
  • External content stored as instructions
  • Oversized files needing archival
  • Daily log gaps

⏰ cron_optimizer.py — Cron Job Doctor

Detects:

  • Error states with job names and error messages
  • Time collisions (multiple jobs on same schedule)
  • Missing stagger on burst-prone recurring schedules
  • Suspicious announce setups (for example explicit channel without explicit to)
  • Timeout mismatches
  • Session target recommendations (isolated vs main)

--fix mode:

  • creates memory/cron-backup.json before changes
  • only auto-adds stagger to recurring top-of-hour stampede-prone jobs
  • does not force delivery on jobs using delivery=none
  • does not modify exact-time jobs just because they lack stagger

📦 skill_comparator.py — Skill Landscape Checker

Via ClawHub API (https://clawhub.ai/api/v1/):

  • Fetches stars, downloads, installs for installed skills
  • Lists top ClawHub skills you're missing
  • Finds adjacent / overlapping skills with stronger community signals
  • Category coverage analysis (what domains are missing?)

Important: these are comparison hints, not authoritative replacements.

🔄 self_optimize.py — Unified Runner

Runs all 4 tools and produces:

  • Combined report with prioritized action items (HIGH/MED/LOW)
  • Trend tracking vs prior run (📈/📉)
  • JSON reports in memory/ for historical review

What It Reads & Writes

Reads (non-destructive):

  • Workspace files: MEMORY.md, AGENTS.md, SOUL.md, USER.md, HEARTBEAT.md, IDENTITY.md
  • Daily logs: memory/*.md
  • Skill metadata: skills/*/SKILL.md
  • Cron config: openclaw cron list --json
  • ClawHub public API: https://clawhub.ai/api/v1/skills/...

Writes (reports only):

  • memory/health-score.json
  • memory/memory-audit.json
  • memory/cron-optimizer.json
  • memory/skill-comparator.json
  • memory/self-optimize-report.json
  • memory/self-optimize-last.json

Modifies (only with --fix):

  • cron_optimizer.py --fix edits cron jobs via openclaw cron edit
  • Always backs up to memory/cron-backup.json first

Periodic Self-Optimization

Set up a weekly cron (read-only, no --fix):

openclaw cron add \
  --name "Agent Self-Optimize" \
  --cron "0 11 * * 0" \
  --tz "America/Los_Angeles" \
  --session isolated \
  --stagger 2m \
  --no-deliver \
  --message "Run agent self-optimization:
python3 ~/.openclaw/workspace/skills/agent-health-optimizer/scripts/self_optimize.py

Report results. List HIGH priority issues first. Keep it brief if everything looks fine."

Positioning

Use this skill when you want:

  • a periodic audit
  • a sanity check before changing agent architecture
  • conservative recommendations
  • a historical trend of agent health

Do not treat it as a substitute for human review on destructive or far-reaching changes.

Credits

Diagnostic patterns informed by:

  • proactive-agent by halthelobster
  • self-improving-agent by pskoett
  • Moltbook openclaw-explorers community — cron jitter pattern (thoth-ix), heartbeat batching (pinchy_mcpinchface)

License

This work is licensed under CC BY-SA 4.0. You are free to share and adapt, with attribution and same-license requirement.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

76.64%
按下载量换算6,454

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

来源信息

继续浏览同类 Skills