用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Supernor/openclaw-skills --skill log-audit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | log-audit |
| description | Audit all OpenClaw log sources — persistence, retention, size, health. Runs log-audit.sh script. |
| version | 1.0.0 |
| author | repo-man |
| tags | ["logs","audit","monitoring","governance"] |
/log-audit
/home/node/.openclaw/scripts/log-audit.sh
Script outputs JSON covering all log sources. Format as:
📋 Log Audit — <date>
Gateway Log:
Today: <size> | Persisted: <count> files (<size>) | Retention: 7 days
Pruned: <N> old files this run
Sessions:
<agent>: <files> files, <size>
...
Total: <files> files, <size> | Pruned: <N> old sessions
Config Audit: <lines> entries | Last change: <date>
Cron Health: <total> recent runs, <failures> failures
Delivery Queue: <pending> pending, <failed> failed
Model Notifications: <lines> entries
Repo-Man Log: <lines> lines
Disk: <total>MB total log footprint
⚠️ Warnings:
- <warning text>
🔧 Actions taken:
- <action text>
If status is "ok" and no warnings, use a single line:
✅ Log Audit — All clear. <total>MB total. <N> files pruned.
/home/node/.openclaw/scripts/log-event.sh INFO log-audit "status: <ok|warning> warnings: <N>"
/tmp/ to ~/.openclaw/logs/gateway/cat ~/.openclaw/delivery-queue/failed/*.json | jq .cat ~/.openclaw/cron/runs/*.jsonl | jq -r 'select(.status=="error")'Intent: Observable [I13]. Purpose: [P-TBD].