Automated weekly workspace health check. Evaluates skills, learnings, memory, and config files. Delivers actionable recommendations to Telegram.
4-phase sequential pipeline with internal parallelism:
opencode-go/kimi-k2.5)Ingest all workspace files in one long-context call:
skills/*/SKILL.md and associated scripts/tests.learnings/LEARNINGS.md, ERRORS.md, FEATURE_REQUESTS.mdSOUL.md, AGENTS.md, USER.md, TOOLS.md, MEMORY.md, HEARTBEAT.mdmemory/*.md files (last 14 days)Output: audit-state.json with per-file summaries, staleness scores, overlap detection, gap analysis.
Optimization: hash watched files against state.json from last run. Skip unchanged files to prevent token burn.
Also: web_search for best practices relevant to detected gaps.
Phase 2A (opencode-go/glm-5): Score each skill on effectiveness, token efficiency, coverage, staleness, overlap, alignment with USER.md goals. Propose new skill ideas.
Phase 2B (openai-codex/gpt-5.3-codex): Score independently. Generate concrete refactor proposals. Propose new skill ideas.
Both output structured evaluation JSON.
openai-codex/gpt-5.4)Receives: audit-state.json + both evaluation outputs.
Output: final-recommendations.json
Format recommendations as Telegram message and send. Archive to memory/audits/YYYY-MM-DD.json.
Each recommendation:
{
"id": "rec-001",
"type": "refactor | new-skill | config-update | deprecate | merge",
"severity": "green | yellow | red",
"target": "skills/context-optimizer/SKILL.md",
"title": "compress context-optimizer references section",
"rationale": "...",
"proposed_action": "...",
"confidence": 0.87,
"agreed_by": ["glm-5", "gpt-5.3-codex"]
}
📋 Weekly Skill Audit — YYYY-MM-DD
🟢 Safe refactors (N):
1. [title] → [one-line action]
🟡 Needs review (N):
2. [title]
🔴 Informational (N):
3. [title]
Reply with a number for details, or "approve 1,2" to greenlight.
If no strong recommendations: send "no action needed this week" one-liner.
If quality score is low across all recommendations: send nothing.
Primary: OpenClaw cron, every 7 days (Sunday 10:00 AM ET):
openclaw cron add --schedule "0 10 * * 0" --model openai-codex/gpt-5.4 --label skill-auditor-weekly --prompt "Read skills/skill-auditor/SKILL.md and execute the full audit pipeline. Deliver results to Telegram."
State tracking: memory/audits/last-run.json records last execution timestamp. Heartbeat checks if last run was >10 days ago and alerts.
Manual trigger: User says "audit skills" or "review workflow".
Each file/skill scored on:
skills/skill-auditor/
├── SKILL.md
├── scripts/
│ ├── build_audit_state.py
│ ├── merge_evaluations.py
│ └── format_telegram.py
└── tests/
├── test_build_audit_state.py
├── test_merge_evaluations.py
└── test_format_telegram.py
Runtime artifacts (not tracked in repo):
memory/audits/
├── last-run.json
├── YYYY-MM-DD.json
└── state.json (file hashes for change detection)
共 1 个版本