Install
openclaw skills install agent-stack-auditMonthly health check for your agent stack — hunts for zombie crons, dead scripts, unused API keys, superseded tools, and stale subscriptions. Classifies each finding as delete/replace/upgrade/healthy and outputs a ranked cleanup brief for your review. Use when your automation stack feels bloated, when bills are creeping up from unused services, or as a monthly maintenance run to prevent entropy. Prevents "automation debt" — the slow accumulation of dead weight that degrades system reliability.
openclaw skills install agent-stack-auditBottom line: Run this monthly. Your agent stack accumulates dead weight faster than you think — zombie crons, unused APIs still billing you, scripts referencing killed strategies, and duplicate tools doing the same job. This skill finds all of it in one pass.
Scheduled: First Monday of every month, 05:00 local time. Quick scan: Every Sunday (cron health only — 5 min). Manual trigger: Any time the stack feels bloated, bills are unexpected, or reliability has degraded. Trigger phrases: "stack audit", "clean up my automations", "what's still running?", "am I paying for anything unused?", "why are my API costs high?"
For each launchd agent / cron job / scheduled task:
Questions to answer:
Scan your automation directories for Python/shell scripts:
Cross-reference your API inventory against actual script usage:
Common culprits: data providers, news APIs, notification services, AI APIs at old models.
Review your installed skills:
Review project memory and context files:
Using web search:
For each item found, classify as:
| Classification | Meaning | Action |
|---|---|---|
| 🔴 ZOMBIE | Running but producing nothing useful | Recommend DELETE |
| 🟡 REDUNDANT | Superseded by newer/better approach | Recommend REPLACE or MERGE |
| 🟠 OUTDATED | Still useful but using old tech/API | Recommend UPGRADE |
| 🟢 HEALTHY | Working, used, best current approach | No action |
| ⚪ UNKNOWN | Can't determine without user input | Flag for user decision |
File: state/stack_audit_YYYY-MM-DD.md
# Stack Audit — [DATE]
_Scope: Crons, Scripts, APIs, Skills, Memory, Tools_
_Items scanned: [N] | Issues found: [M] | Recommended actions: [K]_
---
## 🔴 RECOMMEND DELETE (zombies)
| Item | Type | Reason | Risk if deleted |
|---|---|---|---|
| old_watchdog.sh | Cron | Bot killed Mar 12, watchdog still running | None — bot is dead |
## 🟡 RECOMMEND REPLACE/MERGE (redundant)
| Item | Type | Replaced By | Action |
|---|---|---|---|
| old_intelligence_scan.py | Script | Tech Scout skill | Kill script, activate skill |
## 🟠 RECOMMEND UPGRADE (outdated)
| Item | Type | Current | Better Option | Est. Saving/Gain |
|---|---|---|---|---|
| image_gen API call | API | DALL-E 3 | [Cheaper/better alternative] | ~40% cost reduction |
## 🟢 HEALTHY — No Action
[List with one-line confirmation each]
## ⚪ NEEDS USER INPUT
[Items that require your decision — presented as yes/no questions]
---
## Summary
- Recommended deletes: [N items] — saves [X $/mo or compute]
- Recommended upgrades: [N items]
- Estimated cleanup time if approved: ~[X hours]
- Most important action: [single highest-leverage item]
state/stack_cleanup_YYYY-MM-DD.md confirming what was removed and what the before/after count was.Lighter weekly version — runs in 5 minutes:
ERROR or FAILED in last 24h logsstate/cron_health_YYYY-MM-DD.md — just a pass/fail list, no detailLeft unchecked, automation stacks accumulate:
The monthly audit is what separates a clean, reliable stack from a pile of debt that fails when you need it most. Most teams discover 20-40% of their crons are either dead or redundant on the first pass.