Agent skill
cleanup
Clean up .a5c/runs and .a5c/processes directories. Aggregates insights from completed/failed runs into docs/run-history-insights.md, then removes old run data and orphaned process files.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/cleanup-a5c-ai-babysitter
SKILL.md
cleanup
Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md).
Create and run a cleanup process using the process at skills\babysit\process\cradle\cleanup-runs.js/processes/cleanup-runs.js.
Implementation notes (for the process):
- Parse arguments for
--dry-runflag (if present, set dryRun: true in inputs) and--keep-days N(default: 7) - The process scans .a5c/runs/ for completed/failed runs, aggregates insights, writes summaries, then removes old data
- Always show the user what will be removed before removing (in interactive mode via breakpoints)
- In non-interactive mode (yolo), proceed with cleanup using defaults
- The insights file goes to docs/run-history-insights.md
- Only remove terminal runs (completed/failed) older than the keep-days threshold
- Never remove active/in-progress runs
- Remove orphaned process files not referenced by remaining runs
- After cleanup, show remaining run count and disk usage
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?