用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Supernor/openclaw-skills --skill data-path-audit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | data-path-audit |
| description | Audit task routing quality, engine success rates, and token spend. Weekly duty for Ops Officer. |
| tags | ["ops","routing","quality","audit","zero-cost"] |
| version | 1.0.0 |
Audit the quality of every data path in the system. Identify broken routes, waste, and improvement opportunities.
SELECT json_extract(meta, '$.host_op') as route,
COUNT(*) as total,
SUM(CASE WHEN status='completed' THEN 1 ELSE 0 END) as ok,
ROUND(100.0 * SUM(CASE WHEN status='completed' THEN 1 ELSE 0 END) / COUNT(*)) as pct
FROM tasks WHERE meta IS NOT NULL
AND json_extract(meta, '$.host_op') IS NOT NULL
AND created_at > datetime('now', '-7 days')
GROUP BY route ORDER BY total DESC;
SELECT engine, COUNT(*) as calls, SUM(success) as ok,
ROUND(100.0 * SUM(success) / COUNT(*)) as pct,
ROUND(AVG(duration_ms)/1000.0, 1) as avg_sec
FROM engine_usage
WHERE timestamp > datetime('now', '-7 days')
GROUP BY engine ORDER BY calls DESC;
SELECT SUBSTR(errors, 1, 60) as pattern, COUNT(*) as count
FROM tasks WHERE status IN ('blocked','failed')
AND created_at > datetime('now', '-7 days')
AND errors IS NOT NULL AND errors != ''
GROUP BY pattern ORDER BY count DESC LIMIT 10;
Look for:
SELECT agent, COUNT(*) as retries
FROM tasks WHERE task LIKE 'Fix:%' OR task LIKE 'Auto-fix:%'
AND created_at > datetime('now', '-7 days')
GROUP BY agent ORDER BY retries DESC;
Compare current routes against policy at /root/.openclaw/docs/routing-policy.md.
Flag any route below its quality target.
## Data Path Audit: [Date]
**Routes**: [table of route / total / success% / target%]
**Engines**: [table of engine / calls / success% / avg latency]
**Top failure patterns**: [clustered errors]
**Token waste**: [retries that burned tokens before cancelling]
**Recommendations**: [specific routing changes]