Dev.to
7/19/2026

Auto-Retiring Skills You No Longer Use: Weekly Skill Lifecycle Management with launchd
Short summary
The author describes an automated two-stage retirement system for Claude Code auto-skills using macOS launchd. A weekly curate script reverse-looks-up skill names in conversation logs to compute last-used dates, then archives skills unused for 90+ days and marks 30+ day stale ones. The system prevents context bloat from auto-generated skills accumulating without manual cleanup.
- •Weekly skill-curate.sh computes last-used dates by grepping conversation logs for skill names
- •Two-stage retirement: 30+ days marks stale, 90+ days archives to a graveyard directory
- •Generation and cleanup run as separate launchd jobs to avoid same-day evaluation of new skills
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



